4

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

4
  • @cfr Don't Repeat Yourself??? – user11232 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.