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: Arash Esbati
Subject: Re: [AUCTeX-devel] insert a label with the file name as suffix.
Date: Sun, 07 May 2017 15:59:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2

Uwe Brauer <address@hidden> writes:

> Ok that error I resolved (on my Ubuntu machine there is still a emacs 24
> installed)
>
> So I tried out emacs 25 (and 26) -Q or -q
>
> And loaded the following file
> ,----
> | 
> | (setq load-path (cons (expand-file-name 
> "~/emacs/site-lisp/packages/auctex-git")  load-path))
> | (setq load-path (cons (expand-file-name 
> "~/emacs/site-lisp/packages/auctex-git/auctex")  load-path))
> | 
> | (load "auctex.el" nil t t)
> | (load "preview-latex.el" nil t t)
> | 
> | (require 'tex-site)
> | 
> | (require 'reftex)
> | 
> | (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") )))
> `----
>
> Then I open a exam file such as you said, when running 
> -c C-m titledquestion RET Title RET 10 RET'
> I am *asked* for a label, *but* 
> \titledquestion{Title}[10]\label{exm:1}

Hmm, sorry, no idea.  If you're *asked* for label, you could check the
value of `reftex-insert-label-flags', but that's not the issue.

Best, Arash




reply via email to

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