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?

2
  • 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.
    – user30471
    Commented Oct 20, 2019 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
    Commented Oct 20, 2019 at 23:54

0

You must log in to answer this question.

Browse other questions tagged .