ztluw
29-04-2013, 18:50
\documentclass{article}
%use of packages
\usepackage{tabu}
\usepackage{longtable}
\usepackage{needspace}
\usepackage[a4paper, left=2cm, right=2cm, top=1cm, bottom=1cm, footskip=1.5cm, includeheadfoot]{geometry}
\begin{document}
\section{Table is too wide --- Why?}
%\begin{minipage}{\linewidth}
\begin{center}
\renewcommand{\arraystretch}{1.4}
\begin{longtabu} to 0.8\linewidth{ | X[-1] | X[-1] | X[-1] | X[-1] | }
\hline
\multicolumn{4}{|l|}{\small\sl continued from previous page}\\
\hline
\multicolumn{1}{|c|}{\textbf{Experiment}} & \multicolumn{1}{c|}{\textbf{Ref-pH}} & \multicolumn{1}{c|}{\textbf{Solubility at Ref-pH}} & \multicolumn{1}{c|}{\textbf{Solubility gain per charge}}\\
\hline
\endhead
\hline
\multicolumn{1}{|c|}{\textbf{Experiment}} & \multicolumn{1}{c|}{\textbf{Ref-pH}} & \multicolumn{1}{c|}{\textbf{Solubility at Ref-pH}} & \multicolumn{1}{c|}{\textbf{Solubility gain per charge}}\\
\hline
\endfirsthead
\hline
\multicolumn{4}{|r|}{\small\sl continued on next page}\\
\hline
\endfoot
\endlastfoot
phosphate buffer solubility & 6.8 & 0.00067 & 1000\\
\tabuphantomline
\tabuphantomline
\hline
\caption{Too wide table}
\end{longtabu}
\end{center}
%\end{minipage}
\section{Second Row is too small --- Why?}
%\begin{minipage}{\linewidth}
\begin{center}
\renewcommand{\arraystretch}{1.4}
\begin{longtabu} to 0.8\linewidth{ | X[-1] | X[-1] | }
\hline
\multicolumn{2}{|l|}{\small\sl continued from previous page}\\
\hline
\multicolumn{1}{|c|}{\textbf{Experiment}} & \multicolumn{1}{c|}{\textbf{Permeability}}\\
\hline
\endhead
\hline
\multicolumn{1}{|c|}{\textbf{Experiment}} & \multicolumn{1}{c|}{\textbf{Permeability}}\\
\hline
\endfirsthead
\hline
\multicolumn{2}{|r|}{\small\sl continued on next page}\\
\hline
\endfoot
\endlastfoot
Calculated & \\
\tabuphantomline
\cline{1-2}\multicolumn{2}{|p{\dimexpr0.8\linewidth-2\tabcolsep}|}{\begin{tabu}{ | X[-1] | X[-1] | }
\multicolumn{1}{|c|}{\textbf{Lipophilicity}} & \multicolumn{1}{c|}{\textbf{Permeability}}\\
\cline{1-2}log MA fit & 0.04 cm/min\\
\tabuphantomline
\tabuphantomline
\end{tabu}
}\\
\cline{1-2}\tabuphantomline
\hline
\caption{Strange table}
\end{longtabu}
\end{center}
%\end{minipage}
\section{Second and Third Row are too small --- Why?}
%\begin{minipage}{\linewidth}
\begin{center}
\renewcommand{\arraystretch}{1.4}
\begin{longtabu} to 0.8\linewidth{ | X[-1] | X[-1] | X[-1] | }
\hline
\multicolumn{3}{|l|}{\small\sl continued from previous page}\\
\hline
\multicolumn{1}{|c|}{\textbf{Start Time}} & \multicolumn{1}{c|}{\textbf{Number of Repetitions}} & \multicolumn{1}{c|}{\textbf{Time Between Repetitions}}\\
\hline
\endhead
\hline
\multicolumn{1}{|c|}{\textbf{Start Time}} & \multicolumn{1}{c|}{\textbf{Number of Repetitions}} & \multicolumn{1}{c|}{\textbf{Time Between Repetitions}}\\
\hline
\endfirsthead
\hline
\multicolumn{3}{|r|}{\small\sl continued on next page}\\
\hline
\endfoot
\endlastfoot
37.00 h & 1.00 & 0 h\\
\tabuphantomline
\cline{1-3}\multicolumn{3}{|p{\dimexpr0.8\linewidth-2\tabcolsep}|}{\begin{tabu}{ | X[-1] | X[-1] | X[-1] | X[-1] | }
\multicolumn{1}{|c|}{\textbf{Start Time}} & \multicolumn{1}{c|}{\textbf{Dose}} & \multicolumn{1}{c|}{\textbf{Administration type}} & \multicolumn{1}{c|}{\textbf{Placeholder for formulation}}\\
\cline{1-4}0 h & 50.00 mg & Oral & Formulation\\
\tabuphantomline
\cline{1-4}\multicolumn{4}{|p{\dimexpr 0.8\linewidth-2\tabcolsep}|}{\begin{tabu}{ | X[-1] | X[-1] | }
\multicolumn{1}{|c|}{\textbf{Parameter}} & \multicolumn{1}{c|}{\textbf{Value}}\\
\cline{1-2}Volume of water/body weight & 3.50 ml/kg\\
\tabuphantomline
\tabuphantomline
\end{tabu}
}\\
\cline{1-4}\tabuphantomline
\end{tabu}
}\\
\cline{1-3}\tabuphantomline
\hline
\caption{Even stranger table}
\end{longtabu}
\end{center}
%\end{minipage}
\end{document}
Ich verstehe nicht warum die erste Tabelle zu breit gerät... :confused:
Ist dort ein Bug in der X[-1] Implementierung? Habe ich was falsch verstanden? Wer hat Erfahrungen mit tabu und kann mir weiterhelfen?
Freue mich auf Unterstützung... Vielen Dank schon mal... :)
%use of packages
\usepackage{tabu}
\usepackage{longtable}
\usepackage{needspace}
\usepackage[a4paper, left=2cm, right=2cm, top=1cm, bottom=1cm, footskip=1.5cm, includeheadfoot]{geometry}
\begin{document}
\section{Table is too wide --- Why?}
%\begin{minipage}{\linewidth}
\begin{center}
\renewcommand{\arraystretch}{1.4}
\begin{longtabu} to 0.8\linewidth{ | X[-1] | X[-1] | X[-1] | X[-1] | }
\hline
\multicolumn{4}{|l|}{\small\sl continued from previous page}\\
\hline
\multicolumn{1}{|c|}{\textbf{Experiment}} & \multicolumn{1}{c|}{\textbf{Ref-pH}} & \multicolumn{1}{c|}{\textbf{Solubility at Ref-pH}} & \multicolumn{1}{c|}{\textbf{Solubility gain per charge}}\\
\hline
\endhead
\hline
\multicolumn{1}{|c|}{\textbf{Experiment}} & \multicolumn{1}{c|}{\textbf{Ref-pH}} & \multicolumn{1}{c|}{\textbf{Solubility at Ref-pH}} & \multicolumn{1}{c|}{\textbf{Solubility gain per charge}}\\
\hline
\endfirsthead
\hline
\multicolumn{4}{|r|}{\small\sl continued on next page}\\
\hline
\endfoot
\endlastfoot
phosphate buffer solubility & 6.8 & 0.00067 & 1000\\
\tabuphantomline
\tabuphantomline
\hline
\caption{Too wide table}
\end{longtabu}
\end{center}
%\end{minipage}
\section{Second Row is too small --- Why?}
%\begin{minipage}{\linewidth}
\begin{center}
\renewcommand{\arraystretch}{1.4}
\begin{longtabu} to 0.8\linewidth{ | X[-1] | X[-1] | }
\hline
\multicolumn{2}{|l|}{\small\sl continued from previous page}\\
\hline
\multicolumn{1}{|c|}{\textbf{Experiment}} & \multicolumn{1}{c|}{\textbf{Permeability}}\\
\hline
\endhead
\hline
\multicolumn{1}{|c|}{\textbf{Experiment}} & \multicolumn{1}{c|}{\textbf{Permeability}}\\
\hline
\endfirsthead
\hline
\multicolumn{2}{|r|}{\small\sl continued on next page}\\
\hline
\endfoot
\endlastfoot
Calculated & \\
\tabuphantomline
\cline{1-2}\multicolumn{2}{|p{\dimexpr0.8\linewidth-2\tabcolsep}|}{\begin{tabu}{ | X[-1] | X[-1] | }
\multicolumn{1}{|c|}{\textbf{Lipophilicity}} & \multicolumn{1}{c|}{\textbf{Permeability}}\\
\cline{1-2}log MA fit & 0.04 cm/min\\
\tabuphantomline
\tabuphantomline
\end{tabu}
}\\
\cline{1-2}\tabuphantomline
\hline
\caption{Strange table}
\end{longtabu}
\end{center}
%\end{minipage}
\section{Second and Third Row are too small --- Why?}
%\begin{minipage}{\linewidth}
\begin{center}
\renewcommand{\arraystretch}{1.4}
\begin{longtabu} to 0.8\linewidth{ | X[-1] | X[-1] | X[-1] | }
\hline
\multicolumn{3}{|l|}{\small\sl continued from previous page}\\
\hline
\multicolumn{1}{|c|}{\textbf{Start Time}} & \multicolumn{1}{c|}{\textbf{Number of Repetitions}} & \multicolumn{1}{c|}{\textbf{Time Between Repetitions}}\\
\hline
\endhead
\hline
\multicolumn{1}{|c|}{\textbf{Start Time}} & \multicolumn{1}{c|}{\textbf{Number of Repetitions}} & \multicolumn{1}{c|}{\textbf{Time Between Repetitions}}\\
\hline
\endfirsthead
\hline
\multicolumn{3}{|r|}{\small\sl continued on next page}\\
\hline
\endfoot
\endlastfoot
37.00 h & 1.00 & 0 h\\
\tabuphantomline
\cline{1-3}\multicolumn{3}{|p{\dimexpr0.8\linewidth-2\tabcolsep}|}{\begin{tabu}{ | X[-1] | X[-1] | X[-1] | X[-1] | }
\multicolumn{1}{|c|}{\textbf{Start Time}} & \multicolumn{1}{c|}{\textbf{Dose}} & \multicolumn{1}{c|}{\textbf{Administration type}} & \multicolumn{1}{c|}{\textbf{Placeholder for formulation}}\\
\cline{1-4}0 h & 50.00 mg & Oral & Formulation\\
\tabuphantomline
\cline{1-4}\multicolumn{4}{|p{\dimexpr 0.8\linewidth-2\tabcolsep}|}{\begin{tabu}{ | X[-1] | X[-1] | }
\multicolumn{1}{|c|}{\textbf{Parameter}} & \multicolumn{1}{c|}{\textbf{Value}}\\
\cline{1-2}Volume of water/body weight & 3.50 ml/kg\\
\tabuphantomline
\tabuphantomline
\end{tabu}
}\\
\cline{1-4}\tabuphantomline
\end{tabu}
}\\
\cline{1-3}\tabuphantomline
\hline
\caption{Even stranger table}
\end{longtabu}
\end{center}
%\end{minipage}
\end{document}
Ich verstehe nicht warum die erste Tabelle zu breit gerät... :confused:
Ist dort ein Bug in der X[-1] Implementierung? Habe ich was falsch verstanden? Wer hat Erfahrungen mit tabu und kann mir weiterhelfen?
Freue mich auf Unterstützung... Vielen Dank schon mal... :)