auctex-devel
[Top][All Lists]
Advanced

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

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


From: Uwe Brauer
Subject: [AUCTeX-devel] exam class, automatically labels and refs
Date: Fri, 12 Jun 2015 23:38:21 +0200
User-agent: Gnus/5.13001 (Ma Gnus v0.10) XEmacs/21.5-b34 (linux)

Hello

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.

regards

Uwe Brauer 
 
\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]