summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Gassner <justin.gassner@mailbox.org>2023-07-11 15:34:13 +0200
committerJustin Gassner <justin.gassner@mailbox.org>2023-07-11 15:34:13 +0200
commitb2c6297267d120ee9f9e4fa8ff67641a459f249a (patch)
tree98a98532623583e34cf2ce2ec2f1d628150e3a4f
parent9afc7ef3b83fb16e9ad213acb6473ed10dbc8647 (diff)
downloadmaster-b2c6297267d120ee9f9e4fa8ff67641a459f249a.tar.zst
Add nomenclature
-rw-r--r--.latexmkrc5
-rw-r--r--main.tex1
-rw-r--r--nomenclature.tex1
-rw-r--r--samplesection.tex1
4 files changed, 8 insertions, 0 deletions
diff --git a/.latexmkrc b/.latexmkrc
index 7bdd079..27dca13 100644
--- a/.latexmkrc
+++ b/.latexmkrc
@@ -1 +1,6 @@
$aux_dir = 'aux';
+# Custom dependency and function for nomencl package
+add_cus_dep("nlo", "nls", 0, "nlo2nls");
+sub nlo2nls {
+ system("makeindex $_[0].nlo -s nomencl.ist -o $_[0].nls -t $_[0].nlg");
+}
diff --git a/main.tex b/main.tex
index 6620b7c..2eceee4 100644
--- a/main.tex
+++ b/main.tex
@@ -7,4 +7,5 @@
\appendix
\include{sampleappendix}
\include{bibliography}
+\include{nomenclature}
\end{document}
diff --git a/nomenclature.tex b/nomenclature.tex
new file mode 100644
index 0000000..908d0bb
--- /dev/null
+++ b/nomenclature.tex
@@ -0,0 +1 @@
+\printnomenclature
diff --git a/samplesection.tex b/samplesection.tex
index a0d9764..191f091 100644
--- a/samplesection.tex
+++ b/samplesection.tex
@@ -1,5 +1,6 @@
\section{Sample Section}
Just some sample text.
+\nomenclature{$\mathcal{S}$}{Schwartz test function space\nomrefpage}
\printbibliography[segment=\therefsegment,heading=subbibliography]