Debian Codegraph @

texmf-dist/doc/latex/ximera/src/dialogue.dtx

raw
1 % \subsubsection{Dialogues}
2 % \DescribeEnv{dialogue}{A dialogue between people.}
3 % \begin{macrocode}
4 %<*classXimera>
5 \newenvironment{dialogue}{%
6 \renewcommand\descriptionlabel[1]{\hspace{\labelsep}\textbf{##1:}}
7 \begin{description}%
8 }{%
9 \end{description}%
10 }
11 %</classXimera>
12 % \end{macrocode}
13 % On the web, the resulting |<dl>| should have an appropriate |class| set.
14 % \begin{macrocode}
15 %<*htXimera>
16 \renewenvironment{dialogue}{\begin{description}}{\end{description}}
17
18 \ConfigureList{dialogue}%
19 {\EndP\HCode{<dl \a:LRdir class="dialogue">}%
20 \PushMacro\end:itm
21 \global\let\end:itm=\empty}
22 {\PopMacro\end:itm \global\let\end:itm \end:itm
23 \EndP\HCode{</dd></dl>}\ShowPar}
24 {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
25 class="actor">}\bgroup \bf}
26 {\egroup\EndP\HCode{</dt><dd\Hnewline class="speech">}}
27 %</htXimera>
28 % \end{macrocode}