0

I am getting Something's wrong--perhaps a missing \item. error while including a source with items.

Here's a very simple way to reproduce,

main.tex

\documentclass[11pt,a0paper]{tikzposter}
\begin{document}
\begin{columns}

\column{0.5}
\block{A test!}{
  asddd
  \include{sensitivity}
}

\column{0.5}
\block{A test!}{
 asd
}

\end{columns}
\end{document}

sensitivity.tex

\begin{itemize}
\item sdf
\item dsf
\end{itemize}

Any suggestions please?

  • using \input{} instead of include{} seem to work... but why? – xcorat Oct 20 '16 at 16:09
  • \include is a structural command that includes at least two forced page breaks (at start and end) , it can not possibly work inside \block or \column – David Carlisle Oct 20 '16 at 16:20
2

\include is designed for "chapter-level" inclusions and includes a mandatory page break at the start and end of the included code, it can not work inside a box such as \block or even \column . \input is the command that you want 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.