You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

272 lines
11 KiB

  1. %%
  2. %% This is file `tikzposterInnerblockstyles.tex',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% tikzposter.dtx (with options: `tikzposterInnerblockstyles.tex')
  8. %%
  9. %% This is a generated file.
  10. %%
  11. %% Copyright (C) 2014 by Pascal Richter, Elena Botoeva, Richard Barnard, and Dirk Surmann
  12. %%
  13. %% This file may be distributed and/or modified under the
  14. %% conditions of the LaTeX Project Public License, either
  15. %% version 2.1 of this license or (at your option) any later
  16. %% version. The latest version of this license is in:
  17. %%
  18. %% http://www.latex-project.org/lppl.txt
  19. %%
  20. %% and version 2.1 or later is part of all distributions of
  21. %% LaTeX version 2014/10/15 or later.
  22. %%
  23. % Options:
  24. % titlewidth
  25. % bodywidth
  26. % titlewidthscale
  27. % bodywidthscale
  28. % titlecenter, titleleft, titleright
  29. % titleoffsetx
  30. % titleoffsety
  31. % bodyoffsetx
  32. % bodyoffsety
  33. % bodyverticalshift
  34. % roundedcorners
  35. % linewidth
  36. % titleinnersep
  37. % bodyinnersep
  38. % Parameter:
  39. % \ifInnerblockHasTitle - boolean
  40. % innerblocktitle - coordinate
  41. % innerblockbody - coordinate
  42. % \innerblockroundedcorners - number
  43. % \innerblocklinewidth - length
  44. % \innerblockbodyinnersep - length
  45. % \innerblocktitleinnersep - length
  46. % innerblockbodybgcolor - color
  47. % innerblocktitlebgcolor - color
  48. % framecolor - color
  49. \defineinnerblockstyle{Default}{
  50. titlewidthscale=1, bodywidthscale=1, titlecenter,
  51. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  52. bodyverticalshift=0pt, roundedcorners=20, linewidth=4pt,
  53. titleinnersep=10pt, bodyinnersep=12pt
  54. }{
  55. \begin{scope}[line width=\innerblocklinewidth, rounded
  56. corners=\innerblockroundedcorners, solid]
  57. \ifInnerblockHasTitle %
  58. \draw[color=innerblocktitlebgcolor, fill=innerblocktitlebgcolor]
  59. (innerblockbody.south west) rectangle (innerblocktitle.north east);
  60. \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
  61. (innerblockbody.south west) rectangle (innerblockbody.north east);
  62. \else
  63. \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
  64. (innerblockbody.south west) rectangle (innerblockbody.north east);
  65. \fi
  66. \end{scope}
  67. }
  68. \defineinnerblockstyle{Table}{
  69. titlewidthscale=0.25, bodywidthscale=0.75, titleleft,
  70. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  71. bodyverticalshift=0pt, roundedcorners=15, linewidth=3mm,
  72. titleinnersep=15pt, bodyinnersep=15pt
  73. }{
  74. % minimum height should be the maximum of \TP@innerblocktitleheight and
  75. % \TP@innerblockbodyheight
  76. \node[minimum width=\TP@innerblocktitlewidth, minimum
  77. height=\TP@innerblockbodyheight, anchor=center] (innerblocktitle) at
  78. (\TP@innerblockcenter-0.5\TP@innerblockbodywidth+\TP@innerblocktitleoffsetx,
  79. {-\TP@innerblocktitleheight-0.5\TP@innerblockbodyheight+\TP@innerblocktitleoffsety})
  80. {};%
  81. %
  82. \ifInnerblockHasTitle%
  83. \node[minimum width=\TP@innerblockbodywidth, minimum
  84. height=\TP@innerblockbodyheight, anchor=center] (innerblockbody) at
  85. (\TP@innerblockcenter+0.5\TP@innerblocktitlewidth+\TP@innerblockbodyoffsetx,
  86. {-\TP@innerblocktitleheight-0.5\TP@innerblockbodyheight+\TP@innerblockbodyoffsety})
  87. {};%
  88. %
  89. \else%
  90. \node[minimum width=\TP@innerblockbodywidth, minimum
  91. height=\TP@innerblockbodyheight, anchor=center] (innerblockbody) at
  92. (\TP@innerblockcenter+\TP@innerblockbodyoffsetx,
  93. {-\TP@innerblocktitleheight-0.5\TP@innerblockbodyheight}) {};%
  94. \fi
  95. \begin{scope}[rounded corners=\innerblockroundedcorners, line width=\innerblocklinewidth]
  96. \ifInnerblockHasTitle
  97. % the big rectangle
  98. \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
  99. (innerblocktitle.north west) rectangle (innerblockbody.south east);%
  100. \draw[color=innerblocktitlebgcolor] (innerblocktitle.south east) --
  101. (innerblocktitle.north east); %
  102. \else
  103. % No title
  104. \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
  105. (innerblockbody.south west) rectangle (innerblockbody.north east);
  106. \fi
  107. \end{scope}
  108. }
  109. \defineinnerblockstyle{Basic}{
  110. titlewidthscale=0.8, bodywidthscale=1, titlecenter,
  111. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=6mm,
  112. bodyverticalshift=6mm, roundedcorners=14, linewidth=2pt,
  113. titleinnersep=8pt, bodyinnersep=8pt
  114. }{
  115. \draw[rounded corners=\innerblockroundedcorners, inner sep=\innerblockbodyinnersep, line width=\innerblocklinewidth, color=framecolor, fill=innerblockbodybgcolor]
  116. (innerblockbody.south west) rectangle (innerblockbody.north east); %
  117. \ifInnerblockHasTitle%
  118. \draw[rounded corners=\innerblockroundedcorners, inner sep=\innerblocktitleinnersep, line width=\innerblocklinewidth, color=framecolor, fill=innerblocktitlebgcolor]
  119. (innerblocktitle.south west) rectangle (innerblocktitle.north east); %
  120. \fi%
  121. }
  122. \defineinnerblockstyle{Minimal}{
  123. titlewidthscale=1, bodywidthscale=1, titleleft,
  124. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  125. bodyverticalshift=0pt, roundedcorners=0, linewidth=1.5mm,
  126. titleinnersep=10pt, bodyinnersep=10pt
  127. }{
  128. \begin{scope}[line width=\innerblocklinewidth, rounded corners=\innerblockroundedcorners]
  129. \ifInnerblockHasTitle %
  130. \draw[draw=none, fill=innerblockbodybgcolor]
  131. (innerblockbody.south west) rectangle (innerblocktitle.north east);
  132. \draw[color=innerblocktitlebgcolor, loosely dashed]
  133. (innerblocktitle.south west) -- (innerblocktitle.south east);%
  134. \else
  135. \draw[draw=none, fill=innerblockbodybgcolor]
  136. (innerblockbody.south west) rectangle (innerblockbody.north east);
  137. \fi
  138. \end{scope}
  139. }
  140. \defineinnerblockstyle{Envelope}{
  141. titlewidthscale=1, bodywidthscale=1, titlecenter,
  142. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  143. bodyverticalshift=0pt, roundedcorners=20, linewidth=1.3pt,
  144. titleinnersep=10pt, bodyinnersep=10pt
  145. }{
  146. \begin{scope}[rounded corners=\innerblockroundedcorners, line width=\innerblocklinewidth,
  147. drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3} ]
  148. \ifInnerblockHasTitle
  149. % the big rectangle
  150. \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor, drop shadow]
  151. (innerblockbody.south west) rectangle (innerblocktitle.north east);%
  152. \begin{scope}
  153. \clip (innerblocktitle.south west) rectangle (innerblocktitle.north east);
  154. % fading on top
  155. \fill[rounded corners=0, path fading=south, fill=innerblocktitlebgcolor, opacity=.4]
  156. ($(innerblocktitle.south west)-(0.1,0)$) rectangle ($(innerblocktitle.north east)+(0.1,0)$);
  157. % the trapezium
  158. \draw[draw=none, bottom color=innerblocktitlebgcolor, top
  159. color=innerblocktitlebgcolor!85!] %
  160. ($(innerblocktitle.north west)+(0.25,0)$) -- ($(innerblocktitle.north west)+(0.75,0)$) -- %
  161. ($(innerblocktitle.south west)+(2.5,0)$) -- ($(innerblocktitle.south east)-(2.5,0)$) -- %
  162. ($(innerblocktitle.north east)-(0.75,0)$) -- ($(innerblocktitle.north east)-(0.25,0)$) -- cycle;
  163. \end{scope}
  164. \else
  165. % No title
  166. \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor]
  167. (innerblockbody.south west) rectangle (innerblockbody.north east);
  168. \fi
  169. \end{scope}
  170. }
  171. \defineinnerblockstyle{Corner}{
  172. titlewidthscale=1, bodywidthscale=1, titleleft,
  173. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  174. bodyverticalshift=0pt, roundedcorners=8, linewidth=1pt,
  175. titleinnersep=10pt, bodyinnersep=10pt
  176. }{
  177. % the shadow above the corner
  178. \begin{scope}
  179. \clip (innerblockbody.south west) rectangle (innerblocktitle.north east);
  180. \begin{scope}[transform canvas={xshift=-1cm, yshift=-0.8cm, rotate
  181. around={-20:($(innerblocktitle.north east)-(10,0)$)}}]
  182. \fill[color=gray, path fading=north, opacity=0.8]%
  183. ($(innerblocktitle.north east)-(10,1)$) rectangle ($(innerblocktitle.north east)+(2,2.3)$);
  184. \end{scope}
  185. \end{scope}
  186. %
  187. % the border
  188. \def \border{%
  189. [rounded corners=30] (innerblockbody.south west) -- (innerblocktitle.north west) %
  190. [rounded corners=30] -- ($(innerblocktitle.north east)-(9.4,0)$)
  191. [rounded corners=30] -- ($(innerblocktitle.north east)-(0,3.4)$)
  192. [rounded corners=30] |- (innerblockbody.south west) -- cycle
  193. }
  194. \draw[line width=\innerblocklinewidth, color=innerblocktitlebgcolor, fill=innerblockbodybgcolor,
  195. % drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3}
  196. ] \border;
  197. %
  198. % the corner
  199. \begin{scope}
  200. \def \corner{ ($(innerblocktitle.north east)-(0,6)$) -- ($(innerblocktitle.north east)-(0,4.5)$) .. %
  201. controls ($(innerblocktitle.north east)-(-0,2.7)$) and ($(innerblocktitle.north east)-(2.8,2.2)$)
  202. .. ($(innerblocktitle.north east)-(3.8,4.6)$) %
  203. .. controls ($(innerblocktitle.north east)-(8.6,0)$) .. ($(innerblocktitle.north east)-(11.4,0)$) %
  204. [rounded corners=30] -- ($(innerblocktitle.north east)-(9.4,0)$) %
  205. [rounded corners=30] -- ($(innerblocktitle.north east)-(0,3.4)$) %
  206. [rounded corners=0] -- ($(innerblocktitle.north east)-(0,6)$)}
  207. \draw[innerblocktitlebgcolor] \corner;
  208. \clip \corner;
  209. \begin{scope}[transform canvas={xshift=-1cm, yshift=-1.3cm, rotate
  210. around={-23:($(innerblocktitle.north east)-(10,0)$)}}]
  211. \fill[color=innerblocktitlebgcolor!90] ($(innerblocktitle.north east) - (10,2)$)
  212. rectangle ($(innerblocktitle.north east) + (2,3.6)$); %
  213. \fill[color=innerblocktitlebgcolor , path fading=south, opacity=1]
  214. ($(innerblocktitle.north east) - (10,-1.2)$) rectangle ($(innerblocktitle.north east) + (2,1.6)$); %
  215. \fill[color=innerblocktitlebgcolor , path fading=north, opacity=1]
  216. ($(innerblocktitle.north east) - (10,-1.6)$) rectangle ($(innerblocktitle.north east) + (2,2.1)$);
  217. \end{scope}
  218. \end{scope}%
  219. }
  220. \defineinnerblockstyle{Slide}{
  221. titlewidthscale=1, bodywidthscale=1, titleleft,
  222. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  223. bodyverticalshift=0pt, roundedcorners=0, linewidth=0pt,
  224. titleinnersep=10pt, bodyinnersep=10pt
  225. }{
  226. \ifInnerblockHasTitle%
  227. \draw[draw=none, left color=innerblocktitlebgcolor, right color=innerblockbodybgcolor]
  228. (innerblocktitle.south west) rectangle (innerblocktitle.north east);
  229. \fi%
  230. \draw[draw=none, fill=innerblockbodybgcolor] %
  231. (innerblockbody.north west) [rounded corners=30] -- (innerblockbody.south west) --
  232. (innerblockbody.south east) [rounded corners=0]-- (innerblockbody.north east) -- cycle;
  233. }
  234. \defineinnerblockstyle{TornOut}{
  235. titlewidthscale=1, bodywidthscale=1, titlecenter,
  236. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  237. bodyverticalshift=-1.2cm, roundedcorners=0, linewidth=1pt,
  238. titleinnersep=10pt, bodyinnersep=10pt
  239. }{
  240. \ifInnerblockHasTitle%
  241. \coordinate (topright) at (innerblocktitle.north east);
  242. \else
  243. \coordinate (topright) at (innerblockbody.north east);
  244. \fi%
  245. \draw[color=innerblocktitlebgcolor, fill=innerblockbodybgcolor,%
  246. line width=\innerblocklinewidth, drop shadow={shadow xshift=0.2cm, shadow yshift=-0.2cm,opacity=0.3}, %
  247. decorate, decoration={random steps,segment length=1.5cm,amplitude=0.15cm}
  248. ] (innerblockbody.south west) rectangle (topright);%
  249. }
  250. \endinput
  251. %%
  252. %% End of file `tikzposterInnerblockstyles.tex'.