lierdakil / pandoc-crossref

Pandoc filter for cross-references
https://lierdakil.github.io/pandoc-crossref/
GNU General Public License v2.0
909 stars 73 forks source link

New feature request: cross ref for theorems, examples, and problems #420

Open eraus opened 6 months ago

eraus commented 6 months ago

Sometimes, we want to cross-reference theorems, examples, and problems. These can be referenced in the same way as equations---no caption is needed. We prefer to use the same syntax as equations. Please consider adding these features. If possible, please add a few more such as "user1", "user1", ..., so that users can customize their own.

lierdakil commented 5 months ago

It's been on the roadmap for quite a while, however pdf/latex is a bit of a problem. Latex is somewhat particular about what it can reference. I could perhaps add support for theorem-like things using \newtheorem, possibly with amsthm to improve compatibility with cleveref, but it's known to be wonky in edge cases.