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

I’ve read this which outlines the advantages of using submodules in git to use one centralized preamble .tex to be used for all future LaTeX document. When the preamble is changed, all documents compiled subsequently are affected.

This sounds great, but the git part is very poorly explained, and I haven’t had any luck finding a guide that does this successfully. I even bough the Peepcode guide, but it’s pretty bad.

I know this is a part-git-part-LaTeX question, but the question is specifically directed at LaTeX work management.

share|improve this question

What is your exact problem?

The situation is as follows:

  • One main repo with the preamble
  • Several working repo's with a submodule connection to the main repo
  • Every time something changes in the main repo, every repo using it will have to run git submodule update to retrieve those changes.

For more information about submodules check the git submodule tutorial.

share|improve this answer

Your Answer


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

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