hplgit / doconce

Lightweight markup language - document once, include anywhere
http://hplgit.github.io/doconce/doc/web/index.html
Other
311 stars 60 forks source link

Enumerated envs #66

Closed ischurov closed 8 years ago

ischurov commented 8 years ago

This PR proposes new feature: number-only references to enumerated user-defined environments in HTML format. This allows to get references like See Theorem <a href="#thm:existence">3</a>… just like it is done in LaTeX. An example that mimics AMSLaTeX theorem-style definitions is presented.

hplgit commented 8 years ago

Many thanks! Didn't know it was that easy!

ischurov commented 8 years ago

Me neither :) Actually, I first tried several other approaches, mostly gave up and decided to file an issue on this, but just before submitting this issue looked at the code of Figures enumeration and discovered that it's easy to add a handler there, and everything works. :)