summaryrefslogtreecommitdiff
path: root/tex/.texmf/tex/latex/tikzposter/tikzposterInnerblockstyles.tex
blob: ac9aee3c77efaa9e734d71b8160fcc4fbf1233ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
%%
%% This is file `tikzposterInnerblockstyles.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tikzposter.dtx  (with options: `tikzposterInnerblockstyles.tex')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2014 by Pascal Richter, Elena Botoeva, Richard Barnard, and Dirk Surmann
%% 
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 2.0 of this license or (at your option) any later
%% version. The latest version of this license is in:
%% 
%% http://www.latex-project.org/lppl.txt
%% 
%% and version 2.0 or later is part of all distributions of
%% LaTeX version 2013/12/01 or later.
%% 











 % Options:
 %   titlewidth
 %   bodywidth
 %   titlewidthscale
 %   bodywidthscale
 %   titlecenter, titleleft, titleright
 %   titleoffsetx
 %   titleoffsety
 %   bodyoffsetx
 %   bodyoffsety
 %   bodyverticalshift
 %   roundedcorners
 %   linewidth
 %   titleinnersep
 %   bodyinnersep

 % Parameter:
 %   \ifInnerblockHasTitle  -  boolean
 %   innerblocktitle  -  coordinate
 %   innerblockbody  -  coordinate
 %   \innerblockroundedcorners  -  number
 %   \innerblocklinewidth  -  length
 %   \innerblockbodyinnersep  -  length
 %   \innerblocktitleinnersep  -  length
 %   innerblockbodybgcolor  -  color
 %   innerblocktitlebgcolor  -  color
 %   framecolor  -  color

\defineinnerblockstyle{Default}{
    titlewidthscale=1, bodywidthscale=1, titlecenter,
    titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
    bodyverticalshift=0pt, roundedcorners=20, linewidth=4pt,
    titleinnersep=10pt, bodyinnersep=12pt
}{
    \begin{scope}[line width=\innerblocklinewidth, rounded
      corners=\innerblockroundedcorners, solid]
        \ifInnerblockHasTitle %
           \draw[color=innerblocktitlebgcolor, fill=innerblocktitlebgcolor]
           (innerblockbody.south west) rectangle (innerblocktitle.north east);
           \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
           (innerblockbody.south west) rectangle (innerblockbody.north east);
        \else
           \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
           (innerblockbody.south west) rectangle (innerblockbody.north east);
        \fi
    \end{scope}
}

\defineinnerblockstyle{Table}{
    titlewidthscale=0.25, bodywidthscale=0.75, titleleft,
    titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
    bodyverticalshift=0pt, roundedcorners=15, linewidth=3mm,
    titleinnersep=15pt, bodyinnersep=15pt
}{
  % minimum height should be the maximum of \TP@innerblocktitleheight and
  % \TP@innerblockbodyheight
  \node[minimum width=\TP@innerblocktitlewidth, minimum
  height=\TP@innerblockbodyheight, anchor=center] (innerblocktitle) at
  (\TP@innerblockcenter-0.5\TP@innerblockbodywidth+\TP@innerblocktitleoffsetx,
  {-\TP@innerblocktitleheight-0.5\TP@innerblockbodyheight+\TP@innerblocktitleoffsety})
  {};%
  %
  \ifInnerblockHasTitle%
  \node[minimum width=\TP@innerblockbodywidth, minimum
  height=\TP@innerblockbodyheight, anchor=center] (innerblockbody) at
  (\TP@innerblockcenter+0.5\TP@innerblocktitlewidth+\TP@innerblockbodyoffsetx,
  {-\TP@innerblocktitleheight-0.5\TP@innerblockbodyheight+\TP@innerblockbodyoffsety})
  {};%
  %
  \else%
  \node[minimum width=\TP@innerblockbodywidth, minimum
  height=\TP@innerblockbodyheight, anchor=center] (innerblockbody) at
  (\TP@innerblockcenter+\TP@innerblockbodyoffsetx,
  {-\TP@innerblocktitleheight-0.5\TP@innerblockbodyheight}) {};%
  \fi
 \begin{scope}[rounded corners=\innerblockroundedcorners, line width=\innerblocklinewidth]
        \ifInnerblockHasTitle
           % the big rectangle
        \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
        (innerblocktitle.north west) rectangle (innerblockbody.south east);%
        \draw[color=innerblocktitlebgcolor] (innerblocktitle.south east) --
        (innerblocktitle.north east); %
        \else
           % No title
           \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
               (innerblockbody.south west) rectangle (innerblockbody.north east);
        \fi
    \end{scope}
}

 \defineinnerblockstyle{Basic}{
    titlewidthscale=0.8, bodywidthscale=1, titlecenter,
    titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=6mm,
    bodyverticalshift=6mm, roundedcorners=14, linewidth=2pt,
    titleinnersep=8pt, bodyinnersep=8pt
}{
    \draw[rounded corners=\innerblockroundedcorners, inner sep=\innerblockbodyinnersep, line width=\innerblocklinewidth, color=framecolor, fill=innerblockbodybgcolor]
        (innerblockbody.south west) rectangle (innerblockbody.north east); %
    \ifInnerblockHasTitle%
        \draw[rounded corners=\innerblockroundedcorners, inner sep=\innerblocktitleinnersep, line width=\innerblocklinewidth, color=framecolor, fill=innerblocktitlebgcolor]
           (innerblocktitle.south west) rectangle (innerblocktitle.north east); %
    \fi%
}

\defineinnerblockstyle{Minimal}{
    titlewidthscale=1, bodywidthscale=1, titleleft,
    titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
    bodyverticalshift=0pt, roundedcorners=0, linewidth=1.5mm,
    titleinnersep=10pt, bodyinnersep=10pt
}{
    \begin{scope}[line width=\innerblocklinewidth, rounded corners=\innerblockroundedcorners]
       \ifInnerblockHasTitle %
           \draw[draw=none, fill=innerblockbodybgcolor]
               (innerblockbody.south west) rectangle (innerblocktitle.north east);
           \draw[color=innerblocktitlebgcolor, loosely dashed]
               (innerblocktitle.south west) -- (innerblocktitle.south east);%
       \else
             \draw[draw=none, fill=innerblockbodybgcolor]
                 (innerblockbody.south west) rectangle (innerblockbody.north east);
        \fi
    \end{scope}
}

\defineinnerblockstyle{Envelope}{
    titlewidthscale=1, bodywidthscale=1, titlecenter,
    titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
    bodyverticalshift=0pt, roundedcorners=20, linewidth=1.3pt,
    titleinnersep=10pt, bodyinnersep=10pt
}{
    \begin{scope}[rounded corners=\innerblockroundedcorners, line width=\innerblocklinewidth,
      drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3} ]
        \ifInnerblockHasTitle
           % the big rectangle
           \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor, drop shadow]
               (innerblockbody.south west) rectangle (innerblocktitle.north east);%
           \begin{scope}
              \clip (innerblocktitle.south west) rectangle (innerblocktitle.north east);
              % fading on top
              \fill[rounded corners=0, path fading=south, fill=innerblocktitlebgcolor, opacity=.4]
              ($(innerblocktitle.south west)-(0.1,0)$) rectangle ($(innerblocktitle.north east)+(0.1,0)$);
              % the trapezium
              \draw[draw=none, bottom color=innerblocktitlebgcolor, top
              color=innerblocktitlebgcolor!85!] %
                 ($(innerblocktitle.north west)+(0.25,0)$) -- ($(innerblocktitle.north west)+(0.75,0)$) -- %
                 ($(innerblocktitle.south west)+(2.5,0)$) -- ($(innerblocktitle.south east)-(2.5,0)$) -- %
                 ($(innerblocktitle.north east)-(0.75,0)$) -- ($(innerblocktitle.north east)-(0.25,0)$) -- cycle;
           \end{scope}
        \else
           % No title
           \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
               (innerblockbody.south west) rectangle (innerblockbody.north east);
        \fi
    \end{scope}
}

\defineinnerblockstyle{Corner}{
    titlewidthscale=1, bodywidthscale=1, titleleft,
    titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
    bodyverticalshift=0pt, roundedcorners=8, linewidth=1pt,
    titleinnersep=10pt, bodyinnersep=10pt
}{
   % the shadow above the corner
   \begin{scope}
    \clip (innerblockbody.south west) rectangle (innerblocktitle.north east);
    \begin{scope}[transform canvas={xshift=-1cm, yshift=-0.8cm, rotate
        around={-20:($(innerblocktitle.north east)-(10,0)$)}}]
      \fill[color=gray, path fading=north, opacity=0.8]%
      ($(innerblocktitle.north east)-(10,1)$) rectangle ($(innerblocktitle.north east)+(2,2.3)$);
    \end{scope}
   \end{scope}
   %
   % the border
   \def \border{%
    [rounded corners=30] (innerblockbody.south west) -- (innerblocktitle.north west) %
    [rounded corners=30] -- ($(innerblocktitle.north east)-(9.4,0)$)
    [rounded corners=30] -- ($(innerblocktitle.north east)-(0,3.4)$)
    [rounded corners=30] |-    (innerblockbody.south west) -- cycle
  }
   \draw[line width=\innerblocklinewidth, color=innerblocktitlebgcolor, fill=innerblockbodybgcolor,
   % drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3}
   ] \border;
   %
   % the corner
   \begin{scope}
    \def \corner{ ($(innerblocktitle.north east)-(0,6)$) -- ($(innerblocktitle.north east)-(0,4.5)$) .. %
      controls ($(innerblocktitle.north east)-(-0,2.7)$) and ($(innerblocktitle.north east)-(2.8,2.2)$)
      .. ($(innerblocktitle.north east)-(3.8,4.6)$) %
      .. controls ($(innerblocktitle.north east)-(8.6,0)$) ..    ($(innerblocktitle.north east)-(11.4,0)$) %
      [rounded corners=30] -- ($(innerblocktitle.north east)-(9.4,0)$) %
      [rounded corners=30] -- ($(innerblocktitle.north east)-(0,3.4)$) %
      [rounded corners=0] -- ($(innerblocktitle.north east)-(0,6)$)}
    \draw[innerblocktitlebgcolor] \corner;
    \clip \corner;
    \begin{scope}[transform canvas={xshift=-1cm, yshift=-1.3cm, rotate
        around={-23:($(innerblocktitle.north east)-(10,0)$)}}]
      \fill[color=innerblocktitlebgcolor!90] ($(innerblocktitle.north east) - (10,2)$)
      rectangle ($(innerblocktitle.north east) + (2,3.6)$); %
      \fill[color=innerblocktitlebgcolor , path fading=south, opacity=1]
      ($(innerblocktitle.north east) - (10,-1.2)$) rectangle ($(innerblocktitle.north east) + (2,1.6)$); %
      \fill[color=innerblocktitlebgcolor , path fading=north, opacity=1]
      ($(innerblocktitle.north east) - (10,-1.6)$) rectangle ($(innerblocktitle.north east) + (2,2.1)$);
    \end{scope}
   \end{scope}%
}

\defineinnerblockstyle{Slide}{
    titlewidthscale=1, bodywidthscale=1, titleleft,
    titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
    bodyverticalshift=0pt, roundedcorners=0, linewidth=0pt,
    titleinnersep=10pt, bodyinnersep=10pt
}{
    \ifInnerblockHasTitle%
        \draw[draw=none, left color=innerblocktitlebgcolor, right color=innerblockbodybgcolor]
           (innerblocktitle.south west) rectangle (innerblocktitle.north east);
    \fi%
    \draw[draw=none, fill=innerblockbodybgcolor] %
        (innerblockbody.north west) [rounded corners=30] -- (innerblockbody.south west) --
        (innerblockbody.south east) [rounded corners=0]-- (innerblockbody.north east) -- cycle;
}

\defineinnerblockstyle{TornOut}{
    titlewidthscale=1, bodywidthscale=1, titlecenter,
    titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
    bodyverticalshift=-1.2cm, roundedcorners=0, linewidth=1pt,
    titleinnersep=10pt, bodyinnersep=10pt
}{
    \ifInnerblockHasTitle%
        \coordinate (topright) at (innerblocktitle.north east);
    \else
        \coordinate (topright) at (innerblockbody.north east);
    \fi%
    \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor,%
        line width=\innerblocklinewidth, drop shadow={shadow xshift=0.2cm, shadow yshift=-0.2cm,opacity=0.3}, %
        decorate, decoration={random steps,segment length=1.5cm,amplitude=0.15cm}
        % decorate, decoration={penciline,amplitude=0.2cm}
    ] (innerblockbody.south west) rectangle (topright);%
}

\endinput
%%
%% End of file `tikzposterInnerblockstyles.tex'.