diff options
author | Karl Berry <karl@freefriends.org> | 2022-06-08 20:41:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-06-08 20:41:20 +0000 |
commit | 0525ef25305c7f48ef158ac19f68bae09c664d60 (patch) | |
tree | 30bec1f740b86109fd5c0e21b1337f7f563d9dee /Master/texmf-dist/tex/latex/base/ltxdoc.cls | |
parent | 1ad2a2e7d1e951099f662da861d573aa77eeedce (diff) |
latex2e (8jun22)
git-svn-id: svn://tug.org/texlive/trunk@63514 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/base/ltxdoc.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/base/ltxdoc.cls | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/base/ltxdoc.cls b/Master/texmf-dist/tex/latex/base/ltxdoc.cls index 2b9ff087857..e438aa6a9cf 100644 --- a/Master/texmf-dist/tex/latex/base/ltxdoc.cls +++ b/Master/texmf-dist/tex/latex/base/ltxdoc.cls @@ -13,7 +13,7 @@ %% (but please observe conditions on bug reports sent to that address!) %% %% -%% Copyright (C) 1993-2021 +%% Copyright (C) 1993-2022 %% The LaTeX Project and any individual authors listed elsewhere %% in this file. %% @@ -43,19 +43,29 @@ %% extension .ins) which are part of the distribution. \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ltxdoc} - [2020/12/05 v2.1b Standard LaTeX documentation class] + [2022/06/03 v2.1f Standard LaTeX documentation class] \DeclareOption{a5paper}{\@latexerr{Option not supported}% {}} +\newif\ifltxdoc@load@cfg@ \ltxdoc@load@cfg@true +\DeclareOption{nocfg}{\ltxdoc@load@cfg@false} +\let\ltxdoc@doc@version\@empty % use current version by default +\DeclareOption{doc2}{\def\ltxdoc@doc@version{=v2}} \DeclareOption*{% \PassOptionsToClass {\CurrentOption}{article}} +\ProcessOptions +\ifltxdoc@load@cfg@ \InputIfFileExists{ltxdoc.cfg} {\typeout{*************************************^^J% * Local config file ltxdoc.cfg used^^J% *************************************}} {} -\ProcessOptions +\else + \typeout{*************************************^^J% + * Local config file ignored^^J% + *************************************} +\fi \LoadClass{article} -\RequirePackage{doc} +\RequirePackage{doc}[\ltxdoc@doc@version] \AtBeginDocument{\MakeShortVerb{\|}} \DeclareFontShape{OT1}{cmtt}{bx}{n}{<-> ssub * cmtt/m/n}{} \DeclareFontFamily{OMS}{cmtt}{\skewchar\font 48} % '60 @@ -71,7 +81,6 @@ \setcounter{StandardModuleDepth}{1} \def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} \def\cmd@to@cs#1#2{\char\number`#2\relax} -\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} \providecommand\marg[1]{% {\ttfamily\char`\{}\meta{#1}{\ttfamily\char`\}}} \providecommand\oarg[1]{% @@ -255,6 +264,14 @@ Bug reports can be opened (category \texttt{#1}) at\\% \vskip 1.5em} \providecommand\url{\texttt} \def\task#1#2{} +\providecommand\LuaTeX{Lua\TeX} +\providecommand\cls{\textsf} +\providecommand\pkg{\textsf} +\providecommand\enquote[1]{``#1''} +\DeclareRobustCommand\cs[1]{\texttt{\bslash\detokenize{#1}}}% +\AtBeginDocument{% + \renewcommand\PrintMacroName[1]{\MacroFont\detokenize{#1}}% + } \endinput %% %% End of file `ltxdoc.cls'. |