[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] [partially solved] (was: insert a label with the file nam

From: Uwe Brauer
Subject: [AUCTeX-devel] [partially solved] (was: insert a label with the file name as suffix.)
Date: Sun, 07 May 2017 13:49:22 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

    > Uwe Brauer <address@hidden> writes:

    > Hmm, I can't reproduce what you describe.  I started Emacs, eval'ed the
    > above code in scratch buffer, opened test-exam.tex like this:

    >     \documentclass[answers]{exam}

    >     \begin{document}
    >     \begin{questions}
    >     `C-c C-m titledquestion RET Title RET 10 RET' results in
    >     \titledquestion{Title}[10]\label{exm:exam-test:1}
    >     \end{questions}

    >     \end{document}

    > which is the correct result, I think.

I checked my minimal init file, and after adding
(setq reftex-plug-into-AUCTeX t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode

Starting emacs -q and loading the minimal init file, the insertion of
the label for titledquestion worked as expected.

So the cuplrit was my own reftex-label setting
I had for example

  (setq reftex-label-alist
        '(("equation"  ?e "eq:%f:" "~(\\ref{%s})" t
           ("Equation" "Eq." "Eqn." "Gleichung"  "Gl."))))

You proposed a setting with `( which I have never seen before.
So what to you suggest? How shall I modify my own reftex-latex-alist
setting and include yours?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]