Graphics, Figures & TablesAlignment for Table Notes

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lynnlee
Posts: 50
Joined: Fri Jan 04, 2013 10:15 am

Alignment for Table Notes

Post by lynnlee »

Hello LaTeX Community,

I use {tabular} to arrange tables.

Code: Select all

\begin{table}[t]
table 1: ...
\begin{tabular}{l c c c}
...
\end{tabular}
\\ Notes: ... \\
\end{table}
The problem is that the contents of notes always are not aligned with table, it is usually longer than width of table. How to adjust contents of notes to make it to be aligned with width of table?

Any suggestion is appreciated.

Lynn
Last edited by Stefan Kottwitz on Wed Jan 23, 2013 10:07 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Alignment for Table Notes

Post by Stefan Kottwitz »

Hi Lynn,

you could use the threeparttable package. For example:

Code: Select all

\documentclass{article}
\usepackage{threeparttable}
\begin{document}
\begin{threeparttable}[hb]
  \caption{Example table}
  \begin{tabular}{l c c c}
    One & Two & Three & Four
  \end{tabular}
  \begin{tablenotes}
    \item [1] Here is the first Note, the width
              is equal to the body of the table
  \end{tablenotes}
\end{threeparttable}
\end{document}
Stefan
LaTeX.org admin
lynnlee
Posts: 50
Joined: Fri Jan 04, 2013 10:15 am

Re: Alignment for Table Notes

Post by lynnlee »

Thank you for your swift reply, Stefan.

Lynn
Last edited by cgnieder on Thu Jan 24, 2013 12:48 pm, edited 1 time in total.
Reason: added inline code markup
Post Reply