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?