-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile-test.tex
98 lines (83 loc) · 2.41 KB
/
compile-test.tex
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
%! Author = srinaldi
%! Date = 2025-01-08 (YYYY-MM-DD)
% Preamble
\documentclass[12pt]{book}
% Packages
\usepackage{amsmath}
\usepackage[toc,acronym,nonumberlist]{glossaries}
\usepackage[automake]{glossaries-extra}
\usepackage{gitinfo2}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{enumitem}
\usepackage{longtable}
% Glossary settings / loading
%\loadglsentries[\acronymtype]{combined_acronyms.tex}
\newglossary*{term}{Terms}
\loadglsentries[term]{glossaries.tex}
%\loadglsentries[\acronymtype]{glossaries.tex}
\makeglossaries
% Set Variables
\def\title{Acronym Reference Sheet}
\def\subtitle{LaTeX Compiled Acronym and Glossary Entries}
\def\info{Used for testing if entries can compile correctly in advance and as a user-friendly output reference sheet.}
\def\repourl{\url{https://github.com/uasal/acronyms/tree/main}}
\def\teledoc{PLACEHOLDER}
\edef\masterBranch{\detokenize{master}}
\edef\gitBranch{\gitBranch}
% Setup internal link colors
\hypersetup{%
colorlinks=true,
linkcolor=blue,
urlcolor=blue,
filecolor=blue,
linktoc=all,
citecolor=blue,
}
% Pagestyles
\cfoot{\thepage\n }
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{Rev: \gitAbbrevHash- \gitDirty\, \gitCommitterDate}
\fancyhead[RE,LO]{LaTeX Acronyms \& Terms, Page \thepage}
\fancyfoot[CE,CO]{\rightmark}
\setlength{\headheight}{14.49998pt}
\addtolength{\topmargin}{-2.49998pt}
%\fancyfoot[LE,RO]{}
\topskip0pt
% Document
\begin{document}
% Making Title Page
\renewcommand{\maketitle}{
\pagestyle{empty}
\thispagestyle{empty}
%--- Make title page
\begin{center}
\vspace{0.5cm} \mbox{}\hrulefill \mbox{}\\[1cm]
{\Huge \textbf{\title}\\[1cm]}
{\Large \textit{\subtitle}}\\[3cm]
{\large \textit{\info}}\\[5cm]
{\small \textbf{Teledoc Link: }\textit{\teledoc}}\\[0.3cm]
{\small \textbf{Repository: }\textit{\repourl}}\\[0.5cm]
{\small \textbf{Branch: } \gitBranch}
{\small \textbf{ | Commit:} \gitDescribe}\\[0.5cm]
%{\small \textit{\access}} \vfill
{\small \mbox{}\hrulefill\mbox{}\\[10mm]}
\footnote{{ Revision: \gitAbbrevHash - \gitDirty\ Date: \gitCommitterDate}}
\end{center}
\pagestyle{fancy}
}
\maketitle
%\newpage
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{2}
\tableofcontents
\input{combined_acronyms.tex}
\setglossarysection{section}
\glsaddall
\chapter{Acronyms}
\printglossary[type=\acronymtype]
\chapter{Glossary}
\printglossary[type=term]
Fin.
\end{document}