diff options
author | Karl Berry <karl@freefriends.org> | 2009-09-17 23:34:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-09-17 23:34:19 +0000 |
commit | 1684d0a29834ce566a114b73ca0d6a8cf38edc21 (patch) | |
tree | b03c3db912ae6bb76fad634d7ba4a69ea098eb28 /Master/texmf-dist/tex/latex/expl3/l3doc.cls | |
parent | a95d1a90845bf6c1c7f2ee629fbe10a20d5863ce (diff) |
expl3 1543 (17sep09)
git-svn-id: svn://tug.org/texlive/trunk@15347 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/expl3/l3doc.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/expl3/l3doc.cls | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/expl3/l3doc.cls b/Master/texmf-dist/tex/latex/expl3/l3doc.cls index 691afa415e9..bfb198fecd3 100644 --- a/Master/texmf-dist/tex/latex/expl3/l3doc.cls +++ b/Master/texmf-dist/tex/latex/expl3/l3doc.cls @@ -53,7 +53,7 @@ \let \filedateOld \filedate \let \fileversionOld \fileversion \let \filedescriptionOld \filedescription -\GetIdInfo$Id: l3doc.dtx 1451 2009-08-08 06:33:34Z joseph $ +\GetIdInfo$Id: l3doc.dtx 1538 2009-09-17 05:14:09Z will $ {L3 Experimental documentation class} \ProvidesExplClass {\filename}{\filedate}{\fileversion}{\filedescription} @@ -253,12 +253,14 @@ $\star$ } } -\newenvironment{syntax}{% - \minipage[b]{.7\textwidth}% +\dim_new:N \g_doc_syntax_dim +\dim_set:Nn \g_doc_syntax_dim {0.7\textwidth} +\newenvironment{syntax}{ + \minipage[b]{\g_doc_syntax_dim} \cs_set_nopar:Npn \meta@font@select{\rmfamily\itshape} % (Will: I HATE italic cmtt!) \small\ttfamily\raggedright \obeyspaces\obeylines -}{% +}{ \endminipage \hfil\break \global\@ignoretrue @@ -434,40 +436,40 @@ \par\end{trivlist} } \newenvironment{TemplateInterfaceDescription}[1] - {\subsection{The template type `#1'}% + {\subsection{The~template~type~`#1'}% \begingroup \@beginparpenalty\@M \description - \def\TemplateArgument##1##2{\item[Arg: ##1]##2\par}% + \def\TemplateArgument##1##2{\item[Arg:~##1]##2\par}% \def\TemplateSemantics{\enddescription\endgroup \subsubsection*{Semantics:}}% } {\par\bigskip} \newenvironment{TemplateDescription}[2] - {\subsection{The template `#2' (type #1)}% + {\subsection{The~template~`#2'~(type~#1)}% \subsubsection*{Attributes:}% \begingroup \@beginparpenalty\@M \description - \def\TemplateKey##1##2##3##4{\item[##1 (##2)]##3% + \def\TemplateKey##1##2##3##4{\item[##1~(##2)]##3% \ifx\TemplateKey##4\TemplateKey\else \hfill\penalty500\hbox{}\hfill Default:~##4% \nobreak\hskip-\parfillskip\hskip0pt\relax \fi \par}% \def\TemplateSemantics{\enddescription\endgroup - \subsubsection*{Semantics \& Comments:}}% + \subsubsection*{Semantics~\&~Comments:}}% } {\par\bigskip} \newenvironment{InstanceDescription}[4][xxxxxxxxxxxxxxx] - {\subsubsection{The instance `#3' (template #2/#4)}% - \subsubsection*{Attribute values:}% + {\subsubsection{The~instance~`#3'~(template~#2/#4)}% + \subsubsection*{Attribute~values:}% \begingroup \@beginparpenalty\@M \def\InstanceKey##1##2{\>\textbf{##1}\>##2\\}% \def\InstanceSemantics{\endtabbing\endgroup \vskip-30pt\vskip0pt - \subsubsection*{Layout description \& Comments:}}% + \subsubsection*{Layout~description~\&~Comments:}}% \tabbing xxxx\=#1\=\kill } @@ -643,6 +645,8 @@ } } \g@addto@macro\theindex{\MakePrivateLetters} +\cs_set:Npn \verbatimchar {&} +\cs_set:Npx \levelchar {\string#} \setcounter{IndexColumns}{2} \IndexPrologue{ \part*{Index} @@ -653,6 +657,7 @@ numbers~underlined~point~to~the~definition,~ all~others~indicate~the~places~where~it~is~used. } + \cs_set_nopar:Npn \doc_special_main_index:n #1 { \index{ \@gobble#1 |