summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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]