Debian Codegraph @

texmf-dist/doc/latex/csvsimple/csvsimple-doc.sty

raw
1 % !TeX encoding=UTF-8
2 %% The LaTeX package csvsimple - version 2.7.1 (2026/04/27)
3 %% csvsimple-doc.sty: style file for the documentation
4 %%
5 %% -------------------------------------------------------------------------------------------
6 %% Copyright (c) 2008-2026 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
7 %% -------------------------------------------------------------------------------------------
8 %%
9 %% This work may be distributed and/or modified under the
10 %% conditions of the LaTeX Project Public License, either version 1.3
11 %% of this license or (at your option) any later version.
12 %% The latest version of this license is in
13 %% http://www.latex-project.org/lppl.txt
14 %% and version 1.3 or later is part of all distributions of LaTeX
15 %% version 2005/12/01 or later.
16 %%
17 %% This work has the LPPL maintenance status `author-maintained'.
18 %%
19 %% This work consists of all files listed in README.md
20 %%
21 \def\version{2.7.1}%
22 \def\datum{2026/04/27}%
23
24 \IfFileExists{csvsimple-doc.cfg}{\input{csvsimple-doc.cfg}}{}\providecommand\csvpkgprefix{}
25
26 % prevent hypdoc from loading (sets hyperindex=false)
27 \@namedef{[email protected]}{9999/12/31}
28 \@namedef{[email protected]}{hypdoc}
29
30
31 \RequirePackage[T1]{fontenc}
32 \RequirePackage[utf8]{inputenc}
33 \RequirePackage[english]{babel}
34 \RequirePackage{lmodern,parskip,array,ifthen,calc,makeidx}
35 \RequirePackage{amsmath,amssymb}
36 \RequirePackage[svgnames,table]{xcolor}
37 \RequirePackage{tikz,siunitx,xfp,tabularray}
38 \RequirePackage{varioref}
39 \RequirePackage[pdftex,bookmarks,raiselinks,pageanchor,hyperindex,colorlinks]{hyperref}
40 \urlstyle{sf}
41 \RequirePackage{cleveref}
42
43 \RequirePackage[a4paper,left=2.5cm,right=2.5cm,top=1.5cm,bottom=1.5cm,
44 marginparsep=3mm,marginparwidth=18mm,
45 headheight=0mm,headsep=0cm,
46 footskip=1.5cm,includeheadfoot]{geometry}
47 \RequirePackage{fancyhdr}
48 \fancyhf{}
49 \fancyfoot[C]{\thepage}%
50 \renewcommand{\headrulewidth}{0pt}
51 \renewcommand{\footrulewidth}{0pt}
52 \pagestyle{fancy}
53 \tolerance=2000%
54 \setlength{\emergencystretch}{20pt}%
55
56 \RequirePackage{longtable,booktabs,ifthen,etoolbox}
57
58 %\IfFileExists{minted2.sty}{\RequirePackage{minted2}}{}
59 \RequirePackage{tcolorbox}
60 \tcbuselibrary{skins,xparse,minted,breakable,documentation,raster}
61
62 \definecolor{Green_Dark}{rgb}{0.078431,0.407843,0.176471}
63 \definecolor{Blue_Dark}{rgb}{0.090196,0.211765,0.364706}
64 \definecolor{Blue_Bright}{rgb}{0.858824,0.898039,0.945098}
65
66 \tcbset{skin=enhanced,
67 minted options={fontsize=\footnotesize},
68 doc head={colback=yellow!10!white,interior style=fill},
69 doc head key={colback=magenta!5!white,interior style=fill},
70 color key=DarkViolet,
71 color value=Teal,
72 color color=Teal,
73 color counter=Orange!85!black,
74 color length=Orange!85!black,
75 index colorize,
76 index annotate,
77 beforeafter example/.style={
78 before skip=4pt plus 2pt minus 1pt,
79 after skip=8pt plus 4pt minus 2pt
80 },
81 docexample/.style={bicolor,
82 beforeafter example,
83 arc is angular,fonttitle=\bfseries,
84 fontlower=\footnotesize,
85 colframe=green!25!yellow!50!black,
86 colback=green!25!yellow!7,
87 colbacklower=white,
88 drop fuzzy shadow=green!25!yellow!50!black,
89 listing engine=minted,
90 documentation minted style=colorful,
91 documentation minted options={fontsize=\footnotesize},
92 },
93 ctan formatter=\texttt,
94 }
95
96 \renewcommand*{\tcbdocnew}[1]{\textcolor{green!50!black}{\sffamily\bfseries N} #1}
97 \renewcommand*{\tcbdocupdated}[1]{\textcolor{blue!75!black}{\sffamily\bfseries U} #1}
98
99 \NewDocumentCommand{\csvsorter}{}{\textsf{\bfseries\color{red!20!black}CSV-Sorter}}
100
101 \newtcbinputlisting{\csvlisting}[1]{docexample,minted options={fontsize=\footnotesize},minted language=latex,
102 fonttitle=\bfseries,listing only,title={CSV file \flqq\texttt{\detokenize{#1.csv}}\frqq},listing file=#1.csv}
103
104 \newtcbinputlisting{\xmllisting}[1]{docexample,minted options={fontsize=\footnotesize},minted language=xml,
105 fonttitle=\bfseries,listing only,title={Configuration file \flqq\texttt{\detokenize{#1.xml}}\frqq},listing file=#1.xml}
106
107 \NewTotalTCBox{\verbbox}{m}{enhanced,on line,size=fbox,frame empty,colback=red!5!white,
108 colupper=red!85!black,fontupper=\bfseries\ttfamily}{\detokenize{"}#1\detokenize{"}}
109
110 \makeindex
111
112 %\pdfsuppresswarningpagegroup=1