0

I am currently editing a series of notes for a course. Each part of notes is a separate Latex article. But I want the theorem, lemma, and exercise numbering to be consistent between articles. For instance, if the last Lemma of Notes1 is Lemma 4, I want the first Lemma of Notes2 to be numbered Lemma 5. Is there an elegant way to do this other than manually editing each document to start at the appropriate value?

  • 1
    I think you need the xr package. Well, that will give you cross-referencing. To number everything in sync between the documents you will need to work harder. Please provide a minimal working example. Another, easier, alternative is to use subfiles package. – Andrew Oct 20 '19 at 23:09
  • Why not put them in one article so it all works out of the box? You can use the titling package to make each look like its own thing. And, of course, they can be in separate .tex files. Or you could just use a master file for compilation and something like standalone so you can leave the files' preambles alone. – cfr Oct 20 '19 at 23:54

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.