summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/skdoc/skdoc.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/skdoc/skdoc.cls')
-rw-r--r--Master/texmf-dist/tex/latex/skdoc/skdoc.cls61
1 files changed, 28 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/skdoc/skdoc.cls b/Master/texmf-dist/tex/latex/skdoc/skdoc.cls
index ececc0cbed8..2d060ca8cac 100644
--- a/Master/texmf-dist/tex/latex/skdoc/skdoc.cls
+++ b/Master/texmf-dist/tex/latex/skdoc/skdoc.cls
@@ -8,7 +8,7 @@
%%
%% skdoc documentation class
%%
-%% Copyright (C) 2012-2020 by Simon Sigurdhsson <sigurdhsson@gmail.com>
+%% Copyright (C) 2012-2025 by Simon Sigurdhsson <sigurdhsson@gmail.com>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -26,7 +26,7 @@
%% and the derived filebase skdoc.cls.
\RequirePackage{expl3}
\ProvidesExplClass{skdoc}
- {2020/11/16}{1.5d}{skdoc documentation class}
+ {2025/01/08}{1.5e}{skdoc documentation class}
\PassOptionsToPackage{log-declarations=false}{xparse}
\LoadClass[ DIV7,
headings=big,
@@ -130,7 +130,7 @@
\cs_undefine:N\cl@linenumber
\cs_undefine:N\p@linenumber
\cs_undefine:N\thelinenumber
- \RequirePackage{minted}
+ \RequirePackage{minted2}
\renewcommand{\theFancyVerbLine}{
\sffamily\tiny\textcolor{lightgray}{
\oldstylenums{\arabic{FancyVerbLine}}}
@@ -1050,7 +1050,7 @@
\underline{\hyperup{#1}}
}
\newglossarystyle{docindex}{
- \glossarystyle{indexgroup}
+ \setglossarystyle{indexgroup}
\renewcommand*{\glspostdescription}{\unskip\leaders\hbox to 2.9mm{\hss.}\hfill\strut}
\renewenvironment{theglossary}{
\bool_gset_true:N\g__skdoc_no_index_bool
@@ -1062,10 +1062,7 @@
\end{multicols}
\bool_gset_false:N\g__skdoc_no_index_bool
}
- \renewcommand*{\glossaryentryfield}[5]{
- \item\glsentryitem{##1}\glstarget{##1}{##2}
- \ifx\relax##4\relax\else\space(##4)\fi
- ##3\glspostdescription\space ##5}
+ \renewcommand*{\glstreenamefmt}[1]{##1}
\renewcommand*{\glsgroupheading}[1]{
\IfStrEq{##1}{default}{
\item{\descfont\glssymbolsgroupname}
@@ -1129,28 +1126,25 @@
nonumberlist=true
}
\ifx\skdoc@macroname@key\@empty
- \newglossaryentry{#1-general}{
- type=changes,
- description={\generalname{}:~#2},
- parent={#1},
- sort={0},
- nonumberlist=true
- }
- \glsadd[types=changes,format=@gobble]{#1-general}
+ \exp_args:Ne\@changes{\generalname}{!general}{#1}{#2}
\else
- \newglossaryentry{#1-\skdoc@macroname@key}{
- type=changes,
- description={\skdoc@macroname@stylized{}:~#2},
- parent={#1},
- sort={\skdoc@macroname@key},
- nonumberlist=true
- }
- \glsadd[types=changes,format=@gobble]{#1-\skdoc@macroname@key}
+ \exp_args:Nee\@changes{\skdoc@macroname@stylized}{\skdoc@macroname@key}{#1}{#2}
\fi
\@esphack
}
+\DeclareDocumentCommand\@changes{mmmm}{%
+ \newglossaryentry{#3-#2}{
+ type=changes,
+ name={#1},
+ description={#4},
+ parent={#3},
+ sort={#2},
+ nonumberlist=true
+ }
+ \glsadd[types=changes,format=@gobble]{#3-#2}
+}
\newglossarystyle{changelog}{
- \glossarystyle{altlist}
+ \setglossarystyle{altlist}
\renewenvironment{theglossary}{
\bool_gset_true:N\g__skdoc_no_index_bool
\begin{multicols}{2}\begin{description}
@@ -1158,15 +1152,16 @@
\end{description}\end{multicols}
\bool_gset_false:N\g__skdoc_no_index_bool
}
- \renewcommand*{\glossaryentryfield}[5]{
+ \renewcommand*{\glossentry}[2]{
\par\vspace{5\p@}\relax
- \item[\glsentryitem{##1}\glstarget{##1}{##2}]
- \mbox{}\par\nobreak\@afterheading
+ \item[\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}}]
+ \mbox{}\par\nobreak\@afterheading
}
- \renewcommand{\glossarysubentryfield}[6]{%
+ \renewcommand*{\subglossentry}[3]{
\par\hspace*{\itemindent}
- \glssubentryitem{##2}%
- \glstarget{##2}{\strut}##4\glspostdescription\space ##6
+ \glssubentryitem{##2}\glstarget{##2}{\strut}%
+ \glossentryname{##2}:~\glossentrydesc{##2}%
+ \glspostdescription\space ##3
}
}
\newglossary{changes}{gls}{glo}{Changes}
@@ -1231,7 +1226,7 @@
}%
\IfNoValueTF{#1}{}{\keys_set:nn{skdoc@package}{#1}}%
\def\@package{#2}%
- \title{The~\textbf{\pkg*{\@package}}~package}%
+ \title{The~\textbf{\textsf{\@package}}~package}%
}
\DeclareDocumentCommand\ctan{m}{%
\def\@ctan{\url{http://www.ctan.org/pkg/#1}}%
@@ -1254,7 +1249,7 @@
\def\skdocpdfsettings{%
\hypersetup{%
pdfauthor = {\@author\space<\@plainemail>},
- pdftitle = {\@title},
+ pdftitle = {\text_purify:n{\@title}},
pdfsubject = {Documentation~of~LaTeX~package~\@package},
pdfkeywords = {\@package,~LaTeX,~TeX}
}%