1

When using a longtable environment where I include a pdf as the content of one of the columns, the adjacent separator lines are not sufficiently long:

enter image description here

My code is as follows:

\documentclass{article}

\usepackage{array}
\usepackage{pdfpages}
\usepackage{longtable}

\begin{document}

\begin{longtable} {| >{\centering\arraybackslash}m{1in} | >{\centering\arraybackslash}m{1in} | >{\centering\arraybackslash}m{1in} |}
  \hline \\
  bla & bli & \includegraphics{blablu.pdf} \\
  \hline \\
  blo & blok & \includegraphics{blablu.pdf} \\
  \hline 
\end{longtable}

\end{document}

What can I do to fix this?

3
  • 4
    never use \\ after \hline (longtable is the same as standard tabular here) – David Carlisle Mar 31 at 23:35
  • Thank you, that did the trick! :) – Julian Sutherland Mar 31 at 23:42
  • 1
    Consider accepting the provided answer to "close" the question. – Dr. Manuel Kuehner Apr 1 at 1:29
3

Never use \\ after \hline (longtable is the same as standard tabular here).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.