TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 at 1:18
@cfr Don't Repeat Yourself??? – Harish Kumar May 18 '14 at 2:12
@HarishKumar Oh. I worry more about DRM. – cfr May 18 '14 at 2:55
Implementing a class or a package will help you to get WET and to avoid DRY. – kiss my armpit May 18 '14 at 7:09
DRY has been used several times in my post: here, here, and here. – kiss my armpit May 18 '14 at 12:37

Your Answer


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

Browse other questions tagged or ask your own question.