1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
%% regulatory-preamble.tex
%% Copyright 2024 E. Nijenhuis
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status ‘maintained’.
%
% The Current Maintainer of this work is E. Nijenhuis.
%
% This work consists of the files regulatory.tex,
% regulatory-preamble.tex, regulatory-nl.tex, regulatory-en.tex,
% example1.bib, example2.bib,
% example1-nl.tex, example2-nl.tex,
% example1-en.tex, example2-en.tex,
% md-example.tex, example.md,
% fc-dutch.def and regulatory.sty
\usepackage{gitinfo-lua}
\usepackage{listings}
\usepackage{fontspec}
\usepackage{textcomp}
\def\projecturl{https://github.com/Xerdi/regulatory}
\definecolor{greycolor}{HTML}{BFBFBF}
\definecolor{primary}{HTML}{174A67}
\definecolor{darkcolor}{HTML}{091D28}
\definecolor{greencolor}{HTML}{176734}
\colorlet{artlabel}{primary}
\colorlet{green}{greencolor}
\lstdefinestyle{tex}{%
language=[LaTeX]TeX,
keywordsprefix={\\},
alsoletter={\\},
morekeywords={article,para,textfill,masterdocument,refdocument,loadglsdefs,printdefs,setmiddleconjunction,setlastconjunction,setrangeconjunction,setconjunction,markdownInput,glssetwidest,describe}
}
\lstdefinestyle{bash}{%
language=bash,
morekeywords={pdflatex,lualatex,latexmk,makeglossaries,bib2gls}
}
\lstdefinelanguage{Markdown}[LaTeX]{TeX}{%
sensitive=false,
morecomment=[l][\bfseries\ttfamily\color{green}]{\#},
morecomment=[s][\bfseries\ttfamily\color{purple}]{:\ \ }{\ },
morestring=[s][\color{black}]{\{}{\}},
morekeywords={article,para,textfill,masterdocument,refdocument,loadglsdefs,printdefs,setmiddleconjunction,setlastconjunction,setrangeconjunction,setconjunction,markdownInput,glssetwidest,describe},
keywordsprefix={\\},
alsoletter={\\},
}
\lstdefinestyle{md}{%
language=Markdown
}
\lstdefinelanguage{BibTeX}{%
keywords={%
article,book,collectedbook,conference,electronic,entry,ieeetranbstctl,%
inbook,incollectedbook,incollection,injournal,inproceedings,%
manual,mastersthesis,misc,patent,periodical,phdthesis,preamble,%
proceedings,standard,string,techreport,unpublished%
},
keywordsprefix={@},
comment=[l][\itshape]{@comment},
sensitive=false,
}
\lstdefinestyle{bib}{%
language=BibTeX,
morestring=[s][\bfseries\ttfamily\color{purple}]{\ \ \ \ }{\ },
morecomment=[n][\bfseries\ttfamily\color{green}]{\ \{}{\}},
}
\lstset{
title=\lstname,
basicstyle=\ttfamily,
numberstyle=\ttfamily,
numbersep=5pt,
rulecolor=\color{greycolor},
stringstyle=\color{pink},
keywordstyle=\color{primary},
commentstyle=\itshape\color{darkcolor},
breaklines=true,
captionpos=b,
tabsize=4,
showtabs=true
}
\newcommand\package{\texttt}
\newcommand\file{\texttt}
\newcommand\option{\texttt}
\def\packagedate{\gitdate}
\def\packageversion{\gitversion}
%\def\cmd{\lstinline[style=tex]}
\def\cmditem#1{\item[\ttfamily\textbackslash{}#1]}
\newcommand\Vtextvisiblespace[1][.3em]{%
\mbox{\kern.06em\vrule height.3ex}%
\vbox{\hrule width#1}%
\hbox{\vrule height.3ex}}
|