| 1 |
% !TeX root = didec.tex |
| 2 |
% !TeX encoding=UTF-8 |
| 3 |
%% The LaTeX package didec - version 1.2.0 (2026/03/02) |
| 4 |
%% didec.doc.sty: style file for the documentation |
| 5 |
%% |
| 6 |
%% ------------------------------------------------------------------------------------------- |
| 7 |
%% Copyright (c) 2024-2026 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> |
| 8 |
%% ------------------------------------------------------------------------------------------- |
| 9 |
%% |
| 10 |
%% This work may be distributed and/or modified under the |
| 11 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 12 |
%% of this license or (at your option) any later version. |
| 13 |
%% The latest version of this license is in |
| 14 |
%% http://www.latex-project.org/lppl.txt |
| 15 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 16 |
%% version 2008 or later. |
| 17 |
%% |
| 18 |
%% This work has the LPPL maintenance status `author-maintained'. |
| 19 |
%% |
| 20 |
%% This work consists of all files listed in README.md |
| 21 |
%% |
| 22 |
% include file (style) of didec.tex (manual of the LaTeX package didec) |
| 23 |
|
| 24 |
\def\version{1.2.0}% |
| 25 |
\def\datum{2026/03/02}% |
| 26 |
|
| 27 |
\IfFileExists{didec.doc.cfg}{\input{didec.doc.cfg}}{} |
| 28 |
|
| 29 |
\renewcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.7em}} |
| 30 |
\renewcommand*\l@subsubsection{\@dottedtocline{3}{4.2em}{3.2em}} |
| 31 |
|
| 32 |
\RequirePackage[T1]{fontenc} |
| 33 |
\RequirePackage[english]{babel} |
| 34 |
\RequirePackage{lmodern,parskip,array} |
| 35 |
\RequirePackage{microtype} |
| 36 |
\microtypesetup{nopatch=footnote} |
| 37 |
\RequirePackage[svgnames,table]{xcolor} |
| 38 |
\RequirePackage{tikz} |
| 39 |
\RequirePackage{varioref} |
| 40 |
\RequirePackage[makeindex]{imakeidx} |
| 41 |
\RequirePackage[bookmarks,raiselinks,pageanchor,hyperindex,colorlinks]{hyperref} |
| 42 |
\RequirePackage{cleveref} |
| 43 |
\RequirePackage{varwidth,incgraph} |
| 44 |
%\RequirePackage[official]{eurosym} |
| 45 |
|
| 46 |
\RequirePackage[a4paper,left=2.5cm,right=2.5cm,top=1.5cm,bottom=1.5cm, |
| 47 |
marginparsep=3mm,marginparwidth=18mm, |
| 48 |
headheight=0mm,headsep=0cm, |
| 49 |
footskip=1.5cm,includeheadfoot%,showframe |
| 50 |
]{geometry} |
| 51 |
\RequirePackage{fancyhdr} |
| 52 |
\fancyhf{} |
| 53 |
\fancyfoot[C]{\thepage}% |
| 54 |
\renewcommand{\headrulewidth}{0pt} |
| 55 |
\renewcommand{\footrulewidth}{0pt} |
| 56 |
\pagestyle{fancy} |
| 57 |
\tolerance=2000% |
| 58 |
\setlength{\emergencystretch}{20pt}% |
| 59 |
|
| 60 |
\RequirePackage{array,tabularx,booktabs} |
| 61 |
\RequirePackage{lipsum} |
| 62 |
\RequirePackage[extendedchars,encoding,filenameencoding=utf-8]{grffile} |
| 63 |
\RequirePackage{siunitx,xfp} |
| 64 |
|
| 65 |
\RequirePackage{minted2}% minted currently broken with Python 3.14 |
| 66 |
\RequirePackage{tcolorbox} |
| 67 |
\tcbuselibrary{skins,minted,breakable,documentation,raster} |
| 68 |
|
| 69 |
\ifdefined\didecpackageprefix |
| 70 |
\RequirePackage{\didecpackageprefix didec} |
| 71 |
\else |
| 72 |
\RequirePackage{didec} |
| 73 |
\fi |
| 74 |
|
| 75 |
\definecolor{Green_Dark}{rgb}{0.078431,0.407843,0.176471} |
| 76 |
\definecolor{Blue_Dark}{rgb}{0.090196,0.211765,0.364706} |
| 77 |
\definecolor{Blue_Bright}{rgb}{0.858824,0.898039,0.945098} |
| 78 |
|
| 79 |
\colorlet{Blue_Gray}{blue!50!gray} |
| 80 |
|
| 81 |
\tcbset{skin=enhanced, |
| 82 |
doc head={colback=yellow!10!white,interior style=fill}, |
| 83 |
doc head key={colback=magenta!5!white,interior style=fill}, |
| 84 |
color key=DarkViolet, |
| 85 |
color value=Teal, |
| 86 |
color color=Teal, |
| 87 |
color counter=Orange!85!black, |
| 88 |
color length=Orange!85!black, |
| 89 |
index colorize, |
| 90 |
index annotate, |
| 91 |
beforeafter example/.style={ |
| 92 |
before skip=4pt plus 2pt minus 1pt, |
| 93 |
after skip=8pt plus 4pt minus 2pt |
| 94 |
}, |
| 95 |
docexample/.style={bicolor, |
| 96 |
beforeafter example, |
| 97 |
arc=0.66mm, |
| 98 |
boxrule=0.33mm, |
| 99 |
fonttitle=\bfseries, |
| 100 |
fontlower=\footnotesize, |
| 101 |
colframe=Blue_Gray, |
| 102 |
colback=Blue_Gray!5!white, |
| 103 |
colbacklower=white, |
| 104 |
drop small lifted shadow, |
| 105 |
listing engine=minted, |
| 106 |
documentation minted options={tabsize=2,fontsize=\small,breaklines,autogobble}, |
| 107 |
documentation minted style=colorful, |
| 108 |
}, |
| 109 |
} |
| 110 |
\urlstyle{sf} |
| 111 |
|
| 112 |
\newtcblisting{fullexample}[1]{docexample,minted style=colorful, |
| 113 |
listing and comment,pdf comment,freeze pdf,compilable listing,#1} |
| 114 |
|
| 115 |
\DeclareTotalTCBox{\myverb}{ O{} v }{tile,fontupper=\ttfamily,nobeforeafter, |
| 116 |
tcbox raise base,boxsep=0.5mm,top=0pt,bottom=0pt,left=0pt,right=0pt,boxrule=0.3mm, |
| 117 |
colback=yellow!10, |
| 118 |
borderline horizontal={0.3mm}{0pt}{red!50}, |
| 119 |
#1}{#2} |
| 120 |
|
| 121 |
\renewcommand*{\tcbdocnew}[1]{\textcolor{green!50!black}{\sffamily\bfseries N} #1} |
| 122 |
\renewcommand*{\tcbdocupdated}[1]{\textcolor{blue!75!black}{\sffamily\bfseries U} #1} |
| 123 |
|
| 124 |
\newcommand{\formatPackageOption}[1]{package option} |
| 125 |
\newcommand{\formatPackageOptions}[1]{Package options} |
| 126 |
|
| 127 |
\tcbmakedocSubKey[doc key prefix=]{docDidecKey}{didec} |
| 128 |
\tcbmakedocSubKeys[doc key prefix=]{docDidecKeys}{didec} |
| 129 |
\tcbmakedocSubKey[doc key prefix=, |
| 130 |
index key formatter=\formatPackageOption, |
| 131 |
index keys formatter=\formatPackageOptions |
| 132 |
]{docPackageOption}{didec} |
| 133 |
\tcbmakedocSubKeys[doc key prefix=, |
| 134 |
index key formatter=\formatPackageOption, |
| 135 |
index keys formatter=\formatPackageOptions |
| 136 |
]{docPackageOptions}{didec} |
| 137 |
|
| 138 |
|
| 139 |
\tcbset{ |
| 140 |
deprecated*/.style={% |
| 141 |
doc head={colback=black!1!white,interior style=fill}, |
| 142 |
doc head key={colback=black!3!white,interior style=fill}, |
| 143 |
color command={black!80!white}, |
| 144 |
color option={black!60!white}, |
| 145 |
}, |
| 146 |
deprecated/.style={% |
| 147 |
deprecated*, |
| 148 |
before doc body command={\textcolor{black!80!white}{\textsc{Deprecated! }}} |
| 149 |
}, |
| 150 |
} |
| 151 |
|
| 152 |
\ExplSyntaxOn |
| 153 |
\NewDocumentCommand \docColorExample { m } |
| 154 |
{ |
| 155 |
\color_group_begin: |
| 156 |
\color_select:n { #1 } |
| 157 |
\rule[-1mm]{5mm}{4mm}~\docColor{#1} |
| 158 |
\color_group_end: |
| 159 |
} |
| 160 |
\ExplSyntaxOff |