hplgit / doconce

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

Enhancement: Using LaTeX reference and cite commands inside Doconce #127

Open ofenerci opened 7 years ago

ofenerci commented 7 years ago

Hello, The most struggle for someone transitioning from LaTeX to Doconce is typing Doconce commands. For example, I have previously used Vim-LaTeX (for Vim) and AucTeX (for Emacs), fell in love its many fast typing shortcuts. For example, AucTeX (and similarly Vim-LaTeX) has a package supporting for references, labels, citations,etc (called RefTeX in AucTeX)

With RefTeX, for instance, type C-c ) (reftex-reference) and this shows an outline of the document with all labels of a certain type (figure, equation,...) and some label context. Selecting a label inserts a \ref{label} macro into the original buffer.

I use many properties of AucTeX (shortcuts, inserting environments, etc.) in when typing Doconce commands but not for label and cite. It shouldn't have been a problem for DocOnce, If it would have used \label or \cite instead labelor cite. It is not problem remembering for someone how you labeled the equations in a few pages, but If you write a big document, it is problematic (still wondering, how late Prof. H.P. Langtangen and others achieved to write many books with DocOnce.)

So my question: Is there a possible way to use \label or \cite in DocOnce instead of label or cite? So I can use RefTeX's outlining features. It would be great help for someone who are already using Vim or Emacs.