Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!olivea!uunet!brunix!Andrew From: Andrew Gilmartin Newsgroups: comp.text.tex Subject: Re: Tables in LaTEX? Message-ID: <73331@brunix.UUCP> Date: 24 Apr 91 14:50:45 GMT References: <1991Apr23.200105.14819@midway.uchicago.edu> Sender: news@brunix.UUCP Distribution: usa Organization: Computing & Information Services, Brown Universit Lines: 262 In article <1991Apr23.200105.14819@midway.uchicago.edu> ppalmer@oskar.uchicago.edu (Patrick Palmer) writes: >I am trying to make footnotes in a table in LaTEX, and having no luck. The following example tables don't answer all your questions but they might be usefull. -- Andrew Gilmartin Computing & Information Services Brown University (401) 863-7305 andrew@brownvm.brown.edu \documentstyle{article} \begin{document} \begin{table}[h] % \begin{center} % \begin{tabular}{cccc} aA & eE & iI & mM \\ bB & fF & jJ & nN \\ cC & gG & kK & oO \\ dD & hH & lL & pP \\ \end{tabular} % \end{center} % \caption{Starter} % \end{table} \begin{table}[h] % \begin{center} % \begin{tabular}{|cccc|} \hline aA & eE & iI & mM \\ bB & fF & jJ & nN \\ cC & gG & kK & oO \\ dD & hH & lL & pP \\ \hline \end{tabular} % \end{center} % \caption{Boxing the tables with a bar and hline} % \end{table} \begin{table}[h] % \begin{center} % \begin{tabular}{|c|c|c|c|} \hline aA & eE & iI & mM \\ \hline bB & fF & jJ & nN \\ \hline cC & gG & kK & oO \\ \hline dD & hH & lL & pP \\ \hline \end{tabular} % \end{center} % \caption{Using more hline} % \end{table} \begin{table}[h] % \begin{center} % \renewcommand{\arraystretch}{1.5} % \begin{tabular}{|c|c|c|c|} \hline aA & eE & iI & mM \\ \hline bB & fF & jJ & nN \\ \hline cC & gG & kK & oO \\ \hline dD & hH & lL & pP \\ \hline \end{tabular} % \end{center} % \caption{Changing the height of cells by renewing arraystretch} % \end{table} \begin{table}[h] % \begin{center} % \begin{tabular}{|c|cccc|} \hline \bf One & aA & eE & iI & mM \\ \cline{2-5} & bB & fF & jJ & nN \\ \hline \bf Two & cC & gG & kK & oO \\ \cline{2-5} & dD & hH & lL & pP \\ \hline \end{tabular} % \end{center} % \caption{Using cline to visually group rows} % \end{table} \begin{table}[h] % \begin{center} % \begin{tabular}{|c|l|p{3in}|} \hline % \bf Symbol & \bf Function & \bf Description \\ \hline % \tt\& & Concatenate & Appends the text on the right of the end of the text string on the left.\\ \hline % \tt"" & Text Constant & Marks the beginning and the end of characters to be considered a text constant. If you enter text into a formula without using quotes, FileMaker Pro interprets the text as a field or function name.\\ \hline % \tt\P & Return Marker & Used wherever you want to insert a text constant containing a paragraph return.\\ \hline % \end{tabular} % \end{center} % \caption{Using cols' p} % \end{table} \begin{table}[h] % \begin{center} % \begin{tabular}{|c|c|c|c|}\hline \multicolumn{2}{|c|}{One} & \multicolumn{2}{|c|}{Two} \\ \hline aA & eE & iI & mM \\ \hline bB & fF & jJ & nN \\ \hline cC & gG & kK & oO \\ \hline dD & hH & lL & pP \\ \hline \end{tabular} % \end{center} % \caption{Using multicolumn to visually group columns} % \end{table} \begin{table}[h] % \begin{center} % \begin{tabular}{|c|c|c|c|}\hline \multicolumn{4}{|c|}{One} \\ \hline \multicolumn{3}{|c|}{Two} & Three \\ \cline{1-3} Four & Five & Six & \null \\ \hline aA & eE & iI & mM \\ \hline bB & fF & jJ & nN \\ \hline cC & gG & kK & oO \\ \hline dD & hH & lL & pP \\ \hline \end{tabular} % \end{center} % \caption{Using more multicolumn} % \end{table} \begin{table}[h] % \begin{center} % % You create footnoted tables by placing the tabular environment % inside a minipage. Use the width of the table (when printed) as % the width of the minipage---1.5in in the example below. % % To determine the width of your table print one copy with a % minipage width of \textwidth; Then replace \textwidth with the % measured width the the printed table. I wish I know of a better % way... % % \begin{minipage}{\textwidth} % \begin{minipage}{1.5in} % \renewcommand{\footnoterule}{} % \begin{tabular}{|c|c|c|c|} \hline aA & eE & iI & mM \\ \hline bB & fF & jJ & nN \\ \hline cC & gG & kK & oO\footnote{Footnote for Table~\ref{tab:foot}}\\ \hline dD & hH & lL & pP \\ \hline \end{tabular} % \end{minipage} % \end{center} % \caption{Using footnotes}\label{tab:foot} % \end{table} \begin{table}[h] % \begin{center} % \begin{tabular}{|r|r|r|} \hline \multicolumn{1}{|c|}{One} & \multicolumn{1}{|c|}{Two} & \multicolumn{1}{|c|}{Three} \\ \hline 1.23 & 3.4 & 5.678 \\ 9.0123 & 4.567 & 890.1 \\ 23.45 & 67.8 & 9 \\ \hline \end{tabular} % \end{center} % \caption{Unaligned decimal points.} % \end{table} \begin{table}[h] % \begin{center} % % To align decimals, pad each number with ? so that each number % has the same precission. For example, "1.0" and "45.945" are coded % as "1.0??" and "45.945". % % Make ? act like a non-printing zero \catcode`?=\active \def?{\phantom{0}} % \begin{tabular}{|r|r|r|} \hline \multicolumn{1}{|c|}{One} & \multicolumn{1}{|c|}{Two} & \multicolumn{1}{|c|}{Three} \\ \hline 1.23?? & 3.4?? & 5.678 \\ 9.0123 & 4.567 & 890.1?? \\ 23.45?? & 67.8?? & 9.0?? \\ \hline \end{tabular} % \end{center} % \caption{Aligning decimal points.} % \end{table} \end{document}