Skip to content

Commit aec77b7

Browse files
committed
Fix incompatibility with UH_TCM_MSc and nomencl
1 parent 2cbca28 commit aec77b7

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ clean:
55
pdf:
66
# Allow exit code 12. The double $$ is needed in a Makefile to refer to a shell variable instead of a make variable.
77
# https://stackoverflow.com/a/16315249
8-
latexmk -f || [ $$? -eq 12 ]
8+
latexmk # -f || [ $$? -eq 12 ]

UH_TCM_MSc.cls

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,17 @@
2626
% programme specific content ends
2727

2828
\RequirePackage{lastpage}
29-
\RequirePackage{nomencl}
29+
30+
% Requiring nomencl results in duplicate definitions of these commands,
31+
% and therefore return code 12 for the LaTeX compiler.
32+
% Unfortunately, this fix did not help.
33+
% https://texfaq.org/FAQ-alreadydef
34+
% \RequirePackage{savesym}
35+
% \savesymbol{\@pnumwidth}
36+
% \savesymbol{\@tocrmarg}
37+
% \savesymbol{\@dotsep}
38+
% \RequirePackage{nomencl}
39+
3040
\RequirePackage{emptypage}
3141
\RequirePackage{perpage}
3242

@@ -230,6 +240,10 @@
230240

231241
%--------------------------------------------------------------------------
232242
% Nomenclature: titles and unit space
243+
244+
% Disabled due to issues in importing the nomencl package.
245+
% See the comments at \RequirePackage{nomencl}.
246+
\iffalse
233247
\makenomenclature
234248
\if@finnish
235249
\renewcommand{\nomname}{Symboliluettelo}
@@ -243,6 +257,7 @@
243257
\fi
244258
\newcommand{\nomunit}[1]{%
245259
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
260+
\fi
246261

247262
\newcommand{\mynomenclature}{%
248263
% \ifnum0\pdffilesize{\jobname.nls}>0

main.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
\usepackage[plainpages=false]{hyperref} % For hyperlinks and pdf metadata
4848
\usepackage{listings}
4949
\usepackage{lmodern} % Font package
50-
\usepackage{nomencl}
50+
% \usepackage{nomencl}
5151
\usepackage{placeins} % FloatBarrier
5252
%\usepackage[square]{natbib} % For bibliography
5353
\usepackage{textcomp} % Package for special symbols

0 commit comments

Comments
 (0)