Hi 

Please consider this minimal example 

--8<---------------cut here---------------start------------->8---
\documentclass[addpoints,12pt]{exam}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}

\begin{questions}
  \titledquestion{Chevalier de Méré and the dices}
  \label{sec:org8ae33b2}
  \droptotalpoints

  The following game was quite popular in the 17th century.
  The famous «Chevalier de Méré» is the most well known player of that
  epoch.

  \begin{parts}%Parts
    \label{sec:orgec24546}

    \part[1]
    \label{sec:orgdd21b38}
    ¿What is the probability of obtaining at least one 6 if you throw
    the dice 4 times?
  \end{parts}
  \titledquestion{Statistical testing}
\end{questions}
\end{document}
--8<---------------cut here---------------end--------------->8---

I want to include titledquestion into the folding syntax

So that TeX-fold-buffer fold result in 
  \titledquestion{Chevalier de Méré and the dices}....
  \titledquestion{Statistical testing}...

That would help me quite a bit to change the order of questions in an exam.

So I tried to modify (describe-variable 'TeX-fold-macro-spec-list)

Which reads now:

Value:
(("[f]"
  ("footnote" "marginpar"))
 ("t"
  ("titledquestion")))

That results however in 
--8<---------------cut here---------------start------------->8---

\begin{questions}
  t
  l
  \droptotalpoints

  The following game was quite popular in the 17th century.
  The famous «Chevalier de Méré» is the most well known player of that
  epoch.

  \begin{parts}%Parts
    l

    \part[1]
    l
    ¿What is the probability of obtaining at least one 6 if you throw
    the dice 4 times?
  \end{parts}
  t
\end{questions}
\end{document}
--8<---------------cut here---------------end--------------->8---

Which is not what I want. The reason most likely being that the folding
engine has no syntax for detecting the end of a certain structure.

In the above case, TeX-fold-buffer should hide everything between two
consecutive 
\titledquestion



I circumvent this problem right now, by using the classic folding mode.

Regards

Uwe Brauer 


-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to