With empty \titlegraphic the template will not compile
Issue #29
new
The file tikzposter-template.tex
does not compile if \titlegraphic
is empty.
It throws the error:
LaTeX Error: There's no line here to end.
Changing:
\gdef\TP@maketitle{
\centering
\vbox{
\@titlegraphic
\\[\TP@titlegraphictotitledistance]
\centering
\color{titlefgcolor}
{\bfseries \Huge \sc \@title \par}
\vspace*{1em}
{\huge \@author \par}
\vspace*{1em}
{\LARGE \@institute}
}
}
to
\gdef\TP@maketitle{
\centering
\vbox{
\ifx\@titlegraphic\@empty%
%
\else%
\@titlegraphic\\[\TP@titlegraphictotitledistance]%
\fi%
\centering
\color{titlefgcolor}
{\bfseries \Huge \sc \@title \par}
\vspace*{1em}
{\huge \@author \par}
\vspace*{1em}
{\LARGE \@institute}
}
}
fixes this.
Comments (2)
-
reporter -
Any progress on getting the fix into the main code? I just got hit by the bug and it took me a while to figure out it was a problem in the documentclass rather than in my own code (partly due to the lack of line numbers in the Latex error for some reason)! Thanks
- Log in to comment
Actually, a better fix would be to use
etoolbox
's\ifdefempty
in case of\titlegraphic{ }
(see here):