auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] exam class, automatically labels and refs


From: Tassilo Horn
Subject: Re: [AUCTeX-devel] exam class, automatically labels and refs
Date: Sat, 13 Jun 2015 02:01:14 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Uwe Brauer <address@hidden> writes:

Hi Uwe,

> The Latex style Exam is useful for writing examns. However it is a bit
> particular in its syntax concerning labels and reference since it does
> not work with environments but with macros like 
> \titledquestion and \question 
>
> I attached a simple example
>
> How can I configure reftex such that the labels \label{ques:1}
> are automatically added and recognised later by reftex.

I don't see what's the problem.  I just tested it and the labels are
added as expected so that I can add \refs with C-c ).

Bye,
Tassilo

> \documentclass[addpoints,12pt]{exam} 
>  
> \begin{document}
>
> \begin{questions}
>   \addpoints \titledquestion{First question}[1]
>   \label{ques:1}
>   Solve the following problem \question[1]
>   \label{ques:2}
>   And then this do the same as in exercise \ref{ques:1}
>
>   \question[1] Moreover after having solved exercise \ref{ques:2}
> \end{questions}
> \end{document}




reply via email to

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