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,



\block{A test!}{

\block{A test!}{



\item sdf
\item dsf

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 Oct 20 '16 at 16:20

\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.