GeneralSplitting larger files into chapters/sections

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
indridi
Posts: 4
Joined: Thu Sep 17, 2009 7:53 pm

Splitting larger files into chapters/sections

Post by indridi »

Hi,

I am working with a large file and I am using \include and \includeonly to include separate chapters. Having to switch to the master file to LaTex the documents after making changes to a chapter seems kinda inefficient to me. What I would like to be able to do is to include the preamble in each chapter so I can compile it separately while I'm working on it and then have LaTeX ignore the preamble in the chapters when I run the `master file'. Are there any substitutes for \include and \includeonly that would allow me to do that.

Thanks,
Indridi

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Splitting larger files into chapters/sections

Post by localghost »

This detour is not necessary. Just create a project in your LaTeX editor. Common LaTeX IDEs support project management. This way compiling the document always means to process the master file which can be determined in the project settings.


Best regards and welcome to the board
Thorsten
indridi
Posts: 4
Joined: Thu Sep 17, 2009 7:53 pm

Re: Splitting larger files into chapters/sections

Post by indridi »

Thanks for pointing me in the right direction - I was too focused on finding a LaTeX solution.

Best,
Indridi
Post Reply