The problem is that tikzposter
puts the title inside a \scalebox
thus preventing line breaks. You can recover line breaking placing your title inside a \parbox
:
\documentclass{tikzposter}
\title{\parbox{\linewidth}{\centering This is a really really really really really really really really really long title for a poster}}
\institute{The Institute}
\author{The Author}
\titlegraphic{Logo}
\usetheme{Basic}
\begin{document}
\maketitle
\block{BlocktitleA}{Blocktext}
\begin{columns}
\column{0.3}
\block{BlocktitleB}{Blocktext}
\column{0.7}
\block{BlocktitleC}{Blocktext}
\note{Notetext}
\end{columns}
\end{document}
This isn't an answer in the sense that the title is modified, but I can tell you what is wrong with the code you've showed us:
The empty line before the \setlength
. Paragraph breaks are not allowed there, so you need to either remove the blank line, or add a %
, as you can see other places.
The @
. To use @
in macro names in the preamble, you need to add \makeatletter
before the code and \makeatother
after, see What do \makeatletter
and \makeatother
do?.
\documentclass{tikzposter}
\usetheme{Wave}
\author{A not so frustrated user}
\title{A pretty enough poster I hope}
\makeatletter % added
\definetitlestyle{mytitlestyle}{
width=\paperwidth, roundedcorners=0, linewidth=0pt, innersep=1.5cm,
titletotopverticalspace=0mm, titletoblockverticalspace=20mm,
titlegraphictotitledistance=10pt, titletextscale=1
}{%
\coordinate (topleft) at (\titleposleft,\titlepostop);
\coordinate (topright) at (\titleposright,\titlepostop);
\coordinate (lefttoright) at (\titlewidth,0);
\coordinate (head) at (0,\titlepostop-\titleposbottom);
%
\draw[draw=none, left color=blocktitlebgcolor!90!black, right color=titlebgcolor!95]%
(topright) -- (topleft) -- %
($(topleft) - (head)-(0,6)$) .. controls %
($(topleft) - (head)-(0,6) + 0.25*(lefttoright) + (0,9)$) and %
($(topright) - (head) - 0.5*(lefttoright) - (-10,16)$) .. %
($(topright) - (head)$) -- cycle;
% %
\draw[draw=none, left color=blocktitlebgcolor, right color=white] %
($(topleft) - (head)-(0,2)$) .. controls %
($(topleft) - (head)-(-6,3) + 0.25*(lefttoright) + (0,10)$) and ($(topright) -
(head) - 0.25*(lefttoright) - (-6,17)$).. %
($(topright) - (head)$) .. controls %
($(topright) - (head) - 0.25*(lefttoright)-(-7,19)$) and %
($(topleft) - (head)-(-9,5) + 0.25*(lefttoright) + (0,10)$) .. %
($(topleft) - (head)-(0,4)$);
%
\draw[draw=none, left color=white, right color=blocktitlebgcolor!90!black]%
($(topleft) - (head)-(0,2)$) .. controls %
($(topleft) - (head)-(-6,3) + 0.25*(lefttoright) + (0,10)$) and ($(topright) -
(head)+(0,6) - 0.25*(lefttoright) - (-6,20)$)..%
($(topright) - (head)+(0,6)$) -- %
($(topright) - (head)$) .. controls %
($(topright) - (head) - 0.25*(lefttoright) - (-6,17)$) and %
($(topleft) - (head)-(-8,4) + 0.25*(lefttoright) + (0,10)$) .. %
($(topleft) - (head)-(0,2)$);
% added the percent character here
\setlength{\TP@titletoblockverticalspace}{5\TP@titletoblockverticalspace}
}
\makeatother
% make this style active
\usetitlestyle{mytitlestyle}
\begin{document}
\maketitle
\end{document}
Best Answer
For the title, see the description of
\settitle
in the manual. You can copy the example given there and remove\sc
.For the colours, I copied the definition of
\definebackgroundstyle{Rays}
from the filetikzposterBackgroundStyles.tex
and swapped thetop color
andbottom color