# [Tugindia] some more table formatting issues

E. Krishnan ekmath at asianetindia.com
Sun Apr 2 04:34:23 CEST 2006

On Sat, 1 Apr 2006, Alexander Nervedi wrote:

> I am trying to do something simple; i have a centered table and would like
> footnotes to begin below the \hline that I draw to mark the end of the
> table. When I specify the table as I do in the LaTeX script below I find
> that the footnotes begin from the left margin and stick out very sorely.
>
> is there a way to align this so that it begin right under the table and
> wraps around the width of the table? One work around I can think of is
> specifying an extra row, multicoulming it into one coulmn and typing in
> there, but that is very inelegant in my mind. I hope there are superior
> alternatives out there.
>
> \documentclass[11pt]{article} % specifying document type
> \begin{document}
> \begin{table}
>     \caption{example}
>     \begin{center}
>         \begin{tabular}{l|c}
>             top & top2 \\
>             \hline
>             1&2\\
>             \hline
>         \end{tabular}
>     \end{center}
>     \small
>     Notes: \\
>     1.Data from the figment of my imagination
> \end{table}
> \end{document}

\newcommand{\MyTable}{%
\begin{tabular}{l|c}
top & top2 \\
\hline
1&2\\
\hline
\end{tabular}}

\newlength{\TabLen}
\settowidth{\TabLen}{\MyTable}

\begin{table}
\caption{example}
\begin{center}
\MyTable\\
\parbox{\TabLen}{%
\small
Notes: \\
1.Data from the figment of my imagination}
\end{center}
\end{table}

--
Krishnan