## Why latex only includes one of your files

Just another quick tip that might help someone save some time and frustration:

If when writing in Latex, you try to include one or more finished files into another file and only part of the final documents is generated, check if you’ve remembered to remove the final line in the included documents, typically:

\end{document}

If you don’t remove it, that line will terminate the output and your document after the first included file, leaving anything after it out.

It’s strange, how the simplest, silliest, and in retrospect, most obvious mistakes can often be the most frustrating! 🙂

Advertisements

## About kjartanl

Systems Developer working near Bergen, Norway.
This entry was posted in Science & tech, Tips and tagged , , , , , , , , , , , , . Bookmark the permalink.