LyXProblems with child documents

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Cristina
Posts: 1
Joined: Sun Mar 09, 2014 9:07 am

Problems with child documents

Post by Cristina »

Hello everyone , nice forum :D

I am a beginner in lyx and I'm having a lot of trouble to create my project. It is a single master document with 3 kids inserted documents.
The master document only has the cover and configuration of preamble (no TOC ) . The 3 child documents have their own TOC of independent content . The numbering is independent. Like 3 separate books belonging to a large project. Problems occur when you compile master document with any "include type":

1 - "Include": All tables of contents appear at the beginning of the compilation. Does not respect the order of the child documents. The numbering is global to the entire document.
2 - "Input": Same result.
3 - " Verbatim " . Fails to compile. Create many errors like "Missing $ inserted" "Extra } , ​​or forgotten $ ." I have totally rejected this "include type".
4 - "Program listing" : I think the solution may be this type but the child does not compile documents. Pdf with the code of the child documents are generated. The " listing parameters" are :
breaklines=true
InputEncoding={utf8/latin1}
language=Python

Could anyone help me or give me some suggestions to complete my project?
Thank you very much in advance.
:|

Lyx Version: 2.0.7
Document class : article

Recommended reading 2024:

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

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

Mobeg
Posts: 1
Joined: Sun Nov 30, 2014 12:33 pm

Re: Problems with child documents

Post by Mobeg »

For what it's worth:

Missing $ inserted is probably due to an unescaped underscore _ or |. This bugged me when I tried to use a caption for my child document that contained an underscore.

Solution was to escape _ with a backslash, as such: \_
Example: change my_caption -> my\_caption
Post Reply