diff --git a/novathesis-files/packages.clo b/novathesis-files/packages.clo index 7a841350..ff530658 100644 --- a/novathesis-files/packages.clo +++ b/novathesis-files/packages.clo @@ -137,7 +137,7 @@ , translate=babel , acronym % add acronyms listing , symbols % add symbols listing - , sanitize=none % allow \gls inside descriptions + , sanitizesort=false % allow \gls inside descriptions % , automake ]{glossaries-extra} % To create glossaries % \glsdisablehyper diff --git a/novathesis.cls b/novathesis.cls index 05fb58e7..93ac8032 100644 --- a/novathesis.cls +++ b/novathesis.cls @@ -512,10 +512,9 @@ \newcommand{\thetitle}{\novathesis@undefined[The Thesis Title]} \newcommand{\nttitle}[1]{% \newcommand{\thecovertitle}{#1}% - {% New cope for definitions - \renewcommand\\{ } - \xdef\@thetitle{#1} - } + \saveexpandmode\noexpandarg % set \noexpandarg locally + \StrSubstitute[0]{#1}{\\}{ }[\@thetitle] + \restoreexpandmode % restore the previous mode \renewcommand{\thetitle}{\@thetitle}% \AtBeginDocument{% \hypersetup{pdftitle = {\thetitle}}% diff --git a/template.pdf b/template.pdf index d2d307d0..11440f64 100644 Binary files a/template.pdf and b/template.pdf differ