diff options
author | Karl Berry <karl@freefriends.org> | 2024-01-08 21:46:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-01-08 21:46:04 +0000 |
commit | 6c97120fe03260761ded1988f52b1b546f1bd2c4 (patch) | |
tree | 436cf2a8b09a506f0c46267da94d1994fa816eb2 /Master/texmf-dist/tex/latex/dtxdescribe | |
parent | fdbf9f97daca4aa846c53f54ff42ab0368e02756 (diff) |
dtxdescribe (8jan24)
git-svn-id: svn://tug.org/texlive/trunk@69348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/dtxdescribe')
-rw-r--r-- | Master/texmf-dist/tex/latex/dtxdescribe/dtxdescribe.sty | 49 |
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}% |