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