nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 89 lines 2.7 kB view raw
1\NeedsTeXFormat{LaTeX2e} 2 3% Packages used by this style file 4\RequirePackage{doxygen} 5\RequirePackage{tabularray} 6\UseTblrLibrary{varwidth} 7\RequirePackage{codehigh} 8\RequirePackage{environ} 9 10% Used by parameter lists 11\renewenvironment{DoxyParams}[2][]{% 12 \par% 13 \ifthenelse{\equal{#1}{}}% 14 {\begin{longtblr}[l]{rowhead=1,measure=vbox,colspec={|X[-1,l]|X[-1,l]|}}}% name + description 15 {\ifthenelse{\equal{#1}{1}}% 16 {\begin{longtblr}[l]{rowhead=1,measure=vbox,colspec={|X[-1,l]|X[-1,l]|X[-1,l]|}}}% in/out + name + desc 17 {\begin{longtblr}[l]{rowhead=1,measure=vbox,colspec={|X[-1,l]|X[-1,l]|X[-1,l]|X[-1,l]|}}}% in/out + type + name + desc 18 } 19 \SetCell[c=2]{l} \hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #2 \\[1ex]% 20 \hline% 21}{% 22 \end{longtblr}% 23 \vspace{6pt}% 24} 25 26% Used for fields of simple structs 27\renewenvironment{DoxyFields}[1]{% 28 \par% 29 \begin{longtblr}[l]{rowhead=1,measure=vbox,colspec={|X[-1,r]|X[-1,l]|X[-1,l]|}}% 30 \SetCell[c=3]{l} \hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1 \\[1ex]% 31 \hline% 32}{% 33 \end{longtblr}% 34 \vspace{6pt}% 35} 36 37% Used for fields simple class style enums 38\renewenvironment{DoxyEnumFields}[2][]{% 39 \par% 40 \ifthenelse{\equal{#1}{2}}% 41 {\begin{longtblr}[l]{rowhead=1,measure=vbox,colspec={|X[-1,r]|X[-1,l]|}}}% 42 {\begin{longtblr}[l]{rowhead=1,measure=vbox,colspec={|X[-1,l]|X[-1,r]|X[-1,l]|}}}% with init value 43 \SetCell[c=2]{l} \hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #2 \\[1ex]% 44 \hline% 45}{% 46 \end{longtblr}% 47 \vspace{6pt}% 48} 49 50% Used by return value lists 51\renewenvironment{DoxyRetVals}[1]{% 52 \par% 53 \begin{longtblr}[l]{rowhead=1,measure=vbox,colspec={|X[-1,r]|X[-1,l]|}}% 54 \SetCell[c=2]{l} \hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1 \\[1ex]% 55 \hline% 56}{% 57 \end{longtblr}% 58 \vspace{6pt}% 59} 60 61% Used by exception lists 62\renewenvironment{DoxyExceptions}[1]{% 63 \par% 64 \begin{longtblr}[l]{rowhead=1,measure=vbox,colspec={|l[-1,r]|l[-1,l]|}}% 65 \SetCell[c=2]{l} \hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1 \\[1ex]% 66 \hline% 67}{% 68 \end{longtblr}% 69 \vspace{6pt}% 70} 71 72% Used by template parameter lists 73\renewenvironment{DoxyTemplParams}[1]{% 74 \par% 75 \begin{longtblr}[l]{rowhead=1,measure=vbox,colspec={|X[-1,r]|X[-1,l]|}}% 76 \SetCell[c=2]{l} \hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1 \\[1ex]% 77 \hline% 78}{% 79 \end{longtblr}% 80 \vspace{6pt}% 81} 82 83% NOTE: this is not a perfect workaround, and known to loose linebreaks, repeated spaces, etc 84\RenewEnviron{DoxyVerb}{% 85 \par% 86 \footnotesize% 87 \ExpandArgs{o}\fakeverb{\BODY}% 88 \normalsize% 89}