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:


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! 🙂


About kjartanl

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s