Skip to content

Commit

Permalink
Fixed warining from glossaries.
Browse files Browse the repository at this point in the history
Fixed (hopefully) warning from Hyperref concerning "\\" in the title
  • Loading branch information
joaomlourenco committed Dec 2, 2020
1 parent d9ef024 commit 4a6413e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion novathesis-files/packages.clo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions novathesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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}}%
Expand Down
Binary file modified template.pdf
Binary file not shown.

0 comments on commit 4a6413e

Please sign in to comment.