Hi Arash
   > Uwe Brauer <o...@mat.ucm.es> writes:

   > I assume you mean `C-c C-e equation RET', but that's not the point.

Right, my nad

   > It is all there, you just have to hook your environments into RefTeX
   > with `reftex-add-label-environments' and you're done.  The first 2
   > variables should go into `tex-style.el' once you're finished.  Append
   > environments where you want the automatic label insertion to the first
   > `(envs '("questions"))'.

   > ;;; Code:

   > (defcustom LaTeX-exam-reftex-quick-id-key ?x
   >   "Unique letter identifying exam class macros in RefTeX.

   > A character argument for quick identification when RefTeX inserts
   > new labels with `reftex-label'.  It must be unique.  It is
   > initialized to ?x."
   >   :group 'LaTeX-style
   >   :type 'character)

   > (defcustom LaTeX-exam-label "exm:"
   >   "Default prefix to labels in environments of exam class."
   >   :group 'LaTeX-style
   >   :type 'string)

Cool, really. I run a small test and it is precisely  what I was looking
for. Thanks a zillion.


I think now you should be the author. I mean all the complicated
stuff has been done by you. I could be the maintainer.

_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to