Debian Codegraph @

texmf-dist/doc/latex/tramlines/tramlines-documentation.tex

raw
1 \documentclass[12pt]{article}
2 \usepackage{textcsc}
3 \usepackage{tramlines}
4 \usepackage{xcolor}
5 \usepackage{fontspec}\definecolor{darkspringgreen}{rgb}{0.09, 0.45, 0.27}
6 \definecolor{dsg}{rgb}{0.09, 0.45, 0.27}
7
8 \usepackage{titlesec}
9 \titleformat{\subsection}
10 {\bfseries}{\thesection.\thesubsection}{1em}{\normalfont\bfseries}
11 \usepackage[hidelinks]{hyperref}
12 \usepackage{hologo}
13 \usepackage[british]{babel}
14 \usepackage[useregional]{datetime2}
15 \DTMlangsetup[en-GB]{ord=omit}
16 \definecolor{LightGray}{gray}{0.9}
17 %\usepackage{mathpazo}
18 \IfFontExistsTF{Palatine Parliamentary}{%
19 \setromanfont[SmallCapsFeatures={LetterSpace=10},
20 RawFeature={+calt,+hlig,+liga,+dlig,+onum,+pnum},
21 BoldFont={Palatine Parliamentary Bold},
22 ItalicFont={Palatine Parliamentary Italic}
23 ]{Palatine Parliamentary Regular}
24 }{\setromanfont[RawFeature={+onum,+pnum}]{TeX Gyre PagellaX}}
25 \setmonofont[Scale=.9,BoldFont=Source Code Pro Bold]{Source Code Pro}
26
27 \usepackage{minted}
28 \date{\today\\\smallskip\ttfamily Version \tramlinesversionnumber}
29 \author{Elijah Z Granet\thanks{e-mail: \href{mailto:[email protected]}{\ttfamily [email protected]}}}
30
31 \title{\texttt{tramlines}:\\A package for tramlines}
32 \begin{document}
33 \maketitle
34 \tableofcontents
35 \clearpage
36 \section{Overview}
37 Legal documents in the UK are generally headed with \textit{inter alia} the title of the document outlined and separated by lines the length of the title. These lines are known by lawyers as `tramlines'. For example, one might see:
38
39 \tramlines{Defendant's Supplementary Bundle}
40
41 This package enables the easy use of tramlines with a single command, {\color{dsg}\verb!\tramlines{}!}. All the user needs to do is put the desired content in that command, which then produces tramlines with a nice double rule. For example, the command
42 \begin{minted}[
43 frame=lines,
44 framesep=2mm,
45 baselinestretch=1.2,
46 bgcolor=LightGray,
47 fontsize=\footnotesize,
48 linenos,
49 breaklines,
50 firstnumber=last
51 ]
52 {latex}
53 \tramlines{Skeleton Argument on Behalf of the Respondent}
54 \end{minted}
55
56
57 produces the following result:
58 \tramlines{Skeleton Argument on Behalf of the Respondent}
59
60 \section{Development}
61 Bugs, feature requests, \textit{etc}, should be submitted to the project's official Githup page: (\url{github.com/ezgranet/tramlines}).
62 \section{Licence}
63 This project is licensed under the Latex Public Project Licence version 1.3\textit{c}. This documentation is copyright of the author but licensed under \textcsc{CC-BY-SA} 3.0.
64 \clearpage
65 \section{Implementation}
66 \begin{minted}[
67 frame=lines,
68 framesep=2mm,
69 baselinestretch=1.2,
70 bgcolor=LightGray,
71 fontsize=\footnotesize,
72 linenos,
73 breaklines,
74 firstnumber=last
75 ]
76 {latex}
77 \def\tramlinesversionnumber{1.1.1}
78 \ProvidesPackage{tramlines}
79 [2024/07/18\tramlinesversionnumber\
80 Tramlines]
81 % This work may be distributed and/or modified under the
82 % conditions of the LaTeX Project Public License, either version 1.3c
83 % of this license or (at your option) any later version.
84 % The latest version of this license is in
85 % http://www.latex-project.org/lppl.txt
86 % and version 1.3c or later is part of all distributions of LaTeX
87 % version 2005/12/01 or later.
88 %s
89 % This work has the LPPL maintenance status `maintained'.
90 %
91 % The Current Maintainer of this work is Elijah Z Granet
92 %%%%%%%%%%%%%%%%%%%%%%%%%%%
93 %%%%%%%%%%%%%%%%%%%%%%%%%%%
94 %%%%%%%%%%%%%%%%%%%%%%%%%%%
95 %%%%%%%%%%%%%%%%%%%%%%%%%%%
96 % DEPENDENCIES
97 %%%%%%%%%%%%%%%%%%%%%%%%%%%
98 %%%%%%%%%%%%%%%%%%%%%%%%%%%
99 \RequirePackage{booktabs}
100 %%%%%%%%%%%%%%%%%%%%%%%%%%%
101 %%%%%%%%%%%%%%%%%%%%%%%%%%%
102 %%%%%%%%%%%%%%%%%%%%%%%%%%%
103 %%%%%%%%%%%%%%%%%%%%%%%%%%%
104 % tramlines
105 %%%%%%%%%%%%%%%%%%%%%%%%%%%
106 %%%%%%%%%%%%%%%%%%%%%%%%%%%
107 \newcommand{\tramlinesep}{2pt}
108 \newcommand{\tramlines}[1]{\normalsize
109 \smallskip
110 \begin{center}
111 \begin{minipage}{\textwidth}
112 \centering
113 {%notglobal
114 \setlength\doublerulesep{\tramlinesep}% <-- set distance between double rule
115 \begin{tabular}[t]{c c c }
116 \toprule\toprule
117 & #1 & \\
118 \bottomrule\bottomrule
119 \end{tabular}}
120 \end{minipage}
121 \end{center}
122
123 \smallskip
124 }
125
126 %%%%%%%%%%%%%%%%%%%%%%%%%%%
127 %%%%%%%%%%%%%%%%%%%%%%%%%%%
128 % all done
129 %%%%%%%%%%%%%%%%%%%%%%%%%%%
130 %%%%%%%%%%%%%%%%%%%%%%%%%%%\end{minted}
131
132 \section{Version History}
133 \subsection*{\ttfamily 1.1.1}
134 \ttfamily 18 July 2024: Change erroneous left alignment to centre alignment
135 \subsection*{\ttfamily 1.1.0}
136
137 \ttfamily 29 October 2023: Updates to float composition and fixed bug with global commands. Thanks to GitHub user `niruvt'
138
139 \ttfamily 29/01/2023: Updates to float composition and fixed bug with global commands. Thanks to GitHub user niruvt
140
141
142 \subsection*{\texttt{1.0.0}}
143
144
145 \ttfamily 27 January 2023: Package creation
146
147
148 \end{document}