[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: |
Sat, 06 May 2017 10:34:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 |
Uwe Brauer <address@hidden> writes:
> > 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}
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.
Best, Arash
- [AUCTeX-devel] insert a label with the file name as suffix., Uwe Brauer, 2017/05/04
- Re: [AUCTeX-devel] insert a label with the file name as suffix., Arash Esbati, 2017/05/04
- Re: [AUCTeX-devel] insert a label with the file name as suffix., Uwe Brauer, 2017/05/05
- Re: [AUCTeX-devel] insert a label with the file name as suffix., Arash Esbati, 2017/05/05
- Re: [AUCTeX-devel] insert a label with the file name as suffix., Uwe Brauer, 2017/05/05
- Re: [AUCTeX-devel] insert a label with the file name as suffix., Arash Esbati, 2017/05/05
- Re: [AUCTeX-devel] insert a label with the file name as suffix., Uwe Brauer, 2017/05/05
- Re: [AUCTeX-devel] insert a label with the file name as suffix.,
Arash Esbati <=
- Re: [AUCTeX-devel] insert a label with the file name as suffix., Uwe Brauer, 2017/05/06
- Re: [AUCTeX-devel] insert a label with the file name as suffix., Uwe Brauer, 2017/05/06
- Re: [AUCTeX-devel] insert a label with the file name as suffix., Arash Esbati, 2017/05/07
- [AUCTeX-devel] [partially solved] (was: insert a label with the file name as suffix.), Uwe Brauer, 2017/05/07
- Re: [AUCTeX-devel] [partially solved], Arash Esbati, 2017/05/08