Advertisement
gonmedare

Untitled

Mar 5th, 2014
779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.54 KB | None | 0 0
  1. % fancytikzposter.sty, version 2.1
  2. % this is the package file for fancy posters with TikZ
  3. % Modification of the Original template created by Elena Botoeva [botoeva@inf.unibz.it], June 2012
  4. % see more info at http://www.inf.unibz.it/~ebotoeva/fancytikzposter.html
  5. %
  6. % This file is distributed under the Creative Commons Attribution-NonCommercial 2.0
  7. % Generic (CC BY-NC 2.0) license
  8. % http://creativecommons.org/licenses/by-nc/2.0/
  9.  
  10. \ProvidesPackage{fancytikzposter}
  11.  
  12. \RequirePackage{ifthen}
  13.  
  14.  
  15. \RequirePackage{tikz}
  16. \usetikzlibrary{shapes,decorations,shadows}
  17. \usetikzlibrary{shapes.callouts}
  18. \usetikzlibrary{calc}
  19. \usetikzlibrary{fadings}
  20. \usetikzlibrary{decorations.pathmorphing}
  21. \usetikzlibrary{decorations.shapes}
  22. %\usetikzlibrary{patterns}
  23. %\usetikzlibrary{backgrounds}
  24.  
  25. \setlength{\unitlength}{1cm}%
  26.  
  27.  
  28. \usepackage{amssymb,amsmath}
  29.  
  30.  
  31. %%%%% -------- Parameters that change the layout of the poster --------- %%%%%
  32. %% margin for the geometry package
  33. \newcommand{\margin}{4}
  34.  
  35. %% the space between the blocks
  36. \newcommand{\blockspacing}{2}
  37.  
  38. %% the height of the title stripe in block nodes, decrease it to save space
  39. \newcommand{\blocktitleheight}{3}
  40.  
  41. %% the number of columns in the poster
  42. \newcommand{\colnumber}{2}
  43.  
  44. %% the space between two groups of authors from different institution
  45. \newcommand{\instituteshift}{10}
  46.  
  47. %% the code of the template
  48. \newcommand{\template}{1}
  49.  
  50. %% the code of the template for the colors, background picture and title
  51. \newcommand{\colortemplate}{1}
  52. \newcommand{\backgroundtemplate}{1}
  53. \newcommand{\titletemplate}{1}
  54. %% the code of the template for each different kind of node
  55. \newcommand{\blocknodetemplate}{1}
  56. \newcommand{\innerblocktemplate}{1}
  57. \newcommand{\plainblocktemplate}{1}
  58.  
  59. %% the height of the head drawing on top
  60. %% applicable to templates N3, 4 and 5
  61. \newcommand{\headdrawingheight}{16}
  62.  
  63.  
  64.  
  65.  
  66. \newcommand{\setmargin}[1]{
  67. \renewcommand{\margin}{#1}
  68. }
  69.  
  70. \newcommand{\setblockspacing}[1]{
  71. \renewcommand{\blockspacing}{#1}
  72. }
  73.  
  74. \newcommand{\setblocktitleheight}[1]{
  75. \renewcommand{\blocktitleheight}{#1}
  76. }
  77.  
  78. \newcommand{\setcolumnnumber}[1]{
  79. \renewcommand{\colnumber}{#1}
  80. }
  81.  
  82. \newcommand{\setinstituteshift}[1]{
  83. \renewcommand{\instituteshift}{#1}
  84. }
  85.  
  86. \newcommand{\usecolortemplate}[1]{
  87. \renewcommand{\colortemplate}{#1}
  88. \initializecolors
  89. }
  90. \newcommand{\usebackgroundtemplate}[1]{
  91. \renewcommand{\backgroundtemplate}{#1}
  92. }
  93. \newcommand{\usetitletemplate}[1]{
  94. \renewcommand{\titletemplate}{#1}
  95. }
  96. \newcommand{\useblocknodetemplate}[1]{
  97. \renewcommand{\blocknodetemplate}{#1}
  98. }
  99. \newcommand{\useinnerblocktemplate}[1]{
  100. \renewcommand{\innerblocktemplate}{#1}
  101. }
  102. \newcommand{\useplainblocktemplate}[1]{
  103. \renewcommand{\plainblocktemplate}{#1}
  104. }
  105.  
  106. \newcommand{\usetemplate}[1]{
  107. \renewcommand{\template}{#1}
  108.  
  109. \initializenodetemplates
  110.  
  111. \initializecolors
  112. }
  113.  
  114.  
  115. \newcommand{\setheaddrawingheight}[1]{
  116. \renewcommand{\headdrawingheight}{#1}
  117. }
  118.  
  119.  
  120. \newcommand{\initializenodetemplates}{
  121. \usecolortemplate{\template}
  122. \usebackgroundtemplate{\template}
  123. \usetitletemplate{\template}
  124. \useblocknodetemplate{\template}
  125. \useinnerblocktemplate{1}
  126. \useplainblocktemplate{\template}
  127.  
  128. \ifthenelse{\equal{\template}{6}}{
  129. % the oriental style
  130. \definecolor{darkgrayoriental}{HTML}{333333}
  131. \definecolor{redoriental}{HTML}{CC0030}
  132. \definecolor{lightyelloworiental}{HTML}{FFFFCC}
  133. \colorlet{colorone}{darkgrayoriental}
  134. \colorlet{colortwo}{redoriental}
  135. \colorlet{colorthree}{lightyelloworiental}
  136.  
  137. \usecolortemplate{5}
  138. \usebackgroundtemplate{6}
  139. \usetitletemplate{2}
  140. \useblocknodetemplate{3}
  141. \useplainblocktemplate{3}
  142. \useinnerblocktemplate{2}
  143. }{
  144. \ifthenelse{\equal{\template}{5}}{
  145. \usecolortemplate{4}
  146. \usebackgroundtemplate{5}
  147. \usetitletemplate{2}
  148. \useblocknodetemplate{5}
  149. \useplainblocktemplate{4}
  150. }{
  151. \ifthenelse{\equal{\template}{4}}{
  152. \usetitletemplate{2}
  153. }{
  154. \ifthenelse{\equal{\template}{3}}{
  155. \usetitletemplate{2}
  156. \useinnerblocktemplate{2}
  157. }{}
  158. }
  159. }
  160. }
  161. }
  162.  
  163.  
  164.  
  165. %%%%% -------- Colors --------- %%%%%
  166. \definecolor{colorone}{HTML}{116699}
  167. \definecolor{colortwo}{HTML}{cccccc}
  168. \definecolor{colorthree}{HTML}{cc6633}% 991111} %
  169. \definecolor{textcolor}{HTML}{000000}
  170.  
  171. \colorlet{backgrounddarkcolor}{colorone!70!black}
  172. \colorlet{backgroundlightcolor}{colorone!70!}
  173. \colorlet{titletextcolor}{textcolor}
  174. \colorlet{titlefillcolor}{white}
  175. \colorlet{titledrawcolor}{colortwo}
  176. \colorlet{blocktextcolor}{textcolor}
  177. \colorlet{blockfillcolor}{white}
  178. \colorlet{blocktitletextcolor}{colorone}
  179. \colorlet{blocktitlefillcolor}{colortwo}
  180. \colorlet{plainblocktextcolor}{textcolor}
  181. \colorlet{plainblockfillcolor}{colorthree!40}
  182. \colorlet{plainblocktitletextcolor}{textcolor}
  183. \colorlet{plainblocktitlefillcolor}{colorthree!60}
  184. \colorlet{innerblocktextcolor}{textcolor}
  185. \colorlet{innerblockfillcolor}{white}
  186. \colorlet{innerblocktitletextcolor}{white}
  187. \colorlet{innerblocktitlefillcolor}{colorthree}
  188.  
  189. \renewcommand{\labelitemi}{\textcolor{colorone}{$\bullet$}}
  190. \renewcommand{\labelitemii}{\textcolor{colorone}{$\rightarrow$}}%\blacktriangleright$}}
  191.  
  192.  
  193. \newcommand{\settitletextcolor}[1]{
  194. \colorlet{titletextcolor}{#1}
  195. }
  196.  
  197. \newcommand{\settitlefillcolor}[1]{
  198. \colorlet{titlefillcolor}{#1}
  199. }
  200.  
  201. \newcommand{\settitledrawcolor}[1]{
  202. \colorlet{titledrawcolor}{#1}
  203. }
  204.  
  205. \newcommand{\setblocktextcolor}[1]{
  206. \colorlet{blocktextcolor}{#1}
  207. }
  208.  
  209. \newcommand{\setblockfillcolor}[1]{
  210. \colorlet{blockfillcolor}{#1}
  211. }
  212.  
  213. \newcommand{\setblocktitletextcolor}[1]{
  214. \colorlet{blocktitletextcolor}{#1}
  215. }
  216.  
  217. \newcommand{\setblocktitlefillcolor}[1]{
  218. \colorlet{blocktitlefillcolor}{#1}
  219. }
  220.  
  221. \newcommand{\setplainblocktextcolor}[1]{
  222. \colorlet{plainblocktextcolor}{#1}
  223. }
  224.  
  225. \newcommand{\setplainblockfillcolor}[1]{
  226. \colorlet{plainblockfillcolor}{#1}
  227. }
  228.  
  229. \newcommand{\setplainblocktitletextcolor}[1]{
  230. \colorlet{plainblocktitletextcolor}{#1}
  231. }
  232.  
  233. \newcommand{\setplainblocktitlefillcolor}[1]{
  234. \colorlet{plainblocktitlefillcolor}{#1}
  235. }
  236.  
  237. \newcommand{\setinnerblocktextcolor}[1]{
  238. \colorlet{innerblocktextcolor}{#1}
  239. }
  240.  
  241. \newcommand{\setinnerblockfillcolor}[1]{
  242. \colorlet{innerblockfillcolor}{#1}
  243. }
  244.  
  245. \newcommand{\setinnerblocktitletextcolor}[1]{
  246. \colorlet{innerblocktitletextcolor}{#1}
  247. }
  248.  
  249. \newcommand{\setinnerblocktitlefillcolor}[1]{
  250. \colorlet{innerblocktitlefillcolor}{#1}
  251. }
  252.  
  253. \newcommand{\setbackgrounddarkcolor}[1]{
  254. \colorlet{backgrounddarkcolor}{#1}
  255. }
  256.  
  257. \newcommand{\setbackgroundlightcolor}[1]{
  258. \colorlet{backgroundlightcolor}{#1}
  259. }
  260.  
  261. \newcommand{\setfirstcolor}[1]{
  262. \colorlet{colorone}{#1}
  263. \initializecolors
  264. }
  265.  
  266. \newcommand{\setsecondcolor}[1]{
  267. \colorlet{colortwo}{#1}
  268. \initializecolors
  269. }
  270.  
  271. \newcommand{\setthirdcolor}[1]{
  272. \colorlet{colorthree}{#1}
  273. \initializecolors
  274. }
  275.  
  276. \newcommand{\setnormaltextcolor}[1]{
  277. \colorlet{textcolor}{#1}
  278. \initializecolors
  279. }
  280.  
  281. \newcommand{\initializecolors}{
  282. %%%%% template N5
  283. \ifthenelse{\equal{\colortemplate}{5}}{
  284. % the oriental style
  285. \setbackgrounddarkcolor{colorone}
  286. \setbackgroundlightcolor{colorone!80}
  287. \settitletextcolor{colorthree}
  288. \settitlefillcolor{colortwo}
  289. \settitledrawcolor{colortwo}
  290. \setblocktextcolor{textcolor}
  291. \setblockfillcolor{colortwo}
  292. \setblocktitletextcolor{colorthree}
  293. \setblocktitlefillcolor{colorone}
  294. \setplainblocktextcolor{textcolor}
  295. \setplainblockfillcolor{colorthree}
  296. \setplainblocktitletextcolor{textcolor}
  297. \setplainblocktitlefillcolor{colorthree}
  298. \setinnerblocktextcolor{textcolor}
  299. \setinnerblockfillcolor{colorthree}
  300. \setinnerblocktitletextcolor{colorone}
  301. \setinnerblocktitlefillcolor{colorthree}
  302. }{
  303.  
  304. %%%%% template N4
  305. \ifthenelse{\equal{\colortemplate}{4}}{
  306.  
  307. \setbackgrounddarkcolor{colorone}
  308. \setbackgroundlightcolor{white}
  309. \settitletextcolor{white}
  310. \settitlefillcolor{white}% non applicable
  311. \settitledrawcolor{white}% non applicable
  312. \setblocktextcolor{textcolor}
  313. \setblockfillcolor{white}
  314. \setblocktitletextcolor{white}
  315. \setblocktitlefillcolor{colorone!80!black}
  316. \setplainblocktextcolor{black}
  317. \setplainblockfillcolor{colorthree!50!}
  318. \setplainblocktitletextcolor{black}
  319. \setplainblocktitlefillcolor{colorthree}
  320. \setinnerblocktextcolor{textcolor}
  321. \setinnerblockfillcolor{white}
  322. \setinnerblocktitletextcolor{white}
  323. \setinnerblocktitlefillcolor{colorthree}
  324. }{
  325.  
  326. %%%%% template N3
  327. \ifthenelse{\equal{\colortemplate}{3}}{
  328.  
  329. \setbackgrounddarkcolor{colorone!70!black}
  330. \setbackgroundlightcolor{colorone!50!colorthree!30!}
  331. \settitletextcolor{white}
  332. \settitlefillcolor{white}% non applicable
  333. \settitledrawcolor{white}% non applicable
  334. \setblocktextcolor{textcolor}
  335. \setblockfillcolor{colortwo!40!}
  336. \setblocktitletextcolor{white}
  337. \setblocktitlefillcolor{colorthree!80!colortwo!80!black}
  338. \setplainblocktextcolor{textcolor}
  339. \setplainblockfillcolor{colortwo}
  340. \setplainblocktitletextcolor{textcolor}
  341. \setplainblocktitlefillcolor{colortwo}
  342. \setinnerblocktextcolor{textcolor}
  343. \setinnerblockfillcolor{colortwo}
  344. \setinnerblocktitletextcolor{textcolor}
  345. \setinnerblocktitlefillcolor{colortwo}
  346. }{
  347.  
  348. %%%%% template N2
  349. \ifthenelse{\equal{\colortemplate}{2}}{
  350.  
  351. \setbackgrounddarkcolor{colorone!40!}
  352. \setbackgroundlightcolor{colorone!20!}
  353. \settitletextcolor{textcolor}
  354. \settitlefillcolor{white}% non applicable
  355. \settitledrawcolor{white}% non applicable
  356. \setblocktextcolor{textcolor}
  357. \setblockfillcolor{white!90!colortwo}
  358. \setblocktitletextcolor{colorone}
  359. \setblocktitlefillcolor{colortwo!60!black} %the color of the border
  360. \setplainblocktextcolor{textcolor}
  361. \setplainblockfillcolor{colorthree!30!}
  362. \setplainblocktitletextcolor{colorthree}
  363. \setplainblocktitlefillcolor{colorthree!30!}
  364. \setinnerblocktextcolor{textcolor}
  365. \setinnerblockfillcolor{white}
  366. \setinnerblocktitletextcolor{white}
  367. \setinnerblocktitlefillcolor{colorthree}
  368. }{
  369.  
  370. %%%%% template N1
  371. %% the default template
  372. % \ifthenelse{\equal{\colortemplate}{1}}{
  373.  
  374. \setbackgrounddarkcolor{colorone!70!black}
  375. \setbackgroundlightcolor{colorone!70!}
  376. \settitletextcolor{textcolor}
  377. \settitlefillcolor{white}
  378. \settitledrawcolor{colortwo}
  379. \setblocktextcolor{textcolor}
  380. \setblockfillcolor{white}
  381. \setblocktitletextcolor{colorone}
  382. \setblocktitlefillcolor{colortwo}
  383. \setplainblocktextcolor{textcolor}
  384. \setplainblockfillcolor{colorthree!40!}
  385. \setplainblocktitletextcolor{textcolor}
  386. \setplainblocktitlefillcolor{colorthree!60!}
  387. \setinnerblocktextcolor{textcolor}
  388. \setinnerblockfillcolor{white}
  389. \setinnerblocktitletextcolor{white}
  390. \setinnerblocktitlefillcolor{colorthree}
  391. % }{}
  392. }
  393. }
  394. }
  395. }
  396.  
  397. \ifthenelse{\equal{\template}{5}}{
  398. \setblocktitletextcolor{colorone!80!black}
  399. } {}
  400. }
  401.  
  402.  
  403.  
  404.  
  405. %%%%% -------- the background picture --------- %%%%%
  406. \usepackage{eso-pic}
  407. \newcommand\BackgroundPicture{
  408. \put(-14,0){
  409. \parbox[b][1.05\paperheight]{1.05\paperwidth}{%
  410. \centering %
  411. \begin{tikzpicture} %
  412.  
  413. \coordinate (topleft) at (0,\paperheight);
  414. \coordinate (topright) at ($(\paperwidth,\paperheight)+(0.5,0)$);
  415. \coordinate (lefttoright) at (\paperwidth,0);
  416. \coordinate (bottomleft) at (0,0);
  417. \coordinate (bottomright) at ($(\paperwidth,0)+(0.5,0)$);
  418. \coordinate (head) at (0,\headdrawingheight);
  419. \coordinate (foot) at (0,\margin);
  420.  
  421. \clip (0,0) rectangle ($(topright)+(6,0)$);
  422.  
  423. %%%%% template N6
  424. \ifthenelse{\equal{\backgroundtemplate}{6}}{%
  425. \draw[draw=none, fill=backgrounddarkcolor] %
  426. (bottomleft) rectangle (topright);
  427.  
  428.  
  429. % % \foreach \a in {10,20,...,170}{%
  430. % % \draw[colortwo,%titletextcolor,
  431. % % decorate, decoration={random steps,segment
  432. % % length=6cm,amplitude=2cm}, rounded corners=40, line width=0.2cm]
  433. % % ($(bottomright)-0.0*(lefttoright)+ (0,2)$) -- ($(bottomright)
  434. % % -0.0*(lefttoright) +(0,2)!1!\a:(\paperheight+rnd*\paperwidth,0)$); }
  435.  
  436.  
  437. \draw[draw=none, fill=backgroundlightcolor]%
  438. ($(topleft)-(head)$) rectangle (topright);
  439.  
  440. \foreach \col in {colortwo,colorthree}%
  441. { %
  442. \foreach \line in {{($(topleft)-(head)$) -- ($(topright)-(head)$)},
  443. {($(topleft)+(0.5*\margin,0)$) -- ($(bottomleft)+(0.5*\margin,0)$)}}%
  444. {%
  445. \draw[color=\col, decorate, decoration={random steps,segment
  446. length=6cm, amplitude=2cm}, rounded corners=40, line width=0.2cm]
  447. \line ; %
  448. }%
  449. }%
  450.  
  451. }{
  452.  
  453. %%%%% template N5
  454. \ifthenelse{\equal{\backgroundtemplate}{5}}{%
  455. \draw[draw=none, %
  456. bottom color=backgrounddarkcolor!55!backgroundlightcolor, %
  457. top color=backgrounddarkcolor!35!backgroundlightcolor ] %
  458. (bottomleft) rectangle (topright);
  459.  
  460. \draw[draw=none, left color=backgrounddarkcolor!60!black,%
  461. right color=backgrounddarkcolor!95!backgroundlightcolor]%
  462. (topright) -- (topleft) -- %
  463. ($(topleft) - (head)-(0,6)$) .. controls %
  464. ($(topleft) - (head)-(0,6) + 0.25*(lefttoright) + (0,9)$) and %
  465. ($(topright) - (head) - 0.5*(lefttoright) - (-10,16)$) .. %
  466. ($(topright) - (head)$) -- cycle;
  467.  
  468. \draw[draw=none, left color=backgrounddarkcolor,
  469. right color=backgroundlightcolor]
  470. ($(topleft) - (head)-(0,2)$) .. controls %
  471. ($(topleft) - (head)-(-6,3) + 0.25*(lefttoright) + (0,10)$) and
  472. ($(topright) - (head) - 0.25*(lefttoright) - (-6,17)$).. %
  473. ($(topright) - (head)$) .. controls %
  474. ($(topright) - (head) - 0.25*(lefttoright)-(-7,19)$) and %
  475. ($(topleft) - (head)-(-9,5) + 0.25*(lefttoright) + (0,10)$) .. %
  476. ($(topleft) - (head)-(0,4)$);
  477.  
  478. \draw[draw=none, left color=backgroundlightcolor,
  479. right color=backgrounddarkcolor!90!black]
  480. ($(topleft) - (head)-(0,2)$) .. controls %
  481. ($(topleft) - (head)-(-6,3) + 0.25*(lefttoright) + (0,10)$) and
  482. ($(topright) - (head)+(0,6) - 0.25*(lefttoright) - (-6,20)$)..%
  483. ($(topright) - (head)+(0,6)$) -- %
  484. ($(topright) - (head)$) .. controls %
  485. ($(topright) - (head) - 0.25*(lefttoright) - (-6,17)$) and %
  486. ($(topleft) - (head)-(-8,4) + 0.25*(lefttoright) + (0,10)$) .. %
  487. ($(topleft) - (head)-(0,2)$);
  488.  
  489. }{
  490.  
  491. %%%%% template N4
  492. \ifthenelse{\equal{\backgroundtemplate}{4}}{%
  493. \draw[draw=none, %
  494. bottom color=backgrounddarkcolor!55!backgroundlightcolor, %
  495. top color=backgrounddarkcolor!35!backgroundlightcolor ] %
  496. (bottomleft) rectangle (topright);
  497.  
  498. \draw[draw=none, bottom color=backgrounddarkcolor!60!black, %
  499. top color=backgrounddarkcolor!90!backgroundlightcolor] %
  500. (topleft) -- ($(topleft)-0.2*(head)$) .. controls
  501. ($(topleft)-(head)+(1,0)$)
  502. .. ($(topleft)-(head)+0.2*(lefttoright)$) --
  503. ($(topleft)-(head)+0.8*(lefttoright)$) .. controls
  504. ($(topright)-(head)-(1,0)$) .. %
  505. ($(topright)-0.2*(head)$) -- (topright) -- cycle;
  506.  
  507. \draw[draw=none, right color=backgroundlightcolor, left
  508. color=backgrounddarkcolor]
  509. ($(topleft)-(head)+0.8*(lefttoright)$) .. controls
  510. ($(topleft)-(head)+0.92*(lefttoright)+(0,0.7)$) and %
  511. ($(topright)- 0.13*(lefttoright)$) .. %
  512. (topright) .. controls %
  513. ($(topright)- 0.11*(lefttoright)$) and%
  514. ($(topleft)-(head)+0.95*(lefttoright)$) .. %
  515. ($(topleft)-(head)+0.82*(lefttoright)$);
  516.  
  517. \draw[draw=none, right color=backgroundlightcolor, left
  518. color=backgrounddarkcolor]
  519. ($(topleft)-(head)+0.83*(lefttoright)$) .. controls
  520. ($(topleft)-(head)+0.97*(lefttoright)+(0,0.2)$) and %
  521. ($(topright)- 0.08*(lefttoright)$) .. %
  522. (topright) .. controls %
  523. ($(topright)- 0.06*(lefttoright)$) and %
  524. ($(topleft)-(head)+0.99*(lefttoright)$) .. %
  525. ($(topleft)-(head)+0.85*(lefttoright)$);
  526.  
  527. }{
  528.  
  529. %%%%% template N3
  530. \ifthenelse{\equal{\backgroundtemplate}{3}}{
  531. \draw[draw=none, bottom color=backgroundlightcolor, top
  532. color=backgrounddarkcolor]%
  533. ($(topleft)-(head)$) rectangle (topright);
  534.  
  535. \draw[draw=none, top color=backgroundlightcolor, bottom
  536. color=backgrounddarkcolor]%
  537. (bottomleft) rectangle ($(lefttoright)+(0.5,0)+(foot)$);
  538.  
  539. }{
  540.  
  541. %%%%% template N2
  542. \ifthenelse{\equal{\backgroundtemplate}{2}}{
  543. \draw[draw=none, top color=backgroundlightcolor,
  544. bottom color=backgrounddarkcolor]%
  545. (0,0) rectangle ($(\paperwidth,\paperheight)+(10,10)$);
  546. }{
  547.  
  548. %%%%% template N1
  549. %% the default template
  550. \ifthenelse{\equal{\backgroundtemplate}{1}}{%NEW
  551. \draw[draw=none, bottom color=backgroundlightcolor,
  552. top color=backgrounddarkcolor]%
  553. (bottomleft) rectangle (topright);
  554.  
  555. \foreach \a in {10,20,...,80}{
  556. \draw[backgroundlightcolor!50!backgrounddarkcolor, line width=0.1cm]
  557. (0,0) -- ($(0,0)!1!\a:(120+rnd*40,0)$); }
  558.  
  559. \foreach \i in {1,2,...,35}{
  560. \begin{scope}[shift={($(rand*60,rand*70)$)}]
  561. \draw[backgroundlightcolor!80!, line width=0.1cm]
  562. ($0.5*(topright)$) circle (4);
  563. \end{scope}
  564. }
  565. }{\ifthenelse{\equal{\backgroundtemplate}{julia}}%NEW
  566. {\includegraphics[height=\paperheight]{juliaset}}%NEW
  567. {}%NEW
  568. }%NEW
  569. }
  570. }
  571. }
  572. }
  573. }
  574. \end{tikzpicture}
  575. }}
  576. }
  577.  
  578.  
  579.  
  580. \tikzset{
  581. frame/.style={rounded corners=30, line width=0.4cm, inner sep=1cm},
  582. frametwo/.style={thick, inner sep=1cm, %
  583. drop shadow={shadow xshift=0.2cm, shadow yshift=-0.2cm, opacity=0.3}, %
  584. decorate, decoration={random steps,segment length=1cm,amplitude=0.15cm}
  585. % decorate, decoration={penciline,amplitude=0.2cm}
  586. },%
  587. framethree/.style={rounded corners=30, inner sep=1cm},%
  588. framefour/.style={rounded corners=20, thick, inner sep=1cm, %
  589. drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3}},%
  590. framefive/.style={rounded corners=20, inner sep=1cm},%
  591. innerframe/.style={rounded corners=15, line width=0.2cm, inner sep=0.5cm},
  592. rectanglesplittwo/.style={rectangle split, rectangle split parts=2, %
  593. rectangle split part align={left,left}}, %
  594. }
  595.  
  596.  
  597.  
  598.  
  599. %%%%% -------- Initialization of the poster layout -------- %%%%%
  600. \newcommand{\initializesizeandshifts}{
  601. %% these coordinates depend on the size of the document
  602. \coordinate (southwest) at ($(\margin,\margin)-0.5*(\paperwidth,\paperheight)
  603. + (0.001,0.001)$); %
  604. \coordinate (northeast) at ($(0,0)-(southwest)$);
  605.  
  606. %% shifts for the blocks and autowidth
  607. %% if colnumber = 2 => xshift=(\paperwidth-2*\margin -\blockspacing)/colnumber/2 +
  608. %% \blockspacing/2
  609. %% awidth=(\paperwidth-2*\margin-\blockspacing)/colnumber -
  610. %% 0.3
  611. %% if colnumber = 3 => xshift=(\paperwidth-2*\marging -2*\blockspacing)/colnumber +
  612. %% \blockspacing
  613. %% awidth=(\paperwidth-2*\margin-2*\blockspacing)/colnumber -
  614. %% 0.3
  615. \ifthenelse{\equal{\colnumber}{2}}{%
  616. \coordinate (xshift) at
  617. ($0.5/\colnumber*(\paperwidth,0) - 1/\colnumber*(\margin,0) -
  618. 0.5/\colnumber*(\blockspacing,0) + 0.5*(\blockspacing,0)$);
  619.  
  620. \coordinate (autowidth) at
  621. ($1/\colnumber*(\paperwidth,0) - 2/\colnumber*(\margin,0) -
  622. 1/\colnumber*(\blockspacing,0) - (0.3,0)$);
  623. }{
  624. % \ifthenelse{\equal{\colnumber}{3}}{%
  625. \coordinate (xshift) at
  626. ($1/\colnumber*(\paperwidth,0) - 2/\colnumber*(\margin,0) -
  627. 2/\colnumber*(\blockspacing,0) + (\blockspacing,0) $);
  628.  
  629. \coordinate (autowidth) at
  630. ($1/\colnumber*(\paperwidth,0) - 2/\colnumber*(\margin,0) -
  631. 2/\colnumber*(\blockspacing,0) - (0.3,0)$);
  632. % }{}
  633. }
  634.  
  635.  
  636. %% yshift = \blockspacing
  637. \coordinate (yshift) at ($(0,\blockspacing)$);
  638.  
  639.  
  640. %% the boundaries of the content
  641. \clip (southwest) rectangle (northeast);
  642. \draw[draw=none] (southwest) rectangle (northeast);
  643.  
  644. \coordinate (currenty) at ($0.5*(0,\paperheight)-(0,\margin)$);
  645. }
  646.  
  647.  
  648.  
  649. \newcommand{\setxshift}[1]{
  650. \coordinate (xshift) at (#1,0);
  651. }
  652.  
  653. \newcommand{\setyshift}[1]{
  654. \coordinate (yshift) at (0,#1);
  655. }
  656.  
  657. \newcommand{\startsecondcolumn}{
  658. \ifthenelse{\equal{\colnumber}{2}}{
  659. \coordinate (currenty) at ($(firstrow)+(xshift)-(yshift)$);
  660. }{
  661. % \ifthenelse{\equal{\colnumber}{3}}{
  662. \coordinate (currenty) at ($(firstrow)-(yshift)$);
  663. % }{}
  664. }
  665. }
  666.  
  667. \newcommand{\startthirdcolumn}{
  668. \ifthenelse{\equal{\colnumber}{3}}{
  669. \coordinate (currenty) at ($(firstrow)+(xshift)-(yshift)$);
  670. }{}
  671. }
  672.  
  673.  
  674. \newcommand{\getcurrentrow}[1]{
  675. \path let \p1=(#1.south) in coordinate (currentrow) at (0,\y1);
  676. }
  677.  
  678.  
  679.  
  680.  
  681. %%%%% -------- maketitle --------- %%%%%
  682. \makeatletter
  683. \def\maketitle{%
  684. \vbox{%
  685. \hsize\textwidth \linewidth\hsize
  686. \centering
  687. % \normalfont
  688. {\Huge \bfseries\@title\par} \vskip 1cm plus 1fil minus 0.25cm
  689. {\def\and{\unskip\enspace{\rm and}\enspace}%
  690. \def\And{\end{tabular}\hss \egroup \hskip \instituteshift cm plus 2fil
  691. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\Large\bfseries}%
  692. \def\AND{\end{tabular}\hss\egroup \hfil\hfil\egroup
  693. \vskip 0.5cm plus 1fil minus 0.317cm
  694. % hg: Changed Large to normalsize on next line
  695. \hbox to \linewidth\bgroup\large \hfil\hfil
  696. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\Large\bfseries}
  697. \hbox to \linewidth\bgroup\large \hfil\hfil
  698. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\Large\bfseries\@author
  699. \end{tabular}\hss\egroup
  700. \hfil\hfil\egroup}
  701. }
  702. }
  703. \makeatother
  704.  
  705.  
  706. % #1 - shift
  707. % #2 - width
  708. % #3 - scale
  709. \newcommand{\titleblock}[3][(0,0)]{
  710.  
  711. %%%%% template N2
  712. \ifthenelse{\equal{\titletemplate}{2}}{
  713. \node[anchor=north,text=titletextcolor,scale=#3] (title) at ($(currenty)+#1$)
  714. {
  715. \begin{minipage}{#2 cm}
  716. \maketitle
  717. \end{minipage}
  718. };
  719.  
  720. \ifthenelse{\equal{\backgroundtemplate}{2}}{
  721. \path let \p1=(title.south) in coordinate (firstrow) at (0,\y1);
  722. }{ %
  723. \coordinate (firstrow) at ($0.5*(0,\paperheight)-(0,\headdrawingheight)$);
  724. \ifthenelse{\equal{\backgroundtemplate}{5}}{%
  725. \coordinate (firstrow) at ($0.5*(0,\paperheight)-(0,\headdrawingheight)-(0,7)$);
  726. }{}
  727. }
  728. }{
  729.  
  730. %%%%% template N1
  731. %% the default template
  732. % \ifthenelse{\equal{\titletemplate}{1}}{
  733. \node[anchor=north, draw, frame, color=titledrawcolor, fill=titlefillcolor,
  734. text=titletextcolor, scale=#3]
  735. (title) at ($(currenty)+#1$)
  736. {
  737. \begin{minipage}{#2 cm}
  738. \vspace{1cm}
  739. \maketitle
  740. \end{minipage}
  741. };
  742.  
  743. \path let \p1=(title.south) in coordinate (firstrow) at (0,\y1);
  744. % }{}
  745. }
  746.  
  747.  
  748. \coordinate (currenty) at ($(firstrow)-(xshift)-(yshift)$);
  749. }
  750.  
  751.  
  752. % #1 - anchor
  753. % #2 - shift
  754. % #3 - width
  755. % #4 - file name
  756. \newcommand{\addlogo}[4][west]{
  757. \node[anchor=#1] at ($(title.#1) + #2$) {\includegraphics[width=#3]{#4}};
  758. }
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765. %%%%% ---------- Macros for block nodes ---------- %%%%%
  766. % #1 - where
  767. % #2 - title
  768. % #3 - text
  769. % #4 - width
  770. \newcommand{\drawblocknode}[4]{
  771. %% width of the minipage = width - 2
  772.  
  773. %%%%% template N5
  774. \ifthenelse{\equal{\blocknodetemplate}{5}}{
  775. %% the content of the block
  776. \def \blockcontent{
  777. \draw let \p1=($(#4)-(2.2,0)$),\p2=($(0,\blocktitleheight cm)-(0,0.5cm)$) in
  778. node[anchor=north, text=blocktextcolor, framefive, rectangle]
  779. (box) at #1 {
  780. \begin{minipage}{\x1}
  781. \vspace{0.5cm}
  782. {\LARGE\bfseries\textcolor{blocktitletextcolor}{#2}}\\
  783.  
  784. \color{blocktextcolor}
  785. #3
  786. \end{minipage}};
  787. }
  788. \blockcontent
  789.  
  790. %% the shadow above the corner
  791. \begin{scope}
  792. \clip (box.south west) rectangle (box.north east);
  793.  
  794. \begin{scope}[transform canvas={xshift=-1cm, yshift=-0.8cm, rotate
  795. around={-20:($(box.north east)-(10,0)$)}}]
  796. \fill[color=gray, path fading=north, opacity=0.8] ($(box.north east) -
  797. (10,1)$) rectangle ($(box.north east) + (2,2.3)$);
  798. \end{scope}
  799. \end{scope}
  800.  
  801. %% the border
  802. \def \border{%
  803. [rounded corners=30] (box.south west) -- (box.north west) %
  804. [rounded corners=30] -- ($(box.north east)-(9.4,0)$)
  805. [rounded corners=30] -- ($(box.north east)-(0,3.4)$)
  806. [rounded corners=30] |- (box.south west) -- cycle
  807. }
  808. \draw[very thick, color=blocktitlefillcolor, fill=blockfillcolor,
  809. % drop shadow={shadow xshift=0.3cm, shadow yshift=-0.3cm, opacity=0.3}
  810. ] \border;
  811.  
  812. %% the corner
  813. \begin{scope}
  814. \def \corner{ ($(box.north east)-(0,6)$) -- ($(box.north east)-(0,4.5)$) .. %
  815. controls ($(box.north east)-(-0,2.7)$) and ($(box.north east)-(2.8,2.2)$)
  816. .. ($(box.north east)-(3.8,4.6)$) %
  817. .. controls ($(box.north east)-(8.6,0)$) .. ($(box.north east)-(11.4,0)$) %
  818. [rounded corners=30] -- ($(box.north east)-(9.4,0)$) %
  819. [rounded corners=30] -- ($(box.north east)-(0,3.4)$) %
  820. [rounded corners=0] -- ($(box.north east)-(0,6)$)}
  821.  
  822. \draw[blocktitlefillcolor] \corner;
  823.  
  824. \clip \corner;
  825. \begin{scope}[transform canvas={xshift=-1cm, yshift=-1.3cm, rotate
  826. around={-23:($(box.north east)-(10,0)$)}}]
  827. \fill[color=blocktitlefillcolor!90] ($(box.north east) - (10,2)$)
  828. rectangle ($(box.north east) + (2,3.6)$); %
  829. \fill[color=blocktitlefillcolor , path fading=south, opacity=1]
  830. ($(box.north east) - (10,-1.2)$) rectangle ($(box.north east) +
  831. (2,1.6)$); %
  832. \fill[color=blocktitlefillcolor , path fading=north, opacity=1]
  833. ($(box.north east) - (10,-1.6)$) rectangle ($(box.north east) +
  834. (2,2.1)$);
  835. \end{scope}
  836.  
  837. \end{scope}
  838.  
  839. \blockcontent
  840.  
  841. }{
  842.  
  843. %%%%% template N4
  844. \ifthenelse{\equal{\blocknodetemplate}{4}}{
  845. %% the content of the block
  846. \draw let \p1=($(#4)-(2.2,0)$),\p2=($(0,\blocktitleheight cm)-(0,0.5cm)$) in
  847. node[draw, anchor=north, color=blocktitlefillcolor, fill=blockfillcolor,
  848. text=blocktextcolor, framefour, rectangle]
  849. (box) at #1 {
  850. \begin{minipage}{\x1}
  851. \vspace{\y2}
  852.  
  853. \color{blocktextcolor}
  854. #3
  855. \end{minipage}};
  856.  
  857. %% the title of the block
  858. \begin{scope}
  859. \clip[rounded corners=20] ($(box.south west)+(0.01,0.01)$) rectangle
  860. ($(box.north east)-(0.01,0.01)$);
  861.  
  862. \draw let \p1=($(#4)-(3.2,0)$),\p2=($(0,\blocktitleheight cm)-(0,0.4cm)$)%
  863. in node[anchor=bottom right corner, draw=none, %
  864. bottom color=blocktitlefillcolor, top color=blocktitlefillcolor!85!,
  865. text=blocktitletextcolor, rounded corners=20, inner xsep=1cm, %
  866. minimum height=\y2, minimum width=\x1, %
  867. shape=trapezium, shape border rotate=180, trapezium stretches=true]
  868. (boxtitle) at ($(box.north west)+(1.5,0)$) {\bf\LARGE #2}
  869.  
  870. %% fading on top
  871. [preaction={path fading=south,fill=blocktitlefillcolor,opacity=.4},draw=none]
  872. ($(boxtitle.bottom right corner) - (3,\y2)$) rectangle
  873. ($(boxtitle.bottom left corner)+(3,0)$);
  874. \end{scope}
  875.  
  876.  
  877. %% decorative drawing on the title
  878. \begin{scope}[even odd rule]
  879. \clip[rounded corners=20] ($(boxtitle.bottom right corner)-(-0.2,0.2)$) --
  880. ($(boxtitle.bottom left corner) -(0.2,0.2)$) -- (boxtitle.top left corner)
  881. -- (boxtitle.top right corner) -- cycle %
  882. (box.south west) rectangle (box.north east) ;
  883.  
  884. \draw[draw=none, rounded corners=20, %
  885. bottom color=blocktitlefillcolor, top color=blocktitlefillcolor!85!]
  886. ($(boxtitle.bottom right corner)-(0.5,0)$) --
  887. (boxtitle.bottom right corner) -- (boxtitle.top right corner) --
  888. ($(boxtitle.bottom right corner)+(3,0)$) --
  889. ($(boxtitle.bottom right corner)-(0.5,0)$)
  890.  
  891. ($(boxtitle.bottom left corner)+(0.5,0)$) --
  892. (boxtitle.bottom left corner) -- (boxtitle.top left corner) --
  893. ($(boxtitle.bottom left corner)-(3,0)$) --
  894. ($(boxtitle.bottom left corner)+(0.5,0)$) ;
  895. \end{scope}
  896.  
  897. }{
  898.  
  899. %%%%% template N3
  900. \ifthenelse{\equal{\blocknodetemplate}{3}}{
  901. %% the content of the block
  902. \draw let \p1=($(#4)-(2,0)+(0.3,0)$), \p2=($(0,\blocktitleheight cm)-(0,2.4cm)$)
  903. in node[draw=none, anchor=north, color=blockfillcolor,
  904. text=blocktextcolor, framethree,
  905. rectanglesplittwo, rectangle split horizontal=false, %
  906. rectangle split part fill={blockfillcolor, blockfillcolor}, %
  907. rectangle split empty part height=\y2
  908. ]
  909. (box) at #1 {
  910. \nodepart{second}
  911. \begin{minipage}{\x1}
  912. \color{blocktextcolor}
  913. #3
  914. \end{minipage}
  915. };
  916.  
  917. \draw[draw=none,left color=blocktitlefillcolor, right color=blockfillcolor]
  918. (box.north west) rectangle ($(box.text split east)-(0,0.4)$);
  919.  
  920. %% the title of the block
  921. \draw let \p1=($(#4)-(2,0)$) in node[framethree, anchor=north west,
  922. text=blocktitletextcolor, text width=\x1] at (box.north west)
  923. {\bf\LARGE #2};
  924. }{
  925.  
  926. %%%%% template N2
  927. \ifthenelse{\equal{\blocknodetemplate}{2}}{
  928. %% the content of the block
  929. \draw let \p1=($(#4)-(2.3,0)$) in
  930. node[draw,anchor=north, color=blocktitlefillcolor,
  931. fill=blockfillcolor, text=blocktextcolor, frametwo, rectangle, %rounded corners=10,%
  932. ]
  933. (box) at #1 {
  934. \begin{minipage}{\x1}
  935. \vspace{0.2cm}
  936. {\LARGE\bfseries\textcolor{blocktitletextcolor}{#2}}\\
  937.  
  938. \color{blocktextcolor}
  939. #3
  940. \end{minipage}};
  941.  
  942. }{
  943.  
  944. %%%%% template N1
  945. %% the default template
  946. % \ifthenelse{\equal{\blocknodetemplate}{1}}{
  947.  
  948. %% the content of the block
  949. \draw let \p1=($(#4)-(2,0)$) , \p2=($(0,\blocktitleheight cm)-(0,2.4cm)$)
  950. in node[draw, anchor=north, color=blocktitlefillcolor, text=blocktextcolor,
  951. frame, rectanglesplittwo, rectangle split horizontal=false,
  952. rectangle split part fill={blocktitlefillcolor, blockfillcolor}, %
  953. rectangle split empty part height=\y2
  954. ]
  955. (box) at #1 {
  956. \nodepart{second}
  957. \begin{minipage}{\x1}
  958. \color{blocktextcolor}
  959. #3
  960. \end{minipage}
  961. };
  962.  
  963. %% the title of the block
  964. \node[frame, anchor=north west, text=blocktitletextcolor] at (box.north west)
  965. {\bf\LARGE #2};
  966.  
  967. %% decorative drawing with gray color
  968. %% 0.4 is the line width from frame
  969. \fill[rounded corners=30, blocktitlefillcolor]
  970. let \p1=($(box.text split west)-(0,0.5) +(0.4,0)-(0.02,0)$),
  971. \p2=($(box.text split east)-(0,0.5) -(0.4,0)+(0.02,0)$) in
  972. ($(\p1)+(0,2)$) --
  973. ($(\p1)-(0,2)$) -- ($(\p1)+(0,0.3)$) --
  974. ($(\p1)+(3,0.3)$) -- ($(\p1)+(0,0.3)$)--
  975. ($(\p1)+(0,2)$)
  976.  
  977. ($(\p2)+(0,2)$) --
  978. ($(\p2)-(0,2)$) -- ($(\p2)+(0,0.3)$) --
  979. ($(\p2)+(-3,0.3)$) -- ($(\p2)+(0,0.3)$)--
  980. ($(\p2)+(0,2)$);
  981. % }{}
  982.  
  983. }
  984. }
  985. }
  986. }
  987.  
  988.  
  989. \coordinate (currenty) at ($(box.south)-(yshift)$);
  990. }
  991.  
  992.  
  993. % #1 - where
  994. % #2 - title
  995. % #3 - text
  996. \newcommand{\blocknode}[3][(currenty)]{%($(box.south)-(yshift)$)]{%
  997. \drawblocknode{#1}{#2}{#3}{autowidth}
  998. }
  999.  
  1000.  
  1001. %% Block node with varying width
  1002. % #1 - where
  1003. % #2 - width
  1004. % #3 - title
  1005. % #4 - text
  1006. \newcommand{\blocknodew}[4][(currenty)]{%
  1007. %% width = (#2) - 0.3
  1008. %%
  1009. %%
  1010. \coordinate (width) at ($(#2,0) - (0.3,0)$);
  1011.  
  1012. \drawblocknode{#1}{#3}{#4}{width}
  1013. }
  1014.  
  1015.  
  1016.  
  1017.  
  1018. %%%%% ---------- Macros for plain and callout nodes ---------- %%%%%
  1019. % #1 - from
  1020. % #2 - where
  1021. % #3 - text
  1022. % #4 - width
  1023. % #5 - title
  1024. % #6 - rotate angle
  1025. \newcommand{\drawplainblock}[6]{
  1026. %% width of the minipage = width - 2
  1027.  
  1028.  
  1029. \tikzset{mycallout/.style={rectangle callout,
  1030. callout absolute pointer={#1}, callout pointer width=1.5cm},
  1031. myplainnode/.style={rectangle}}
  1032.  
  1033. \ifthenelse{\equal{#5}{calloutblock}}{%
  1034. \def \nodeshape {mycallout}
  1035. }{ % plain node
  1036. \def \nodeshape {myplainnode}
  1037. }
  1038.  
  1039. \begin{scope}[transform canvas={rotate around={#6:#2}}]
  1040.  
  1041. %%%%% template N4
  1042. \ifthenelse{\equal{\plainblocktemplate}{4}}{
  1043. %% the content of the block
  1044. \draw let \p1=($(#4)-(2.2,0)$) in node[draw, anchor=north,
  1045. color=plainblocktitlefillcolor, bottom color=plainblockfillcolor, top
  1046. color=plainblockfillcolor!60!, text=plainblocktextcolor,
  1047. framefour, \nodeshape]
  1048. (note) at #2 {
  1049. \begin{minipage}{\x1}
  1050. % if plain node, draw the title
  1051. \ifthenelse{\equal{#5}{calloutblock}}{}{
  1052. \textcolor{plainblocktitletextcolor}{\Large \bf #5}
  1053. }
  1054. \color{plainblocktextcolor}
  1055. #3
  1056. \end{minipage}};
  1057.  
  1058. }{
  1059.  
  1060. %%%%% template N3
  1061. \ifthenelse{\equal{\plainblocktemplate}{3}}{
  1062. %% the content of the block
  1063. \draw let \p1=($(#4)-(2,0)+(0.3,0)$) in node[draw, anchor=north,
  1064. color=plainblocktitlefillcolor, fill=plainblockfillcolor,
  1065. text=plainblocktextcolor, framethree, \nodeshape]
  1066. (note) at #2 {
  1067. \begin{minipage}{\x1}
  1068. % if plain node, draw the title
  1069. \ifthenelse{\equal{#5}{calloutblock}}{}{
  1070. \textcolor{plainblocktitletextcolor}{\Large \bf #5}
  1071. }
  1072. \color{plainblocktextcolor}
  1073. #3
  1074. \end{minipage}
  1075. };
  1076. }{
  1077.  
  1078. %%%%% template N2
  1079. \ifthenelse{\equal{\plainblocktemplate}{2}}{
  1080. \def \blockcontent{
  1081. \draw let \p1=($(#4)-(2.3,0)$) in node[draw=none, anchor=north,
  1082. text=plainblocktextcolor, inner sep=1cm]
  1083. (note) at #2 {
  1084. \begin{minipage}{\x1}
  1085. % if plain node, draw the title
  1086. \ifthenelse{\equal{#5}{calloutblock}}{}{
  1087. \textcolor{plainblocktitletextcolor}{\Large \bf #5}
  1088. }
  1089. \color{plainblocktextcolor}
  1090. #3
  1091. \end{minipage}};
  1092. }
  1093. \blockcontent
  1094.  
  1095. %% shadow
  1096. \draw[draw=none, fill=gray, opacity=0.3]
  1097. ($(note.north east)+(-0.5,0)$) [rounded corners=40]--%
  1098. (note.north west) [rounded corners=0] -- %
  1099. ($(note.south west)$) .. %
  1100. controls ($0.2*(note.south west) + 0.8*(note.south east)$) .. %
  1101. ($(note.south east)+(-0.2,0.3)$) .. %
  1102. controls ($0.75*(note.south east) + 0.25*(note.north east) - (0.5,0)$) .. %
  1103. ($(note.north east)+(-0.5,0)$);
  1104.  
  1105. %% the shape
  1106. \def \border{%
  1107. ($(note.north east)+(-0.5,0)$) [rounded corners=40]--%
  1108. (note.north west) [rounded corners=0] -- %
  1109. ($(note.south west)$) .. %
  1110. controls ($0.2*(note.south west) + 0.8*(note.south east)$) .. %
  1111. ($(note.south east)+(0,0.7)$) .. %
  1112. controls ($0.75*(note.south east) +0.25*(note.north east) -(0.5,0)$) .. %
  1113. ($(note.north east)+(-0.5,0)$)%
  1114. }%
  1115. \draw[color=plainblocktitlefillcolor, fill=plainblockfillcolor]
  1116. \border;
  1117.  
  1118. %% the shading in the left top corner
  1119. \begin{scope}
  1120. \clip \border; %
  1121. \begin{scope}[transform canvas={rotate around={15:(note.north west)}}]
  1122. \fill[plainblockfillcolor!60!black, path fading=south, opacity=0.6]%
  1123. (note.north west) -- +(-3,0) |- ($(note.north west) + (0,-1.2)$)
  1124. -- ($(note.north west) + (4,-1.2)$) |- ($(note.north west)$);
  1125. \end{scope}
  1126. \end{scope}
  1127.  
  1128. %% if callout, draw the connection
  1129. \ifthenelse{\equal{#5}{calloutblock}}{
  1130. \begin{scope}[even odd rule]
  1131. \clip[draw=none] \border (southwest) rectangle (northeast);
  1132.  
  1133. \draw let \p1=($(note.north east) - (note.north west)$),
  1134. \p2=($(note.north east) - (note.south east)$), \n1={veclen(\x1,\y2)/20}
  1135. in node[circle,inner sep=1cm] (cir) at (note.center) {};
  1136.  
  1137. \draw[color=plainblocktitlefillcolor, fill=plainblockfillcolor,
  1138. drop shadow={shadow xshift=0.2cm, shadow yshift=-0.2cm, opacity=0.3}]
  1139. #1 -- (tangent cs:node=cir, point={#1}, solution=1) -- (cir.center) --
  1140. (tangent cs:node=cir,point={#1},solution=2) -- cycle;
  1141. \end{scope}
  1142. }{}
  1143.  
  1144. %% draw text again (not to mess with layers)
  1145. \blockcontent
  1146.  
  1147. }{
  1148.  
  1149. %%%%% template N1
  1150. %% the default template
  1151. % \ifthenelse{\equal{\plainblocktemplate}{1}}{
  1152.  
  1153. %% the content of the block
  1154. \def \blockcontent{
  1155. \draw let \p1=($(#4)-(2,0)$) in node[draw=none, anchor=north,
  1156. text=plainblocktextcolor, inner sep=1cm]
  1157. (note) at #2 {
  1158. \begin{minipage}{\x1}
  1159. % if plain node, draw the title
  1160. \ifthenelse{\equal{#5}{calloutblock}}{}{
  1161. \textcolor{plainblocktitletextcolor}{\Large \bf #5}
  1162. }
  1163. \color{plainblocktextcolor}
  1164. #3
  1165. \end{minipage}
  1166. };
  1167. }
  1168. \blockcontent
  1169.  
  1170.  
  1171. %% the shape
  1172. \def \border{%
  1173. [rounded corners=0] (note.south west) -- (note.north west) %
  1174. [rounded corners=20] -- ($(note.north east)-(4.7,0)$)
  1175. [rounded corners=20] -- ($(note.north east)-(0,1.7)$)
  1176. [rounded corners=0] |- (note.south west) -- cycle
  1177. }
  1178. \fill[color=plainblockfillcolor] \border;
  1179.  
  1180.  
  1181. %% the shadow of the corner
  1182. \fill[color=gray,opacity=0.3]
  1183. ($(note.north east)-(0,3)$) -- ($(note.north east)-(0,2.5)$) .. %
  1184. controls ($(note.north east)-(0,1.25)$) and ($(note.north east)-(1.5,1.25)$)
  1185. .. ($(note.north east)-(1.9,2.5)$) %
  1186. .. controls ($(note.north east)-(4.5,0)$) ..
  1187. ($(note.north east)-(5.7,0)$) %
  1188. [rounded corners=20] -- ($(note.north east)-(4.7,0)$)
  1189. [rounded corners=20] -- ($(note.north east)-(0,1.7)$)
  1190. [rounded corners=0] -- ($(note.north east)-(0,3)$);
  1191.  
  1192. %% the corner
  1193. \fill[color=plainblocktitlefillcolor]
  1194. ($(note.north east)-(0,3)$) -- ($(note.north east)-(0,2.5)$) .. %
  1195. controls ($(note.north east)-(0,1.25)$) and ($(note.north east)-(1.5,1.25)$)
  1196. .. ($(note.north east)-(1.9,2.3)$) %
  1197. .. controls ($(note.north east)-(4.5,0)$) ..
  1198. ($(note.north east)-(5.7,0)$) %
  1199. [rounded corners=20] -- ($(note.north east)-(4.7,0)$)
  1200. [rounded corners=20] -- ($(note.north east)-(0,1.7)$)
  1201. [rounded corners=0] -- ($(note.north east)-(0,3)$);
  1202.  
  1203. %% if callout, draw the connection
  1204. \ifthenelse{\equal{#5}{calloutblock}}{
  1205. \begin{scope}[even odd rule]
  1206. \clip[draw=none] \border (southwest) rectangle (northeast);
  1207.  
  1208. \draw let \p1=($(note.north east) - (note.north west)$),
  1209. \p2=($(note.north east) - (note.south east)$), \n1={veclen(\x1,\y2)/20}
  1210. in node[circle,inner sep=1cm] (cir) at (note.center) {};
  1211.  
  1212. \fill[color=plainblockfillcolor, fill=plainblockfillcolor]
  1213. #1 -- (tangent cs:node=cir, point={#1}, solution=1) -- (cir.center) --
  1214. (tangent cs:node=cir,point={#1},solution=2) -- cycle;
  1215. \end{scope}
  1216. }{}
  1217.  
  1218. %% repeat the node
  1219. \blockcontent
  1220.  
  1221. % }{}
  1222. }
  1223. }
  1224. }
  1225.  
  1226. \end{scope}
  1227. }
  1228.  
  1229.  
  1230. %% Callout node
  1231. % #1 - rotate angle
  1232. % #2 - from
  1233. % #3 - where
  1234. % #4 - width
  1235. % #5 - text
  1236. \newcommand{\calloutblock}[5][0]
  1237. {%
  1238. %% width = (#4) - 0.3
  1239. %%
  1240. %%
  1241. \coordinate (width) at ($(#4,0) - (0.3,0)$);
  1242.  
  1243. \drawplainblock{#2}{#3}{#5}{width}{calloutblock}{#1}
  1244. }
  1245.  
  1246.  
  1247. %% Plain node
  1248. % #1 - rotate angle
  1249. % #2 - where
  1250. % #3 - width
  1251. % #4 - title
  1252. % #5 - text
  1253. \newcommand{\plainblock}[5][0]{%
  1254. %% width = (#3) - 0.3
  1255. %%
  1256. %%
  1257. \coordinate (width) at ($(#3,0) - (0.3,0)$);
  1258.  
  1259. \drawplainblock{}{#2}{#5}{width}{#4}{#1}
  1260. }
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267. % #1 - innerblocktitlefillcolor
  1268. % #2 - title
  1269. % #3 - text
  1270. % should not be used inside tikzpicture environment
  1271. \newcommand{\innerblock}[3][innerblocktitlefillcolor]{%
  1272. \begin{tikzpicture}
  1273. %% iwidth = \linewidth
  1274. %% width of the minipage = iwidth - 1.2
  1275. %%
  1276. %%
  1277. \coordinate (iwidth) at (\linewidth,0);
  1278.  
  1279. %%%%% template N2
  1280. \ifthenelse{\equal{\innerblocktemplate}{2}}{
  1281. \draw let \p1=($1/4*(iwidth)-1/4*(2.4,0)$), \p2=($3*(\p1)$)
  1282. in node[draw, color=blockfillcolor, text=innerblocktextcolor, innerframe,
  1283. rectanglesplittwo, rectangle split horizontal,%
  1284. rectangle split part fill={#1, innerblockfillcolor}, %
  1285. rectangle split empty part height=0.6cm
  1286. ]
  1287. (b) at (0,0) {
  1288. \begin{minipage}{\x1}
  1289. {\bf\large\textcolor{innerblocktitletextcolor}{#2}}
  1290. \end{minipage}
  1291.  
  1292. \nodepart{second}
  1293. \begin{minipage}{\x2}
  1294. \color{innerblocktextcolor}
  1295. #3
  1296. \end{minipage}
  1297. };
  1298. }
  1299. %%%%% template N1
  1300. {
  1301. \draw let \p1=($(iwidth)-(1.2,0)$)
  1302. in node[draw, color=#1, text=innerblocktextcolor,
  1303. innerframe, rectanglesplittwo, rectangle split horizontal=false,
  1304. rectangle split draw splits=true,
  1305. rectangle split part fill={#1, innerblockfillcolor}, %
  1306. rectangle split empty part height=0.5cm
  1307. ]
  1308. (b) at (0,0) {
  1309. \nodepart{second}
  1310. \begin{minipage}{\x1}
  1311. \color{innerblocktextcolor}
  1312. #3
  1313. \end{minipage}
  1314. };
  1315.  
  1316. %% the title of the block
  1317. \node[innerframe, anchor=north west, text=white, rectangle] at
  1318. (b.north west) {\bf\large #2};
  1319.  
  1320. %% decorative drawing with colorthree
  1321. %% 0.2 is the line width from innerframe
  1322. \fill[rounded corners=15, #1]
  1323. let \p1=($(b.text split west)-(0,0.4) +(0.2,0)-(0.02,0)$),
  1324. \p2=($(b.text split east)-(0,0.4) -(0.2,0)+(0.02,0)$) in
  1325. ($(\p1)+(0,1)$) --
  1326. ($(\p1)-(0,1)$) -- ($(\p1)+(0,0.3)$) --
  1327. ($(\p1)+(3,0.3)$) -- ($(\p1)+(0,0.3)$)--
  1328. ($(\p1)+(0,2)$)
  1329.  
  1330. ($(\p2)+(0,1)$) --
  1331. ($(\p2)-(0,1)$) -- ($(\p2)+(0,0.3)$) --
  1332. ($(\p2)+(-3,0.3)$) -- ($(\p2)+(0,0.3)$)--
  1333. ($(\p2)+(0,2)$);
  1334. }
  1335.  
  1336. \end{tikzpicture}
  1337. }
  1338.  
  1339.  
  1340. % #1 - color
  1341. % #2 - text
  1342. % should not be used inside tikzpicture environment
  1343. \newcommand{\innerblockplain}[2][innerblocktitlefillcolor]{%
  1344. \begin{tikzpicture}
  1345. \draw let \p1=($(\linewidth,0)-(1.2,0)$) in node[draw, rectangle,
  1346. color=#1, fill=innerblockfillcolor, innerframe, text=black] {
  1347. \begin{minipage}{\x1}
  1348. #2
  1349. \end{minipage}
  1350. };
  1351. \end{tikzpicture}
  1352. }
  1353.  
  1354.  
  1355.  
  1356.  
  1357. % #1 - width
  1358. % #2 - color
  1359. % #3 - text
  1360. \newcommand{\coloredboxw}[3]{
  1361. \vspace{0.3cm}
  1362. \begin{tikzpicture}
  1363. \draw let \p1=($(#1,0)-(1,0)$) in node[draw, rectangle, color=#2,
  1364. fill=#2!10!, text=black, rounded corners=20, inner sep=0.5cm] {
  1365. \begin{minipage}[t]{\x1}
  1366. #3
  1367. \end{minipage}};
  1368. \end{tikzpicture}
  1369. \vspace{-0.5cm}
  1370. }
  1371.  
  1372. % #1 - color
  1373. % #2 - text
  1374. \newcommand{\coloredbox}[2]{
  1375. \coloredboxw{\linewidth}{#1}{#2}
  1376. }
  1377.  
  1378.  
  1379.  
  1380.  
  1381. %% A solution for figure environment, a modified version of the solution by
  1382. %% Stephan Thober
  1383. %
  1384. \makeatletter
  1385. %% counter for figures
  1386. \newcounter{figurecounter}
  1387.  
  1388. %% #1 Caption
  1389. \newenvironment{tikzfigure}[1][]{
  1390. \def \rememberparameter{#1}
  1391. \vspace{10pt}
  1392. \refstepcounter{figurecounter}
  1393. \begin{center}
  1394. }{
  1395. \ifx\rememberparameter\@empty
  1396. \else %nothing
  1397. \\[10pt]
  1398. {\small Fig.~\thefigurecounter: \rememberparameter}
  1399. \fi
  1400. \end{center}
  1401. }
  1402.  
  1403. \makeatother
  1404.  
  1405. \endinput
  1406.  
  1407. %%% Local Variables:
  1408. %%% mode: latex
  1409. %%% TeX-master: "fancytikzposter"
  1410. %%% TeX-PDF-mode: t
  1411. %%% save-place: t
  1412. %%% End:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement