General ⇒ Splitting larger files into chapters/sections
Splitting larger files into chapters/sections
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
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Splitting larger files into chapters/sections
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Splitting larger files into chapters/sections
Best,
Indridi