About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account


7.2.1 Side-by-Side Tables

You can create side-by-side tables using an analogous method to the side-by-side figures approach described above.

Example:

This example is similar to the one in §7.1.1. Side-By-Side Figures. Again, take care to ensure that there is no paragraph break between the two minipage environments.

\begin{table}
 \begin{minipage}{0.5\linewidth}
  \caption{Prices for 2011}
  \label{tab:prices2011}
  \centering
  \begin{tabular}{lr}
   Item & Price (£)\\
   Widgets & 10.99\\
   Whatsits & 5.99
  \end{tabular}
 \end{minipage}%
%
 \begin{minipage}{0.5\linewidth}
  \caption{Prices for 2012}
  \label{tab:prices2012}
  \centering
  \begin{tabular}{lr}
   Item & Price (\pounds)\\
   Widgets & 11.99\\
   Whatsits & 6.99
  \end{tabular}
 \end{minipage}%
\end{table}

This produces Tables 7.2 and 7.3.


Table 7.2: Prices for 2011
\begin{tabular}{lr}
Item & Price (\pounds)\\
Widgets & 10.99\\
Whatsits & 5.99
\end{tabular}
Table 7.3: Prices for 2012
\begin{tabular}{lr}
Item & Price (\pounds)\\
Widgets & 11.99\\
Whatsits & 6.99
\end{tabular}


This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-00-5).

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs