# Controlling length of longtable with chemnum schemes in it [closed]

I have been struggling with this for quite a while and I could not find any solution to it. I would like to draw a longtable with seven columns. The first row shows an overview scheme (eps file). Rows 2 and 3 the headers and following those are the table entries. The second and third column are again schemes (eps files). With my following code (attached) Latex is drawing the table way too wide. Even without the funky bit in the alignment, which is needed to vertically align the schemes.

\begin{longtable}{c>{$\vcenter\bgroup\hbox\bgroup}c<{\egroup\egroup$}>{$\vcenter\bgroup\hbox\bgroup}c<{\egroup\egroup$}c ccc}

When I replace c with p{1cm} it limits the column but the table is drawn too wide, which can be seen by the width of the \hline. If you look at the table there is plenty of padding that can be reduced, however I cannot find a way to reduce it. At the end, I just want the table to fit onto the single page, and there's plenty of padding that can be removed. Can anyone help?

\usepackage{longtable}
\usepackage{chemnum}
\usepackage[version=3]{mhchem}
\usepackage[runs=2]{auto-pst-pdf}
\usepackage{multirow}

\begin{document}
\begin{longtable}{c>{$\vcenter\bgroup\hbox\bgroup}c<{\egroup\egroup$}>{$\vcenter\bgroup\hbox\bgroup}c<{\egroup\egroup$}c ccc}
\caption{Substrate scope of primary amines for intramolecular hydroamination using \ce{[Cu(NCMe)4](BF4)} in acetonitrile.}
\label{table:intramol_cuncme_substrate_scope}\\
\multicolumn{7}{c}{ \raisebox{0pt}{\includegraphics{\HERE/substrate_screening_linear_alkynes.eps}}}\\
&       &               & [Cu]          & time  & conv.\textsuperscript{a}  & yield\\
& substrate & product   & (mol \%)  & (h)       & (\%)                              & (\%)\\
\hline\hline\\%[10pt]
\endfirsthead
\multicolumn{7}{c}%
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
entry&  substrate   & product   & [Cu] (mol \%) & time (h)  & conv. & yield (\%)\\
\hline\hline\\%[10pt]
\endhead
\multicolumn{7}{l}{\footnotesize{a) Conversion into product calculated by \ce{^{1}H} NMR using 1,3,5-trimethoxybenzene as an internal standard.}}
\endfoot
1&  {\replacecmpd[tag=na]{subs:prop_primar.five}\includegraphics{\HERE/mol/prop_primar_five.eps}} & {\replacecmpd[tag=na]{cmpd:pyrroline.five}\replacecmpd[tag=nb]{cmpd:pyrrolineiodine.five}\includegraphics{\HERE/mol/pyrroline_5.eps}} & X   & Y & X & Y\\[25pt]
2&  {\replacecmpd[tag=na]{subs:prop_primar.six}\includegraphics{\HERE/mol/prop_primar_six.eps}} &  {\replacecmpd[tag=na]{cmpd:pyrroline.six}\includegraphics{\HERE/mol/pyrroline_6.eps}} & X    & Y & X & Y\\[25pt]
3&   {\replacecmpd[tag=na]{subs:prop_primar.seven}\includegraphics{\HERE/mol/prop_primar_seven.eps}} &  {\replacecmpd[tag=na]{cmpd:pyrroline.seven}\includegraphics{\HERE/mol/pyrroline_7.eps}} & X & Y & X & Y\\[25pt]

\end{longtable}

\end{document}


Possible MWE:

\documentclass{article}
\usepackage{longtable}
\usepackage{chemnum}
\usepackage[version=3]{mhchem}

\usepackage{array}

\begin{document}

\noindent X\dotfill X

\begin{longtable}{ccccccc}
\caption{Substrate scope of primary amines for intramolecular hydroamination using \ce{[Cu(NCMe)4](BF4)} in acetonitrile.}
\label{table:intramol_cuncme_substrate_scope}\\
\multicolumn{7}{c}{\rule{3cm}{1cm}}\\
&       &               & [Cu]          & time  & conv.\textsuperscript{a}  & yield\\
& substrate & product   & (mol \%)  & (h)       & (\%)                              & (\%)\\
\hline\hline\\%[10pt]
\endfirsthead
\multicolumn{7}{c}%
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
entry&  substrate   & product   & [Cu] (mol \%) & time (h)  & conv. & yield (\%)\\
\hline\hline\\%[10pt]
\endhead
\multicolumn{7}{@{}p{\textwidth}@{}}{\footnotesize{a) Conversion into product calculated by \ce{^{1}H} NMR using 1,3,5-trimethoxybenzene as an internal standard.}}
\endfoot
1& \rule{3cm}{1cm} & \rule{3cm}{1cm} & X   & Y & X & Y\\[25pt]
1& \rule{3cm}{1cm} & \rule{3cm}{1cm} & X   & Y & X & Y\\[25pt]
1& \rule{3cm}{1cm} & \rule{3cm}{1cm} & X   & Y & X & Y\\[25pt]
\end{longtable}

\end{document}


## closed as unclear what you're asking by clemens, Stefan Pinnow, Zarko, gernot, Martin SchröderApr 14 '17 at 15:10

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• please try to make an example that shows the problem. the code posted can not be run, it has no \documentclass, it is missing required packages (array at least) and missing eps files. – David Carlisle Jan 23 '17 at 19:10
• I added a possible MWE to your question that people can use, you can remove it if it is unhelpful or adjust the width of the rules to be closer to your EPS sizes. But if the rules are anything like correct the table is simply too wide to fit. – David Carlisle Jan 23 '17 at 19:22
• chemnum schemes” is probably misleading for the question at hand. They're pictures really. – clemens Jan 23 '17 at 19:50