Choosing own theorem indexing

by windingnumberone   Last Updated October 09, 2019 18:23 PM - source

I would like to be able to change the number given as an index to theorems in latex. For example, I have an appendix A, so I would like to be able to index theorems and lemmas in appendix A with A.1, A.2, etcetera. Also, I am using un-indexed sections, but I define my theorem environment with \newtheorem{theorem}{Theorem}[section], so the indexing of the theorems relies on the section they're in. The result is that every theorem and lemma is indexed 0.x with x being a positive integer. I don't mind having to manually assign an index to each theorem and lemma.

I have looked around, but the only resources I could find relate to getting lemmas and theorems to share a counter, which I can already do, or getting the theorem counter to depend on the section, which I can already do. How do I choose my own indexing for theorems?

Related Questions

Replace page numbers in index by theorem numbers

Updated September 07, 2019 19:23 PM

Theorems with dash between numbers

Updated May 01, 2015 20:10 PM