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.

223 lines
8.2 KiB

  1. %%
  2. %% This is file `tikzposterBlockstyles.tex',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% tikzposter.dtx (with options: `tikzposterBlockstyles.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. % titlewidthscale
  25. % bodywidthscale
  26. % titlecenter, titleleft, titleright
  27. % titleoffsetx
  28. % titleoffsety
  29. % bodyoffsetx
  30. % bodyoffsety
  31. % bodyverticalshift
  32. % roundedcorners
  33. % linewidth
  34. % titleinnersep
  35. % bodyinnersep
  36. % Parameter:
  37. % \ifBlockHasTitle - boolean
  38. % blocktitle - coordinate
  39. % blockbody - coordinate
  40. % \blockroundedcorners - number
  41. % \blocklinewidth - length
  42. % \blockbodyinnersep - length
  43. % \blocktitleinnersep - length
  44. % blockbodybgcolor - color
  45. % blocktitlebgcolor - color
  46. % framecolor - color
  47. \defineblockstyle{Default}{
  48. titlewidthscale=1, bodywidthscale=1, titlecenter,
  49. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  50. bodyverticalshift=0pt, roundedcorners=30, linewidth=0.4cm,
  51. titleinnersep=1cm, bodyinnersep=1cm
  52. }{
  53. \begin{scope}[line width=\blocklinewidth, rounded corners=\blockroundedcorners]
  54. \ifBlockHasTitle %
  55. \draw[color=blocktitlebgcolor, fill=blocktitlebgcolor] (blockbody.south west) rectangle (blocktitle.north east);
  56. \draw[color=blocktitlebgcolor, fill=blockbodybgcolor] (blockbody.south west) rectangle (blockbody.north east);
  57. \else
  58. \draw[color=blocktitlebgcolor, fill=blockbodybgcolor] (blockbody.south west) rectangle (blockbody.north east);
  59. \fi
  60. \end{scope}
  61. }
  62. \defineblockstyle{Basic}{
  63. titlewidthscale=0.8, bodywidthscale=1, titlecenter,
  64. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=15mm,
  65. bodyverticalshift=15mm, roundedcorners=22, linewidth=5pt,
  66. titleinnersep=8mm, bodyinnersep=8mm
  67. }{
  68. \draw[rounded corners=\blockroundedcorners, inner sep=\blockbodyinnersep, line width=\blocklinewidth, color=framecolor, fill=blockbodybgcolor]
  69. (blockbody.south west) rectangle (blockbody.north east); %
  70. \ifBlockHasTitle%
  71. \draw[rounded corners=\blockroundedcorners, inner sep=\blocktitleinnersep, line width=\blocklinewidth, color=framecolor, fill=blocktitlebgcolor]
  72. (blocktitle.south west) rectangle (blocktitle.north east); %
  73. \fi%
  74. }
  75. \defineblockstyle{Minimal}{
  76. titlewidthscale=1, bodywidthscale=1, titleleft,
  77. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  78. bodyverticalshift=0pt, roundedcorners=0, linewidth=0.2cm,
  79. titleinnersep=1cm, bodyinnersep=1cm
  80. }{
  81. \begin{scope}[line width=\blocklinewidth, rounded corners=\blockroundedcorners]
  82. \ifBlockHasTitle %
  83. \draw[draw=none]%, fill=blockbodybgcolor]
  84. (blockbody.south west) rectangle (blocktitle.north east);
  85. \draw[color=blocktitlebgcolor, loosely dashed]
  86. (blocktitle.south west) -- (blocktitle.south east);%
  87. \else
  88. \draw[draw=none]%, fill=blockbodybgcolor]
  89. (blockbody.south west) rectangle (blockbody.north east);
  90. \fi
  91. \end{scope}
  92. }
  93. \defineblockstyle{Envelope}{
  94. titlewidthscale=1, bodywidthscale=1, titlecenter,
  95. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  96. bodyverticalshift=0pt, roundedcorners=20, linewidth=1.6pt,
  97. titleinnersep=1cm, bodyinnersep=1cm
  98. }{
  99. \begin{scope}[rounded corners=\blockroundedcorners, line width=\blocklinewidth,
  100. drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3} ]
  101. \ifBlockHasTitle
  102. % the big rectangle
  103. \draw[color=blocktitlebgcolor, fill=blockbodybgcolor, drop shadow]
  104. (blockbody.south west) rectangle (blocktitle.north east);%
  105. \begin{scope}
  106. \clip (blocktitle.south west) rectangle (blocktitle.north east);
  107. % fading on top
  108. \fill[rounded corners=0, path fading=south, fill=blocktitlebgcolor, opacity=.4]
  109. ($(blocktitle.south west)-(0.1,0)$) rectangle ($(blocktitle.north east)+(0.1,0)$);
  110. % the trapezium
  111. \draw[draw=none, bottom color=blocktitlebgcolor, top
  112. color=blocktitlebgcolor!85!] %
  113. ($(blocktitle.north west)+(0.25,0)$) -- ($(blocktitle.north west)+(0.75,0)$) -- %
  114. ($(blocktitle.south west)+(2.5,0)$) -- ($(blocktitle.south east)-(2.5,0)$) -- %
  115. ($(blocktitle.north east)-(0.75,0)$) -- ($(blocktitle.north east)-(0.25,0)$) -- cycle;
  116. \end{scope}
  117. \else
  118. % No title
  119. \draw[color=blocktitlebgcolor, fill=blockbodybgcolor]
  120. (blockbody.south west) rectangle (blockbody.north east);
  121. \fi
  122. \end{scope}
  123. }
  124. \defineblockstyle{Corner}{
  125. titlewidthscale=1, bodywidthscale=1, titleleft,
  126. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  127. bodyverticalshift=0pt, roundedcorners=20, linewidth=1.2pt,
  128. titleinnersep=1cm, bodyinnersep=1cm
  129. }{
  130. % the shadow above the corner
  131. \begin{scope}
  132. \clip (blockbody.south west) rectangle (blocktitle.north east);
  133. \begin{scope}[transform canvas={xshift=-1cm, yshift=-0.8cm, rotate
  134. around={-20:($(blocktitle.north east)-(10,0)$)}}]
  135. \fill[color=gray, path fading=north, opacity=0.8]%
  136. ($(blocktitle.north east)-(10,1)$) rectangle ($(blocktitle.north east)+(2,2.3)$);
  137. \end{scope}
  138. \end{scope}
  139. %
  140. % the border
  141. \def \border{%
  142. [rounded corners=30] (blockbody.south west) -- (blocktitle.north west) %
  143. [rounded corners=30] -- ($(blocktitle.north east)-(9.4,0)$)
  144. [rounded corners=30] -- ($(blocktitle.north east)-(0,3.4)$)
  145. [rounded corners=30] |- (blockbody.south west) -- cycle
  146. }
  147. \draw[line width=\blocklinewidth, color=blocktitlebgcolor, fill=blockbodybgcolor,
  148. % drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3}
  149. ] \border;
  150. %
  151. % the corner
  152. \begin{scope}
  153. \def \corner{ ($(blocktitle.north east)-(0,6)$) -- ($(blocktitle.north east)-(0,4.5)$) .. %
  154. controls ($(blocktitle.north east)-(-0,2.7)$) and ($(blocktitle.north east)-(2.8,2.2)$)
  155. .. ($(blocktitle.north east)-(3.8,4.6)$) %
  156. .. controls ($(blocktitle.north east)-(8.6,0)$) .. ($(blocktitle.north east)-(11.4,0)$) %
  157. [rounded corners=30] -- ($(blocktitle.north east)-(9.4,0)$) %
  158. [rounded corners=30] -- ($(blocktitle.north east)-(0,3.4)$) %
  159. [rounded corners=0] -- ($(blocktitle.north east)-(0,6)$)}
  160. \draw[blocktitlebgcolor] \corner;
  161. \clip \corner;
  162. \begin{scope}[transform canvas={xshift=-1cm, yshift=-1.3cm, rotate
  163. around={-23:($(blocktitle.north east)-(10,0)$)}}]
  164. \fill[color=blocktitlebgcolor!90] ($(blocktitle.north east) - (10,2)$)
  165. rectangle ($(blocktitle.north east) + (2,3.6)$); %
  166. \fill[color=blocktitlebgcolor , path fading=south, opacity=1]
  167. ($(blocktitle.north east) - (10,-1.2)$) rectangle ($(blocktitle.north east) + (2,1.6)$); %
  168. \fill[color=blocktitlebgcolor , path fading=north, opacity=1]
  169. ($(blocktitle.north east) - (10,-1.6)$) rectangle ($(blocktitle.north east) + (2,2.1)$);
  170. \end{scope}
  171. \end{scope}%
  172. }
  173. \defineblockstyle{Slide}{
  174. titlewidthscale=1, bodywidthscale=1, titleleft,
  175. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  176. bodyverticalshift=0pt, roundedcorners=0, linewidth=0pt, titleinnersep=1cm,
  177. bodyinnersep=1cm
  178. }{
  179. \ifBlockHasTitle%
  180. \draw[draw=none, left color=blocktitlebgcolor, right color=blockbodybgcolor]
  181. (blocktitle.south west) rectangle (blocktitle.north east);
  182. \fi%
  183. \draw[draw=none, fill=blockbodybgcolor] %
  184. (blockbody.north west) [rounded corners=30] -- (blockbody.south west) --
  185. (blockbody.south east) [rounded corners=0]-- (blockbody.north east) -- cycle;
  186. }
  187. \defineblockstyle{TornOut}{
  188. titlewidthscale=1, bodywidthscale=1, titlecenter,
  189. titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
  190. bodyverticalshift=-1.2cm, roundedcorners=0, linewidth=1.2pt,
  191. titleinnersep=1cm, bodyinnersep=1cm
  192. }{
  193. \ifBlockHasTitle%
  194. \coordinate (topright) at (blocktitle.north east);
  195. \else
  196. \coordinate (topright) at (blockbody.north east);
  197. \fi%
  198. \draw[color=blocktitlebgcolor, fill=blockbodybgcolor,%
  199. line width=\blocklinewidth, drop shadow={shadow xshift=0.2cm, shadow yshift=-0.2cm,opacity=0.3}, %
  200. decorate, decoration={random steps,segment length=1.5cm,amplitude=0.15cm}
  201. ] (blockbody.south west) rectangle (topright);%
  202. }
  203. \endinput
  204. %%
  205. %% End of file `tikzposterBlockstyles.tex'.