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.

213 lines
7.7 KiB

  1. %%
  2. %% This is file `tikzposterNotestyles.tex',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% tikzposter.dtx (with options: `tikzposterNotestyles.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. % targetoffsetx
  25. % targetoffsety
  26. % angle
  27. % radius
  28. % width
  29. % connection
  30. % rotate
  31. % roundedcorners
  32. % linewidth
  33. % innersep
  34. % Parameter:
  35. % \ifNoteHasConnection - boolean
  36. % notecenter - coordinate
  37. % notetarget - coordinate
  38. % \noterotate - number
  39. % \noteroundedcorners - number
  40. % \notelinewidth - length
  41. % \noteinnersep - length
  42. % notebgcolor - color
  43. % notefgcolor - color
  44. % notefrcolor - color
  45. \definenotestyle{Default}{
  46. targetoffsetx=0pt, targetoffsety=0pt, angle=0, radius=8cm, width=8cm,
  47. connection=false, rotate=0, roundedcorners=20, linewidth=0pt, innersep=1cm
  48. }{
  49. \ifNoteHasConnection %% callout note
  50. \draw[color=notefrcolor, fill=notebgcolor]%
  51. (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
  52. ($(notetarget)!1!-4:(notecenter.center)$) --cycle; %
  53. %
  54. \fi
  55. \draw[color=notefrcolor, fill=notebgcolor, rounded
  56. corners=\noteroundedcorners] (notecenter.south west) -- (notecenter.north
  57. west) -- (notecenter.north east) -- (notecenter.south east) -- cycle;
  58. }
  59. \definenotestyle{Corner}{
  60. targetoffsetx=0pt, targetoffsety=0pt, angle=0, radius=8cm, width=12cm,
  61. connection=false, rotate=0, roundedcorners=20, linewidth=0pt, innersep=1cm
  62. }{
  63. \ifNoteHasConnection % callout note
  64. \draw[color=notebgcolor, fill=notebgcolor, drop shadow={shadow
  65. xshift=0.2cm, shadow yshift=-0.2cm, opacity=0.3}] %
  66. (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
  67. ($(notetarget)!1!-4:(notecenter.center)$) --cycle; %
  68. \fi
  69. \def \border{%
  70. [rounded corners=0] (notecenter.south west) -- (notecenter.north west) %
  71. [rounded corners=\noteroundedcorners] -- ($(notecenter.north
  72. east)-(\noterotate:4.7)$) %
  73. [rounded corners=\noteroundedcorners] -- ($(notecenter.north
  74. east)+(-90+\noterotate:1.7)$) %
  75. [rounded corners=0] -- (notecenter.south east) -- (notecenter.south
  76. west) -- cycle%
  77. }
  78. \fill[color=notebgcolor] \border;
  79. \coordinate (x) at (\noterotate:1);
  80. \coordinate (y) at (\noterotate-90:1);
  81. \fill[color=gray,opacity=0.3] ($(notecenter.north east)+3*(y)$) --
  82. ($(notecenter.north east)+2.5*(y)$) .. %
  83. controls ($(notecenter.north east)+1.25*(y)$) and ($(notecenter.north
  84. east)-1.5*(x)+1.25*(y)$) .. %
  85. ($(notecenter.north east)-1.9*(x)+2.5*(y)$) .. %
  86. controls ($(notecenter.north east)-4.5*(x)$) .. %
  87. ($(notecenter.north east)-5.7*(x)$) %
  88. [rounded corners=\noteroundedcorners] -- ($(notecenter.north east)-4.7*(x)$) %
  89. [rounded corners=\noteroundedcorners] -- ($(notecenter.north east)+1.7*(y)$) %
  90. [rounded corners=0] -- ($(notecenter.north east)+3*(y)$);
  91. \fill[color=notefrcolor] %
  92. ($(notecenter.north east)+3*(y)$) -- ($(notecenter.north east)+2.5*(y)$) .. %
  93. controls ($(notecenter.north east)+1.25*(y)$) and ($(notecenter.north
  94. east)-1.5*(x)+1.25*(y)$) .. %
  95. ($(notecenter.north east)-1.9*(x)+2.3*(y)$) .. %
  96. controls ($(notecenter.north east)-4.5*(x)$) .. %
  97. ($(notecenter.north east)-5.7*(x)$) %
  98. [rounded corners=\noteroundedcorners] -- ($(notecenter.north east)-4.7*(x)$) %
  99. [rounded corners=\noteroundedcorners] -- ($(notecenter.north east)+1.7*(y)$) %
  100. [rounded corners=0] -- ($(notecenter.north east)+3*(y)$);
  101. }
  102. \definenotestyle{VerticalShading}{
  103. targetoffsetx=0pt, targetoffsety=0pt, angle=0, radius=8cm, width=8cm,
  104. connection=false, rotate=0, roundedcorners=20, linewidth=1pt, innersep=1cm
  105. }{
  106. \ifNoteHasConnection % callout note
  107. % the shadow
  108. \begin{scope}[opacity=0.3]
  109. \begin{pgftransparencygroup}
  110. \coordinate (shadowshift) at (0.2cm,-0.2cm); \fill%
  111. ($(notetarget)+(shadowshift)$) --
  112. ($(notetarget)!1!4:(notecenter.center)+(shadowshift)$) --
  113. ($(notetarget)!1!-4:(notecenter.center)+(shadowshift)$) --cycle; %
  114. \fill[rounded corners=\noteroundedcorners] %
  115. ($(notecenter.south west)+(shadowshift)$) -- ($(notecenter.north
  116. west)+(shadowshift)$) -- ($(notecenter.north east)+(shadowshift)$)
  117. -- ($(notecenter.south east)+(shadowshift)$) -- cycle;
  118. \end{pgftransparencygroup}
  119. \end{scope}
  120. %% the main drawing
  121. %
  122. %% the border
  123. \draw[color=notefrcolor, line width=\notelinewidth*2]%
  124. (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
  125. ($(notetarget)!1!-4:(notecenter.center)$) -- cycle;%
  126. \draw[color=notefrcolor, line width=\notelinewidth*2, rounded
  127. corners=\noteroundedcorners]%
  128. (notecenter.south west) -- (notecenter.north west) --
  129. (notecenter.north east) -- (notecenter.south east) -- cycle; %
  130. %
  131. %% the filling (vertical shading), shared between the note and the connection
  132. \begin{scope}
  133. \node[fit=(notetarget)(notecenter.south west)(notecenter.south east)
  134. (notecenter.north east) (notecenter.north west), inner sep=+0pt]
  135. (box) {};%
  136. \clip (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
  137. ($(notetarget)!1!-4:(notecenter.center)$) -- cycle%
  138. [rounded corners=\noteroundedcorners] (notecenter.south west) --
  139. (notecenter.north west) -- (notecenter.north east) --
  140. (notecenter.south east) -- cycle;
  141. \draw[draw=none, color=notefrcolor, top color=notebgcolor!60, bottom
  142. color=notebgcolor] %
  143. (box.south west) rectangle (box.north east);
  144. \end{scope}
  145. %
  146. \else % the simple note
  147. \begin{scope}[drop shadow={shadow xshift=0.2cm, shadow yshift=-0.2cm,
  148. opacity=0.3}]
  149. \draw[line width=\notelinewidth, rounded corners=\noteroundedcorners,
  150. color=notefrcolor, top color=notebgcolor!60, bottom color=notebgcolor,
  151. drop shadow] %
  152. (notecenter.south west) -- (notecenter.north west) -- (notecenter.north
  153. east) -- (notecenter.south east) -- cycle;
  154. \end{scope}
  155. \fi
  156. }
  157. \definenotestyle{Sticky}{
  158. targetoffsetx=0pt, targetoffsety=0pt, angle=0, radius=8cm, width=8cm,
  159. connection=false, rotate=0, roundedcorners=0, linewidth=0pt, innersep=1cm
  160. }{
  161. \ifNoteHasConnection %% callout note
  162. \draw[color=notefrcolor, fill=notebgcolor, drop shadow={shadow
  163. xshift=0.2cm, shadow yshift=-0.2cm, opacity=0.3}] %
  164. (notetarget) -- ($(notetarget)!1!4:(notecenter.center)$) --
  165. ($(notetarget)!1!-4:(notecenter.center)$) --cycle; %
  166. \fi
  167. \draw[draw=none, fill=gray, opacity=0.3]
  168. ($(notecenter.north east)+(-0.5,0)$) [rounded corners=40]--%
  169. (notecenter.north west) [rounded corners=0] -- %
  170. ($(notecenter.south west)$) .. %
  171. controls ($0.2*(notecenter.south west) + 0.8*(notecenter.south east)$) .. %
  172. ($(notecenter.south east)+(-0.2,0.3)$) .. %
  173. controls ($0.75*(notecenter.south east) + 0.25*(notecenter.north east) - (0.5,0)$) .. %
  174. ($(notecenter.north east)+(-0.5,0)$);
  175. \def \border{%
  176. ($(notecenter.north east)+(-0.5,0)$) [rounded corners=40]--%
  177. (notecenter.north west) [rounded corners=0] -- %
  178. ($(notecenter.south west)$) .. %
  179. controls ($0.2*(notecenter.south west) + 0.8*(notecenter.south east)$) .. %
  180. ($(notecenter.south east)+(0,0.7)$) .. %
  181. controls ($0.75*(notecenter.south east) +0.25*(notecenter.north east) -(0.5,0)$) .. %
  182. ($(notecenter.north east)+(-0.5,0)$)%
  183. }%
  184. \draw[color=notefrcolor, fill=notebgcolor]
  185. \border;
  186. \begin{scope}
  187. \clip \border; %
  188. \begin{scope}[transform canvas={rotate
  189. around={\noterotate+15:(notecenter.north west)}}]
  190. \fill[notebgcolor!60!black, path fading=south, opacity=0.6]%
  191. (notecenter.north west) -- +(-3,0) |- ($(notecenter.north west) + (0,-1.2)$)
  192. -- ($(notecenter.north west) + (4,-1.2)$) |- ($(notecenter.north west)$);
  193. \end{scope}
  194. \end{scope}
  195. }
  196. \endinput
  197. %%
  198. %% End of file `tikzposterNotestyles.tex'.