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
General ⇒ Splitting larger files into chapters/sections
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Splitting larger files into chapters/sections
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
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Splitting larger files into chapters/sections
Thanks for pointing me in the right direction - I was too focused on finding a LaTeX solution.
Best,
Indridi
Best,
Indridi