I use the exam document class in auctex to write exams for my students. I want to use the features provided by the outline-minor-mode to hide all the exercises I have finished and only show the one I am editing. In the exam class there is \question macro for writing exercises. here is an example :
\documentclass{exam}
\begin{document}
\begin{questions}
\question % exercise N°1
statement of exercise 1
\question % exercise N°2
statement of exercise 2
\question % exercise N° 3
statement of exercise 3
\end{questions}
\end{document}
I want for example to hide the statements of exercise 1 and 3 when I edit the statement of exercise 2!
So I have add \question to the heading list of auctex with the variable TeX-outline-extra like this:
M-x (setq TeX-outline-extra '(("\question" 1)))
But \question is not recognized as a heading as expected!
(add-to-list 'TeX-outline-extra '("[ \t]*\\\\question\\b" 1) t)
?