summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/expl3/l3doc.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/expl3/l3doc.cls')
-rw-r--r--Master/texmf-dist/tex/latex/expl3/l3doc.cls40
1 files changed, 22 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/expl3/l3doc.cls b/Master/texmf-dist/tex/latex/expl3/l3doc.cls
index bfb198fecd3..8e39320c493 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 1538 2009-09-17 05:14:09Z will $
+\GetIdInfo$Id: l3doc.dtx 1733 2009-11-08 06:24:26Z will $
{L3 Experimental documentation class}
\ProvidesExplClass
{\filename}{\filedate}{\fileversion}{\filedescription}
@@ -71,21 +71,31 @@
Javier~Bezos,~Will~Robertson,~Joseph~Wright}}
\DeclareOption{a5paper}{\@latexerr{Option not supported}{}}
\bool_new:N \g_doc_full_bool
-\bool_set_false:N \g_doc_full_bool
+\bool_new:N \g_doc_lmodern_bool
+\bool_new:N \g_doc_checkfunc_bool
\DeclareOption{full}{ \bool_set_true:N \g_doc_full_bool }
\DeclareOption{onlydoc}{ \bool_set_false:N \g_doc_full_bool }
-\bool_new:N \g_doc_checkfunc_bool
-\bool_set_true:N \g_doc_checkfunc_bool
\DeclareOption{check}{ \bool_set_true:N \g_doc_checkfunc_bool }
\DeclareOption{nocheck}{ \bool_set_false:N \g_doc_checkfunc_bool }
+\DeclareOption{cm-default}{ \bool_set_false:N \g_doc_lmodern_bool }
+\DeclareOption{lm-default}{ \bool_set_true:N \g_doc_lmodern_bool }
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
-\ExecuteOptions{full}
+\ExecuteOptions{full,a4paper,nocheck,lm-default}
+\InputIfFileExists{l3doc.cfg}
+ {
+ \typeout{*************************************^^J
+ *~Local~config~file~l3doc.cfg~used ^^J
+ *************************************}
+ }
+ { \@input{l3doc.ltx} }
\ProcessOptions
-\LoadClass[a4paper]{article}
+\LoadClass{article}
\RequirePackage{doc}
-\RequirePackage{array,alphalph,color,fixltx2e,enumitem,trace,underscore}
-\RequirePackage[T1]{fontenc}
-\RequirePackage{lmodern,textcomp}
+\RequirePackage{array,alphalph,color,fixltx2e,enumitem,textcomp,trace,underscore}
+\bool_if:NT \g_doc_lmodern_bool {
+ \RequirePackage[T1]{fontenc}
+ \RequirePackage{lmodern}
+}
\RequirePackage{hypdoc}
\let\doc@verbatim\verbatim
\let\enddoc@verbatim\endverbatim
@@ -407,7 +417,7 @@
\HDorg@encapchar hdclindex{\the\c@HD@hypercount}{usage}
}
\index{
- #1\actualchar{\protect\ttfamily#1} (option)
+ #1\actualchar{\protect\ttfamily#1}~(option)
\encapchar usage
}
\index{
@@ -436,7 +446,7 @@
\par\end{trivlist}
}
\newenvironment{TemplateInterfaceDescription}[1]
- {\subsection{The~template~type~`#1'}%
+ {\subsection{The~object~type~`#1'}%
\begingroup
\@beginparpenalty\@M
\description
@@ -446,7 +456,7 @@
}
{\par\bigskip}
\newenvironment{TemplateDescription}[2]
- {\subsection{The~template~`#2'~(type~#1)}%
+ {\subsection{The~template~`#2'~(object~type~#1)}%
\subsubsection*{Attributes:}%
\begingroup
\@beginparpenalty\@M
@@ -646,7 +656,6 @@
}
\g@addto@macro\theindex{\MakePrivateLetters}
\cs_set:Npn \verbatimchar {&}
-\cs_set:Npx \levelchar {\string#}
\setcounter{IndexColumns}{2}
\IndexPrologue{
\part*{Index}
@@ -737,11 +746,6 @@
\DisableCrossrefs
\OnlyDescription
}
-\InputIfFileExists{l3doc.cfg}{
- \typeout{*************************************^^J
- *~Local~config~file~l3doc.cfg~used ^^J
- *************************************}
-}{}
%%
%%
%% End of file `l3doc.cls'.