summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dtxdescribe
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/dtxdescribe')
-rw-r--r--Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty49
1 files changed, 48 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty b/Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty
index a2d97463fb5..bc5b4b95d5b 100644
--- a/Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty
+++ b/Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty
@@ -18,7 +18,10 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{dtxdescribe}
- [2023/01/03 v1.07 Describe additional object types in source files.]
+ [2024/01/08 v1.08 Describe additional object types in source files.]
+
+
+
@@ -1034,6 +1037,38 @@
\NewDocElement[
macrolike=false,
toplevel=true,
+ idxtype=socket,
+ idxgroup=Sockets,
+ printtype=\textit{Socket}
+]{Socket}{socket}
+
+}{% not doc
+
+\newcommand*{\DescribeSocket}[2][]
+ {\DTXD@margintagindex{#1}{#2}{Socket}{socket}{usage}}
+
+}% not doc
+\IfPackageLoadedTF{doc}{% doc
+
+\NewDocElement[
+ macrolike=false,
+ toplevel=true,
+ idxtype=plug,
+ idxgroup=Plugs,
+ printtype=\textit{Plug}
+]{Plug}{plug}
+
+}{% not doc
+
+\newcommand*{\DescribePlug}[2][]
+ {\DTXD@margintagindex{#1}{#2}{Plug}{plug}{usage}}
+
+}% not doc
+\IfPackageLoadedTF{doc}{% doc
+
+\NewDocElement[
+ macrolike=false,
+ toplevel=true,
idxtype=key,
idxgroup=Keys,
printtype=\textit{Key}
@@ -1189,6 +1224,18 @@
\DescribeHook[#1]{#2}%
}
+\newcommand{\ItemDescribeSocket}[2][]{%
+ \item[\texttt{#2}:]%
+ \setlength{\parskip}{1.5ex}%
+ \DescribeSocket[#1]{#2}%
+}
+
+\newcommand{\ItemDescribePlug}[2][]{%
+ \item[\texttt{#2}:]%
+ \setlength{\parskip}{1.5ex}%
+ \DescribePlug[#1]{#2}%
+}
+
\newcommand{\ItemDescribeKey}[2][]{%
\item[\texttt{#2}:]%
\setlength{\parskip}{1.5ex}%