LyX ⇒ Subdocument Compilation
Subdocument Compilation
I have a problem with LyX and subdocuments. I have my main document set to report(KOMA) and these Classoptions:
fontsize=10, round, toc=flat, parskip=full, headsepline=true, footsepline=true
all Settings in the main document and the subdocuments are the same. including the LaTeX-Preamble:
\lhead{\title}
\rhead{\thepage}
\lfoot{name}
\cfoot{}
\rfoot{\today}
Now, when I include the subdocument, it always messes up my font when I compile and print the maindoc to PDF. the font which belongs to the subdocument is different as in the maindoc and also the fontsize is around 15 or so, as oppose to the set 10pt.
I don't know why the hell this is happening. I've tried everything from erasing the latex-preamble in both documents, in the subdocument only, and so on and so forth.
The manual for LyX tells me that in order to include a subdocument I have to get rid of all the preable stuff including the \begin{document}... I know this from working with TeXShop and it makes sense, but why doesn't LyX allow me to actually erase all of the preamble in my subdocument?!?
In other words, how can I create a subdocument in LyX?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: Subdocument Compilation
Re: Subdocument Compilation
OK - sorry about that.I attached a zip-archive.
thanks a lot.
- Attachments
-
- Archiv.zip
- (11.72 KiB) Downloaded 381 times
Subdocument Compilation
Re: Subdocument Compilation
that was easy...and embarrassing

thank you very much for your time and help. really appreciated.
Subdocument Compilation
You shouldn't consider that embarrassing. LyX tends to hide things from the user, mostly to make things easier for him, which can be really troublesome sometimes. Now you see that with LyX you have to have your eyes everywhere, all the timefdiehl wrote:...
that was easy...and embarrassing

BTW, you should mark the thread as solved.
Re: Subdocument Compilation
So, SOLVED

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Subdocument Compilation
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10