diff options
author | Norbert Preining <norbert@preining.info> | 2022-10-15 03:01:23 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-10-15 03:01:23 +0000 |
commit | 716f66d13d38e113c2d0491804fae5879de67bb3 (patch) | |
tree | 98e4752aa89041db35c60e5b893897e714561340 /macros/latex/contrib/nlctdoc/nlctdoc.cls | |
parent | 1c0d5e0721918b8ee790c9f1c11f1543e0403322 (diff) |
CTAN sync 202210150301
Diffstat (limited to 'macros/latex/contrib/nlctdoc/nlctdoc.cls')
-rw-r--r-- | macros/latex/contrib/nlctdoc/nlctdoc.cls | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/macros/latex/contrib/nlctdoc/nlctdoc.cls b/macros/latex/contrib/nlctdoc/nlctdoc.cls index 1067813691..daead092d8 100644 --- a/macros/latex/contrib/nlctdoc/nlctdoc.cls +++ b/macros/latex/contrib/nlctdoc/nlctdoc.cls @@ -4,7 +4,7 @@ % copy the code here to another file and modify it for your own purposes. % There's no guarantee that it will work with other packages. % -% Copyright 2013-2020 Nicola Talbot +% Copyright 2013-2022 Nicola Talbot % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -13,23 +13,22 @@ % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. +% +% This class is being phased out, but it will continue to be provided +% for existing documents that use it. \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{nlctdoc}[2020/02/12 v1.07 (NLCT)] +\ProvidesClass{nlctdoc}[2022/10/14 v1.08 (NLCT)] \RequirePackage{ifpdf} \RequirePackage{ifxetex} % tex4ht stopped working with koma during TL2013. % Use pdflatex with koma for the pdf version % and latex with one of the base classes for the html % version to circumvent this. -\ifpdf +\ifx\HCode\UNDEFINED \newcommand{\@nlctdoc@if@usingtexht}[2]{#2} \else - \ifxetex - \newcommand{\@nlctdoc@if@usingtexht}[2]{#2} - \else - \newcommand{\@nlctdoc@if@usingtexht}[2]{#1} - \fi + \newcommand{\@nlctdoc@if@usingtexht}[2]{#1} \fi \@nlctdoc@if@usingtexht @@ -120,7 +119,8 @@ \RequirePackage{fourier} }% \RequirePackage{etoolbox} -\RequirePackage{doc,dox} +\RequirePackage{doc}[=v2] +\RequirePackage{dox} \RequirePackage{upquote} % doc.sty interferes with upquote.sty so patch it @@ -180,7 +180,7 @@ headings_flag 1 \marginpar{\parbox[b][2\baselineskip]{\marginparwidth}{\nlctdocmarginfmt#1\vfill\par}}% } -\newrobustcmd\cs[1]{\texttt{\char`\\#1}} +\providerobustcmd\cs[1]{\texttt{\char`\\#1}} \newrobustcmd*{\mgroup}[1]{\texttt{\char`\{#1\char`\}}} @@ -506,8 +506,6 @@ bold; padding-bottom: 2ex; padding-left: 1em; padding-right: 1em;} \newcommand*{\tableref}[1]{\hyperref[#1]{table~\ref*{#1}}} \newcommand*{\Tableref}[1]{\hyperref[#1]{Table~\ref*{#1}}} -\renewcommand{\SpecialMainIndex}[1]{\@bsphack \SpecialIndex@ {#1}{\nlctdocmainencap}\@esphack} - \newcommand{\idxmarker@SpecialMainIndex}[1]{% \@bsphack \idxmarker@SpecialIndex@ {#1}{\nlctdocmainencap}\@esphack } @@ -559,7 +557,7 @@ bold; padding-bottom: 2ex; padding-left: 1em; padding-right: 1em;} \newrobustcmd{\ics}{\@ifstar\s@ics\@ics} \newcommand*{\s@ics}[1]{\idxmarkedfont{\cs{#1}}\idxmarker@SpecialMainIndex{#1}} -\newcommand*{\@ics}[1]{\cs{#1}\SpecialMainIndex{#1}} +\newcommand*{\@ics}[1]{\cs{#1}\SpecialIndex@{#1}} \newrobustcmd{\csmeta}{\@ifstar\s@csmeta\@csmeta} @@ -919,6 +917,6 @@ bibliography style\nlctdochyperencap}} }% -\AtBeginDocument{\MakeShortVerb{\|}} +%\AtBeginDocument{\MakeShortVerb{\|}} \endinput |