Debian Codegraph @

texmf-dist/source/latex/tikzposter/tikzposter.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2014 by Pascal Richter, Elena Botoeva, Richard Barnard, Dirk Surmann
4 % -----------------------------------
5 %
6 % This file may be distributed and/or modified under the
7 % conditions of the LaTeX Project Public License, either
8 % version 2.0 of this license or (at your option) any later
9 % version. The latest version of this license is in:
10 %
11 % http://www.latex-project.org/lppl.txt
12 %
13 % and version 2.0 or later is part of all distributions of
14 % LaTeX version 2014/01/15 or later.
15 %
16 % \fi
17 %
18 % \iffalse
19 %<*driver>
20 \ProvidesFile{tikzposter.dtx}
21 \documentclass{ltxdoc}
22 \usepackage{subfigure}
23 \usepackage{tikz}
24 \usepackage{fancyvrb,hyperref}
25 \usepackage{setspace}
26 \EnableCrossrefs
27 \CodelineIndex
28 \RecordChanges
29 \OnlyDescription
30 \definecolor{macro}{HTML}{1B1BB3}
31 \definecolor{option}{HTML}{009999}
32 \definecolor{color}{HTML}{00CC00}%62E200}
33 \definecolor{style}{HTML}{E60042}
34 \definecolor{value}{HTML}{FF7400}
35 \definecolor{node}{HTML}{6F0AAA}
36 \newcommand{\mmacro}[1]{{\color{macro} {#1}}}
37 \newcommand{\moption}[1]{\textcolor{option}{#1}}
38 \newcommand{\mcolor}[1]{\textcolor{color}{#1}}
39 \newcommand{\mstyle}[1]{\textcolor{style}{#1}}
40 \newcommand{\mvalue}[1]{\textcolor{value}{#1}}
41 \newcommand{\mnode}[1]{\textcolor{node}{#1}}
42 \begin{document}
43 \DocInput{tikzposter.dtx}
44 \end{document}
45 %</driver>
46 % \fi
47 %
48 % \CheckSum{0}
49 %
50 % \CharacterTable
51 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
52 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
53 % Digits \0\1\2\3\4\5\6\7\8\9
54 % Exclamation \! Double quote \" Hash (number) \#
55 % Dollar \$ Percent \% Ampersand \&
56 % Acute accent \' Left paren \( Right paren \)
57 % Asterisk \* Plus \+ Comma \,
58 % Minus \- Point \. Solidus \/
59 % Colon \: Semicolon \; Less than \<
60 % Equals \= Greater than \> Question mark \?
61 % Commercial at \@ Left bracket \[ Backslash \\
62 % Right bracket \] Circumflex \^ Underscore \_
63 % Grave accent \` Left brace \{ Vertical bar \|
64 % Right brace \} Tilde \~}
65 %
66 % \changes{v1.0}{2012/09/15}{Initial version}
67 %
68 % \GetFileInfo{tikzposter.cls}
69 % \def\filedate{2014/01/15}
70 % \def\fileversion{v2.0}
71 % \def\fileinfo{LaTeX Poster Class with TikZ}
72 %
73 % \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ }
74 % \DoNotIndex{\@ne}
75 % \DoNotIndex{\advance,\begingroup,\catcode,\closein}
76 % \DoNotIndex{\closeout,\day,\def,\edef,\else,\empty,\endgroup}
77 %
78 % \title{The \textsf{tikzposter} class \thanks{This document corresponds to \textsf{tikzposter}~\fileversion, dated~\filedate.}}
79 % \author{Pascal Richter, Elena Botoeva, Richard Barnard, Dirk Surmann \\[1ex] \texttt{[email protected]} \\ \url{https://bitbucket.org/surmann/tikzposter/wiki/}}
80 %
81 % \maketitle
82 %
83 % \begin{abstract}
84 % This document class aims to provide a simple way of using LateX and TikZ for
85 % generating good looking scientific posters.
86 % \end{abstract}
87 %
88 % \renewcommand{\baselinestretch}{0.75}
89 % \tableofcontents
90 % %\renewcommand{\baselinestretch}{1}
91 %
92 % \section{Introduction}
93 % The \textsf{tikzposter} document class file may be used to simplify formatting and generating scientific posters
94 % in the \textsf{.pdf} format. It uses the TikZ package to generate a poster layout. % The poster is formed by a series of blocks against a background in a sequence of aligned columns.
95 % The purpose of the class is to reduce the level of formatting by automatically setting spacing between
96 % blocks in the poster as well as their lengths. The user has control over the width of the columns.
97 % Due to the class' reliance on TikZ, only \textsf{.pdf} output is supported. This document explains the
98 % formatting options available and how to easily create a basic block layout.
99 %
100 % To start with the class, the user can look at either the template file included with the class |tikzposter-template.tex| (also shown in Section \ref{sec:template}) which provides a template, the minimal working example shown in Section \ref{sec:usage}, or the example file |tikzposter-example.tex|. The last file illustrates various formatting options available.
101 % In Section \ref{sec:docclass}, the |\documentclass| is described.
102 % Inside of the |document| environment, the title is created by the use of one of the title block commands
103 % and columns of aligned blocks are then created; the various commands are described in the subsections of Section \ref{sec:postercontents}.
104 % If you want to alter the appearance of the poster, the various ways of doing this are explained in Section \ref{sec:posterlayout}. Finally, the Appendix (Section \ref{sec:appendix}) lists useful variables for those who want to further customize the appearance of the posters.
105 %\vspace{12pt}
106 %
107 %\noindent\textbf{Required packages:} The class uses \LaTeX2e and the following required packages:
108 % |tikz|, |calc|, |ifthen|, |ae|, |xstring|, |etoolbox|, |xkeyval|.
109 %\vspace{12pt}
110
111 % \noindent\textbf{Changes from previous versions:} Significant changes have been
112 %made between the current version and the previous version of tikzposter. Aside from bug fixes, there
113 %have been the following changes: The background can now be customized, the title formatting can be customized,
114 % blocks can be shifted with respect to the default positioning, the format and appearance of blocks can be
115 %customized, the |note| object was introduced (a new type of object) and colorthemes have been modified. The various changes mean backwards compatibility was not possible for posters using some of the formatting options in the previous version.
116 %\section{Creating a Poster}\label{sec:usage}
117 %Below is a minimal example of a poster and the relevant places in the manual to find further information.
118 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
119 % \documentclass{tikzposter} % See Section 3
120 % \title{Title} \institute{Inst} % See Section 4.1
121 % \author{Auth} \titlegraphic{Logo}
122 % \usetheme{Basic} % See Section 5
123 % \begin{document}
124 % \maketitle % See Section 4.1
125 % \block{BlocktitleA}{Blocktext} % See Section 4.2
126 % \begin{columns} % See Section 4.4
127 % \column{0.3} % See Section 4.4
128 % \block{BlocktitleB}{Blocktext}
129 % \column{0.7}
130 % \block{BlocktitleC}{Blocktext}
131 % \note{Notetext} % See Section 4.3
132 % \end{columns}
133 % \end{document}
134 %\end{Verbatim}
135 %
136 %\section{Options for the Document Class}
137 %\label{sec:docclass}
138 % In order to use the class, begin the document with
139 % \begin{quote}
140 % |\documentclass[|\emph{options}|]{tikzposter}|
141 % \end{quote}
142 % There are several options available for customizing the general layout of the poster. These are
143 % called as optional arguments when declaring the document class. The options for the page geometry are
144 %\begin{itemize}
145 % \item font size: The size of the text in the main body may be set as : |12pt|, |14pt|, |17pt|, |20pt|, or |25pt|;
146 % \item paper size: Currently, paper sizes may be set to : |a0paper|, |a1paper|, or |a2paper|;
147 % \item orientation: Either |landscape| or |portrait|.
148 % \end{itemize}
149 % The standard options |fleqn| and |leqno| may also be invoked here.
150 % The following options are set in the form $\langle$\emph{variable name}$\rangle$=$\langle$\emph{value}$\rangle$ and deal with spacing of the poster:
151 % \begin {itemize}
152 % \item \moption{|margin|}: The margin between outer edge of the poster and the edge of the paper.
153 %\item \moption{|innermargin|}: The margin from the edge of the poster edge to the outermost edge of the blocks;
154 %\item \moption{|colspace|}: The horizontal spacing between successive columns;
155 %\item \moption{|subcolspace|}: The horizontal spacing between successive columns in the |subcolumn| environment (See Section \ref{sec:postercontents:columns} for more on this environment);
156 %\item \moption{|blockverticalspace|}: The spacing between the bottom of a normal block and the top of the next block.
157 %\end{itemize}
158 % A sample usage of these options would be :
159 % \begin{verbatim}
160 % \documentclass[25pt, a0paper, portrait, margin=0mm, innermargin=15mm,
161 % blockverticalspace=15mm, colspace=15mm, subcolspace=8mm]{tikzposter}
162 % \end{verbatim}
163 % These listed values are in fact the default values of the optional arguments.
164 % To turn off the comment on how the poster was created in the lower right corner, include in the preamble {\color{macro}|\tikzposterlatexaffectionproofoff|}.
165
166 %\section{The Poster Contents}
167 %\label{sec:postercontents}
168 %\subsection{Title Matter}
169 %\label{sec:postercontents:title}
170 % \DescribeMacro{\maketitle} The information for the title matter is defined in the usual manner; the user may use |\author{}|, |\institute{}|, and |\title{}|. Additionally, a logo for the title matter may be defined via {\color{macro}|\titlegraphic{}|}. The title is created with the normal {\color{macro}|\maketitle[|\emph{options}|]|} command; however, we note that new options are available to alter the default settings:
171 %\begin{itemize}
172 %\item \moption{|width|}: The width of the title portion of the poster.
173 %\item \moption{|roundedcorners|}, \moption{|linewidth|}, \moption{|innersep|}: Passed to relevant TikZ commands in the title style, governing the ``box'' surrounding the title matter (if the style is made dependent on these parameters -- the default style, for instance, is).
174 %\item \moption{|titletotopverticalspace|}, \moption{|titletoblockverticalspace|}: Space between the top of the poster (excluding margins) and the top edge of the title portion; and space between the bottom of the poster and the top block, respectively.
175 %\item \moption{|titlegraphictotitledistance|}: a length, used for a vertical distance between the titlegraphic and title description.
176 %\item \moption{|titletextscale|}: a number which allows for relative scaling of the text of the title.
177 %\end{itemize}
178 % The necessary spacing is handled using the options chosen in the call to the document class described in Section \ref{sec:docclass}. The default format for the title is seen in Figure~\ref{fig:titledefault}.
179 %\begin{figure}[ht]
180 %\centering \begin{tikzpicture}\node[draw] {titlegraphic};\end{tikzpicture}\\ {\huge TITLE} \\ author \\ institute
181 %\caption{Default format of the title material}
182 %\label{fig:titledefault}
183 %\end{figure}
184 %
185 %One can redefine the way the title matter (title, author, etc.) are arranged by
186 %calling {\color{macro} |\settitle|}.
187 % \DescribeMacro{\settitle} The user can change this format by including in the preamble {\color{macro}|\settitle|}. Note that when referring to the title, author, titlegraphic, and institute with this command, one needs to use {\color{value}|\@title|}, {\color{value}|\@author|}, {\color{value}|\@institute|} and {\color{value}|\@titlegraphic|}. A sample alternative title format is:
188 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
189 % \settitle{ \centering \vbox{
190 % \@titlegraphic \\[\TP@titlegraphictotitledistance] \centering
191 % \color{titlefgcolor} {\bfseries \Huge \sc \@title \par}
192 % \vspace*{1em}
193 % {\huge \@author \par} \vspace*{1em} {\LARGE \@institute}
194 % }}
195 %\end{Verbatim}
196
197 %\subsection{Blocks}
198 %\label{sec:postercontents:blocks}
199 %\DescribeMacro{\block}
200 % Blocks are created with the command {\color{macro}|\block[|\emph{options}|]{|\emph{title}|}{|\emph{text}|}|}.
201 % Excluding options, this creates a block of the width of the page (or column/subcolumn, see section \ref{sec:postercontents:columns}), excepting the
202 % margin and inner margin. A title for the block will be generated along the top in a separate,
203 %smaller block, centered using the contents of \emph{title}.
204 % By default, its width will be set to be the {\color{value}|\textwidth|} or, if in a column (see below), to the {\color{value}|\colwidth|}; alternatively, it may be altered as described below.
205 %
206 %If the \emph{title} field is left empty, then there will be no title for the block created. Multiline titles are supported and will be (approximately) broken to satisfy the maximum width of the block titles as specified in the formatting options. The contents of \emph{text} will be displayed in the main
207 % body of the block. The length of the block is determined automatically by the contents of \emph{text}.
208 % Further blocks may be generated in the same column by further uses of {\color{macro}|\block|}. However, if the
209 % contents of the blocks in a single column lead to spill over (that is, they take up more vertical space than
210 % allowed under the formatting for the paper size and margins), then formatting errors will occur.
211 %
212 % \DescribeEnv{Block Options} If the user wishes to have certain internal spacing and positioning aspects of the block to differ from those of the layout theme, they may reset the following:
213 % \begin{itemize}
214 % \item \moption{|titleoffsetx|}, \moption{|titleoffsety|}, \moption{|bodyoffsetx|} and \moption{|bodyoffsety|}:
215 % The block may be placed in violation of the automatic alignment according to the default spacing rules. This may be achieved with 4 options. The first two are used to shift the title block from the default position. The latter two shift the main content block (containing \emph{text}) from a position directly under the title. All four are by default set to 0. That is, in relation to previously created blocks, the class determines the position of the current block according to the format options' spacing values and then determines the appropriate heights of the two components, main part and title. The position can then be adjusted as desired. Please note that these offset values use the convention of positive values resulting in a shift right/upwards and negative values in a shift left/downwards.
216 % \item \moption{|titlewidthscale|}, \moption{|bodywidthscale|}: The relative scaling from the default widths of the block's title and main portion, respectively. This is given in relative terms; i.e., |titlewidthscale=.5| will result in a $50\%$ narrower title width than the default.
217 % \item \moption{|titleleft|}, \moption{|titlecenter|}, \moption{|titleright|}: The alignment of the title text within the title section of the block (if it it exists). Unless specified in the block or the block style (see below), center alignment is used.
218 % \item \moption{|bodyverticalshift|}: Additional spacing (in absolute terms) between the bottom of the title and the beginning of the \emph{contents} of the block body.
219 % \item \moption{|roundedcorners|}, \moption{|linewidth|}: Parameters used to determine the degree of roundedness of the corners of the block and the thickness of the outer edge of the block, respectively; behaves as in TikZ.
220 % \item \moption{|titleinnersep|}, \moption{|bodyinnersep|}: Separation for the title and body of the block, respectively, between the edge and their contents.
221 % \end{itemize}
222 % A sample block may be created by the command
223 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
224 % \block[titleleft,titleoffsetx=2em,titleoffsety=1em,bodyoffsetx=2em,
225 % bodyoffsety=1em,titlewidthscale=.6, bodywidthscale=.8, roundedcorners=14,
226 % linewidth=8mm, bodyinnersep=4em, titleinnersep=2em]
227 % {Sample Block}{Text\\Text\\Text Text}
228 % \end{Verbatim}
229 % \subsubsection*{Block objects}\DescribeMacro{\innerblock} There are three special objects which may be placed in the blocks: inner blocks, colored boxes, and figures. Inner blocks, called by the command {\color{macro}|\innerblock[|\emph{options}|]{|\emph{Heading}|}{|\emph{Text}|}|}, are blocks placed in the body. If no heading is provided, the title area is not drawn, as in the case of normal blocks. The available options are:
230 % \begin{itemize}
231 % \item \moption{|titlewidth|}, \moption{|bodywidth|}, \moption{|titlewidthscale|}, \moption{|bodywidthscale|}: Respectively, the absolute width of the title and body, and scaling from the default widths set by the inner block style (see below). \textbf{NOTE}: If using the style \mstyle{|Table|} (see Section \ref{sec:innerblockstyles}) sec: for inner blocks, the sum of \moption{|titlewidthscale|} and \moption{|bodywidthscale|} must be no greater than 1 and the total height of the heading text should be less than the the total height of the text.
232 % \item Title alignment: Either \moption{|titlecenter|}, \moption{|titleleft|}, or \moption{|titleright|}.
233 % \item \moption{|titleoffsetx|}, \moption{|titleoffsety|}, \moption{|bodyoffsetx|}, \moption{|bodyoffsety|}: For positioning from the default placement of the title and body, similar in function to the options for a block.
234 % \item \moption{|roundedcorners|}, \moption{|linewidth|}, \moption{|titleinnersep|}, \moption{|bodyinnersep|}: Same functionality as the options for blocks.
235 % \end{itemize}
236 % \DescribeMacro{\coloredbox} Colored boxes can be used for emphasizing parts of the block body and are generated by {\color{macro}|\coloredbox[|\emph{options}|]{|\emph{Text}|}|}. Without options, a box of the width of the block body (minus the length \moption{|blockbodyinnersep|}) is created, highlighted by the color assigned to the background of notes (see below for more on setting colors). The options are:
237 % \begin{itemize}
238 % \item \moption{|width|}: the width of the highlighted region.
239 % \item \moption{|linewidth|}, \moption{|roundedcorners|}: similar as above.
240 % \item \moption{|bgcolor|}, \moption{|fgcolor|}, \moption{|framecolor|}: Colors of the background highlighting, the text, and the frame of the colored box.
241 % \end{itemize}
242 %\DescribeMacro{tikzfigure} Due to implementation of the blocks, using the standard \LaTeX |figure| environment is not possible. As a workaround, the environment {\color{macro}|tikzfigure|} has been included using a solution adapted from code suggested by Stephan Thober. It may be used in the same manner as the standard figure environment.
243 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
244 % \begin{tikzfigure}[Caption of the figure]
245 % \label{fig:fig1}
246 % Figure
247 % \end{tikzfigure}
248 % \end{Verbatim}
249
250 %\subsection{Notes}
251 %\label{sec:postercontents:notes}
252 %\DescribeMacro{\note} Smaller objects called notes are also available. These are associated with blocks and can be used to attach comments to specific points in the blocks. Their use is slightly more complicated; they are created with the use of the {\color{macro}|\note[|\emph{options}|]{|\emph{contents}|}|} command. We will here remark on the options that are needed for placing them. These options are:
253 %\begin{itemize}
254 %\item \moption{|targetoffsetx|}, \moption{|targetoffsety|}: The note places a ``target'' point in the center of the previously created block and uses this as a reference point for placement. If this target should be moved, these two parameters can be set to shift the target away from the default;
255 %\item \moption{|angle|}, \moption{|radius|}: After the target has been set, the center of the note is a distance of \moption{|radius|} away from the target with angle (with respect to the horizontal axis) \moption{|angle|};
256 %\item \moption{|width|}: The desired width of the note;
257 %\item \moption{|connection|}: If the note style allows for it (see below on the styles for notes), using the connection option draws the relevant connection (i.e. line or arrow) from the note's center point to the target point;
258 %\item \moption{|rotate|}: If the entire note should be rotated, a rotation angle (again with respect to the horizontal axis) may be defined using this option.
259 %\item \moption{|roundedcorners|}, \moption{|linewidth|}, \moption{|innersep|}: If the note should be drawn using corners that are rounded differently than the default, with a thicker/thinner bounding line than the default, or with a different separation between content and edge of the note, respectively, these options may be used to reset the values.
260 %\end{itemize}
261 %Two comments should be kept in mind. First, notes are always visible over the background and blocks. Second, there are no automatic spacing rules for notes, so care should be used in placement to ensure the proper appearance of the poster.
262 %
263 %A sample note could be constructed via:
264 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
265 % \note[targetoffsetx=2cm, targetoffsety=-1cm, angle=90, radius=3cm,
266 % width=5cm, rotate=30, connection, linewidth=.2cm,
267 % roundedcorners=30, innersep=1cm]{Text}
268 %\end{Verbatim}
269 %This inserts a note which is directly above (|angle=90|) and 3 cm from the target, which is 2 cm to the right of and 1 cm below the block center, and is then rotated 30 degrees. A connection is then drawn from the block center to this target.
270 %
271 %\subsection{Columns and Subcolumns}
272 %\label{sec:postercontents:columns}
273 % \DescribeEnv{columns}
274 %If multicolumn formats are desired, the environment {\color{macro}|columns|} may be used. All blocks generated inside of this environment will be divided into the desired columns with the specified width. To begin a column, use the command {\color{macro}|\column{|\emph{width}|}|}, e.g., \emph{width}|=0.3|{\color{value}|\textwidth|} or \emph{width}|=20cm|. Any blocks created after this will be aligned along a vertical line automatically placed, depending on the number of columns and their widths, as specified inside of the instance of the environment. Formatting errors may arise if the sum of the column
275 % widths is greater than {\color{value}|\textwidth|}. The width of the column may be referred -- for formatting pictures or altering a block's width, for
276 % instance -- by referencing the length {\color{value}|\colwidth|}.
277 %
278 %
279 % \DescribeEnv{subcolumns}
280 % If you wish to create a set of subcolumns in the current column, the environment |subcolumns| can be
281 % used. In this environment, subcolumns are created by {\color{macro}|\subcolumn{|\emph{width}|}|}. However, the width
282 % in the {\color{macro}|\subcolumn|} command is relative now to the current {\color{value}|\colwidth|} and can be referenced by the
283 % length {\color{value}|\subcolwidth|}. The same comments on formatting made above regarding widths and text
284 % length hold here as well.
285
286 % \section{Poster Layout}
287 %\label{sec:posterlayout}
288 %We will describe additional options which govern the appearance of the poster.
289 %There are options for changing the: \vspace{-0.2cm}
290 %\begin{itemize}
291 % \item colors used, \vspace{-0.3cm}
292 % \item background of the poster, \vspace{-0.3cm}
293 % \item the appearance of the title matter, \vspace{-0.3cm}
294 % \item the shapes of the various blocks, \vspace{-0.3cm}
295 % \item the appearance of inner blocks, and \vspace{-0.3cm}
296 % \item the shapes of the notes.
297 %\end{itemize}
298
299 %\DescribeMacro{\usetheme} A poster theme provides the settings for the other options. A theme is called by the command {\color{macro}|\usetheme{|\emph{layout style}|}|} where the argument is either a predefined object name in \texttt{tikzposterLayoutthemes.tex}, or a style defined in the preamble for the appropriate object. Creating styles and their components is described in the following subsections. The predefined themes are \mstyle{|Default|}, \mstyle{|Rays|}, \mstyle{|Basic|}, \mstyle{|Simple|}, \mstyle{|Envelope|}, \mstyle{|Wave|}, \mstyle{|Board|}, \mstyle{|Autumn|}, and \mstyle{|Desert|}.
300 % It should be noted that the user may call {\color{macro}|\usetheme|} and subsequently overwrite any or all components of the layout theme by resetting the different styles contained.
301 %
302 % \subsection{Setting the colors}
303 % \label{sec:color}
304 % The colors used in the poster are defined using two objects: the palette and the style. The palette provides 3 basic colors to be used. There are several included color palettes.
305 % \DescribeMacro{\usecolorpalette} They may be called by the command {\color{macro}|\usecolorpalette{}|}. The included palettes are \mstyle{|Default|}, \mstyle{|BlueGrayOrange|}, \mstyle{|GreenGrayViolet|}, \mstyle{|PurpleGrayBlue|}, \mstyle{|BrownBlueOrange|}.
306 %
307 % \DescribeMacro{\usecolorstyle} The way that these colors are used in the
308 % poster is defined in a color style, which is called by the command
309 % {\color{macro}|\usecolorstyle[|\emph{options}|]{|\emph{style name}|}|}. The
310 % options are the basic colors or the palette to be used. A sample set
311 % of options is\\
312 % {\small|[colorPalette=BrownOrangeBlue,colorOne=blue,colorTwo=black,colorThree=green]|}, which would not be used due to redundancy.
313 %
314 % All styles have a predefined palette as default. The included color styles are named after various countries (please note the associated default palettes are not connected by the names) and are: \mstyle{|Default|}, \mstyle{|Australia|}, \mstyle{|Britain|}, \mstyle{|Sweden|}, \mstyle{|Spain|}, \mstyle{|Russia|}, \mstyle{|Denmark|}, \mstyle{|Germany|}. The color style (with the palette) is used by the styles which define the appearance of the title, blocks, notes, and background. If no color palette or style is
315 % chosen, a default color theme is used.
316 % We now will explain the different components that can have colors assigned to them.
317 %
318 % \DescribeEnv{background colors}
319 % The background has associated with it the colors \mcolor{|backgroundcolor|} and \mcolor{|framecolor|} which are, respectively, the color for the solid background and the color for the outer edges of the poster and the outer edges for all blocks.
320 %
321 % \DescribeEnv{title colors}
322 % The text of the title material of the poster is in the color \mcolor{|titlefgcolor|}. The background of the title material is given by the color \mcolor{|titlebgcolor|}.
323 %
324 % \DescribeEnv{block colors}
325 % The colors for the backgrounds of the blocks can also be defined. The background color of the title portion of
326 % the block may be set with |blocktitlebgcolor| and the background color of the portion of the block with the text
327 % is set by \mcolor{|blockbodybgcolor|}. The text colors for the title and the block contents are set with \mcolor{|blocktitlefgcolor|} and \mcolor{|blockbodyfgcolor|}, respectively.
328 % \DescribeEnv{innerblock colors}
329 %
330 % Inside blocks, the inner blocks will be colored using \mcolor{|innerblocktitlebgcolor|}, \mcolor{|innerblocktitlefgcolor|}, \mcolor{|innerblockbodybgcolor|}, \mcolor{|innerblockbodyfgcolor|} for, respecitvely, the background color of the title, the text color for the title, the background color of the body, and the text color of the body.
331 %
332 % \DescribeEnv{coloredbox colors}
333 % The note background color is used as the default of the background of colored boxes in the blocks.
334 %
335 % \DescribeEnv{note colors}
336 %The note blocks created have background color defined by \mcolor{|notebgcolor|} and text color defined by \mcolor{|notefgcolor|}. The note blocks' frames are colored by \mcolor{|noteframecolor|}.
337 %
338 % \DescribeEnv{text colors}
339 % The relevant text colors may also be individually defined. The color of the text of the title matter is defined via \mcolor{|titlefgcolor|}.
340 % The color of the title text in each block is defined by \mcolor{|blocktitlefgcolor|} and the color of the text of the main portion of the block
341 % is defined by \mcolor{|blockbodyfgcolor|}. Finally, the notes' text uses the color \mcolor{|notefgcolor|}.
342 %
343 % \DescribeMacro{\definecolorpalette}\DescribeMacro{\definecolorstyle} Finally, if one wishes, one may define the color palette and style locally in the preamble. The palette is defined by the command {\color{macro}|\definecolorpalette{|\emph{color palette name}|}{|\emph{definitions}|}|}. A sample palette can defined by
344 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
345 % \definecolorpalette{sampleColorPalette} {
346 % \definecolor{colorOne}{named}{green}
347 % \definecolor{colorTwo}{named}{black}
348 % \definecolor{colorThree}{named}{cyan}
349 % }
350 % \end{Verbatim}
351 % For a style, this is accomplished by {\color{macro}|\definecolorstyle{|\emph{color style name}|}{|\emph{default palette}|}{|\emph{definitions}|}|}. Using the name convention below of \mcolor{|colorOne|}, \mcolor{|colorTwo|}, and \mcolor{|colorThree|} when setting the colors allows the flexibility of various palettes.
352 % A sample color style can be defined by:
353 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
354 % \definecolorstyle{sampleColorStyle} {
355 % \definecolor{colorOne}{named}{blue}
356 % \definecolor{colorTwo}{named}{yellow}
357 % \definecolor{colorThree}{named}{orange}
358 % }{
359 % % Background Colors
360 % \colorlet{backgroundcolor}{colorOne}
361 % \colorlet{framecolor}{black}
362 % % Title Colors
363 % \colorlet{titlefgcolor}{black}
364 % \colorlet{titlebgcolor}{colorOne}
365 % % Block Colors
366 % \colorlet{blocktitlebgcolor}{colorThree}
367 % \colorlet{blocktitlefgcolor}{white}
368 % \colorlet{blockbodybgcolor}{white}
369 % \colorlet{blockbodyfgcolor}{black}
370 % % Innerblock Colors
371 % \colorlet{innerblocktitlebgcolor}{white}
372 % \colorlet{innerblocktitlefgcolor}{black}
373 % \colorlet{innerblockbodybgcolor}{colorThree!30!white}
374 % \colorlet{innerblockbodyfgcolor{black}
375 % % Note colors
376 % \colorlet{notefgcolor}{black}
377 % \colorlet{notebgcolor}{colorTwo!50!white}
378 % \colorlet{noteframecolor}{colorTwo}
379 % }
380 %\end{Verbatim}
381 %
382 % \subsection{Setting the layout}
383 % The basic components of the poster fall into three categories: the title portion, the blocks of content, and smaller notes. General rules for the appearance of the components as well as the background are set by a layout theme. The layout theme is composed of rules for the general shape of the components.
384 %
385 % \DescribeMacro{\definelayouttheme}
386 % One may use, for instance, the \mstyle{|Default|} color style with the \mstyle{|Envelope|} layout.
387 % A sample theme called |sample| may be defined with the following:
388 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
389 % \definelayouttheme{sample}{
390 % \usecolorstyle[colorPalette=sampleColorPalette]{sampleColorStyle}
391 % \usebackgroundstyle{sample}
392 % \usetitlestyle{Test}
393 % \useblockstyle{sample}
394 % \useinnerblockstyle{sample}
395 % \usenotestyle{Corner}
396 % }
397 % \end{Verbatim}
398 % In the following subsections, the styles for background, title, block, innerblock, and notes are described.
399 %
400 %\subsection{Background style}
401 % The background is by default a vertically graded single color depending on the value of \mcolor{|backgroundcolor|} set by the color theme chosen (see Section \ref{sec:color}). If the user wishes to alter this, then in the preamble you can use the {\color{macro}|\usebackgroundstyle{}|} command.
402 % \DescribeMacro{\usebackgroundstyle}
403 % This command takes as argument a name for a setting in the file |tikzBackgrounds.tex|; predefined backgrounds included with the package are: \mstyle{|Default|}, \mstyle{|Rays|}, \mstyle{|VerticalGradation|}, \mstyle{|BottomVerticalGradation|}, \mstyle{|Empty|}.
404 %
405 % \DescribeMacro{\definebackgroundstyle}
406 % If you want to define a custom background style, you can use the commnd {\color{macro}|\definebackgroundstyle{|\emph{style name}|}{|\emph{background commands}|}|}: This command takes as first argument a name for the background and as second argument valid TikZ commands; an example usage of this is:
407 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
408 % \definebackgroundstyle{samplebackgroundstyle}{
409 % \draw[inner sep=0pt, line width=0pt, color=red, fill=backgroundcolor!30!black]
410 % (bottomleft) rectangle (topright);
411 % }
412 %\end{Verbatim}
413 %Following this definition, the preamble should include the command \\
414 %{\color{macro}|\usebackgroundstyle{samplebackgroundstyle}|} either directly or inside of a layout theme.
415 %
416 %In making a custom background, it is important to note that the point $(0,0)$ is the center of the poster (after removing the margins). Additionally, as can be seen from the example commands above, the user has access to several variables. These include:
417 %\begin{itemize}
418 %\item {\color{value}|\textwidth|}: The total width of the available poster space, after creating the margins.
419 %\item {\color{value}|\textheight|}: The total height of the available poster space, after creating the margins.
420 %\item {\color{value}|\titlegraphicheight|}, {\color{value}|\titletotopverticalspace|}, {\color{value}|\titleinnersep|}: See the information in desigining a titlestyle.
421 %\item \mcolor{|backgroundcolor|}: Defined in color theme or by user in preamble (see above).
422 %\item \mnode{|topright|}: a TikZ node defining the top right position poster background.
423 %\item \mnode{|bottomleft|}: a TikZ node defining the bottom left position poster background.
424 %\end{itemize}
425 %
426 % \subsection{Title style}
427 % \label{sec:title}
428 %\DescribeMacro{\usetitlestyle} \DescribeMacro{\definetitlestyle} If the default simple box surrounding the title matter is not desired, the user may use one of the several predefined title styles by using in the preamble {\color{macro}|\usetitlestyle[|\emph{options}|]{|\emph{style name}|}|} where the argument is a style listed in |tikzposterTitlestyles.tex| or the name of a style defined in the preamble. The preset title styles are: \mstyle{|Default|}, \mstyle{|Basic|}, \mstyle{|Envelope|}, \mstyle{|Wave|}, \mstyle{|VerticalShading|}, \mstyle{|Filled|}, \mstyle{|Empty|}. If the user wishes to use a title with a different appearance, then {\color{macro}|\definetitlestyle{|\emph{style name}|}{|\emph{options}|}{|\emph{title commands}|}|}. The available options are those mentioned above. Several parameters which might be helpful when writing a custom title style are:
429 %\begin{itemize}
430 % \item {\color{value}|\textwidth|}: The width of the poster contents, similar to the standard usage in \LaTeX, albeit having incorporated both margins set in the document class' options.
431 % \item {\color{value}|\textheight|}: Same as the standard \LaTeX usage.
432 % \item {\color{value}|\titlewidth|}: Stores the value passed from the options in {\color{macro}|\maketitle|}.
433 % \item {\color{value}|\titlegraphicheight|}: Height of the defined title graphic.
434 % \item {\color{value}|\titlelinewidth|}, {\color{value}|\titleinnersep|}: Line width and inner sep.
435 % \item {\color{value}|\titletotopverticalspace|}: Spacing between the upper edge of the poster (after including margins) and the upper edge of the title.
436 % \item \mcolor{|titlebgcolor|}: As defined in the color style.
437 % \item {\color{value}|\titleposleft|}, {\color{value}|\titleposright|}, {\color{value}|\titleposbottom|}, {\color{value}|\titlepostop|}: The horizontal (resp. vertical) coordinates of the left and right (resp. bottom and top) edges of the title portion.
438 %\end{itemize}
439 %A sample title style is shown below
440
441 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
442 % \definetitlestyle{sampletitle}{
443 % width=500mm, roundedcorners=20, linewidth=2pt, innersep=5pt,
444 % titletotopverticalspace=15mm, titletoblockverticalspace=30mm
445 % }{
446 % \begin{scope}[line width=\titlelinewidth, rounded corners=\titleroundedcorners]
447 % \draw[color=blocktitlebgcolor, fill=titlebgcolor]
448 % (\titleposleft,\titleposbottom) rectangle (\titleposright,\titlepostop);
449 % \end{scope}
450 % }
451 % \end{Verbatim}
452 % and could be called using {\color{macro}|\usetitlestyle{sampletitle}|}. For more information on the available variables to assist in designing a custom title style, please refer to the Appendix.
453 %
454 % \subsection{Block style}
455 % \DescribeMacro{\useblockstyle} \DescribeMacro{\defineblockstyle}
456 % If the user wishes to use blocks with a different style, he or she may use {\color{macro}|\useblockstyle[|\emph{options}|]{|\emph{style name}|}|}. This loads either prewritten styles available in
457 %\texttt{tikzposterBlockstyles.tex} or custom styles. The predefined styles are \mstyle{|Default|}, \mstyle{|Basic|}, \mstyle{|Minimal|}, \mstyle{|Envelope|}, \mstyle{|Corner|}, \mstyle{|Slide|}, \mstyle{|TornOut|}. The user can also create a custom block style, in the preamble via the command {\color{macro}|\defineblockstyle{|\emph{stylename}|}{| \emph{default values}|}{|\emph{commands}|}|} which contains the name of the style, the default values (see below) of relevant parameters; and a definition for drawing a block and (if wanted) the title composed of TikZ commands. A sample definition of this might be
458 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
459 % \defineblockstyle{sampleblockstyle}{
460 % titlewidthscale=0.9, bodywidthscale=1,titleleft,
461 % titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0mm, bodyoffsety=15mm,
462 % bodyverticalshift=10mm, roundedcorners=5, linewidth=2pt,
463 % titleinnersep=6mm, bodyinnersep=1cm
464 % }{
465 % \draw[color=framecolor, fill=blockbodybgcolor,
466 % rounded corners=\blockroundedcorners] (blockbody.south west)
467 % rectangle (blockbody.north east);
468 % \ifBlockHasTitle
469 % \draw[color=framecolor, fill=blocktitlebgcolor,
470 % rounded corners=\blockroundedcorners] (blocktitle.south west)
471 % rectangle (blocktitle.north east);
472 % \fi
473 % }
474 %\end{Verbatim}
475 % At any point, the user may change the block style used for subsequent blocks by using {\color{macro}|\useblockstyle{}|} with the new style. The block will then draw the objects as defined by {\color{macro}|\defineblockstyle|} and afterwards put the contents in those positions. The parameters that may be assigned default values and referenced in the commands are {\color{value}|\blockroundedcorners|}, {\color{value}|\blocklinewidth|}, {\color{value}|\blockbodyinnersep|}, and {\color{value}|\blocktitleinnersep|}; if this is not done, preset default values are used. These are used for values in TikZ commands that use the parameters for rounded corners, line width (for the edge of the block), inner sep for the body content and title, respectively.
476 %
477 % As can be seen, when creating the style, the user has access to several parameters. They are computed after the class determines, under the rules of formatting and given the width of the block, dimensions of the block. These, aside from those already mentioned, include:
478 %\begin{itemize}
479 %\item {\color{value}|\ifBlockhasTitle|}: A boolean for whether the block has nonempty first argument;
480 %\item \mnode{|blocktitle|}: A TikZ node defining the appropriate position of the title subject to the spacing rules and the length/width of the title;
481 %\item \mnode{|blockbody|}: A TikZ node defining the appropriate position of the body subject to the spacing rules and the length/width of the body and title(assuming the title is above the body);
482 %\item {\color{value}|\blockroundedcorners|}, {\color{value}|\blocklinewidth|}, {\color{value}|\blockbodyinnersep|}, and \\
483 %{\color{value}|\blocktitleinnersep|}: Parameters passed from the options of the block.
484 %\item \mcolor{|framecolor|}, \mcolor{|blocktitlebgcolor|}, \mcolor{|blockbodybgcolor|}: Determined by the chosen color scheme.
485 %\end{itemize}
486 %\subsection{Inner Block styles}\label{sec:innerblockstyles}
487 % \DescribeMacro{\useinnerblockstyle}\DescribeMacro{\defineinnerblockstyle} If
488 % one wishes, inner blocks may have their appearance changed by the command
489 % {\color{macro}|\useinnerblockstyle{|\emph{style name}|}|}. The included
490 % styles are \mstyle{|Default|} and \mstyle{|Table|}, along with copies of the
491 % styles for blocks. If the user wants, additional inner block styles may be
492 % created with the command
493 % {\color{macro}|\defineinnerblockstyle{|\emph{stylename}|}| |{|\emph{default
494 % values}|}{|\emph{commands}|}|}. The relevant parameters are:
495 % \begin{itemize}
496 % \item {\color{value}|\ifInnerblockHasTitle|}: A boolean denoting whether the inner block has nonempty first argument
497 %\item \mnode{|innerblocktitle|}, \mnode{|innerblockbody|}: TikZ nodes for the position of the heading and body of the inner block.
498 % \item {\color{value}|\innerblockroundedcorners|}, {\color{value}|\innerblocklinewidth|}, \\ {\color{value}|\innerblockbodyinnersep|}, and {\color{value}|\innerblocktitleinnersep|} : Parameters passed from the options of the inner block.
499 % \item \mcolor{|innerblockbodybgcolor|}, \mcolor{|innerblocktitlebgcolor|}, \mcolor{|framecolor|}: Colors determined by the chosen color scheme, or passed as options.
500 % \end{itemize}
501 % Styles are similar in structure as those for blocks.
502 % \subsection{Note style}
503 %\DescribeMacro{\usenotestyle}
504 %If one wishes, alternative note appearances may be used. If the user wants to use one of the included note styles |Default|, |Corner|, |VerticalShading|, or |Sticky|, then the command {\color{macro}|\usenotestyle[|\emph{options}|]{|\emph{style name}|}|} may be employed.
505 %
506 % \DescribeMacro{\definenotestyle}Alternatively, one may include in either the preamble or inside of the document the command {\color{macro}|\definenotestyle{|\emph{note style name}|}{|\emph{default values}|}{|\emph{commands}|}|} where the inputs are the name of the style, default values for relevant format options and valid TikZ commands for drawing the note. In the use of {\color{macro}|\definenotestyle|}, the user may make use of the following parameters:
507 %\begin{itemize}
508 %\item {\color{value}|\ifNoteHasConnection|}: A boolean denoting whether |connection| has been included as an option;
509 %\item \mnode{|notetarget|}: A TikZ node defining the placement of the note target;
510 %\item \mnode{|notecenter|}: A TikZ node defining the placement of the center of the note;
511 %\item {\color{value}|\noterotate|}: The angle the entire note should be rotated;
512 %\item {\color{value}|\notelinewidth|}, {\color{value}|\noteroundedcorners|}, {\color{value}|\noteinnersep|}: Values from either the default values or from the user passing options corresponding to the width of the outer edge of the note, the roundedness of the corners, and the separation between the note edge and contents, respectively.
513 %\item \mcolor{|noteframecolor|}, \mcolor{|notefgcolor|}, \mcolor{|notebgcolor|}: Colors defined in the color them (see above).
514 %\end{itemize}
515 %An example style may be defined via the command:
516 %\begin{Verbatim}[samepage=true,gobble=1, fontsize=\small]
517 % \definenotestyle{samplenotestyle}{
518 % targetoffsetx=0pt, targetoffsety=0pt, angle=45, radius=8cm,
519 % width=6cm, connection=true, rotate=0, roundedcorners=0, linewidth=1pt,
520 % innersep=0pt%
521 % }{
522 % \ifNoteHasConnection
523 % \draw[thick] (notecenter) -- (notetarget) node{$\bullet$};
524 % \fi
525 % \draw[draw=notebgcolor,fill=notebgcolor,rotate=\noterotate]
526 % (notecenter.south west) rectangle (notecenter.north east);
527 % }
528 %\end{Verbatim}
529 %
530 %
531 % \section{Poster template}
532 % \label{sec:template}
533 % \setcounter{CodelineNo}{0}
534 %
535 % The following \LaTeX\ document is intended to be used as a template. It has a minimal set of inputs. Included
536 % with the package is an additional \texttt{tikzposter-example.tex} which has more extensive comments and additional options
537 % implemented, see Section \ref{sec-example}.\vspace{1cm}
538 %
539 % \setcounter{CodelineNo}{0}
540 % \begin{macrocode}
541 %<*tikzposter-template.tex>
542 % \end{macrocode}
543 % \begin{macrocode}
544 \documentclass{tikzposter} %Options for format can be included here
545
546 % Title, Author, Institute
547 \title{Template Poster}
548 \author{Author(s)}
549 \institute{Institute}
550 \titlegraphic{LogoGraphic Inserted Here}
551
552 %Choose Layout
553 \usetheme{Default}
554
555 \begin{document}
556
557 % Title block with title, author, logo, etc.
558 \maketitle
559 \block{Basic Block}{Text}
560 \begin{columns}
561
562 % FIRST column
563 \column{0.6}% Width set relative to text width
564
565 \block{Large Column}{Text\\Text\\Text Text Text}
566 \note{Note with default behavior}
567 \note[targetoffsetx=12cm, targetoffsety=-1cm, angle=20, rotate=25]
568 {Note \\ offset and rotated}
569
570 % First column - second block
571 \block{Block titles with enough text will automatically obey spacing requirements }
572 {Text\\Text}
573
574 % First column - third block
575 \block{Sample Block 4}{T\\E\\S\\T}
576
577 % SECOND column
578 \column{0.4}
579 %Second column with first block's top edge aligned with with previous column's top.
580
581 % Second column - first block
582 \block[titleleft]{Smaller Column}{Test}
583
584 % Second column - second block
585 \block[titlewidthscale=0.6, bodywidthscale=0.8]
586 {Variable width title}{Block with smaller width.}
587
588 % Second column - third block
589 \block{}{Block with no title}
590
591 % Second column - A collection of blocks in subcolumn environment.
592 \begin{subcolumns}
593 \subcolumn{0.27} \block{1}{First block.} \block{2}{Second block}
594 \subcolumn{0.4} \block{Sub-columns}{Sample subblocks\\Second subcolumn}
595 \subcolumn{0.33} \block{4}{Fourth} \block{}{Final Subcolumn block}
596 \end{subcolumns}
597
598 % Bottomblock
599 \block{Final Block in column}{
600 Sample block.
601 }
602 \end{columns}
603 \block[titleleft, titleoffsetx=2em, titleoffsety=1em, bodyoffsetx=2em,%
604 bodyoffsety=-2cm, roundedcorners=10, linewidth=0mm, titlewidthscale=0.7,%
605 bodywidthscale=0.9, bodyverticalshift=2cm, titleright]
606 {Block outside of Columns}{Along with several options enabled}
607
608 \end{document}
609 % \end{macrocode}
610 % \begin{macrocode}
611 %</tikzposter-template.tex>
612 % \end{macrocode}
613 %
614 % \section{Poster example}
615 % \label{sec-example}
616 % Included in the class directory is an example tex file |tikzposter-example.tex|. This demonstrates the various options available, as opposed to the minimal working copy \texttt{tikzposter-template.tex}.
617 %
618 %
619 %\section{Appendix}\label{sec:appendix}
620 %\subsection{Available variables}
621 %If one wishes to create their own themes/styles/etc, the following variables which govern positioning, spacing, and appearance may be of use. They may be used within themes, title styles, block styles, and note styles. Please note that each of these are defined and then passed to the style; they may then be referenced and redefined inside of a style. However, not all are local to that block; only those that are noted as being redefined.
622 %\begin{itemize}
623 % \item {\color{value}|\TP@visibletextwidth|}, {\color{value}|\TP@visibletextheight|}: The width and height of the poster material. Excludes the margin length set in the option.
624 % \item {\color{value}|\TP@titleinnersep|}, {\color{value}|\TP@titletoblockverticalspace|}: Defined in options of the document. May be redefined in a theme.
625 % \item {\color{value}|\titlewidth|}, {\color{value}|\titleheight|}: Width and height of the title block.
626 % \item {\color{value}|\titlegraphicheight|}: The height of graphic used in the title.
627 % \item {\color{value}|\titletotopverticalspace|}: Defined in the options.
628 % \item {\color{value}|\TP@colspace|}, {\color{value}|\TP@coltop|}, {\color{value}|\TP@colbottom|}, {\color{value}|\TP@colcenter|}, {\color{value}|\TP@colwidth|}: The space between columns, defined in the options, the y-coordinate of the current column's beginning, end, center axis, and absolute width, respectively.
629 % \item {\color{value}|\TP@subcolspace|}, {\color{value}|\TP@subcoltop|}, {\color{value}|\TP@subcolbottom|}, {\color{value}|\TP@subcolcenter|}, {\color{value}|\subcolwidth|}: The same lengths, in the subcolumn environment.
630 % \item {\color{value}|\TP@blockverticalspace|},
631 % {\color{value}|\TP@blocktitleinnersep|}, {\color{value}|\TP@blockbodyinnersep|}: Spacing rules for blocks, defined in options.
632 % \item {\color{value}|\TP@blockcenter|}: Horizontal position of the center of the current block; it is redefined for each call to the {\color{macro}|\block|} command.
633 % \item {\color{value}|\blockwidth|}, {\color{value}|\blockbodyheight|}, {\color{value}|\blocktitleheight|}: Dimensions of the current block's components; it is redefined for each call to the {\color{macro}|\block|} command.
634 % \item {\color{value}|\TP@blocktop|}: The y-coordinate of the top edge of the block (including the title if it exists).
635 % \item {\color{value}|\TP@blocktitleoffsetx|}, {\color{value}|\TP@blocktitleoffsety|}: Shifts to the position of the block title component; each call to {\color{macro}|\block|} resets them to 0.
636 % \item {\color{value}|\TP@blockbodyoffsetx|}, {\color{value}|\TP@blockbodyoffsety|}: Similar to the above, but for the block's body component; also reset to 0 with each {\color{macro}|\block|} call.
637 % \item {\color{value}|\blockroundedcorners|}, {\color{value}|\blocklinewidth|}, {\color{value}|\blockbodyinnersep|}, {\color{value}|\blocktitleinnersep|}: Values passed by the user with each block, or defined in a block style, which give the values to be used for TiKz draw parameters rounded corners, line width, and inner seps of the body and title, respectively. These may have default values defined in a style/theme using the functions: {\color{macro}|\setblockDefaultroundedcorners{}|}, {\color{macro}|\setblockDefaultlinewidth{}|}, \\
638 % {\color{macro}|\setblockDefaultbodyinnersep{}|}, and {\color{macro}|\setblockDefaulttitleinnersep{}|}. If the user does not specify these values in the options of the block call, the defaults are used.
639 % \item {\color{value}|\TP@noteinnersep|}: Defined in the options
640 % \item {\color{value}|\TP@noteradius|}, {\color{value}|\TP@notetargetoffsetx|}, {\color{value}|\TP@notetargetoffsety|}, {\color{value}|\notewidth|}: Arguments optionally passed from the {\color{macro}|\note|} command; redefined for each call to {\color{macro}|\note|}.
641 % \item {\color{value}|\noteheight|}: The height of the current note computed according to size of contents and {\color{value}|\notewidth|}; redefine with each call to {\color{macro}|\note|}.
642 % \item {\color{value}|\noteroundedcorners|}, {\color{value}|\notelinewidth|}, {\color{value}|\noteinnersep|}: Values passed by the user with each note, or defined in a note style, which give the values to be used for TiKz draw parameters rounded corners, line width, and inner seps of the body and title, respectively. These may have default values defined in a style/theme using the functions: {\color{macro}|\setnoteDefaultroundedcorners{}|}, {\color{macro}|\setnoteDefaultlinewidth{}|}, and {\color{macro}|\setnoteDefaultbodyinnersep{}|}. If the user does not set in a note call the options, the defaults are used.
643 %\end{itemize}
644 %Additionally, several nodes are defined for the title and the blocks. These
645 %should be used when defining block styles and title styles. The
646 %\mnode{|title|} node is the main node for the title material which spans
647 %an area large enough to cover the entirety of the title material as formatted
648 %with the {\color{macro}|\settitle|} command. The vertical and horizontal
649 %positions of the title are stored as {\color{value}|\titlepostop|}, {\color{value}|\titleposbottom|}, {\color{value}|\titleposleft|}, and {\color{value}|\titleposright|}. For blocks, \mnode{|blocktitle|} and \mnode{|blockbody|} are nodes which cover the extent of the relevant components.
650 %
651 % \StopEventually{}
652 % \setcounter{CodelineNo}{0}
653 % \begin{macrocode}
654 %<*tikzposter-example.tex>
655 % \end{macrocode}
656 %
657 % \begin{macrocode}
658
659 \documentclass[25pt, a0paper, portrait, margin=0mm, innermargin=15mm,
660 blockverticalspace=15mm, colspace=15mm, subcolspace=8mm]{tikzposter} %Default values for poster format options.
661
662 \tikzposterlatexaffectionproofon %shows small comment on how the poster was made at bottom of poster
663
664 % Commands
665 \newcommand{\bs}{\textbackslash} % backslash
666 \newcommand{\cmd}[1]{{\bf \color{red}#1}} % highlights command
667
668 % Title, Author, Institute
669 \title{Using tikzposter}
670 \author{Pascal Richter, Elena Botoeva, Richard Barnard, \& Dirk Surmann}
671 \institute{}
672
673 % -- PREDEFINED THEMES ---------------------- %
674 % Choose LAYOUT: Default, Basic, Rays, Simple, Envelope, Wave, Board, Autumn, Desert,
675 \usetheme{Autumn}
676 \usecolorstyle[colorPalette=BrownBlueOrange]{Germany}
677
678 % - Predefined background styles: Default, Rays, VerticalGradation, BottomVerticalGradation, Empty
679 % \usebackgroundstyle{Rays}
680 %
681 % - Predefined title styles: Default, Basic, Envelope, Wave, VerticalShading, Filled, Empty
682 % \usetitlestyle[width=400mm]{Filled}
683 %
684 % - Predefined block styles: Default, Basic, Minimal, Envelope, Corner, Slide, TornOut
685 % \useblockstyle[bodyinnersep=1cm]{Envelope}
686 %
687 % - Predefined innerblock styles: Default, Table, Basic, Minimal, Envelope, Corner, Slide, TornOut
688 % \useinnerblockstyle{Table}
689 %
690 % % - Predefined note styles: Default, Corner, VerticalShading, Sticky
691 % \usenotestyle[rotate=50]{VerticalShading}
692
693 \begin{document}
694
695 \maketitle
696
697 \begin{columns}%blocks will be placed into columns
698 \column{.55}
699 \block[roundedcorners=40]{Creating the document}{
700 The document begins with:
701 \begin{quote}
702 \texttt{\bs documentclass[25pt, a0paper, portrait, margin=10mm, innermargin=15mm,
703 blockverticalspace=15mm, colspace=15mm, subcolspace=8mm]\{tikzposter\}\\
704 \bs title\{Title\}\\
705 \bs author\{Author(s)\}\\
706 \bs institute\{Institute \}\\
707 \bs titlegraphic\{Logo\}\\
708 \bs begin\{document\}\\
709 \bs maketitle}
710 \\ \dots \end{quote}
711
712 \begin{tikzfigure}[A figure can be made with \bs \texttt{tikzfigure}; \bs\texttt{figure} does not work]
713 \begin{tikzpicture}
714 \draw[draw=none,inner color=red, outer color=green] (0,0) circle (1.5cm);
715 \end{tikzpicture}
716 \end{tikzfigure}
717 \innerblock[]{Inner Blocks}{Inner blocks may be created inside of blocks with the command \bs\texttt{innerblock[{\it options}]\{{\it Heading}\}\{{\it Text}\}} }
718 \coloredbox{Text may be highlighted using colored boxes created by \bs\texttt{coloredbox[{\it options}]\{{\it Text\}}}}
719
720 }
721 \note[targetoffsetx=-.05\textwidth,targetoffsety=9.5cm,innersep=.4cm,angle=-45,connection]{Optional arguments for the format of the poster}
722 \block{The title matter}{
723 The title is made by the standard \texttt{\bs maketitle[{\it options}]} command where you can alter the \texttt{width}, the spacing between the title and top of the poster (\texttt{titletotopverticalspace}), the bottom of the title to the main content of the poster (\texttt{titletoblockverticalspace}) and the space between the title information and the logo (\texttt{titlegraphictotitleverticalspace}).
724
725 If the default format of the title is not to your liking, you can define the placement of the different items via the \texttt{\bs settitle} command, described in the manual.
726 }
727 \block{Blocks}{
728 Blocks are arranged in a grid, by default, with width by default \texttt{\bs textwdith}. They are created by the command
729 \begin{quote}
730 \bs\texttt{block [{\it options}] \{{\it title}\}\{{\it contents}\}}
731 \end{quote}
732 The title may be left empty, resulting in no title area being created for the block (as seen in a later block to the right). Further blocks will be placed below automatically, at a distance defined by \texttt{blockverticalspace}.
733
734 If you want to change the position of the title matter or the contents in the block, you may by setting in the options
735 \begin{quote}
736 \texttt{titleoffsetx, titleoffsety, bodyoffsetx, bodyoffsety}
737 \end{quote}
738 which let you adjust the vertical or horizontal position of the two parts of the block, respectively. You can also make, relative to the default width, the title and block body by setting
739 \begin{quote}
740 \texttt{titlewidthscale, bodywidthscale}
741 \end{quote}
742 The title's alignment can be set by \texttt{titleleft, titlecenter, titleright}, the body may be shifted vertically by setting \texttt{bodyverticalshift}, and the shape of the block can be altered by setting \texttt{roundedcorners, linewidth}. The inner margins of the title can by set by \texttt{titleinnersep,bodyinnersep}.
743 }
744
745 \note[targetoffsetx=24cm, targetoffsety=-9cm,rotate=1,angle=270,radius=8cm,width=.75\textwidth,innersep=.4cm]{
746 You can place notes that are ``attached'' to the previous block using the command
747 \begin{quote} \texttt{\bs note[{\it options}]\{{\it contents}\}}\end{quote}
748 The note is placed by default slightly to the right of a ``target'' in the center of the previous block. The note style may also allow for a connection between the note and the ``target''. \\
749 The target may be shifted from the default by setting the options \texttt{targetoffsetx, targetoffsety}, rotated by an angle with \texttt{rotate}, and its width with \texttt{width}. The placement of the note in relation with the target is given in polar coordinates with \texttt{ radius, angle}. Please observe that notes are always drawn {\bf over} the other objects. They do not affect the placement of blocks.
750 }
751
752 \column{.45}
753 \block{Columns}{
754 By default, blocks are arranged in a single column. If you want multiple columns for your poster, you may use the \texttt{columns} environment. For example,
755 \begin{quote}
756 \texttt{\noindent \bs begin\{columns\}\\
757 \bs column\{.6\}\\
758 \bs block\{\dots\}\{\dots\}\\
759 \bs column\{.4\}\\
760 \bs block\{\dots\}\{\dots\}\\
761 \bs block\{\dots\}\{\dots\}\\
762 \bs end\{columns\}
763 }
764 \end{quote}
765 will create two columns of 60\% and 40\% the available width; spacing between successive columns is handled automatically. The block command(s) following \texttt{\bs column} are the blocks to go in that column. The number of columns is free to be chosen, but the relative widths must all be chosen. If the widths sum to less than 1, empty space will be seen on the right. If they sum to more than 1, the latter columns will be cut off.
766 }
767
768 \begin{subcolumns}
769 \subcolumn{.45}
770 \block{Subcolumns}{If you want to have an additional subdivision of columns inside a column, you may use the\\ \texttt{\bs subcolumns} environment inside of a column environment. The functionality is similar to that of columns, but now the widths are relative to the width of the current column.}
771
772 \subcolumn{.5}
773 \block{}{An example use of subcolumns is.
774 \begin{quote}
775 \texttt{\bs begin\{subcolumns\}\\
776 \bs subcolumn\{.6\}\\
777 \bs block\{\dots\}\{\dots\}\\
778 \bs subcolumn\{.4\}\\
779 \bs block\{\dots\}\{\dots\}\\
780 \bs block\{\dots\}\{\dots\}\\
781 \bs end\{subcolumns\}
782 }
783 \end{quote}
784 }
785 \end{subcolumns}
786
787 \block[titlewidthscale=.8,bodywidthscale=.9,titleoffsety=9.5mm,bodyoffsety=9mm]{Changing the Poster's Appearance}{
788 If the default appearance of the title, background, blocks, and notes is not desired, you may change the colors by calling the color style along with a general layout theme with the commands
789 \begin{quote}
790 \texttt{\bs usecolorpalette}\{{\em color palette}\}\\
791 \texttt{\bs usecolorstyle\{{\em color style}\}}
792 \end{quote}
793 and
794 \begin{quote}
795 \texttt{\bs usetheme\{{\em layout style}\}}
796 \end{quote}
797 where the color palette and style and layout style are either the name of a custom made or one of the offered predefined choices listed in the manual or the comments of this poster's source. Individual changes can be made to the style of the background, title matter, blocks, inner blocks, and notes by using one of the following (along with either a custom-designed style or a predefined style listed in the manual or the comments of this poster's source). These changes are made with the commands
798 \begin{quote}
799 \texttt{\bs usebackgroundstyle[]\{\}, \bs usetitlestyle[]\{\},\\ \bs useblockstyle[]\{\},\bs innerblockstyle[]\{\}, \bs usenotestyle[]\{\}}
800 \end{quote}
801 Custom styles for these can be made; this is detailed in the manual.
802 }
803
804 \end{columns}
805
806 \block[titleoffsety=-1cm,bodyoffsety=-1cm]{Sample document}{\vspace{2em}
807 This poster was created by the following commands (omitting the contents of the blocks and notes) to give a sense of how different objects are created and options used.
808 \begin{quote}
809 \texttt{\bs documentclass[25pt, a0paper, portrait, margin=0mm, innermargin=15mm,
810 blockverticalspace=15mm, colspace=15mm, subcolspace=8mm]\{tikzposter\}\\
811 \bs title\{Using tikzposter\} \bs author\{Pascal Richter, Elena Botoeva, Richard Barnard, \& Dirk Surmann\} \bs institute\{\}\\
812 \bs usetheme\{Autumn\}\bs usecolorstyle[colorPalette=BrownBlueOrange]\{Germany\}\\
813 \bs begin\{document\}\bs maketitle\\
814 \bs begin\{columns\} \bs column\{0.55\}\\
815 \bs block\{Creating the document\}\{The document\dots\} \bs note[targetoffsetx=-.05\bs textwidth,targetoffsety=9.5cm,innersep=.4cm,angle=-45,connection]\{\dots\}\\
816 \bs block\{The title matter\}\{The title\dots\}\\
817 \bs block\{Blocks\}\{Blocks are\dots\} \bs note[targetoffsetx=24cm, targetoffsety=-9cm,rotate=1,angle=270,radius=8cm,width=.75\bs textwidth,innersep=.4cm]\{You can\dots\}\\
818 \bs column\{0.45\} \bs block\{Columns\}\{By default,\dots\}\\
819 \bs begin\{subcolumns\} \bs subcolumn\{.45\}
820 \bs block\{Subcolumns\}\{If you\dots\}
821 \bs subcolumn\{.5\} \bs block\{\}\{An example\dots\}
822 \bs end\{subcolumns\}\\
823 \bs block[titlewidthscale=.8,bodywidthscale=.9,titleoffsety=9.5mm,bodyoffsety=9mm]\{Changing the Poster's Appearance\}\{If the default\dots\}
824 \bs end\{columns\}\\
825 \bs block[titleoffsety=-1cm,bodyoffsety=-1cm]\{Sample document\}\{This poster\dots\}\\
826 \bs end\{document\}
827 }
828 \end{quote}
829 }
830
831 \end{document}
832
833 % \end{macrocode}
834 % \begin{macrocode}
835 %</tikzposter-example.tex>
836 % \end{macrocode}
837 %
838 % \section{Implementation}
839 % \subsection*{Color themes}
840 % \setcounter{CodelineNo}{0}
841 % \begin{macrocode}
842 %<*tikzposterColorstyles.tex>
843 % \end{macrocode}
844 % \begin{macrocode}
845
846 \definecolorstyle{Default}{
847 % Define default colors
848 % GrayBlueYellow
849 \definecolor{colorOne}{HTML}{DDDDDD}
850 \definecolor{colorTwo}{HTML}{0066A8}
851 \definecolor{colorThree}{HTML}{FCE565}%FCF0AD}
852 }{
853 % Background Colors
854 \colorlet{backgroundcolor}{colorOne}
855 \colorlet{framecolor}{colorTwo}
856 % Title Colors
857 \colorlet{titlefgcolor}{black}
858 \colorlet{titlebgcolor}{white}
859 % Block Colors
860 \colorlet{blocktitlebgcolor}{colorTwo}
861 \colorlet{blocktitlefgcolor}{white}
862 \colorlet{blockbodybgcolor}{white}
863 \colorlet{blockbodyfgcolor}{black}
864 % Innerblock Colors
865 \colorlet{innerblocktitlebgcolor}{colorThree}
866 \colorlet{innerblocktitlefgcolor}{black}
867 \colorlet{innerblockbodybgcolor}{white}
868 \colorlet{innerblockbodyfgcolor}{black}
869 % Note colors
870 \colorlet{notefgcolor}{black}
871 \colorlet{notebgcolor}{colorThree!70!white}
872 \colorlet{notefrcolor}{colorThree}
873 }
874
875 \definecolorstyle{Australia}{
876 % Define default colors
877 %GreenGrayViolet
878 \definecolor{colorOne}{HTML}{A2E2C7}
879 \definecolor{colorTwo}{HTML}{56555A}
880 \definecolor{colorThree}{HTML}{C9AECF}
881 }{
882 % Background Colors
883 \colorlet{backgroundcolor}{colorOne}
884 \colorlet{framecolor}{colorOne!50!colorTwo}
885 % Title Colors
886 \colorlet{titlefgcolor}{black}
887 \colorlet{titlebgcolor}{white}
888 % Block Colors
889 \colorlet{blocktitlebgcolor}{colorTwo}
890 \colorlet{blocktitlefgcolor}{white}
891 \colorlet{blockbodybgcolor}{white}
892 \colorlet{blockbodyfgcolor}{black}
893 % Innerblock Colors
894 \colorlet{innerblocktitlebgcolor}{colorThree}
895 \colorlet{innerblocktitlefgcolor}{black}
896 \colorlet{innerblockbodybgcolor}{white}
897 \colorlet{innerblockbodyfgcolor}{black}
898 % Note colors
899 \colorlet{notefgcolor}{black}
900 \colorlet{notebgcolor}{colorThree}
901 \colorlet{notefrcolor}{colorThree}
902 }
903
904 \definecolorstyle{Britain}{
905 % Define default colors
906 % BlueGrayOrange
907 \definecolor{colorOne}{HTML}{116699}
908 \definecolor{colorTwo}{HTML}{CCCCCC}
909 \definecolor{colorThree}{HTML}{CC6633}
910 }{
911 % Background Colors
912 \colorlet{backgroundcolor}{colorOne}
913 \colorlet{framecolor}{colorTwo}
914 % Title Colors
915 \colorlet{titlefgcolor}{black}
916 \colorlet{titlebgcolor}{white}
917 % Block Colors
918 \colorlet{blocktitlebgcolor}{colorTwo}
919 \colorlet{blocktitlefgcolor}{colorOne}
920 \colorlet{blockbodybgcolor}{white}
921 \colorlet{blockbodyfgcolor}{black}
922 % Innerblock Colors
923 \colorlet{innerblocktitlebgcolor}{colorThree}
924 \colorlet{innerblocktitlefgcolor}{white}
925 \colorlet{innerblockbodybgcolor}{white}
926 \colorlet{innerblockbodyfgcolor}{black}
927 % Note colors
928 \colorlet{notefgcolor}{black}
929 \colorlet{notebgcolor}{colorThree!40!white}
930 \colorlet{notefrcolor}{colorThree!60!white}
931 }
932
933 \definecolorstyle{Sweden}{
934 % Define default colors
935 % BlueGrayOrange
936 \definecolor{colorOne}{HTML}{116699}
937 \definecolor{colorTwo}{HTML}{CCCCCC}
938 \definecolor{colorThree}{HTML}{CC6633}
939 }{
940 % Background Colors
941 \colorlet{backgroundcolor}{colorOne!40!white}
942 \colorlet{framecolor}{colorTwo}
943 % Title Colors
944 \colorlet{titlefgcolor}{black}
945 \colorlet{titlebgcolor}{white}
946 % Block Colors
947 \colorlet{blocktitlebgcolor}{colorTwo!70!black}
948 \colorlet{blocktitlefgcolor}{colorOne}
949 \colorlet{blockbodybgcolor}{white!90!colorTwo}
950 \colorlet{blockbodyfgcolor}{black}
951 % Innerblock Colors
952 \colorlet{innerblocktitlebgcolor}{colorThree}
953 \colorlet{innerblocktitlefgcolor}{white}
954 \colorlet{innerblockbodybgcolor}{white}
955 \colorlet{innerblockbodyfgcolor}{black}
956 % Note colors
957 \colorlet{notefgcolor}{black}
958 \colorlet{notebgcolor}{colorThree!50!white}
959 \colorlet{notefrcolor}{colorThree!50!white}
960 }
961
962 \definecolorstyle{Spain}{
963 % Define default colors
964 % BlueGrayOrange
965 \definecolor{colorOne}{HTML}{116699}
966 \definecolor{colorTwo}{HTML}{CCCCCC}
967 \definecolor{colorThree}{HTML}{CC6633}
968 }{
969 % Background Colors
970 \colorlet{backgroundcolor}{colorOne!55!white}
971 \colorlet{framecolor}{colorTwo}
972 % Title Colors
973 \colorlet{titlefgcolor}{white}
974 \colorlet{titlebgcolor}{colorOne}
975 % Block Colors
976 \colorlet{blocktitlebgcolor}{colorOne!80!black}
977 \colorlet{blocktitlefgcolor}{white}
978 \colorlet{blockbodybgcolor}{white}
979 \colorlet{blockbodyfgcolor}{black}
980 % Innerblock Colors
981 \colorlet{innerblocktitlebgcolor}{colorThree}
982 \colorlet{innerblocktitlefgcolor}{white}
983 \colorlet{innerblockbodybgcolor}{white}
984 \colorlet{innerblockbodyfgcolor}{black}
985 % Note colors
986 \colorlet{notefgcolor}{black}
987 \colorlet{notebgcolor}{colorThree!50!white}
988 \colorlet{notefrcolor}{colorThree}
989 }
990
991 \definecolorstyle{Russia}{
992 % Define default colors
993 % BlueGrayOrange
994 \definecolor{colorOne}{HTML}{116699}
995 \definecolor{colorTwo}{HTML}{CCCCCC}
996 \definecolor{colorThree}{HTML}{CC6633}
997 }{
998 % Background Colors
999 \colorlet{backgroundcolor}{white}
1000 \colorlet{framecolor}{colorOne!50!colorThree!30!}
1001 % Title Colors
1002 \colorlet{titlefgcolor}{white}
1003 \colorlet{titlebgcolor}{colorOne!70!black}
1004 % Block Colors
1005 \colorlet{blocktitlebgcolor}{colorThree!80!colorTwo!80!black}
1006 \colorlet{blocktitlefgcolor}{white}
1007 \colorlet{blockbodybgcolor}{colorTwo!40}
1008 \colorlet{blockbodyfgcolor}{black}
1009 % Innerblock Colors
1010 \colorlet{innerblocktitlebgcolor}{colorTwo!40}
1011 \colorlet{innerblocktitlefgcolor}{black}
1012 \colorlet{innerblockbodybgcolor}{colorTwo}
1013 \colorlet{innerblockbodyfgcolor}{black}
1014 % Note colors
1015 \colorlet{notefgcolor}{black}
1016 \colorlet{notebgcolor}{colorTwo}
1017 \colorlet{notefrcolor}{colorTwo}
1018 }
1019
1020 \definecolorstyle{Denmark}{
1021 % Define default colors
1022 % PurpleGrayBlue
1023 \definecolor{colorOne}{HTML}{AE0D45}
1024 \definecolor{colorTwo}{HTML}{7F8897}
1025 \definecolor{colorThree}{HTML}{C8512D}
1026 }{
1027 % Background Colors
1028 \colorlet{backgroundcolor}{white}
1029 \colorlet{framecolor}{white}
1030 % Title Colors
1031 \colorlet{titlebgcolor}{colorOne}
1032 \colorlet{titlefgcolor}{white}
1033 % Block Colors
1034 \colorlet{blocktitlebgcolor}{colorTwo}
1035 \colorlet{blocktitlefgcolor}{colorOne}
1036 \colorlet{blockbodybgcolor}{white}
1037 \colorlet{blockbodyfgcolor}{black}
1038 % Innerblock Colors
1039 \colorlet{innerblocktitlebgcolor}{colorThree}
1040 \colorlet{innerblocktitlefgcolor}{white}
1041 \colorlet{innerblockbodybgcolor}{white}
1042 \colorlet{innerblockbodyfgcolor}{black}
1043 % Note colors
1044 \colorlet{notefgcolor}{black}
1045 \colorlet{notebgcolor}{colorTwo!50!white}
1046 \colorlet{notefrcolor}{colorTwo!50!white}
1047 }
1048
1049 \definecolorstyle{Germany}{
1050 % Define default colors
1051 % BrownOrangeBlue
1052 \definecolor{colorOne}{HTML}{8C7269}
1053 \definecolor{colorTwo}{HTML}{E89261}
1054 \definecolor{colorThree}{HTML}{A2C4D9}
1055 }{
1056 % Background Colors
1057 \colorlet{backgroundcolor}{colorTwo}
1058 \colorlet{framecolor}{colorThree}
1059 % Title Colors
1060 \colorlet{titlebgcolor}{colorOne}
1061 \colorlet{titlefgcolor}{white}
1062 % Block Colors
1063 \colorlet{blocktitlebgcolor}{white}
1064 \colorlet{blocktitlefgcolor}{colorOne}
1065 \colorlet{blockbodybgcolor}{white}
1066 \colorlet{blockbodyfgcolor}{black}
1067 % Innerblock Colors
1068 \colorlet{innerblocktitlebgcolor}{white}
1069 \colorlet{innerblocktitlefgcolor}{black}
1070 \colorlet{innerblockbodybgcolor}{colorThree}
1071 \colorlet{innerblockbodyfgcolor}{black}
1072 % Note colors
1073 \colorlet{notefgcolor}{black}
1074 \colorlet{notebgcolor}{colorThree}
1075 \colorlet{notefrcolor}{colorThree}
1076 }
1077
1078
1079
1080 % \end{macrocode}
1081 % \begin{macrocode}
1082 %</tikzposterColorstyles.tex>
1083 % \end{macrocode}
1084 %
1085 %
1086 % \subsection*{Initial code}
1087 % \setcounter{CodelineNo}{0}
1088 % \begin{macrocode}
1089 %<*tikzposter.cls>
1090 % \end{macrocode}
1091 % \begin{macrocode}
1092
1093 \NeedsTeXFormat{LaTeX2e}
1094 \ProvidesClass{tikzposter}[2014/01/15 v2.0 LaTeX document class for Posters]
1095
1096 % --------------------------------------- %
1097 % Loading Packages
1098 \usepackage{xkeyval}
1099 \usepackage{calc}
1100 \usepackage{ifthen}
1101 \usepackage{ae}
1102 \usepackage{xstring}
1103 \usepackage{etoolbox}
1104 \usepackage{tikz}
1105 \usetikzlibrary{shapes,decorations,shadows,backgrounds,calc,fadings,fit}
1106 \usetikzlibrary{decorations.pathmorphing}
1107 \usepgflibrary{arrows}
1108
1109 % --------------------------------------- %
1110 % Paper parameter
1111 \newif\ifTP@hugefontsize
1112 \newdimen\TP@innermargin
1113 \newdimen\TP@visibletextwidth
1114 \newdimen\TP@visibletextheight
1115
1116 % Title parameter
1117 \newdimen\TP@titlewidth
1118 \newdimen\titlewidth
1119 \newdimen\TP@titlelinewidth
1120 \newdimen\titlelinewidth
1121 \def\titleroundedcorners{}
1122 \newdimen\titleinnersep
1123 \newdimen\TP@titleinnersep
1124 \newdimen\TP@titletotopverticalspace
1125 \newdimen\titletotopverticalspace
1126 \newdimen\TP@titletoblockverticalspace
1127 \newdimen\TP@titleheight
1128 \newdimen\titleheight
1129 \newdimen\titlegraphicheight
1130 \newdimen\titleposleft
1131 \newdimen\titleposright
1132 \newdimen\titlepostop
1133 \newdimen\titleposbottom
1134 \newdimen\TP@titlegraphictotitledistance
1135 \def\TP@titletextscale{1}
1136
1137 % Maketitle parameter
1138 \def\@title{~}
1139 \def\title#1{\gdef\@title{\scalebox{\TP@titletextscale}{#1}}}
1140 \def\@author{~}
1141 \def\@institute{~}
1142 \def\@titlegraphic{~}
1143
1144 % Affection parameter
1145 \newif\ifTP@showlatexaffection
1146
1147 % Column parameter
1148 \newif\ifTP@columnEnvironment
1149 \TP@columnEnvironmentfalse
1150 \newif\ifTP@subcolumnEnvironment
1151 \TP@subcolumnEnvironmentfalse
1152 \newdimen\TP@colspace
1153 \newdimen\TP@coltop
1154 \newdimen\TP@colbottom
1155 \newdimen\TP@colcenter
1156 \newdimen\colwidth
1157
1158 % Subcolumn parameter
1159 \newdimen\TP@subcolspace
1160 \newdimen\TP@subcoltop
1161 \newdimen\TP@subcolbottom
1162 \newdimen\TP@subcolcenter
1163 \newdimen\subcolwidth
1164
1165 % Block parameter
1166 \newdimen\TP@blockverticalspace
1167 \newdimen\TP@blockcenter
1168 \newdimen\TP@blocktitleinnersep
1169 \newdimen\blocktitleinnersep
1170 \newdimen\TP@blockbodyinnersep
1171 \newdimen\blockbodyinnersep
1172 \newbox\TP@blocktitlebox
1173 \newbox\TP@blockbodybox
1174 \def\TP@blocktitleAlignment{}
1175 \newif\ifBlockHasTitle
1176 \newdimen\TP@blocktitlewidth
1177 \newdimen\TP@blockbodywidth
1178 \newdimen\TP@blockbodyheight
1179 \newdimen\TP@blocktitleheight
1180 \newdimen\TP@blocktop
1181 \newdimen\TP@blocktitleoffsetx
1182 \newdimen\TP@blocktitleoffsety
1183 \newdimen\TP@blockbodyoffsetx
1184 \newdimen\TP@blockbodyoffsety
1185 \newdimen\TP@blockbodyverticalshift
1186 \def\blockroundedcorners{}
1187 \newdimen\blocklinewidth
1188
1189 % Innerblock parameter
1190 \newdimen\TP@innerblockcenter
1191 \newdimen\TP@innerblocktitleinnersep
1192 \newdimen\innerblocktitleinnersep
1193 \newdimen\TP@innerblockbodyinnersep
1194 \newdimen\innerblockbodyinnersep
1195 \newbox\TP@innerblocktitlebox
1196 \newbox\TP@innerblockbodybox
1197 \def\TP@innerblocktitleAlignment{}
1198 \newif\ifInnerblockHasTitle
1199 \newdimen\TP@innerblocktitlewidth
1200 \newdimen\TP@innerblockbodywidth
1201 \newdimen\TP@innerblockbodyheight
1202 \newdimen\TP@innerblocktitleheight
1203 \newdimen\TP@innerblocktitleoffsetx
1204 \newdimen\TP@innerblocktitleoffsety
1205 \newdimen\TP@innerblockbodyoffsetx
1206 \newdimen\TP@innerblockbodyoffsety
1207 \newdimen\TP@innerblockbodyverticalshift
1208 \def\innerblockroundedcorners{}
1209 \newdimen\innerblocklinewidth
1210
1211 % Coloredbox parameter
1212 \newbox\TP@coloredbox
1213 \newdimen\TP@coloredboxwidth
1214 \def\TP@coloredboxroundedcorners{}
1215 \newdimen\TP@coloredboxlinewidth
1216 \newdimen\TP@coloredboxinnersep
1217 \newdimen\TP@coloredboxheight
1218
1219 % Note parameter
1220 \newdimen\TP@noteinnersep
1221 \newdimen\noteinnersep
1222 \newdimen\TP@notetargetoffsetx
1223 \newdimen\TP@notetargetoffsety
1224 \def\TP@noteangle{}
1225 \newdimen\TP@noteradius
1226 \newdimen\TP@notewidth
1227 \newdimen\TP@noteheight
1228 \newif\ifNoteHasConnection
1229 \newbox\TP@notebox
1230 \def\noterotate{}
1231 \def\noteroundedcorners{}
1232 \newdimen\notelinewidth
1233
1234 % --------------------------------------- %
1235 % Declaring options
1236 \DeclareOptionX{12pt}{\TP@hugefontsizefalse \PassOptionsToClass{\CurrentOption}{extarticle}}
1237 \DeclareOptionX{14pt}{\TP@hugefontsizefalse \PassOptionsToClass{\CurrentOption}{extarticle}}
1238 \DeclareOptionX{17pt}{\TP@hugefontsizefalse \PassOptionsToClass{\CurrentOption}{extarticle}}
1239 \DeclareOptionX{20pt}{\TP@hugefontsizefalse \PassOptionsToClass{\CurrentOption}{extarticle}}
1240 \DeclareOptionX{25pt}{\TP@hugefontsizetrue}
1241 \DeclareOptionX{fleqn}{\PassOptionsToClass{\CurrentOption}{extarticle}}
1242 \DeclareOptionX{leqno} {\PassOptionsToClass{\CurrentOption}{extarticle}}
1243 \DeclareOptionX{a0paper}{\PassOptionsToPackage{\CurrentOption}{geometry}}
1244 \DeclareOptionX{a1paper}{\PassOptionsToPackage{\CurrentOption}{geometry}}
1245 \DeclareOptionX{a2paper}{\PassOptionsToPackage{\CurrentOption}{geometry}}
1246 \DeclareOptionX{landscape}{\PassOptionsToPackage{\CurrentOption}{geometry}}
1247 \DeclareOptionX{portrait}{\PassOptionsToPackage{\CurrentOption}{geometry}}
1248 \DeclareOptionX{margin}[20mm]{\PassOptionsToPackage{margin=#1}{geometry}}
1249 \DeclareOptionX{innermargin}{\TP@innermargin=#1}
1250 \DeclareOptionX{colspace}{\TP@colspace=#1}
1251 \DeclareOptionX{subcolspace}{\TP@subcolspace=#1}
1252 \DeclareOptionX{blockverticalspace}{\TP@blockverticalspace=#1}
1253 \DeclareOptionX*{{\PackageWarning{tikzposter}{Unknown Option \CurrentOption.}}}
1254
1255 % Executing options
1256 \ExecuteOptionsX{
1257 25pt,
1258 a0paper,
1259 portrait,
1260 margin=0mm,
1261 innermargin=15mm,
1262 colspace=15mm,
1263 subcolspace=8mm,
1264 blockverticalspace=15mm
1265 }
1266 \ProcessOptionsX \relax
1267 \LoadClass{extarticle}
1268 \RequirePackage{geometry}
1269 \ifTP@hugefontsize
1270 \input{a0size.sty}
1271 \renewcommand{\tiny}{\fontsize{12}{14}\selectfont}
1272 \renewcommand{\scriptsize}{\fontsize{14.4}{18}\selectfont}
1273 \renewcommand{\footnotesize}{\fontsize{17.28}{22}\selectfont}
1274 \renewcommand{\small}{\fontsize{20.74}{25}\selectfont}
1275 \renewcommand{\normalsize}{\fontsize{24.88}{30}\selectfont}
1276 \renewcommand{\large}{\fontsize{29.86}{37}\selectfont}
1277 \renewcommand{\Large}{\fontsize{35.83}{45}\selectfont}
1278 \renewcommand{\LARGE}{\fontsize{43}{54}\selectfont}
1279 \renewcommand{\huge}{\fontsize{51.6}{64}\selectfont}
1280 \renewcommand{\Huge}{\fontsize{61.92}{77}\selectfont}
1281 \fi
1282 \normalsize
1283 \pagestyle{empty}
1284 \setlength{\TP@visibletextwidth}{\textwidth-2\TP@innermargin}
1285 \setlength{\TP@visibletextheight}{\textheight-2\TP@innermargin}
1286 \pgfdeclarelayer{backgroundlayer}
1287 \pgfdeclarelayer{notelayer}
1288 \pgfsetlayers{backgroundlayer,main,notelayer}
1289
1290 % --------------------------------------- %
1291 % Background styles
1292 \gdef\definebackgroundstyle#1#2{\expandafter\gdef\csname TP@backgroundstyle#1\endcsname{#2}}
1293
1294 \gdef\usebackgroundstyle#1{
1295 \ifcsname TP@backgroundstyle#1\endcsname
1296 \gdef\TP@backgroundstyle{\csname TP@backgroundstyle#1\endcsname} % save macro
1297 \else
1298 \PackageWarning{tikzposter}{Unknown backgroundstyle `#1'.}
1299 \fi
1300 }
1301
1302 % --------------------------------------- %
1303 % Title styles
1304 \gdef\definetitlestyle#1#2#3{
1305 \expandafter\gdef\csname TP@titlestyle#1Defaultvalues\endcsname{\gpresetkeys{title}{#2}{}}
1306 \expandafter\gdef\csname TP@titlestyle#1\endcsname{#3}
1307 }
1308
1309 \define@key{title}{width}{\TP@titlewidth=#1 \titlewidth=#1}
1310 \define@key{title}{roundedcorners}{\gdef\titleroundedcorners{#1}}
1311 \define@key{title}{linewidth}{\TP@titlelinewidth=#1 \titlelinewidth=#1}
1312 \define@key{title}{innersep}{\TP@titleinnersep=#1 \titleinnersep=#1}
1313 \define@key{title}{titletotopverticalspace}{\TP@titletotopverticalspace=#1 \titletotopverticalspace=#1}
1314 \define@key{title}{titletoblockverticalspace}{\TP@titletoblockverticalspace=#1}
1315 \define@key{title}{titlegraphictotitledistance}{\TP@titlegraphictotitledistance=#1}
1316 \define@key{title}{titletextscale}{\TP@titletextscale=#1}
1317 \newcommand\usetitlestyle[2][]{
1318 \ifcsname TP@titlestyle#2\endcsname
1319 \csname TP@titlestyle#2Defaultvalues\endcsname\gpresetkeys{title}{#1}{} % call macro
1320 \gdef\TP@titlestyle{\csname TP@titlestyle#2\endcsname} % save macro
1321 \else
1322 \PackageWarning{tikzposter}{Unknown titlestyle `#2'.}
1323 \fi
1324 }
1325
1326 % --------------------------------------- %
1327 % Title
1328 \gdef\TP@maketitle{
1329 \centering
1330 \vbox{
1331 \@titlegraphic
1332 \\[\TP@titlegraphictotitledistance]
1333 \centering
1334 \color{titlefgcolor}
1335 {\bfseries \Huge \sc \@title \par}
1336 \vspace*{1em}
1337 {\huge \@author \par}
1338 \vspace*{1em}
1339 {\LARGE \@institute}
1340 }
1341 }
1342
1343 \gdef\institute#1{\gdef\@institute{#1}}
1344 \gdef\titlegraphic#1{\gdef\@titlegraphic{#1}}
1345
1346 \newenvironment{settitle}{
1347 \makeatletter
1348 \renewcommand{\TP@maketitle}
1349 }{
1350 \makeatother
1351 }
1352
1353
1354 \renewcommand\maketitle[1][]{ % #1 keys
1355 \normalsize
1356 \setkeys{title}{#1}
1357 % Title dummy to get title height
1358 \node[transparent,inner sep=\TP@titleinnersep, line width=\TP@titlelinewidth, anchor=north, minimum width=\TP@visibletextwidth-2\TP@titleinnersep]
1359 (TP@title) at ($(0, 0.5\textheight-\TP@titletotopverticalspace)$) {\parbox{\TP@titlewidth-2\TP@titleinnersep}{\TP@maketitle}};
1360 \draw let \p1 = ($([email protected])-([email protected])$) in node {
1361 \setlength{\TP@titleheight}{\y1}
1362 \setlength{\titleheight}{\y1}
1363 \global\TP@titleheight=\TP@titleheight
1364 \global\titleheight=\titleheight
1365 };
1366
1367 % Compute title position
1368 \setlength{\titleposleft}{-0.5\titlewidth}
1369 \setlength{\titleposright}{\titleposleft+\titlewidth}
1370 \setlength{\titlepostop}{0.5\textheight-\TP@titletotopverticalspace}
1371 \setlength{\titleposbottom}{\titlepostop-\titleheight}
1372
1373 % Title style (background)
1374 \TP@titlestyle
1375
1376 % Title node
1377 \node[inner sep=\TP@titleinnersep, line width=\TP@titlelinewidth, anchor=north, minimum width=\TP@visibletextwidth-2\TP@titleinnersep]
1378 at (0,0.5\textheight-\TP@titletotopverticalspace) {\parbox{\TP@titlewidth-2\TP@titleinnersep}{\TP@maketitle}};
1379
1380 % Settings for blocks
1381 \normalsize
1382 \setlength{\TP@blocktop}{\titleposbottom-\TP@titletoblockverticalspace}
1383 }
1384
1385 % --------------------------------------- %
1386 % Block styles
1387 \gdef\defineblockstyle#1#2#3{
1388 \expandafter\gdef\csname TP@blockstyle#1Defaultvalues\endcsname{\gpresetkeys{block}{#2}{}}
1389 \expandafter\gdef\csname TP@blockstyle#1\endcsname{#3}
1390 }
1391
1392 \define@key{block}{titlewidthscale}{\setlength{\TP@blocktitlewidth}{#1\TP@blocktitlewidth}}
1393 \define@key{block}{bodywidthscale}{\setlength{\TP@blockbodywidth}{#1\TP@blockbodywidth}}
1394 \define@boolkey{block}{titleleft}[true]{\ifKV@block@titleleft \gdef\TP@blocktitleAlignment{\raggedright} \fi}
1395 \define@boolkey{block}{titlecenter}[true]{\ifKV@block@titlecenter \gdef\TP@blocktitleAlignment{\centering} \fi}
1396 \define@boolkey{block}{titleright}[true]{\ifKV@block@titleright \gdef\TP@blocktitleAlignment{\raggedleft} \fi}
1397 \define@key{block}{titleoffsetx}{\TP@blocktitleoffsetx=#1}
1398 \define@key{block}{titleoffsety}{\TP@blocktitleoffsety=#1}
1399 \define@key{block}{bodyoffsetx}{\TP@blockbodyoffsetx=#1}
1400 \define@key{block}{bodyoffsety}{\TP@blockbodyoffsety=#1}
1401 \define@key{block}{bodyverticalshift}{\TP@blockbodyverticalshift=#1}
1402 \define@key{block}{roundedcorners}{\gdef\blockroundedcorners{#1}}
1403 \define@key{block}{linewidth}{\blocklinewidth=#1}
1404 \define@key{block}{titleinnersep}{\TP@blocktitleinnersep=#1 \blocktitleinnersep=#1}
1405 \define@key{block}{bodyinnersep}{\TP@blockbodyinnersep=#1 \blockbodyinnersep=#1}
1406
1407 \newcommand\useblockstyle[2][]{
1408 \ifcsname TP@blockstyle#2\endcsname
1409 \csname TP@blockstyle#2Defaultvalues\endcsname\gpresetkeys{block}{#1}{} % call macro
1410 \gdef\TP@blockstyle{\csname TP@blockstyle#2\endcsname} % save macro
1411 \else
1412 \PackageWarning{tikzposter}{Unknown blockstyle `#2'.}
1413 \fi
1414 }
1415
1416 % --------------------------------------- %
1417 % Block
1418 \newcommand\block[3][]{ % #1 keys #2 title #3 text
1419 % Block position
1420 \normalsize
1421 \ifTP@subcolumnEnvironment
1422 \TP@blocktitlewidth=\subcolwidth
1423 \TP@blockbodywidth=\subcolwidth
1424 \TP@blockcenter=\TP@subcolcenter
1425 \else
1426 \ifTP@columnEnvironment
1427 \TP@blocktitlewidth=\colwidth
1428 \TP@blockbodywidth=\colwidth
1429 \TP@blockcenter=\TP@colcenter
1430 \else
1431 \setlength\TP@blocktitlewidth{\TP@visibletextwidth}
1432 \setlength\TP@blockbodywidth{\TP@visibletextwidth}
1433 \TP@blockcenter=0pt
1434 \fi
1435 \fi
1436
1437 % Set parameter
1438 \setkeys{block}{#1}
1439
1440 % Settings for Subcolumns
1441 \ifTP@subcolumnEnvironment \else \ifTP@columnEnvironment \else
1442 \setlength\TP@blocktitlewidth{\TP@blocktitlewidth-\blocklinewidth}
1443 \setlength\TP@blockbodywidth{\TP@blockbodywidth-\blocklinewidth}
1444 \TP@blockcenter=0pt
1445 \fi \fi
1446
1447 % Get height of title
1448 \ifstrempty{#2}{
1449 \BlockHasTitlefalse
1450 \setlength{\TP@blocktitleheight}{0pt}
1451 }{
1452 \BlockHasTitletrue
1453 \setbox\TP@blocktitlebox=\hbox{%
1454 \pgfinterruptpicture%
1455 \parbox{\TP@blocktitlewidth-2\TP@blocktitleinnersep}{%
1456 \bf\LARGE\color{blocktitlefgcolor}\TP@blocktitleAlignment#2\par\normalsize}%
1457 \endpgfinterruptpicture%
1458 }%
1459 \setlength{\TP@blocktitleheight}{\ht\TP@blocktitlebox + \dp\TP@blocktitlebox +2\TP@blocktitleinnersep}
1460 }
1461
1462 % Get height of body
1463 \setbox\TP@blockbodybox=\hbox{
1464 \pgfinterruptpicture%
1465 \parbox{\TP@blockbodywidth-2\TP@blockbodyinnersep-\TP@blockbodyoffsetx}{%
1466 \vspace*{\TP@blockbodyverticalshift}\large\color{blockbodyfgcolor}#3\par\normalsize}%
1467 \endpgfinterruptpicture%
1468 }%
1469 \setlength{\TP@blockbodyheight}{\ht\TP@blockbodybox + \dp\TP@blockbodybox +2\TP@blockbodyinnersep}
1470
1471 % Set coordinates
1472 \node[minimum width=\TP@blocktitlewidth, minimum height=\TP@blocktitleheight, anchor=center] (blocktitle)%
1473 at (\TP@blockcenter+\TP@blocktitleoffsetx, {\[email protected]\TP@blocktitleheight+\TP@blocktitleoffsety}){};
1474 \ifBlockHasTitle
1475 \node[minimum width=\TP@blockbodywidth, minimum height=\TP@blockbodyheight, anchor=center] (blockbody)%
1476 at (\TP@blockcenter+\TP@blockbodyoffsetx, {\TP@blocktop-\[email protected]\TP@blockbodyheight+\TP@blockbodyoffsety}){};
1477 \else
1478 \node[minimum width=\TP@blockbodywidth, minimum height=\TP@blockbodyheight, anchor=center] (blockbody)%
1479 at (\TP@blockcenter+\TP@blockbodyoffsetx, {\TP@blocktop-\[email protected]\TP@blockbodyheight}){};
1480 \fi
1481
1482 % Draw style
1483 \TP@blockstyle
1484
1485 % Draw text
1486 \ifBlockHasTitle
1487 \node[text width=\TP@blocktitlewidth-2\TP@blocktitleinnersep, inner sep=\TP@blocktitleinnersep, anchor=center]%
1488 at (blocktitle){\box\TP@blocktitlebox};
1489 \fi
1490 \node[text width=\TP@blockbodywidth-2\TP@blockbodyinnersep, inner sep=\TP@blockbodyinnersep, anchor=center]%
1491 at (blockbody){\box\TP@blockbodybox};
1492
1493 % Set position parameter
1494 \draw let \p1 = (blockbody.south) in node {
1495 \setlength{\TP@blocktop}{\y1-\TP@blockverticalspace}
1496 \global\TP@blocktop=\TP@blocktop
1497 };
1498 \ifTP@subcolumnEnvironment
1499 \setlength{\TP@subcolbottom}{\minof{\TP@subcolbottom}{\TP@blocktop}}
1500 \global\TP@subcolbottom=\TP@subcolbottom
1501 \else
1502 \ifTP@columnEnvironment
1503 \setlength{\TP@colbottom}{\minof{\TP@colbottom}{\TP@blocktop}}
1504 \global\TP@colbottom=\TP@colbottom
1505 \fi
1506 \fi
1507 }
1508
1509 % --------------------------------------- %
1510 % Innerblock styles
1511 \gdef\defineinnerblockstyle#1#2#3{
1512 \expandafter\gdef\csname TP@innerblockstyle#1Defaultvalues\endcsname{\gpresetkeys{innerblock}{#2}{}}
1513 \expandafter\gdef\csname TP@innerblockstyle#1\endcsname{#3}
1514 }
1515
1516 \define@key{innerblock}{titlewidth}{\setlength{\TP@innerblocktitlewidth}{#1}}
1517 \define@key{innerblock}{bodywidth}{\setlength{\TP@innerblockbodywidth}{#1}}
1518 \define@key{innerblock}{titlewidthscale}{\setlength{\TP@innerblocktitlewidth}{#1\TP@innerblocktitlewidth}}
1519 \define@key{innerblock}{bodywidthscale}{\setlength{\TP@innerblockbodywidth}{#1\TP@innerblockbodywidth}}
1520 \define@boolkey{innerblock}{titleleft}[true]{\ifKV@innerblock@titleleft \gdef\TP@innerblocktitleAlignment{\raggedright} \fi}
1521 \define@boolkey{innerblock}{titlecenter}[true]{\ifKV@innerblock@titlecenter \gdef\TP@innerblocktitleAlignment{\centering} \fi}
1522 \define@boolkey{innerblock}{titleright}[true]{\ifKV@innerblock@titleright \gdef\TP@innerblocktitleAlignment{\raggedleft} \fi}
1523 \define@key{innerblock}{titleoffsetx}{\TP@innerblocktitleoffsetx=#1}
1524 \define@key{innerblock}{titleoffsety}{\TP@innerblocktitleoffsety=#1}
1525 \define@key{innerblock}{bodyoffsetx}{\TP@innerblockbodyoffsetx=#1}
1526 \define@key{innerblock}{bodyoffsety}{\TP@innerblockbodyoffsety=#1}
1527 \define@key{innerblock}{bodyverticalshift}{\TP@innerblockbodyverticalshift=#1}
1528 \define@key{innerblock}{roundedcorners}{\gdef\innerblockroundedcorners{#1}}
1529 \define@key{innerblock}{linewidth}{\innerblocklinewidth=#1}
1530 \define@key{innerblock}{titleinnersep}{\TP@innerblocktitleinnersep=#1 \innerblocktitleinnersep=#1}
1531 \define@key{innerblock}{bodyinnersep}{\TP@innerblockbodyinnersep=#1 \innerblockbodyinnersep=#1}
1532 \define@key{innerblock}{titlebgcolor}{\definecolor{innerblocktitlebgcolor}{named}{#1}}
1533 \define@key{innerblock}{titlefgcolor}{\definecolor{innerblocktitlefgcolor}{named}{#1}}
1534 \define@key{innerblock}{bodybgcolor}{\definecolor{innerblockbodybgcolor}{named}{#1}}
1535 \define@key{innerblock}{bodyfgcolor}{\definecolor{innerblockbodyfgcolor}{named}{#1}}
1536
1537 \newcommand\useinnerblockstyle[2][]{
1538 \ifcsname TP@innerblockstyle#2\endcsname
1539 \csname TP@innerblockstyle#2Defaultvalues\endcsname\gpresetkeys{innerblock}{#1}{} % call macro
1540 \gdef\TP@innerblockstyle{\csname TP@innerblockstyle#2\endcsname} % save macro
1541 \else
1542 \PackageWarning{tikzposter}{Unknown innerblockstyle `#2'.}
1543 \fi
1544 }
1545
1546 % --------------------------------------- %
1547 % Innerblock
1548 \newcommand\innerblock[3][]{ % #1 keys #2 title #3 text
1549 % Settings for Innerblock
1550 \definecolor{innerblocktitlebgcolorTemp}{named}{innerblocktitlebgcolor}
1551 \definecolor{innerblocktitlefgcolorTemp}{named}{innerblocktitlefgcolor}
1552 \definecolor{innerblockbodybgcolorTemp}{named}{innerblockbodybgcolor}
1553 \definecolor{innerblockbodyfgcolorTemp}{named}{innerblockbodyfgcolor}
1554 \setlength{\TP@innerblocktitlewidth}{\linewidth}
1555 \setlength{\TP@innerblockbodywidth}{\linewidth}
1556 \setkeys{innerblock}{#1}
1557
1558 \begin{tikzpicture}
1559
1560 % Get center in x-direction
1561 \pgfmathsetlength{\TP@innerblockcenter}{max(\TP@innerblocktitlewidth,\TP@innerblockbodywidth)/2}
1562
1563 % Get height of title
1564 \ifstrempty{#2}{
1565 \InnerblockHasTitlefalse
1566 \setlength{\TP@innerblocktitleheight}{0pt}
1567 }{
1568 \InnerblockHasTitletrue
1569 \setbox\TP@innerblocktitlebox=\hbox{%
1570 \pgfinterruptpicture%
1571 \parbox{\TP@innerblocktitlewidth-2\TP@innerblocktitleinnersep}{%
1572 \bf\color{innerblocktitlefgcolor}\TP@innerblocktitleAlignment#2\par\normalsize}%
1573 \endpgfinterruptpicture%
1574 }
1575 \setlength{\TP@innerblocktitleheight}{\ht\TP@innerblocktitlebox + \dp\TP@innerblocktitlebox +2\TP@innerblocktitleinnersep}
1576 }
1577
1578 % Get height of body
1579 \setbox\TP@innerblockbodybox=\hbox{
1580 \pgfinterruptpicture%
1581 \parbox{\TP@innerblockbodywidth-2\TP@innerblockbodyinnersep-\TP@innerblockbodyoffsetx}{%
1582 \vspace*{\TP@innerblockbodyverticalshift}%
1583 \color{innerblockbodyfgcolor}#3\par\normalsize}%
1584 \endpgfinterruptpicture%
1585 }%
1586 \setlength{\TP@innerblockbodyheight}{\ht\TP@innerblockbodybox + \dp\TP@innerblockbodybox +2\TP@innerblockbodyinnersep}
1587
1588 % Set coordinates
1589 \node[minimum width=\TP@innerblocktitlewidth, minimum height=\TP@innerblocktitleheight, anchor=center] (innerblocktitle)
1590 at (\TP@innerblockcenter+\TP@innerblocktitleoffsetx, {-0.5\TP@innerblocktitleheight+\TP@innerblocktitleoffsety}) {};%
1591 \ifInnerblockHasTitle
1592 \node[minimum width=\TP@innerblockbodywidth, minimum height=\TP@innerblockbodyheight, anchor=center] (innerblockbody)
1593 at (\TP@innerblockcenter+\TP@innerblockbodyoffsetx, {-\[email protected]\TP@innerblockbodyheight+\TP@innerblockbodyoffsety}) {};%
1594 \else
1595 \node[minimum width=\TP@innerblockbodywidth, minimum height=\TP@innerblockbodyheight, anchor=center] (innerblockbody)
1596 at (\TP@innerblockcenter+\TP@innerblockbodyoffsetx, {-\[email protected]\TP@innerblockbodyheight}) {};%
1597 \fi
1598
1599 % Draw style
1600 \TP@innerblockstyle
1601
1602 % Draw text
1603 \ifInnerblockHasTitle
1604 \node[text width=\TP@innerblocktitlewidth-2\TP@innerblocktitleinnersep, inner sep=\TP@innerblocktitleinnersep, anchor= center]
1605 at (innerblocktitle) {\box\TP@innerblocktitlebox};%
1606 \fi
1607 \node[text width=\TP@innerblockbodywidth-2\TP@innerblockbodyinnersep, inner sep=\TP@innerblockbodyinnersep, anchor= center]
1608 at (innerblockbody) {\box\TP@innerblockbodybox};%
1609 \end{tikzpicture}
1610
1611 % Reset colors
1612 \definecolor{innerblocktitlebgcolor}{named}{innerblocktitlebgcolorTemp}
1613 \definecolor{innerblocktitlefgcolor}{named}{innerblocktitlefgcolorTemp}
1614 \definecolor{innerblockbodybgcolor}{named}{innerblockbodybgcolorTemp}
1615 \definecolor{innerblockbodyfgcolor}{named}{innerblockbodyfgcolorTemp}
1616 }
1617
1618 % --------------------------------------- %
1619 % Coloredbox
1620 \define@key{coloredbox}{width}{\setlength{\TP@coloredboxwidth}{#1}}
1621 \define@key{coloredbox}{roundedcorners}{\gdef\TP@coloredboxroundedcorners{#1}}
1622 \define@key{coloredbox}{linewidth}{\TP@coloredboxlinewidth=#1}
1623 \define@key{coloredbox}{innersep}{\TP@coloredboxinnersep=#1}
1624 \define@key{coloredbox}{bgcolor}{\definecolor{coloredboxbgcolorTemp}{named}{#1}}
1625 \define@key{coloredbox}{fgcolor}{\definecolor{coloredboxfgcolorTemp}{named}{#1}}
1626 \define@key{coloredbox}{framecolor}{\definecolor{coloredboxframecolorTemp}{named}{#1}}
1627
1628 \newcommand\coloredbox[2][]{ % #1 keys #2 text
1629 % Settings for coloredbox
1630 \setlength{\TP@coloredboxwidth}{\TP@blocktitlewidth-4\TP@blocktitleinnersep}
1631 \setkeys{coloredbox}{%
1632 width={\linewidth}, roundedcorners=15, linewidth=3.5pt, innersep=10pt,
1633 bgcolor=notebgcolor, fgcolor=notefgcolor, framecolor=notebgcolor, #1}
1634
1635 \begin{tikzpicture}
1636 % Get height of text
1637 \setbox\TP@coloredbox=\hbox{
1638 \pgfinterruptpicture%
1639 \parbox{\TP@coloredboxwidth-2\TP@coloredboxinnersep}{%
1640 \color{coloredboxfgcolorTemp}#2\par\normalsize}%
1641 \endpgfinterruptpicture%
1642 }%
1643 \setlength{\TP@coloredboxheight}{\ht\TP@coloredbox + \dp\TP@coloredbox +2\TP@coloredboxinnersep}
1644
1645 % Set coordinates
1646 \node[minimum width=\TP@coloredboxwidth, minimum height=\TP@coloredboxheight, anchor=center] (coloredbox)
1647 at (0.5\TP@coloredboxwidth, -0.5\TP@coloredboxheight) {};%
1648
1649 % Draw style
1650 \begin{scope}[line width=\TP@coloredboxlinewidth, rounded corners=\TP@coloredboxroundedcorners]
1651 \draw[color=coloredboxframecolorTemp, fill=coloredboxbgcolorTemp] (coloredbox.south west) rectangle (coloredbox.north east);
1652 \end{scope}
1653
1654 % Draw text
1655 \node[text width=\TP@coloredboxwidth-2\TP@coloredboxinnersep, inner sep=\TP@coloredboxinnersep, anchor= center]
1656 at (coloredbox) {\box\TP@coloredbox};%
1657 \end{tikzpicture}
1658
1659 % Reset colors
1660 \definecolor{coloredboxbgcolor}{named}{coloredboxbgcolorTemp}
1661 \definecolor{coloredboxfgcolor}{named}{coloredboxfgcolorTemp}
1662 }
1663
1664
1665 % --------------------------------------- %
1666 % Note styles
1667 \gdef\definenotestyle#1#2#3{
1668 \expandafter\gdef\csname TP@notestyle#1Defaultvalues\endcsname{\gpresetkeys{note}{#2}{}}
1669 \expandafter\gdef\csname TP@notestyle#1\endcsname{#3}
1670 }
1671
1672 \define@key{note}{targetoffsetx}{\TP@notetargetoffsetx=#1}
1673 \define@key{note}{targetoffsety}{\TP@notetargetoffsety=#1}
1674 \define@key{note}{angle}{\def\TP@noteangle{#1}}
1675 \define@key{note}{radius}{\TP@noteradius=#1}
1676 \define@key{note}{width}{\TP@notewidth=#1}
1677 \define@boolkey{note}{connection}[true]{\NoteHasConnectiontrue \ifKV@note@connection \NoteHasConnectiontrue \else \NoteHasConnectionfalse \fi}
1678 \define@key{note}{rotate}{\gdef\noterotate{#1}}
1679 \define@key{note}{roundedcorners}{\gdef\noteroundedcorners{#1}}
1680 \define@key{note}{linewidth}{\notelinewidth=#1}
1681 \define@key{note}{innersep}{\TP@noteinnersep=#1 \noteinnersep=#1}
1682 \newcommand\usenotestyle[2][]{
1683 \ifcsname TP@notestyle#2\endcsname
1684 \csname TP@notestyle#2Defaultvalues\endcsname\gpresetkeys{note}{#1}{} % call macro
1685 \gdef\TP@notestyle{\csname TP@notestyle#2\endcsname} % save macro
1686 \else
1687 \PackageWarning{tikzposter}{Unknown notestyle `#2'.}
1688 \fi
1689 }
1690
1691 % --------------------------------------- %
1692 % Note
1693 \newcommand\note[2][]{ % #1 keys #2 text
1694 \normalsize
1695 \setkeys{note}{#1}
1696
1697 % Note box
1698 \setbox\TP@notebox=\hbox{%
1699 \pgfinterruptpicture%
1700 \parbox{\TP@notewidth-2\TP@noteinnersep}{\color{notefgcolor}#2\par\normalsize}%
1701 \endpgfinterruptpicture%
1702 }%
1703 \setlength{\TP@noteheight}{\ht\TP@notebox + \dp\TP@notebox +2\TP@noteinnersep}
1704 \pgfmathsetlength{\TP@noteheight}{max(\TP@noteheight,80pt)}
1705
1706 % Set note coordinates
1707 \node (notetarget) at ($(blockbody)+(\TP@notetargetoffsetx,\TP@notetargetoffsety)$){};
1708 \node[minimum width=\TP@notewidth, minimum height=\TP@noteheight, anchor=center,rotate=\noterotate] (notecenter)
1709 at ($(notetarget)+({\TP@noteradius*cos(\TP@noteangle)},{\TP@noteradius*sin(\TP@noteangle)})$){};%
1710
1711 % Draw note
1712 \begin{pgfonlayer}{notelayer}
1713 \TP@notestyle
1714 % Draw note text
1715 \node[text width=\TP@notewidth-2\TP@noteinnersep, inner sep=\TP@noteinnersep, anchor=center,rotate=\noterotate]%
1716 at (notecenter){\box\TP@notebox};
1717 \end{pgfonlayer}
1718 }
1719
1720 % --------------------------------------- %
1721 % Color palette
1722 \gdef\definecolorpalette#1#2{\expandafter\gdef\csname TP@colorpalette#1\endcsname{#2}}
1723
1724 \gdef\usecolorpalette#1{
1725 \ifcsname TP@colorpalette#1\endcsname
1726 \csname TP@colorpalette#1\endcsname % call macro
1727 \else
1728 \PackageWarning{tikzposter}{Unknown color palette `#1'.}
1729 \fi
1730 }
1731
1732 % --------------------------------------- %
1733 % Color style
1734 \gdef\definecolorstyle#1#2#3{
1735 \expandafter\gdef\csname TP@colorstyle#1Defaultvalues\endcsname{#2}
1736 \expandafter\gdef\csname TP@colorstyle#1\endcsname{#3}
1737 }
1738
1739 \define@key{colors}{colorOne}{\colorlet{colorOne}{#1}}
1740 \define@key{colors}{colorTwo}{\colorlet{colorTwo}{#1}}
1741 \define@key{colors}{colorThree}{\colorlet{colorThree}{#1}}
1742 \define@key{colors}{colorPalette}{\usecolorpalette{#1}}
1743
1744 \newcommand\usecolorstyle[2][]{ % #1 keys #2 macroname
1745 \ifcsname TP@colorstyle#2\endcsname
1746 \csname TP@colorstyle#2Defaultvalues\endcsname % call macro
1747 \setkeys{colors}{#1} % set keys
1748 \csname TP@colorstyle#2\endcsname % call macro
1749 \else
1750 \PackageWarning{tikzposter}{Unknown color style `#2'.}
1751 \fi
1752 }
1753
1754 % --------------------------------------- %
1755 % Layouttheme
1756 \gdef\definelayouttheme#1#2{\expandafter\gdef\csname TP@layouttheme#1\endcsname{#2}}
1757
1758 \gdef\usetheme#1{
1759 % Layout theme
1760 \ifcsname TP@layouttheme#1\endcsname
1761 \csname TP@layouttheme#1\endcsname % call macro
1762 \else
1763 \PackageWarning{tikzposter}{Unknown layouttheme `#1'.}
1764 \fi
1765 }
1766
1767 % Input Style and Theme Files
1768 \input{tikzposterColorpalettes}
1769 \input{tikzposterColorstyles}
1770 \input{tikzposterBackgroundstyles}
1771 \input{tikzposterTitlestyles}
1772 \input{tikzposterBlockstyles}
1773 \input{tikzposterInnerblockstyles}
1774 \input{tikzposterNotestyles}
1775 \input{tikzposterLayoutthemes}
1776
1777
1778 % Set Default theme
1779 \usetheme{Default}
1780
1781 % --------------------------------------- %
1782 % Columns environment
1783 \newenvironment{columns}{
1784 \TP@columnEnvironmenttrue
1785 \setlength{\TP@colcenter}{-0.5\TP@visibletextwidth-\[email protected]\blocklinewidth}
1786 \global\TP@colcenter=\TP@colcenter
1787 \global\TP@coltop=\TP@blocktop
1788 \global\TP@colbottom=\TP@blocktop
1789 \colwidth=0pt
1790 }{
1791 \TP@columnEnvironmentfalse
1792 \global\TP@blocktop=\TP@colbottom
1793 }
1794
1795 % Column
1796 \gdef\column#1{ % #1: relative width
1797 \ifTP@columnEnvironment
1798 \normalsize
1799 \setlength{\TP@blocktop}{\TP@coltop}
1800 \setlength{\TP@colcenter}{\TP@colcenter+0.5\colwidth+\TP@colspace}
1801 \setlength{\colwidth}{#1\TP@visibletextwidth+#1\TP@colspace-\TP@colspace-\blocklinewidth}
1802 \setlength{\TP@colcenter}{\TP@colcenter+0.5\colwidth+\blocklinewidth}
1803 \fi
1804 }
1805
1806 % --------------------------------------- %
1807 % Subcolumns environment
1808 \newenvironment{subcolumns}{
1809 \ifTP@columnEnvironment
1810 \TP@subcolumnEnvironmenttrue
1811 \setlength{\TP@subcolcenter}{\[email protected]\colwidth-\TP@blockbodyinnersep-\TP@subcolspace-\TP@blockbodyinnersep}
1812 \global\TP@subcolcenter=\TP@subcolcenter
1813 \global\TP@subcoltop=\TP@blocktop
1814 \global\TP@subcolbottom=\TP@blocktop
1815 \subcolwidth=0pt
1816 \fi
1817 }{
1818 \TP@subcolumnEnvironmentfalse
1819 \global\TP@blocktop=\TP@subcolbottom
1820 }
1821
1822 % Subcolumn
1823 \gdef\subcolumn#1{ % #1: relative width
1824 \ifTP@subcolumnEnvironment
1825 \normalsize
1826 \setlength{\TP@blocktop}{\TP@subcoltop}
1827 \setlength{\TP@subcolcenter}{\TP@subcolcenter+0.5\subcolwidth+\TP@blockbodyinnersep+\TP@subcolspace+\TP@blockbodyinnersep}
1828 \setlength{\subcolwidth}{#1\colwidth+#1\TP@blockbodyinnersep+#1\TP@blockbodyinnersep
1829 +#1\TP@subcolspace-\TP@subcolspace-2\TP@blockbodyinnersep}
1830 \setlength{\TP@subcolcenter}{\TP@subcolcenter+0.5\subcolwidth}
1831 \fi
1832 }
1833
1834 % --------------------------------------- %
1835 % Affection
1836 \gdef\tikzposterlatexaffectionproofon{\TP@showlatexaffectiontrue}
1837 \gdef\tikzposterlatexaffectionproofoff{\TP@showlatexaffectionfalse}
1838 \TP@showlatexaffectiontrue
1839
1840 % --------------------------------------- %
1841 % Document environment
1842 \AtBeginDocument{%
1843 % Get titlegraphic height
1844 \settototalheight{\titlegraphicheight}{\hbox{\@titlegraphic}}
1845
1846 \begin{center}
1847 \begin{tikzpicture}
1848 % Background
1849 \coordinate (topright) at (0.5\textwidth, 0.5\textheight);
1850 \coordinate (bottomleft) at (-0.5\textwidth, -0.5\textheight);
1851 \clip (bottomleft) rectangle (topright);
1852
1853 % Draw background
1854 \begin{pgfonlayer}{backgroundlayer}
1855 \clip (bottomleft) rectangle (topright);
1856 \TP@backgroundstyle
1857 \ifTP@showlatexaffection
1858 \node[inner sep=4pt, anchor=south east, fill=white, draw=none, rounded corners=5, fill opacity=0.3, text opacity=1]
1859 at (0.5\textwidth-7pt, -0.5\textheight+7pt){\footnotesize {\bf\textrm\LaTeX}~\textrm{Ti\emph{k}Z}\bf\textrm{poster}};
1860 \fi
1861 \end{pgfonlayer}
1862
1863 }
1864
1865 \AtEndDocument{%
1866 \end{tikzpicture}
1867 \end{center}
1868 }
1869
1870 %%
1871
1872 \newcounter{figurecounter}
1873
1874 %% #1 Caption
1875 \newenvironment{tikzfigure}[1][]{
1876 \def \rememberparameter{#1}
1877 \vspace{10pt}
1878 \refstepcounter{figurecounter}
1879 \begin{center}
1880 }{
1881 \ifx\rememberparameter\@empty
1882 \else %nothing
1883 \\[10pt]
1884 {\small Fig.~\thefigurecounter: \rememberparameter}
1885 \fi
1886 \end{center}
1887 }
1888
1889 %%
1890 % \end{macrocode}
1891 %
1892 % \begin{macrocode}
1893 %</tikzposter.cls>
1894 % \end{macrocode}
1895 % \subsection*{Layout styles}
1896 % \setcounter{CodelineNo}{0}
1897 % \begin{macrocode}
1898 %<*tikzposterLayoutthemes.tex>
1899 % \end{macrocode}
1900 % \begin{macrocode}
1901
1902 \definelayouttheme{Default}{
1903 \usecolorstyle{Default}
1904 \usebackgroundstyle{Default}
1905 \usetitlestyle{Default}
1906 \useblockstyle{Default}
1907 \useinnerblockstyle{Default}
1908 \usenotestyle{Default}
1909 }
1910
1911 \definelayouttheme{Rays}{
1912 \usecolorstyle[colorPalette=BlueGrayOrange]{Britain}
1913 \usebackgroundstyle{Rays}
1914 \usetitlestyle{Default}
1915 \useblockstyle{Default}
1916 \useinnerblockstyle{Default}
1917 \usenotestyle{Corner}
1918 }
1919
1920 \definelayouttheme{Basic}{
1921 \usecolorstyle[colorPalette=GreenGrayViolet]{Australia}
1922 \usebackgroundstyle{Default}
1923 \usetitlestyle{Basic}
1924 \useblockstyle{Basic}
1925 \useinnerblockstyle{Default}
1926 \usenotestyle{Default}
1927 }
1928
1929 \definelayouttheme{Simple}{
1930 \usecolorstyle[colorPalette=PurpleGrayBlue]{Denmark}
1931 \usebackgroundstyle{Default}
1932 \usetitlestyle{Default}
1933 \useblockstyle{Minimal}
1934 \useinnerblockstyle{Default}
1935 \usenotestyle{Default}
1936 }
1937
1938 \definelayouttheme{Envelope}{
1939 \usecolorstyle[colorPalette=BlueGrayOrange]{Spain}
1940 \usebackgroundstyle{VerticalGradation}
1941 \usetitlestyle{Envelope}
1942 \useblockstyle{Envelope}
1943 \useinnerblockstyle{Default}
1944 \usenotestyle{VerticalShading}
1945 }
1946
1947 \definelayouttheme{Wave}{
1948 \usecolorstyle[colorPalette=BlueGrayOrange]{Spain}
1949 \colorlet{blocktitlefgcolor}{colorOne}
1950 \usebackgroundstyle{VerticalGradation}
1951 \usetitlestyle{Wave}
1952 \useblockstyle{Corner}
1953 \useinnerblockstyle{Default}
1954 \usenotestyle{VerticalShading}
1955 }
1956
1957 \definelayouttheme{Board}{
1958 \usecolorstyle[colorPalette=BlueGrayOrange]{Sweden}
1959 \usebackgroundstyle{VerticalGradation}
1960 \usetitlestyle{Empty}
1961 \useblockstyle{TornOut}
1962 \useinnerblockstyle{Default}
1963 \usenotestyle{Sticky}
1964 }
1965
1966 \definelayouttheme{Autumn}{
1967 \usecolorstyle[colorPalette=BrownBlueOrange]{Germany}
1968 \usebackgroundstyle{Default}
1969 \usetitlestyle{Filled}
1970 \useblockstyle{Slide}
1971 \useinnerblockstyle{Table}
1972 \usenotestyle{Default}
1973 }
1974
1975 \definelayouttheme{Desert}{
1976 \usecolorstyle[colorPalette=GrayOrangeBlue]{Russia}
1977 \usebackgroundstyle{BottomVerticalGradation}
1978 \usetitlestyle{VerticalShading}
1979 \useblockstyle{Slide}
1980 \useinnerblockstyle{Table}
1981 \usenotestyle{Default}
1982 }
1983
1984
1985 % \end{macrocode}
1986 % \begin{macrocode}
1987 %</tikzposterLayoutthemes.tex>
1988 % \end{macrocode}
1989 % \subsection*{Background styles}
1990 % \setcounter{CodelineNo}{0}
1991 % \begin{macrocode}
1992 %<*tikzposterBackgroundstyles.tex>
1993 % \end{macrocode}
1994 % \begin{macrocode}
1995
1996
1997 % Parameters
1998 % \textwidth - length
1999 % \textheight - length
2000 % \titlegraphicheight - length
2001 % \titletotopverticalspace - length
2002 % \titleinnersep - length
2003 % backgroundcolor - color
2004 % topright - coordinate
2005 % bottomleft - coordinate
2006
2007 \definebackgroundstyle{Default}{
2008 \fill[inner sep=0pt, line width=0pt, color=backgroundcolor]%
2009 (bottomleft) rectangle (topright);
2010 }
2011
2012 \definebackgroundstyle{Rays}{
2013 \draw[line width=0pt, top color=backgroundcolor!70, bottom
2014 color=backgroundcolor!70!black] (bottomleft) rectangle (topright);
2015 %
2016 \begin{scope}
2017 \foreach \a in {10,20,...,80}{%
2018 \draw[backgroundcolor, line width=0.15cm](bottomleft) --
2019 ($(bottomleft)!1!(bottomleft)+(\a:120)$);%
2020 }
2021 \foreach \i in {1,2,...,50}{%
2022 \begin{scope}[shift={($(rand*60,rand*70)$)}]
2023 \draw[backgroundcolor!50!, line width=0.1cm] (0,0) circle (4);
2024 \end{scope}
2025 }
2026 \end{scope}
2027 }
2028
2029 \definebackgroundstyle{VerticalGradation}{
2030 \draw[line width=0pt, bottom color=backgroundcolor, top
2031 color=backgroundcolor!60!white] (bottomleft) rectangle (topright);
2032 }
2033
2034 \definebackgroundstyle{BottomVerticalGradation}{
2035 \draw[draw=none, line width=0pt, bottom color=titlebgcolor, top
2036 color=framecolor] (bottomleft) rectangle ($(bottomleft)+(\textwidth,3)$);
2037 }
2038
2039 \definebackgroundstyle{Empty}{
2040 %
2041 }
2042 % \end{macrocode}
2043 % \begin{macrocode}
2044 %</tikzposterBackgroundstyles.tex>
2045 % \end{macrocode}
2046 % \subsection*{Block styles}
2047 % \setcounter{CodelineNo}{0}
2048 % \begin{macrocode}
2049 %<*tikzposterBlockstyles.tex>
2050 % \end{macrocode}
2051 % \begin{macrocode}
2052 % Options:
2053 % titlewidthscale
2054 % bodywidthscale
2055 % titlecenter, titleleft, titleright
2056 % titleoffsetx
2057 % titleoffsety
2058 % bodyoffsetx
2059 % bodyoffsety
2060 % bodyverticalshift
2061 % roundedcorners
2062 % linewidth
2063 % titleinnersep
2064 % bodyinnersep
2065
2066 % Parameter:
2067 % \ifBlockHasTitle - boolean
2068 % blocktitle - coordinate
2069 % blockbody - coordinate
2070 % \blockroundedcorners - number
2071 % \blocklinewidth - length
2072 % \blockbodyinnersep - length
2073 % \blocktitleinnersep - length
2074 % blockbodybgcolor - color
2075 % blocktitlebgcolor - color
2076 % framecolor - color
2077
2078 \defineblockstyle{Default}{
2079 titlewidthscale=1, bodywidthscale=1, titlecenter,
2080 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2081 bodyverticalshift=0pt, roundedcorners=30, linewidth=0.4cm,
2082 titleinnersep=1cm, bodyinnersep=1cm
2083 }{
2084 \begin{scope}[line width=\blocklinewidth, rounded corners=\blockroundedcorners]
2085 \ifBlockHasTitle %
2086 \draw[color=blocktitlebgcolor, fill=blocktitlebgcolor] (blockbody.south west) rectangle (blocktitle.north east);
2087 \draw[color=blocktitlebgcolor, fill=blockbodybgcolor] (blockbody.south west) rectangle (blockbody.north east);
2088 \else
2089 \draw[color=blocktitlebgcolor, fill=blockbodybgcolor] (blockbody.south west) rectangle (blockbody.north east);
2090 \fi
2091 \end{scope}
2092 }
2093
2094 \defineblockstyle{Basic}{
2095 titlewidthscale=0.8, bodywidthscale=1, titlecenter,
2096 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=15mm,
2097 bodyverticalshift=15mm, roundedcorners=22, linewidth=5pt,
2098 titleinnersep=8mm, bodyinnersep=8mm
2099 }{
2100 \draw[rounded corners=\blockroundedcorners, inner sep=\blockbodyinnersep, line width=\blocklinewidth, color=framecolor, fill=blockbodybgcolor]
2101 (blockbody.south west) rectangle (blockbody.north east); %
2102 \ifBlockHasTitle%
2103 \draw[rounded corners=\blockroundedcorners, inner sep=\blocktitleinnersep, line width=\blocklinewidth, color=framecolor, fill=blocktitlebgcolor]
2104 (blocktitle.south west) rectangle (blocktitle.north east); %
2105 \fi%
2106 }
2107
2108 \defineblockstyle{Minimal}{
2109 titlewidthscale=1, bodywidthscale=1, titleleft,
2110 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2111 bodyverticalshift=0pt, roundedcorners=0, linewidth=0.2cm,
2112 titleinnersep=1cm, bodyinnersep=1cm
2113 }{
2114 \begin{scope}[line width=\blocklinewidth, rounded corners=\blockroundedcorners]
2115 \ifBlockHasTitle %
2116 \draw[draw=none]%, fill=blockbodybgcolor]
2117 (blockbody.south west) rectangle (blocktitle.north east);
2118 \draw[color=blocktitlebgcolor, loosely dashed]
2119 (blocktitle.south west) -- (blocktitle.south east);%
2120 \else
2121 \draw[draw=none]%, fill=blockbodybgcolor]
2122 (blockbody.south west) rectangle (blockbody.north east);
2123 \fi
2124 \end{scope}
2125 }
2126
2127 \defineblockstyle{Envelope}{
2128 titlewidthscale=1, bodywidthscale=1, titlecenter,
2129 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2130 bodyverticalshift=0pt, roundedcorners=20, linewidth=1.6pt,
2131 titleinnersep=1cm, bodyinnersep=1cm
2132 }{
2133 \begin{scope}[rounded corners=\blockroundedcorners, line width=\blocklinewidth,
2134 drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3} ]
2135 \ifBlockHasTitle
2136 % the big rectangle
2137 \draw[color=blocktitlebgcolor, fill=blockbodybgcolor, drop shadow]
2138 (blockbody.south west) rectangle (blocktitle.north east);%
2139 \begin{scope}
2140 \clip (blocktitle.south west) rectangle (blocktitle.north east);
2141 % fading on top
2142 \fill[rounded corners=0, path fading=south, fill=blocktitlebgcolor, opacity=.4]
2143 ($(blocktitle.south west)-(0.1,0)$) rectangle ($(blocktitle.north east)+(0.1,0)$);
2144 % the trapezium
2145 \draw[draw=none, bottom color=blocktitlebgcolor, top
2146 color=blocktitlebgcolor!85!] %
2147 ($(blocktitle.north west)+(0.25,0)$) -- ($(blocktitle.north west)+(0.75,0)$) -- %
2148 ($(blocktitle.south west)+(2.5,0)$) -- ($(blocktitle.south east)-(2.5,0)$) -- %
2149 ($(blocktitle.north east)-(0.75,0)$) -- ($(blocktitle.north east)-(0.25,0)$) -- cycle;
2150 \end{scope}
2151 \else
2152 % No title
2153 \draw[color=blocktitlebgcolor, fill=blockbodybgcolor]
2154 (blockbody.south west) rectangle (blockbody.north east);
2155 \fi
2156 \end{scope}
2157 }
2158
2159 \defineblockstyle{Corner}{
2160 titlewidthscale=1, bodywidthscale=1, titleleft,
2161 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2162 bodyverticalshift=0pt, roundedcorners=20, linewidth=1.2pt,
2163 titleinnersep=1cm, bodyinnersep=1cm
2164 }{
2165 % the shadow above the corner
2166 \begin{scope}
2167 \clip (blockbody.south west) rectangle (blocktitle.north east);
2168 \begin{scope}[transform canvas={xshift=-1cm, yshift=-0.8cm, rotate
2169 around={-20:($(blocktitle.north east)-(10,0)$)}}]
2170 \fill[color=gray, path fading=north, opacity=0.8]%
2171 ($(blocktitle.north east)-(10,1)$) rectangle ($(blocktitle.north east)+(2,2.3)$);
2172 \end{scope}
2173 \end{scope}
2174 %
2175 % the border
2176 \def \border{%
2177 [rounded corners=30] (blockbody.south west) -- (blocktitle.north west) %
2178 [rounded corners=30] -- ($(blocktitle.north east)-(9.4,0)$)
2179 [rounded corners=30] -- ($(blocktitle.north east)-(0,3.4)$)
2180 [rounded corners=30] |- (blockbody.south west) -- cycle
2181 }
2182 \draw[line width=\blocklinewidth, color=blocktitlebgcolor, fill=blockbodybgcolor,
2183 % drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3}
2184 ] \border;
2185 %
2186 % the corner
2187 \begin{scope}
2188 \def \corner{ ($(blocktitle.north east)-(0,6)$) -- ($(blocktitle.north east)-(0,4.5)$) .. %
2189 controls ($(blocktitle.north east)-(-0,2.7)$) and ($(blocktitle.north east)-(2.8,2.2)$)
2190 .. ($(blocktitle.north east)-(3.8,4.6)$) %
2191 .. controls ($(blocktitle.north east)-(8.6,0)$) .. ($(blocktitle.north east)-(11.4,0)$) %
2192 [rounded corners=30] -- ($(blocktitle.north east)-(9.4,0)$) %
2193 [rounded corners=30] -- ($(blocktitle.north east)-(0,3.4)$) %
2194 [rounded corners=0] -- ($(blocktitle.north east)-(0,6)$)}
2195 \draw[blocktitlebgcolor] \corner;
2196 \clip \corner;
2197 \begin{scope}[transform canvas={xshift=-1cm, yshift=-1.3cm, rotate
2198 around={-23:($(blocktitle.north east)-(10,0)$)}}]
2199 \fill[color=blocktitlebgcolor!90] ($(blocktitle.north east) - (10,2)$)
2200 rectangle ($(blocktitle.north east) + (2,3.6)$); %
2201 \fill[color=blocktitlebgcolor , path fading=south, opacity=1]
2202 ($(blocktitle.north east) - (10,-1.2)$) rectangle ($(blocktitle.north east) + (2,1.6)$); %
2203 \fill[color=blocktitlebgcolor , path fading=north, opacity=1]
2204 ($(blocktitle.north east) - (10,-1.6)$) rectangle ($(blocktitle.north east) + (2,2.1)$);
2205 \end{scope}
2206 \end{scope}%
2207 }
2208
2209 \defineblockstyle{Slide}{
2210 titlewidthscale=1, bodywidthscale=1, titleleft,
2211 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2212 bodyverticalshift=0pt, roundedcorners=0, linewidth=0pt, titleinnersep=1cm,
2213 bodyinnersep=1cm
2214 }{
2215 \ifBlockHasTitle%
2216 \draw[draw=none, left color=blocktitlebgcolor, right color=blockbodybgcolor]
2217 (blocktitle.south west) rectangle (blocktitle.north east);
2218 \fi%
2219 \draw[draw=none, fill=blockbodybgcolor] %
2220 (blockbody.north west) [rounded corners=30] -- (blockbody.south west) --
2221 (blockbody.south east) [rounded corners=0]-- (blockbody.north east) -- cycle;
2222 }
2223
2224 \defineblockstyle{TornOut}{
2225 titlewidthscale=1, bodywidthscale=1, titlecenter,
2226 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2227 bodyverticalshift=-1.2cm, roundedcorners=0, linewidth=1.2pt,
2228 titleinnersep=1cm, bodyinnersep=1cm
2229 }{
2230 \ifBlockHasTitle%
2231 \coordinate (topright) at (blocktitle.north east);
2232 \else
2233 \coordinate (topright) at (blockbody.north east);
2234 \fi%
2235 \draw[color=blocktitlebgcolor, fill=blockbodybgcolor,%
2236 line width=\blocklinewidth, drop shadow={shadow xshift=0.2cm, shadow yshift=-0.2cm,opacity=0.3}, %
2237 decorate, decoration={random steps,segment length=1.5cm,amplitude=0.15cm}
2238 % decorate, decoration={penciline,amplitude=0.2cm}
2239 ] (blockbody.south west) rectangle (topright);%
2240 }
2241
2242
2243 % \end{macrocode}
2244 % \begin{macrocode}
2245 %</tikzposterBlockstyles.tex>
2246 % \end{macrocode}
2247
2248 % \subsection*{Note styles}
2249 % \setcounter{CodelineNo}{0}
2250 % \begin{macrocode}
2251 %<*tikzposterNotestyles.tex>
2252 % \end{macrocode}
2253 % \begin{macrocode}
2254
2255
2256 % Options:
2257 % targetoffsetx
2258 % targetoffsety
2259 % angle
2260 % radius
2261 % width
2262 % connection
2263 % rotate
2264 % roundedcorners
2265 % linewidth
2266 % innersep
2267
2268 % Parameter:
2269 % \ifNoteHasConnection - boolean
2270 % notecenter - coordinate
2271 % notetarget - coordinate
2272 % \noterotate - number
2273 % \noteroundedcorners - number
2274 % \notelinewidth - length
2275 % \noteinnersep - length
2276 % notebgcolor - color
2277 % notefgcolor - color
2278 % notefrcolor - color
2279
2280
2281
2282
2283 \definenotestyle{Default}{
2284 targetoffsetx=0pt, targetoffsety=0pt, angle=0, radius=8cm, width=8cm,
2285 connection=false, rotate=0, roundedcorners=20, linewidth=0pt, innersep=1cm
2286 }{
2287 \ifNoteHasConnection %% callout note
2288 \draw[color=notefrcolor, fill=notebgcolor]%
2289 (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
2290 ($(notetarget)!1!-4:(notecenter.center)$) --cycle; %
2291 %
2292 \fi
2293 % the body of the note
2294 \draw[color=notefrcolor, fill=notebgcolor, rounded
2295 corners=\noteroundedcorners] (notecenter.south west) -- (notecenter.north
2296 west) -- (notecenter.north east) -- (notecenter.south east) -- cycle;
2297 }
2298
2299 \definenotestyle{Corner}{
2300 targetoffsetx=0pt, targetoffsety=0pt, angle=0, radius=8cm, width=12cm,
2301 connection=false, rotate=0, roundedcorners=20, linewidth=0pt, innersep=1cm
2302 }{
2303 \ifNoteHasConnection % callout note
2304 \draw[color=notebgcolor, fill=notebgcolor, drop shadow={shadow
2305 xshift=0.2cm, shadow yshift=-0.2cm, opacity=0.3}] %
2306 (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
2307 ($(notetarget)!1!-4:(notecenter.center)$) --cycle; %
2308 \fi
2309 % the body of the note
2310 % the shape
2311 \def \border{%
2312 [rounded corners=0] (notecenter.south west) -- (notecenter.north west) %
2313 [rounded corners=\noteroundedcorners] -- ($(notecenter.north
2314 east)-(\noterotate:4.7)$) %
2315 [rounded corners=\noteroundedcorners] -- ($(notecenter.north
2316 east)+(-90+\noterotate:1.7)$) %
2317 [rounded corners=0] -- (notecenter.south east) -- (notecenter.south
2318 west) -- cycle%
2319 }
2320 \fill[color=notebgcolor] \border;
2321 \coordinate (x) at (\noterotate:1);
2322 \coordinate (y) at (\noterotate-90:1);
2323 % the shadow of the corner
2324 \fill[color=gray,opacity=0.3] ($(notecenter.north east)+3*(y)$) --
2325 ($(notecenter.north east)+2.5*(y)$) .. %
2326 controls ($(notecenter.north east)+1.25*(y)$) and ($(notecenter.north
2327 east)-1.5*(x)+1.25*(y)$) .. %
2328 ($(notecenter.north east)-1.9*(x)+2.5*(y)$) .. %
2329 controls ($(notecenter.north east)-4.5*(x)$) .. %
2330 ($(notecenter.north east)-5.7*(x)$) %
2331 [rounded corners=\noteroundedcorners] -- ($(notecenter.north east)-4.7*(x)$) %
2332 [rounded corners=\noteroundedcorners] -- ($(notecenter.north east)+1.7*(y)$) %
2333 [rounded corners=0] -- ($(notecenter.north east)+3*(y)$);
2334 % the corner
2335 \fill[color=notefrcolor] %
2336 ($(notecenter.north east)+3*(y)$) -- ($(notecenter.north east)+2.5*(y)$) .. %
2337 controls ($(notecenter.north east)+1.25*(y)$) and ($(notecenter.north
2338 east)-1.5*(x)+1.25*(y)$) .. %
2339 ($(notecenter.north east)-1.9*(x)+2.3*(y)$) .. %
2340 controls ($(notecenter.north east)-4.5*(x)$) .. %
2341 ($(notecenter.north east)-5.7*(x)$) %
2342 [rounded corners=\noteroundedcorners] -- ($(notecenter.north east)-4.7*(x)$) %
2343 [rounded corners=\noteroundedcorners] -- ($(notecenter.north east)+1.7*(y)$) %
2344 [rounded corners=0] -- ($(notecenter.north east)+3*(y)$);
2345 }
2346
2347 \definenotestyle{VerticalShading}{
2348 targetoffsetx=0pt, targetoffsety=0pt, angle=0, radius=8cm, width=8cm,
2349 connection=false, rotate=0, roundedcorners=20, linewidth=1pt, innersep=1cm
2350 }{
2351 \ifNoteHasConnection % callout note
2352 % the shadow
2353 \begin{scope}[opacity=0.3]
2354 \begin{pgftransparencygroup}
2355 \coordinate (shadowshift) at (0.2cm,-0.2cm); \fill%
2356 ($(notetarget)+(shadowshift)$) --
2357 ($(notetarget)!1!4:(notecenter.center)+(shadowshift)$) --
2358 ($(notetarget)!1!-4:(notecenter.center)+(shadowshift)$) --cycle; %
2359 \fill[rounded corners=\noteroundedcorners] %
2360 ($(notecenter.south west)+(shadowshift)$) -- ($(notecenter.north
2361 west)+(shadowshift)$) -- ($(notecenter.north east)+(shadowshift)$)
2362 -- ($(notecenter.south east)+(shadowshift)$) -- cycle;
2363 \end{pgftransparencygroup}
2364 \end{scope}
2365 %% the main drawing
2366 %
2367 %% the border
2368 \draw[color=notefrcolor, line width=\notelinewidth*2]%
2369 (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
2370 ($(notetarget)!1!-4:(notecenter.center)$) -- cycle;%
2371 \draw[color=notefrcolor, line width=\notelinewidth*2, rounded
2372 corners=\noteroundedcorners]%
2373 (notecenter.south west) -- (notecenter.north west) --
2374 (notecenter.north east) -- (notecenter.south east) -- cycle; %
2375 %
2376 %% the filling (vertical shading), shared between the note and the connection
2377 \begin{scope}
2378 \node[fit=(notetarget)(notecenter.south west)(notecenter.south east)
2379 (notecenter.north east) (notecenter.north west), inner sep=+0pt]
2380 (box) {};%
2381 %
2382 \clip (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
2383 ($(notetarget)!1!-4:(notecenter.center)$) -- cycle%
2384 [rounded corners=\noteroundedcorners] (notecenter.south west) --
2385 (notecenter.north west) -- (notecenter.north east) --
2386 (notecenter.south east) -- cycle;
2387 %
2388 \draw[draw=none, color=notefrcolor, top color=notebgcolor!60, bottom
2389 color=notebgcolor] %
2390 (box.south west) rectangle (box.north east);
2391 \end{scope}
2392 %
2393 \else % the simple note
2394 \begin{scope}[drop shadow={shadow xshift=0.2cm, shadow yshift=-0.2cm,
2395 opacity=0.3}]
2396 \draw[line width=\notelinewidth, rounded corners=\noteroundedcorners,
2397 color=notefrcolor, top color=notebgcolor!60, bottom color=notebgcolor,
2398 drop shadow] %
2399 (notecenter.south west) -- (notecenter.north west) -- (notecenter.north
2400 east) -- (notecenter.south east) -- cycle;
2401 \end{scope}
2402 \fi
2403 }
2404
2405 \definenotestyle{Sticky}{
2406 targetoffsetx=0pt, targetoffsety=0pt, angle=0, radius=8cm, width=8cm,
2407 connection=false, rotate=0, roundedcorners=0, linewidth=0pt, innersep=1cm
2408 }{
2409 \ifNoteHasConnection %% callout note
2410 \draw[color=notefrcolor, fill=notebgcolor, drop shadow={shadow
2411 xshift=0.2cm, shadow yshift=-0.2cm, opacity=0.3}] %
2412 (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
2413 ($(notetarget)!1!-4:(notecenter.center)$) --cycle; %
2414 \fi
2415 % the body of the note
2416 % shadow
2417 \draw[draw=none, fill=gray, opacity=0.3]
2418 ($(notecenter.north east)+(-0.5,0)$) [rounded corners=40]--%
2419 (notecenter.north west) [rounded corners=0] -- %
2420 ($(notecenter.south west)$) .. %
2421 controls ($0.2*(notecenter.south west) + 0.8*(notecenter.south east)$) .. %
2422 ($(notecenter.south east)+(-0.2,0.3)$) .. %
2423 controls ($0.75*(notecenter.south east) + 0.25*(notecenter.north east) - (0.5,0)$) .. %
2424 ($(notecenter.north east)+(-0.5,0)$);
2425 % the shape
2426 \def \border{%
2427 ($(notecenter.north east)+(-0.5,0)$) [rounded corners=40]--%
2428 (notecenter.north west) [rounded corners=0] -- %
2429 ($(notecenter.south west)$) .. %
2430 controls ($0.2*(notecenter.south west) + 0.8*(notecenter.south east)$) .. %
2431 ($(notecenter.south east)+(0,0.7)$) .. %
2432 controls ($0.75*(notecenter.south east) +0.25*(notecenter.north east) -(0.5,0)$) .. %
2433 ($(notecenter.north east)+(-0.5,0)$)%
2434 }%
2435 \draw[color=notefrcolor, fill=notebgcolor]
2436 \border;
2437 % the shading in the left top corner
2438 \begin{scope}
2439 \clip \border; %
2440 \begin{scope}[transform canvas={rotate
2441 around={\noterotate+15:(notecenter.north west)}}]
2442 \fill[notebgcolor!60!black, path fading=south, opacity=0.6]%
2443 (notecenter.north west) -- +(-3,0) |- ($(notecenter.north west) + (0,-1.2)$)
2444 -- ($(notecenter.north west) + (4,-1.2)$) |- ($(notecenter.north west)$);
2445 \end{scope}
2446 \end{scope}
2447 }
2448
2449 % \end{macrocode}
2450 % \begin{macrocode}
2451 %</tikzposterNotestyles.tex>
2452 % \end{macrocode}
2453
2454 % \subsection*{Title styles}
2455 % \setcounter{CodelineNo}{0}
2456 % \begin{macrocode}
2457 %<*tikzposterTitlestyles.tex>
2458 % \end{macrocode}
2459 % \begin{macrocode}
2460
2461 % Options
2462 % width
2463 % roundedcorners
2464 % linewidth
2465 % innersep
2466 % titletotopverticalspace
2467 % titletoblockverticalspace
2468 % titlegraphictotitledistance
2469 % titletextscale
2470
2471 % Parameter:
2472 % \textwidth - length
2473 % \textheight - length
2474 % \titlewidth - length
2475 % \titlegraphicheight - length
2476 % \titlelinewidth - length
2477 % \titleinnersep - length
2478 % \titleposleft, \titleposright, \titleposbottom, \titlepostop - length
2479 % \titletotopverticalspace - length
2480 % titlebgcolor - color
2481
2482 \definetitlestyle{Default}{
2483 width=600mm, roundedcorners=30, linewidth=0.4cm, innersep=1cm,
2484 titletotopverticalspace=15mm, titletoblockverticalspace=20mm,
2485 titlegraphictotitledistance=10pt, titletextscale=1
2486 }{
2487 \begin{scope}[line width=\titlelinewidth, rounded corners=\titleroundedcorners]
2488 \draw[color=framecolor, fill=titlebgcolor]%
2489 (\titleposleft,\titleposbottom) rectangle (\titleposright,\titlepostop);
2490 \end{scope}
2491 }
2492
2493 \definetitlestyle{Basic}{
2494 width=770mm, roundedcorners=0, linewidth=0pt, innersep=10pt,
2495 titletotopverticalspace=20mm, titletoblockverticalspace=20mm,
2496 titlegraphictotitledistance=25mm, titletextscale=1
2497 }{
2498 \coordinate (topright) at (0.5\textwidth-0.5\titlelinewidth, 0.5\textheight-0.5\titlelinewidth);
2499 \coordinate (bottomleft) at (-0.5\textwidth+0.5\titlelinewidth, 0.5\textheight-\titlegraphicheight-0.5\titlelinewidth-2\titletotopverticalspace-2\titleinnersep);
2500 \draw[line width=\titlelinewidth, inner sep=\titleinnersep, fill=titlebgcolor] (bottomleft) rectangle (topright);
2501 }
2502
2503 \definetitlestyle{Envelope}{
2504 width=\paperwidth, roundedcorners=0, linewidth=0pt, innersep=1.5cm,
2505 titletotopverticalspace=0mm, titletoblockverticalspace=20mm,
2506 titlegraphictotitledistance=10pt, titletextscale=1
2507 }{
2508 \coordinate (topleft) at (\titleposleft,\titlepostop);
2509 \coordinate (topright) at (\titleposright,\titlepostop);
2510 \coordinate (lefttoright) at (\titlewidth,0);
2511 \coordinate (head) at (0,\titlepostop-\titleposbottom);
2512 %
2513 \draw[draw=none, bottom color=blocktitlebgcolor!90!black, %
2514 top color=titlebgcolor!90] %
2515 (topleft) -- ($(topleft)-0.2*(head)$) .. controls ($(topleft)-(head)+(1,0)$)
2516 .. ($(topleft)-(head)+0.2*(lefttoright)$) --
2517 ($(topleft)-(head)+0.8*(lefttoright)$) .. controls ($(topright)-(head)-(1,0)$)
2518 .. %
2519 ($(topright)-0.2*(head)$) -- (topright) -- cycle;
2520 %
2521 \draw[draw=none, right color=white, left color=blocktitlebgcolor]
2522 ($(topleft)-(head)+0.8*(lefttoright)$) .. controls
2523 ($(topleft)-(head)+0.92*(lefttoright)+(0,0.7)$) and %
2524 ($(topright)- 0.13*(lefttoright)$) .. %
2525 (topright) .. controls %
2526 ($(topright)- 0.11*(lefttoright)$) and%
2527 ($(topleft)-(head)+0.95*(lefttoright)$) .. %
2528 ($(topleft)-(head)+0.82*(lefttoright)$);
2529 %
2530 \draw[draw=none, right color=white, left color=blocktitlebgcolor]
2531 ($(topleft)-(head)+0.83*(lefttoright)$) .. controls
2532 ($(topleft)-(head)+0.97*(lefttoright)+(0,0.2)$) and %
2533 ($(topright)- 0.08*(lefttoright)$) .. %
2534 (topright) .. controls %
2535 ($(topright)- 0.06*(lefttoright)$) and %
2536 ($(topleft)-(head)+0.99*(lefttoright)$) .. %
2537 ($(topleft)-(head)+0.85*(lefttoright)$); %
2538 }
2539
2540 \definetitlestyle{Wave}{
2541 width=\paperwidth, roundedcorners=0, linewidth=0pt, innersep=1.5cm,
2542 titletotopverticalspace=0mm, titletoblockverticalspace=20mm,
2543 titlegraphictotitledistance=10pt, titletextscale=1
2544 }{
2545 \coordinate (topleft) at (\titleposleft,\titlepostop);
2546 \coordinate (topright) at (\titleposright,\titlepostop);
2547 \coordinate (lefttoright) at (\titlewidth,0);
2548 \coordinate (head) at (0,\titlepostop-\titleposbottom);
2549 %
2550 \draw[draw=none, left color=blocktitlebgcolor!90!black, right color=titlebgcolor!95]%
2551 (topright) -- (topleft) -- %
2552 ($(topleft) - (head)-(0,6)$) .. controls %
2553 ($(topleft) - (head)-(0,6) + 0.25*(lefttoright) + (0,9)$) and %
2554 ($(topright) - (head) - 0.5*(lefttoright) - (-10,16)$) .. %
2555 ($(topright) - (head)$) -- cycle;
2556 %
2557 \draw[draw=none, left color=blocktitlebgcolor, right color=white] %
2558 ($(topleft) - (head)-(0,2)$) .. controls %
2559 ($(topleft) - (head)-(-6,3) + 0.25*(lefttoright) + (0,10)$) and ($(topright) -
2560 (head) - 0.25*(lefttoright) - (-6,17)$).. %
2561 ($(topright) - (head)$) .. controls %
2562 ($(topright) - (head) - 0.25*(lefttoright)-(-7,19)$) and %
2563 ($(topleft) - (head)-(-9,5) + 0.25*(lefttoright) + (0,10)$) .. %
2564 ($(topleft) - (head)-(0,4)$);
2565 %
2566 \draw[draw=none, left color=white, right color=blocktitlebgcolor!90!black]%
2567 ($(topleft) - (head)-(0,2)$) .. controls %
2568 ($(topleft) - (head)-(-6,3) + 0.25*(lefttoright) + (0,10)$) and ($(topright) -
2569 (head)+(0,6) - 0.25*(lefttoright) - (-6,20)$)..%
2570 ($(topright) - (head)+(0,6)$) -- %
2571 ($(topright) - (head)$) .. controls %
2572 ($(topright) - (head) - 0.25*(lefttoright) - (-6,17)$) and %
2573 ($(topleft) - (head)-(-8,4) + 0.25*(lefttoright) + (0,10)$) .. %
2574 ($(topleft) - (head)-(0,2)$);
2575 \setlength{\TP@titletoblockverticalspace}{5\TP@titletoblockverticalspace}
2576 }
2577
2578 \definetitlestyle{VerticalShading}{
2579 width=\paperwidth, roundedcorners=0, linewidth=0pt, innersep=1.5cm,
2580 titletotopverticalspace=0mm, titletoblockverticalspace=20mm,
2581 titlegraphictotitledistance=10pt, titletextscale=1
2582 }{
2583 \draw[draw=none, bottom color=framecolor, top color=titlebgcolor]%
2584 (\titleposleft,\titleposbottom) rectangle (\titleposright,\titlepostop); %
2585 }
2586
2587 \definetitlestyle{Filled}{
2588 width=\paperwidth, roundedcorners=0, linewidth=0pt, innersep=1.5cm,
2589 titletotopverticalspace=0mm, titletoblockverticalspace=20mm,
2590 titlegraphictotitledistance=10pt
2591 }{
2592 \draw[draw=none, fill=titlebgcolor]%
2593 (\titleposleft,\titleposbottom) rectangle (\titleposright,\titlepostop); %
2594 }
2595
2596 \definetitlestyle{Empty}{
2597 width=750mm, roundedcorners=0, linewidth=0pt, innersep=8mm,
2598 titletotopverticalspace=5mm, titletoblockverticalspace=20mm,
2599 titlegraphictotitledistance=10pt
2600 }{}
2601
2602
2603 % \end{macrocode}
2604 % \begin{macrocode}
2605 %</tikzposterTitlestyles.tex>
2606 % \end{macrocode}
2607
2608 % \subsection*{Color palettes}
2609 % \setcounter{CodelineNo}{0}
2610 % \begin{macrocode}
2611 %<*tikzposterColorpalettes.tex>
2612 % \end{macrocode}
2613 % \begin{macrocode}
2614 \definecolorpalette{Default}{
2615 % GrayBlueYellow
2616 \definecolor{colorOne}{HTML}{DDDDDD}
2617 \definecolor{colorTwo}{HTML}{0066A8}
2618 \definecolor{colorThree}{HTML}{FCF0AD}
2619 }
2620
2621 \definecolorpalette{BlueGrayOrange}{
2622 \definecolor{colorOne}{HTML}{116699}
2623 \definecolor{colorTwo}{HTML}{CCCCCC}
2624 \definecolor{colorThree}{HTML}{CC6633}
2625 }
2626
2627 \definecolorpalette{GreenGrayViolet}{
2628 \definecolor{colorOne}{HTML}{A2E2C7}
2629 \definecolor{colorTwo}{HTML}{56555A}
2630 \definecolor{colorThree}{HTML}{C9AECF}
2631 }
2632
2633 \definecolorpalette{PurpleGrayBlue}{
2634 \definecolor{colorOne}{HTML}{AE0D45}
2635 \definecolor{colorTwo}{HTML}{7F8897}
2636 \definecolor{colorThree}{HTML}{006C9E}
2637 }
2638
2639 \definecolorpalette{BrownBlueOrange}{
2640 \definecolor{colorOne}{HTML}{8C7269}
2641 \definecolor{colorTwo}{HTML}{A2C4D9}
2642 \definecolor{colorThree}{HTML}{E89261}
2643 }
2644
2645 % \end{macrocode}
2646 % \begin{macrocode}
2647 %</tikzposterColorpalettes.tex>
2648 % \end{macrocode}
2649 % \subsection*{Inner block styles}
2650 % \setcounter{CodelineNo}{0}
2651 % \begin{macrocode}
2652 %<*tikzposterInnerblockstyles.tex>
2653 % \end{macrocode}
2654 % \begin{macrocode}
2655
2656 % Options:
2657 % titlewidth
2658 % bodywidth
2659 % titlewidthscale
2660 % bodywidthscale
2661 % titlecenter, titleleft, titleright
2662 % titleoffsetx
2663 % titleoffsety
2664 % bodyoffsetx
2665 % bodyoffsety
2666 % bodyverticalshift
2667 % roundedcorners
2668 % linewidth
2669 % titleinnersep
2670 % bodyinnersep
2671
2672 % Parameter:
2673 % \ifInnerblockHasTitle - boolean
2674 % innerblocktitle - coordinate
2675 % innerblockbody - coordinate
2676 % \innerblockroundedcorners - number
2677 % \innerblocklinewidth - length
2678 % \innerblockbodyinnersep - length
2679 % \innerblocktitleinnersep - length
2680 % innerblockbodybgcolor - color
2681 % innerblocktitlebgcolor - color
2682 % framecolor - color
2683
2684 \defineinnerblockstyle{Default}{
2685 titlewidthscale=1, bodywidthscale=1, titlecenter,
2686 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2687 bodyverticalshift=0pt, roundedcorners=20, linewidth=4pt,
2688 titleinnersep=10pt, bodyinnersep=12pt
2689 }{
2690 \begin{scope}[line width=\innerblocklinewidth, rounded
2691 corners=\innerblockroundedcorners, solid]
2692 \ifInnerblockHasTitle %
2693 \draw[color=innerblocktitlebgcolor, fill=innerblocktitlebgcolor]
2694 (innerblockbody.south west) rectangle (innerblocktitle.north east);
2695 \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
2696 (innerblockbody.south west) rectangle (innerblockbody.north east);
2697 \else
2698 \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
2699 (innerblockbody.south west) rectangle (innerblockbody.north east);
2700 \fi
2701 \end{scope}
2702 }
2703
2704 \defineinnerblockstyle{Table}{
2705 titlewidthscale=0.25, bodywidthscale=0.75, titleleft,
2706 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2707 bodyverticalshift=0pt, roundedcorners=15, linewidth=3mm,
2708 titleinnersep=15pt, bodyinnersep=15pt
2709 }{
2710 %
2711 % minimum height should be the maximum of \TP@innerblocktitleheight and
2712 % \TP@innerblockbodyheight
2713 \node[minimum width=\TP@innerblocktitlewidth, minimum
2714 height=\TP@innerblockbodyheight, anchor=center] (innerblocktitle) at
2715 (\[email protected]\TP@innerblockbodywidth+\TP@innerblocktitleoffsetx,
2716 {-\[email protected]\TP@innerblockbodyheight+\TP@innerblocktitleoffsety})
2717 {};%
2718 %
2719 \ifInnerblockHasTitle%
2720 \node[minimum width=\TP@innerblockbodywidth, minimum
2721 height=\TP@innerblockbodyheight, anchor=center] (innerblockbody) at
2722 (\TP@innerblockcenter+0.5\TP@innerblocktitlewidth+\TP@innerblockbodyoffsetx,
2723 {-\[email protected]\TP@innerblockbodyheight+\TP@innerblockbodyoffsety})
2724 {};%
2725 %
2726 \else%
2727 \node[minimum width=\TP@innerblockbodywidth, minimum
2728 height=\TP@innerblockbodyheight, anchor=center] (innerblockbody) at
2729 (\TP@innerblockcenter+\TP@innerblockbodyoffsetx,
2730 {-\[email protected]\TP@innerblockbodyheight}) {};%
2731 \fi
2732 %
2733 \begin{scope}[rounded corners=\innerblockroundedcorners, line width=\innerblocklinewidth]
2734 \ifInnerblockHasTitle
2735 % the big rectangle
2736 \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
2737 (innerblocktitle.north west) rectangle (innerblockbody.south east);%
2738 \draw[color=innerblocktitlebgcolor] (innerblocktitle.south east) --
2739 (innerblocktitle.north east); %
2740 \else
2741 % No title
2742 \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
2743 (innerblockbody.south west) rectangle (innerblockbody.north east);
2744 \fi
2745 \end{scope}
2746 }
2747
2748 \defineinnerblockstyle{Basic}{
2749 titlewidthscale=0.8, bodywidthscale=1, titlecenter,
2750 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=6mm,
2751 bodyverticalshift=6mm, roundedcorners=14, linewidth=2pt,
2752 titleinnersep=8pt, bodyinnersep=8pt
2753 }{
2754 \draw[rounded corners=\innerblockroundedcorners, inner sep=\innerblockbodyinnersep, line width=\innerblocklinewidth, color=framecolor, fill=innerblockbodybgcolor]
2755 (innerblockbody.south west) rectangle (innerblockbody.north east); %
2756 \ifInnerblockHasTitle%
2757 \draw[rounded corners=\innerblockroundedcorners, inner sep=\innerblocktitleinnersep, line width=\innerblocklinewidth, color=framecolor, fill=innerblocktitlebgcolor]
2758 (innerblocktitle.south west) rectangle (innerblocktitle.north east); %
2759 \fi%
2760 }
2761
2762 \defineinnerblockstyle{Minimal}{
2763 titlewidthscale=1, bodywidthscale=1, titleleft,
2764 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2765 bodyverticalshift=0pt, roundedcorners=0, linewidth=1.5mm,
2766 titleinnersep=10pt, bodyinnersep=10pt
2767 }{
2768 \begin{scope}[line width=\innerblocklinewidth, rounded corners=\innerblockroundedcorners]
2769 \ifInnerblockHasTitle %
2770 \draw[draw=none, fill=innerblockbodybgcolor]
2771 (innerblockbody.south west) rectangle (innerblocktitle.north east);
2772 \draw[color=innerblocktitlebgcolor, loosely dashed]
2773 (innerblocktitle.south west) -- (innerblocktitle.south east);%
2774 \else
2775 \draw[draw=none, fill=innerblockbodybgcolor]
2776 (innerblockbody.south west) rectangle (innerblockbody.north east);
2777 \fi
2778 \end{scope}
2779 }
2780
2781 \defineinnerblockstyle{Envelope}{
2782 titlewidthscale=1, bodywidthscale=1, titlecenter,
2783 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2784 bodyverticalshift=0pt, roundedcorners=20, linewidth=1.3pt,
2785 titleinnersep=10pt, bodyinnersep=10pt
2786 }{
2787 \begin{scope}[rounded corners=\innerblockroundedcorners, line width=\innerblocklinewidth,
2788 drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3} ]
2789 \ifInnerblockHasTitle
2790 % the big rectangle
2791 \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor, drop shadow]
2792 (innerblockbody.south west) rectangle (innerblocktitle.north east);%
2793 \begin{scope}
2794 \clip (innerblocktitle.south west) rectangle (innerblocktitle.north east);
2795 % fading on top
2796 \fill[rounded corners=0, path fading=south, fill=innerblocktitlebgcolor, opacity=.4]
2797 ($(innerblocktitle.south west)-(0.1,0)$) rectangle ($(innerblocktitle.north east)+(0.1,0)$);
2798 % the trapezium
2799 \draw[draw=none, bottom color=innerblocktitlebgcolor, top
2800 color=innerblocktitlebgcolor!85!] %
2801 ($(innerblocktitle.north west)+(0.25,0)$) -- ($(innerblocktitle.north west)+(0.75,0)$) -- %
2802 ($(innerblocktitle.south west)+(2.5,0)$) -- ($(innerblocktitle.south east)-(2.5,0)$) -- %
2803 ($(innerblocktitle.north east)-(0.75,0)$) -- ($(innerblocktitle.north east)-(0.25,0)$) -- cycle;
2804 \end{scope}
2805 \else
2806 % No title
2807 \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
2808 (innerblockbody.south west) rectangle (innerblockbody.north east);
2809 \fi
2810 \end{scope}
2811 }
2812
2813 \defineinnerblockstyle{Corner}{
2814 titlewidthscale=1, bodywidthscale=1, titleleft,
2815 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2816 bodyverticalshift=0pt, roundedcorners=8, linewidth=1pt,
2817 titleinnersep=10pt, bodyinnersep=10pt
2818 }{
2819 % the shadow above the corner
2820 \begin{scope}
2821 \clip (innerblockbody.south west) rectangle (innerblocktitle.north east);
2822 \begin{scope}[transform canvas={xshift=-1cm, yshift=-0.8cm, rotate
2823 around={-20:($(innerblocktitle.north east)-(10,0)$)}}]
2824 \fill[color=gray, path fading=north, opacity=0.8]%
2825 ($(innerblocktitle.north east)-(10,1)$) rectangle ($(innerblocktitle.north east)+(2,2.3)$);
2826 \end{scope}
2827 \end{scope}
2828 %
2829 % the border
2830 \def \border{%
2831 [rounded corners=30] (innerblockbody.south west) -- (innerblocktitle.north west) %
2832 [rounded corners=30] -- ($(innerblocktitle.north east)-(9.4,0)$)
2833 [rounded corners=30] -- ($(innerblocktitle.north east)-(0,3.4)$)
2834 [rounded corners=30] |- (innerblockbody.south west) -- cycle
2835 }
2836 \draw[line width=\innerblocklinewidth, color=innerblocktitlebgcolor, fill=innerblockbodybgcolor,
2837 % drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3}
2838 ] \border;
2839 %
2840 % the corner
2841 \begin{scope}
2842 \def \corner{ ($(innerblocktitle.north east)-(0,6)$) -- ($(innerblocktitle.north east)-(0,4.5)$) .. %
2843 controls ($(innerblocktitle.north east)-(-0,2.7)$) and ($(innerblocktitle.north east)-(2.8,2.2)$)
2844 .. ($(innerblocktitle.north east)-(3.8,4.6)$) %
2845 .. controls ($(innerblocktitle.north east)-(8.6,0)$) .. ($(innerblocktitle.north east)-(11.4,0)$) %
2846 [rounded corners=30] -- ($(innerblocktitle.north east)-(9.4,0)$) %
2847 [rounded corners=30] -- ($(innerblocktitle.north east)-(0,3.4)$) %
2848 [rounded corners=0] -- ($(innerblocktitle.north east)-(0,6)$)}
2849 \draw[innerblocktitlebgcolor] \corner;
2850 \clip \corner;
2851 \begin{scope}[transform canvas={xshift=-1cm, yshift=-1.3cm, rotate
2852 around={-23:($(innerblocktitle.north east)-(10,0)$)}}]
2853 \fill[color=innerblocktitlebgcolor!90] ($(innerblocktitle.north east) - (10,2)$)
2854 rectangle ($(innerblocktitle.north east) + (2,3.6)$); %
2855 \fill[color=innerblocktitlebgcolor , path fading=south, opacity=1]
2856 ($(innerblocktitle.north east) - (10,-1.2)$) rectangle ($(innerblocktitle.north east) + (2,1.6)$); %
2857 \fill[color=innerblocktitlebgcolor , path fading=north, opacity=1]
2858 ($(innerblocktitle.north east) - (10,-1.6)$) rectangle ($(innerblocktitle.north east) + (2,2.1)$);
2859 \end{scope}
2860 \end{scope}%
2861 }
2862
2863 \defineinnerblockstyle{Slide}{
2864 titlewidthscale=1, bodywidthscale=1, titleleft,
2865 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2866 bodyverticalshift=0pt, roundedcorners=0, linewidth=0pt,
2867 titleinnersep=10pt, bodyinnersep=10pt
2868 }{
2869 \ifInnerblockHasTitle%
2870 \draw[draw=none, left color=innerblocktitlebgcolor, right color=innerblockbodybgcolor]
2871 (innerblocktitle.south west) rectangle (innerblocktitle.north east);
2872 \fi%
2873 \draw[draw=none, fill=innerblockbodybgcolor] %
2874 (innerblockbody.north west) [rounded corners=30] -- (innerblockbody.south west) --
2875 (innerblockbody.south east) [rounded corners=0]-- (innerblockbody.north east) -- cycle;
2876 }
2877
2878 \defineinnerblockstyle{TornOut}{
2879 titlewidthscale=1, bodywidthscale=1, titlecenter,
2880 titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
2881 bodyverticalshift=-1.2cm, roundedcorners=0, linewidth=1pt,
2882 titleinnersep=10pt, bodyinnersep=10pt
2883 }{
2884 \ifInnerblockHasTitle%
2885 \coordinate (topright) at (innerblocktitle.north east);
2886 \else
2887 \coordinate (topright) at (innerblockbody.north east);
2888 \fi%
2889 \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor,%
2890 line width=\innerblocklinewidth, drop shadow={shadow xshift=0.2cm, shadow yshift=-0.2cm,opacity=0.3}, %
2891 decorate, decoration={random steps,segment length=1.5cm,amplitude=0.15cm}
2892 % decorate, decoration={penciline,amplitude=0.2cm}
2893 ] (innerblockbody.south west) rectangle (topright);%
2894 }
2895
2896 % \end{macrocode}
2897 % \begin{macrocode}
2898 %</tikzposterInnerblockstyles.tex>
2899 % \end{macrocode}
2900 % \Finale
2901 \endinput
2902
2903
2904
2905