I have created a file which provides convenient options to change the settings for all of my documents. For e.g.:
\def\BookFontRoman{Gentium Plus}
\def\BookFontCJK{Adobe Song Std}
\def\PageWidth{280}
\def\PageHeight{209}
\def\DisplayFootnotes{1} %1=yes, 0=no
\def\LongTitlePage{1} %1=yes, 0=no
Saved as settings.tex, this can be read through the use of \input{settings}. My documents also contain etoolbox if-then conditionals to check some values. However, I also use some BASH scripts to assist in the generation of some LaTeX code.
This has some benefits:
- I can establish consistent settings for all of my documents.
- I need not edit to critical source code to make these formatting adjustments.
Can you recommend a better way to store settings?
- Is there a more simpler format for putting such information into a single file?
- Is there a solution for allowing
BASHscripts to also access this information or (if that is too difficult) access other information also stored later in the file (which is ignored byXeTeX)?
.styfile and include it in your document with\usepackage. – qubyte Nov 23 '11 at 08:24