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