I have several template files used for journal articles, such as for review, article, case report, etc. These templates have similar file structures. I realized that some common parameters need be changed when I am working on a new issue of the journal. For example, the templates all have "January 2016, Volume 1 Issue 1" and now I am working on Issue 2 so I need to remember changing this phrase to "April 2016, Volume 1 Issue 2" for every manuscript.

Is there a way to create a setting file, so I can change such shared information at one place and be used by all the template files?

  • 1
    For example you could create a .tex file with \date{April 2016} and then call it from all the other files with \input{filename}. Is this what you intend? – user36296 Apr 29 '16 at 16:33
  • Your suggestion makes sense to me. I will give it a try and let you know ASAP. – TeXIQ Apr 29 '16 at 17:08

The standard latex convention would be to call your settings a package.

put them in (say) mysettings.sty


then each of your documents just needs


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.