Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

What is the best way to keep the configurations and same content in different parts of the main document reusable from single location (e.g. from child document)?

First idea was to have this structure layout:

main_doc.lyx <- partial_doc.lyx <- general_preamble_doc.lyx

where general_preamble_doc.lyx has only something like \makenomenclature or \usepackage

Would these scheme imply that the main_doc.lyx will also inherit the general_preamble_doc.lyx or should I include/input it in the main_doc.lyx as well? Should I \input or \include it?

Update 1:

DRY = Don't Repeat Yourself // sorry guys for confusion, I thought this acronym is already a common sense and unambiguous

share|improve this question
    
What's DRY? ..... –  cfr May 18 at 1:18
    
@cfr Don't Repeat Yourself??? –  Harish Kumar May 18 at 2:12
    
@HarishKumar Oh. I worry more about DRM. –  cfr May 18 at 2:55
    
Implementing a class or a package will help you to get WET and to avoid DRY. –  Please don't touch May 18 at 7:09
    
DRY has been used several times in my post: here, here, and here. –  Please don't touch May 18 at 12:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.