Debian Codegraph @

texmf-dist/doc/latex/non-decimal-units/non-decimal-units.preamble.sty

raw
1 \usepackage{imakeidx}
2 \makeindex
3
4 \usepackage{needspace}
5
6 \usepackage[english]{babel}
7 %\usepackage[
8 % backend=biber,
9 % urldate=long,
10 % date=long,
11 %]{biblatex}
12 %\addbibresource{non-decimal-units.bib}
13
14 \usepackage{enumitem}
15 \usepackage[
16 hidelinks,
17 ]{hyperref}
18
19 \usepackage{tcolorbox}
20 \tcbuselibrary{documentation}
21 \tcbuselibrary{minted}
22 \tcbuselibrary{breakable}
23
24 \definecolor{DarkDefinition}{rgb}{0.392,0.392,0.942}
25
26 \tcbset{
27 listing engine=minted,
28 color definition=DarkDefinition,
29 floatplacement=h,
30 index colorize=true,
31 doc head={
32 interior style={
33 fill,
34 color=blue!10,
35 },
36 boxsep=2pt,
37 after skip=0pt,
38 nobeforeafter,
39 },
40 doc raster={
41 raster after skip=0pt,
42 },
43 before doc body={
44 \begin{tcolorbox}[
45 colback=blue!5,
46 colframe=blue!5,
47 arc=0pt,
48 outer arc=0pt,
49 before skip=0pt,
50 nobeforeafter,
51 ]
52 },
53 after doc body={\end{tcolorbox}},
54 }
55
56 \newcommand\nduDocBrack[1]{\brackets{\texttt{#1}}}
57
58 \AtBeginEnvironment{tcb@manual@entry}{%
59 \needspace{4\baselineskip}%
60 }
61
62 \newtcbinputlisting{\unitlisting}[2]{%
63 listing file = {../latex/non-decimal-units.#1.tex},
64 title = Listing of units loaded with the \docAuxKey{#1} option,
65 listing only,
66 breakable,
67 minted options={fontsize=\small},
68 docexample,
69 }
70
71 \setlist[description]{
72 leftmargin=5em,
73 rightmargin=\leftmargin,
74 itemindent=\labelwidth,
75 align=right,
76 font=\docAuxKey,
77 noitemsep,
78 }
79
80 \usepackage{csquotes}
81
82 \usepackage{fnpct}
83
84 \usepackage{tabularray}
85 \UseTblrLibrary{booktabs}
86
87 \usepackage{cleveref}
88
89 \RequirePackage[autolanguage]{numprint}
90
91 \RequirePackage{fontspec}
92 \newfontfamily\mufifont{Palemonas MUFI}
93
94 \RequirePackage[
95 MUFI,
96 fonts={
97 MUFI=\mufifont,
98 },
99 ]{unicode-alphabets}
100
101 \usepackage[
102 british,
103 danish,
104 ]{non-decimal-units}