I have a table, but for cleanliness (I'll use the figure in a paper and in talks), I'd like to compile to a single PDF and include it with includegraphics instead of having the table rendered within the paper.
In the paper, it renders fine. I use these options:
\documentclass[11pt,twocolumn]{article}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
But when I move the table into a standalone document with preview, the graphics are far too big for the page. Of course, I can still simply render the figure in its own table inside paper.tex, but I'd like to figure out why this happens. Can you figure it out?
Here is the preview document:
\documentclass[preview=true]{standalone}
\usepackage{standalone}
\usepackage{rotating}
\usepackage{array}
\usepackage{graphicx}
\usepackage{multirow}
\pagestyle{empty}
\begin{document}
\begin{tabular}{m{0.1in}m{1.4in}m{1.4in}m{1.4in}m{1.4in}m{1.4in}}
&
\multirow{3}{*}{\begin{minipage}{1.4in}\centering {\bf (a)} Control-control densities \end{minipage}} &
% 1.4 * 3
\multicolumn{3}{c}{ \begin{minipage}{4.2in}\centering {\bf (b)} Case-control vs. control-control log densities \end{minipage} } \\
& & \multicolumn{3}{c}{ \begin{minipage}{4.2in}\centering {\includegraphics[width=4.2in]{colorbar.pdf}} \end{minipage} }\\
& & \begin{minipage}{1.4in} \centering {0 differential} \end{minipage} & \begin{minipage}{1.4in} \centering {53 differential} \end{minipage} & \begin{minipage}{1.4in} \centering {302 differential} \end{minipage}\\
\begin{sideways}Replicate 1\end{sideways} &
\includegraphics[width=1.4in]{null_1-crop.pdf} &
\includegraphics[width=1.4in]{rep_1_0-crop.pdf} &
\includegraphics[width=1.4in]{rep_1_53-crop.pdf} &
\includegraphics[width=1.4in]{rep_1_302-crop.pdf} \\
\begin{sideways}Replicate 2\end{sideways} &
\includegraphics[width=1.4in]{null_2-crop.pdf} &
\includegraphics[width=1.4in]{rep_2_0-crop.pdf} &
\includegraphics[width=1.4in]{rep_2_53-crop.pdf} &
\includegraphics[width=1.4in]{rep_2_302-crop.pdf} \\
\end{tabular}
\end{document}
\documentclass[border=15pt]{standalone}? without the setting ofpreview=true! – May 17 '13 at 20:02preview=trueoption and control the border margins with theborderoption as Herbert has suggested. – hpesoj626 May 18 '13 at 01:44\usepackage{standalone}is superfluous in your MWE. – hpesoj626 May 18 '13 at 01:46previewoption you need to make sure that there are no empty lines between the content and the\end{document}. They create a paragraph break which influences the official width. See Standalone package creates a page with a fixed width for details. – Martin Scharrer May 19 '13 at 07:43