auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] insert a label with the file name as suffix.


From: Uwe Brauer
Subject: Re: [AUCTeX-devel] insert a label with the file name as suffix.
Date: Fri, 05 May 2017 17:02:11 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

    > Uwe Brauer <address@hidden> writes:

    > Sigh, sorry, my bad.  `LaTeX-exam-label' is not defined at that point of
    > time.  Please try this:

    > (with-eval-after-load "latex"
    >   (add-to-list 'LaTeX-label-alist '("titledquestion" . LaTeX-exam-label)))

    > (with-eval-after-load "tex-style"
    >   (add-to-list 'reftex-label-alist
    >                `("titledquestion" ?x
    >                  ,(concat LaTeX-exam-label "%f:")
    >                  "~\\ref{%s}" nil ("ejercicio") )))

Well thanks, there is no error, but

It still inserts only

  \titledquestion{Hello}[10]\label{exm:3}

Instead of


  \titledquestion{Hello}[10]\label{exm:test-exam1:3} 

Uwe 



reply via email to

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