Skip to content

Commit

Permalink
Respect newlines in title
Browse files Browse the repository at this point in the history
  • Loading branch information
omegahm committed Jul 18, 2017
1 parent 10e5556 commit ed1e85d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ku-frontpage.sty
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
% (http://www.math.ku.dk/~m00cha/), however translated all call to their
% English equivalant and included newer logos.
%------------------------------------------------------------------------------
\ProvidesPackage{ku-frontpage}[2017/07/12 v0.2 Frontpages with University of Copenhagen logos]
\ProvidesPackage{ku-frontpage}[2017/07/12 v0.21 Frontpages with University of Copenhagen logos]

%%% Define 'if''s for style.
\newif\if@kutitlepage\@kutitlepagefalse \DeclareOption{titlepage}{\@kutitlepagetrue}
Expand Down Expand Up @@ -65,17 +65,15 @@
\RequirePackage[absolute]{textpos}
\TPGrid{12}{24}

%%% Include hyperref for PDF attributes. These are set after document is begun,
%%% to include the title, subtitle, and author.
\RequirePackage{hyperref}
\AtBeginDocument{
% Lets not crash, if the user has newlines in title, subtitle, or author.
\let\\=\relax
\let\newline=\relax
\let\medskip=\relax
\let\bigskip=\relax
\RequirePackage[
\hypersetup{
pdftitle={\TITLE},
pdfsubject={\SUBTITLE},
pdfauthor={\AUTHOR}
]{hyperref}
}
}

%%% Define custom methods for frontpage.
Expand Down

0 comments on commit ed1e85d

Please sign in to comment.