Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.78 KB | None | 0 0
  1. documentclass[svgnames]{article}
  2. usepackage{fontspec,microtype,shapepar,xcolor}
  3. setmainfont{TeX Gyre Chorus}
  4. begin{document}
  5. textcolor{Crimson}{heartpar{Lorem ipsum dolor sit amet, consectetuer
  6. adipiscing elit, sed diam nonummy nibh euismod tincidunt ut
  7. laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim
  8. veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
  9. nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure
  10. dolor in hendrerit in vulputate velit esse molestie consequat, vel
  11. illum dolore eu feugiat nulla facilisis at vero eros et accumsan
  12. et iusto odio dignissim qui blandit praesent luptatum zzril
  13. delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum
  14. dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
  15. nibh euismod tincidunt ut laoreet dolore magna aliquam erat
  16. volutpat.}}
  17. end{document}
  18.  
  19. documentclass[border=12pt,pstricks]{standalone}
  20. usepackage{pst-plot}
  21.  
  22. defx(#1){sin(#1)^3}
  23. defy(#1){(13*cos(#1)-5*cos(2*#1)-2*cos(3*#1)-cos(4*#1))/16}
  24.  
  25. psset{algebraic,plotpoints=100}
  26.  
  27. begin{document}
  28.  
  29. begin{pspicture}[showgrid=bottom](-2,-2)(2,2)
  30. psparametricplot[origin={0,0.15}]{0}{psPiTwo}{x(t)|y(t)}
  31. end{pspicture}
  32.  
  33. end{document}
  34.  
  35. documentclass[border=12pt,pstricks]{standalone}
  36. usepackage{pst-plot}
  37. usepackage[nomessages]{fp}
  38. FPevalDelta{round(2*pi/30:2)}
  39.  
  40. defx(#1){sin(#1)^3}
  41. defy(#1){(13*cos(#1)-5*cos(2*#1)-2*cos(3*#1)-cos(4*#1))/16}
  42.  
  43. psset{algebraic,plotpoints=100}
  44.  
  45. begin{document}
  46. multido{n=0.00+Delta}{31}{%
  47. begin{pspicture}[showgrid=false](-1.5,-1.5)(1.5,1.5)
  48. psparametricplot[origin={0,0.15},linecolor=red]{0}{n}{x(t)|y(t)}
  49. end{pspicture}}
  50.  
  51. end{document}
  52.  
  53. documentclass[border=12pt,pstricks]{standalone}
  54. usepackage{graphicx}
  55. newsaveboxIBox
  56. saveboxIBox{includegraphics{pretty}}
  57. usepackage{pst-plot}
  58.  
  59. defx(#1){sin(#1)^3}
  60. defy(#1){(13*cos(#1)-5*cos(2*#1)-2*cos(3*#1)-cos(4*#1))/16}
  61.  
  62. psset
  63. {
  64. algebraic,
  65. plotpoints=100,
  66. xunit=.5wdIBox,
  67. yunit=.5htIBox,
  68. }
  69.  
  70. usepackage{mathtools}
  71. begin{document}
  72.  
  73. begin{pspicture}[showgrid=false](-1,-1)(1,1.5)
  74. begin{psclip}{psparametricplot[origin={0,0.15}]{0}{psPiTwo}{x(t)|y(t)}}
  75. rput(0,0){useboxIBox}
  76. end{psclip}
  77. rput(0,1.25){%
  78. color{red}large
  79. $displaystyle!
  80. begin{aligned}
  81. x(t)&=sin^3 t\
  82. y(t)&=(13cos t -5cos 2t -2cos 3t -cos 4t)/16
  83. end{aligned}$}
  84. rput(0,1){HAPPY BIRTHDAY}
  85. end{pspicture}
  86.  
  87. end{document}
  88.  
  89. documentclass[preview,border=12pt]{standalone}
  90. usepackage{filecontents}
  91. begin{filecontents*}{heart.tex}
  92. documentclass[border=12pt,pstricks]{standalone}
  93. usepackage{graphicx}
  94. newsaveboxIBox
  95. saveboxIBox{includegraphics[scale=3]{example-grid-100x100pt}}
  96. usepackage{pst-plot}
  97.  
  98. defx(#1){sin(#1)^3}
  99. defy(#1){(13*cos(#1)-5*cos(2*#1)-2*cos(3*#1)-cos(4*#1))/16}
  100.  
  101. psset
  102. {
  103. algebraic,
  104. plotpoints=1000,
  105. xunit=.5wdIBox,
  106. yunit=.5htIBox,
  107. linewidth=10pt,
  108. }
  109.  
  110. usepackage[nomessages]{fp}
  111. FPevalDelta{round(2*pi/30:2)}
  112. usepackage{mathtools}
  113. begin{document}
  114.  
  115. multido{n=0.00+Delta}{31}{%
  116. begin{pspicture}[showgrid=false](-1,-1)(1,1.5)
  117. begin{psclip}{psparametricplot[origin={0,0.15}]{0}{psPiTwo}{x(t)|y(t)}}
  118. rput(0,0){useboxIBox}
  119. end{psclip}
  120. rput(0,1.25){%
  121. color{red}large
  122. $displaystyle!
  123. begin{aligned}
  124. x(t)&=sin^3 t\
  125. y(t)&=(13cos t -5cos 2t -2cos 3t -cos 4t)/16
  126. end{aligned}$}
  127. rput(0,1){HAPPY BIRTHDAY}
  128. psparametricplot[origin={0,0.15},linecolor=red]{0}{n}{x(t)|y(t)}
  129. end{pspicture}}
  130.  
  131. end{document}
  132. end{filecontents*}
  133.  
  134. usepackage{animate}
  135. immediatewrite18{latex heart}
  136. immediatewrite18{dvips heart}
  137. immediatewrite18{ps2pdf heart.ps}
  138. begin{document}
  139. animategraphics[controls,autoplay,loop,scale=1]{7}{heart}{}{}
  140. end{document}
  141.  
  142. % arara: pdflatex
  143. % !arara: indent: {overwrite: on}
  144. documentclass{standalone}
  145. usepackage{pgfplots}
  146.  
  147. pgfplotsset{compat=1.9}
  148. pgfplotsset{
  149. /pgfplots/colormap={pink}{color(0cm)=(purple); color(1cm)=(pink!80!purple); color(2cm)=(pink!90); color(3cm)=(pink) }
  150. }
  151.  
  152. begin{document}
  153.  
  154. begin{tikzpicture}
  155. begin{axis}[
  156. view={0}{10},
  157. axis equal,
  158. axis lines=none,
  159. colormap name =pink,
  160. ]
  161. addplot3[
  162. surf,
  163. shader=faceted,
  164. samples=50,
  165. domain=0:2*pi,y domain=0:2*pi,
  166. z buffer=sort,
  167. opacity=0.15]
  168. (
  169. {(sin(deg(x)))^3*cos(deg(y))},
  170. {(sin(deg(x)))^3*sin(deg(y))},
  171. {(13*cos(deg(x))-5*cos(2*deg(x))-2*cos(3*deg(x))-cos(4*deg(x)))/16}
  172. );
  173. end{axis}
  174. end{tikzpicture}
  175.  
  176. end{document}
  177.  
  178. documentclass{article}
  179. usepackage[dvipsnames]{xcolor}
  180. usepackage{pgfornament}
  181.  
  182. newcommandmycoupon{%
  183. begin{tikzpicture}[color=Maroon,
  184. every node/.style={inner sep=0pt}]
  185. %draw[help lines] (-6,-3) grid (6,3);
  186. node[minimum width=12cm, minimum height=6cm](vecbox){};
  187. draw[thin, gray!20]
  188. (vecbox.north west)
  189. -- (vecbox.north east)
  190. -- (vecbox.south east)
  191. -- (vecbox.south west)
  192. -- cycle;
  193. node[anchor=north west] at (vecbox.north west)
  194. {pgfornament[width=2cm]{61}};
  195. node[anchor=north east] at (vecbox.north east)
  196. {pgfornament[width=2cm,symmetry=v]{61}};
  197. node[anchor=south west] at (vecbox.south west)
  198. {pgfornament[width=2cm,symmetry=h]{61}};
  199. node[anchor=south east] at (vecbox.south east)
  200. {pgfornament[width=2cm,symmetry=c]{61}};
  201. node at (0,0)
  202. {
  203. LARGE
  204. begin{tabular}{c}
  205. Coupon for one snuggle time with textbf{Farticle Pilter}
  206. end{tabular}
  207. };
  208. node at (0,-2.7)
  209. {
  210. tiny
  211. begin{tabular}{c}
  212. Coupon redeemable by textbf{insert name} only, whenever she wants. Issued on textbf{insert date}. Does not expireldots{} ever!
  213. end{tabular}
  214. };
  215. end{tikzpicture}
  216. }
  217.  
  218. begin{document}
  219.  
  220. pagestyle{empty}
  221. noindent
  222. mycoupon\[1em]
  223. mycoupon\[1em]
  224. mycoupon
  225.  
  226.  
  227. end{document}
  228.  
  229. documentclass[border=12pt,pstricks]{standalone}
  230. usepackage{pst-plot,multido}
  231. psset{algebraic,plotpoints=1000,unit=5,linewidth=10pt}
  232. begin{document}
  233.  
  234. multido{iA=20+20}{4}{%
  235. begin{pspicture}(-1,-1.1)(1,0.8)
  236. psparametricplot[linecolor=red!50,fillstyle=solid,
  237. fillcolor=red!iA,linejoin=1]{0}{psPiTwo}%
  238. {sin(t)^3 | (13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t))/16}
  239. end{pspicture}}
  240.  
  241. end{document}
  242.  
  243. convert -delay 10 -loop 0 -density 300 -scale 300 -alpha remove heart.pdf heart.gif
  244.  
  245. documentclass[pstricks]{standalone}
  246. usepackage{pst-solides3d}
  247. begin{document}
  248.  
  249. multido{iA=20+20,iB=10+20,iC=150+10}{4}{%
  250. begin{pspicture}(-4,-4)(4,4)% the main 2D area
  251. psset{lightsrc=viewpoint,viewpoint=50 -20 20 rtp2xyz,Decran=iC}
  252. defFunction[algebraic]{heart}(u,v)
  253. { sin(u)^3*cos(v) }% x=f(u,v)
  254. { sin(u)^3*sin(v) }% y=f(u,v)
  255. { (13*cos(u)-5*cos(2*u)-2*cos(3*u)-cos(4*u))/16 }% z=f(u)
  256. psSolid[object=surfaceparametree,linecolor=red!iB,
  257. base=0 pi pi 4 div neg 5 pi mul 2 div,
  258. fillcolor=red!iA,function=heart,linewidth=0.1pslinewidth,ngrid=40]
  259. end{pspicture}}
  260.  
  261. end{document}
  262.  
  263. documentclass{article}
  264. usepackage{tikz}
  265. usetikzlibrary{calc}
  266. pagestyle{empty}
  267. begin{document}
  268. begin{tikzpicture}
  269. draw[red,fill=red] (0,0) .. controls (0,0.75) and (-1.5,1.00) .. (-1.5,2) arc (180:0:0.75) -- cycle;
  270. draw[red,fill=red] (0,0) .. controls (0,0.75) and ( 1.5,1.00) .. ( 1.5,2) arc (0:180:0.75) -- cycle;
  271. end{tikzpicture}
  272. end{document}
  273.  
  274. documentclass{standalone}
  275. usepackage{tikz}
  276. begin{document}
  277. begin{tikzpicture}[yscale=-1]
  278. draw[fill=red!30!white](.456,3.236)
  279. .. controls (.422,4.168) and (.408,5.095) .. (.461,6.046)
  280. .. controls (.475,6.228) and (.365,6.400) .. (.379,6.601)
  281. -- (.819,11.816)
  282. .. controls (.843,12.194) and (.838,13.389) .. (.900,13.972)
  283. .. controls (.943,14.340) and (2.870,14.340) .. (2.903,13.972)
  284. .. controls (2.927,13.699) and (2.932,13.436) .. (2.903,13.169)
  285. -- (1.847,5.401)
  286. .. controls (1.914,4.627) and (2.033,3.924) .. (2.129,3.193)
  287. .. controls (2.177,2.906) and (.441,2.863) .. (.456,3.236) ;
  288. draw[fill=red!30!white] (.456,3.236)
  289. .. controls (.422,4.168) and (.408,5.095) .. (.461,6.046)
  290. .. controls (.475,6.228) and (.365,6.400) .. (.379,6.601)
  291. -- (.819,11.816)
  292. .. controls (.843,12.194) and (.838,13.389) .. (.900,13.972)
  293. .. controls (.943,14.340) and (2.870,14.340) .. (2.903,13.972)
  294. .. controls (2.927,13.699) and (2.932,13.436) .. (2.903,13.169)
  295. -- (1.847,5.401)
  296. .. controls (1.914,4.627) and (2.033,3.924) .. (2.129,3.193)
  297. .. controls (2.177,2.906) and (.441,2.863) .. (.456,3.236) ;
  298. draw[fill=red!60!white] (.303,6.697)
  299. .. controls (-.161,7.442) and (-.022,9.641) .. (.484,11.118)
  300. .. controls (.795,12.022) and (1.297,12.414) .. (2.062,12.801)
  301. .. controls (3.429,13.513) and (5.112,13.714) .. (6.598,13.795)
  302. .. controls (9.495,13.957) and (9.738,11.735) .. (8.974,8.967)
  303. .. controls (8.744,8.126) and (8.123,7.815) .. (7.917,7.222)
  304. .. controls (7.683,6.606) and (7.310,5.999) .. (6.598,5.420)
  305. .. controls (5.570,4.579) and (1.230,5.210) .. (.303,6.697) ;
  306. fill[fill=red!25!white] (2.540,6.405)
  307. .. controls (2.296,6.257) and (1.890,6.300) .. (1.608,6.424)
  308. .. controls (1.274,6.577) and (1.101,6.802) .. (1.001,7.151)
  309. .. controls (.858,7.652) and (1.025,8.293) .. (1.106,8.795)
  310. .. controls (1.149,9.072) and (1.149,9.402) .. (1.254,9.684)
  311. .. controls (1.278,9.746) and (1.278,9.823) .. (1.360,9.870)
  312. .. controls (1.426,9.909) and (1.412,9.732) .. (1.460,9.651)
  313. .. controls (1.747,9.144) and (2.210,8.346) .. (2.502,7.834)
  314. .. controls (2.602,7.657) and (2.631,7.437) .. (2.531,7.303)
  315. .. controls (2.411,7.146) and (2.206,6.883) .. (2.306,6.768)
  316. .. controls (2.382,6.682) and (2.621,6.453) .. (2.540,6.405) ;
  317. fill[fill=red!25!white] (4.204,6.606)
  318. .. controls (5.413,6.434) and (5.327,7.543) .. (5.466,7.796)
  319. .. controls (5.599,8.054) and (6.350,8.785) .. (6.498,9.029)
  320. .. controls (6.646,9.273) and (7.282,9.947) .. (7.067,10.616)
  321. .. controls (6.847,11.290) and (5.776,11.582) .. (5.212,11.429)
  322. .. controls (4.643,11.271) and (3.773,10.941) .. (3.166,11.113)
  323. .. controls (2.559,11.280) and (1.350,10.793) .. (1.790,10.052)
  324. .. controls (2.225,9.311) and (3.640,6.692) .. (4.204,6.606) ;
  325. draw[fill=yellow] (1.307,3.107)
  326. .. controls (1.675,3.107) and (1.976,3.169) .. (1.976,3.250)
  327. .. controls (1.976,3.327) and (1.675,3.394) .. (1.307,3.394)
  328. .. controls (.934,3.394) and (.633,3.327) .. (.633,3.250)
  329. .. controls (.633,3.169) and (.934,3.107) .. (1.307,3.107) ;
  330. draw[fill=blue!20!red!80!white] (1.307,3.107)
  331. .. controls (1.675,3.107) and (1.976,3.169) .. (1.976,3.250)
  332. .. controls (1.976,3.327) and (1.675,3.394) .. (1.307,3.394)
  333. .. controls (.934,3.394) and (.633,3.327) .. (.633,3.250)
  334. .. controls (.633,3.169) and (.934,3.107) .. (1.307,3.107) ;
  335. fill[fill=red!10!white] (1.024,14.000)
  336. .. controls (.991,13.929) and (.924,12.146) .. (1.039,12.323)
  337. .. controls (1.120,12.452) and (1.498,12.753) .. (1.870,12.767)
  338. .. controls (2.004,12.777) and (1.918,14.129) .. (1.875,14.163)
  339. .. controls (1.789,14.230) and (1.110,14.173) .. (1.024,14.000) ;
  340. fill[fill=red!10!white] (.618,3.432)
  341. -- (.618,6.247)
  342. .. controls (.852,5.941) and (1.086,5.745) .. (1.345,5.578)
  343. .. controls (1.364,5.033) and (1.368,4.125) .. (1.345,3.556)
  344. .. controls (1.096,3.556) and (.862,3.518) .. (.618,3.432) ;
  345. draw[fill=white] (4.872,5.215)
  346. .. controls (4.944,5.607) and (4.891,5.884) .. (4.595,6.061)
  347. .. controls (4.389,6.185) and (3.749,6.013) .. (3.864,5.664)
  348. .. controls (3.974,5.339) and (4.088,5.081) .. (4.346,4.923)
  349. .. controls (4.533,4.813) and (4.858,5.119) .. (4.872,5.215) ;
  350.  
  351. draw[fill=red!80!blue] (5.662,5.665)
  352. .. controls (5.643,5.732) and (5.624,5.803) .. (5.604,5.880)
  353. .. controls (5.944,6.076) and (6.355,6.640) .. (6.522,7.314)
  354. .. controls (6.699,8.031) and (6.336,8.284) .. (5.853,8.796)
  355. .. controls (5.523,9.154) and (5.313,9.541) .. (5.303,10.014)
  356. .. controls (5.485,9.106) and (5.844,8.958) .. (6.030,8.877)
  357. .. controls (6.278,8.767) and (6.221,9.221) .. (6.159,10.029)
  358. .. controls (6.341,9.412) and (6.298,8.944) .. (6.274,8.752)
  359. .. controls (6.245,8.561) and (6.589,8.370) .. (6.685,8.093)
  360. .. controls (6.799,7.777) and (6.924,8.069) .. (6.991,8.208)
  361. .. controls (7.153,8.547) and (7.311,8.681) .. (7.263,8.987)
  362. .. controls (7.096,10.033) and (6.780,10.387) .. (6.250,10.650)
  363. .. controls (6.728,10.492) and (6.833,10.373) .. (6.976,10.230)
  364. .. controls (6.991,10.440) and (6.900,10.870) .. (6.962,11.209)
  365. .. controls (6.957,10.669) and (7.277,9.197) .. (7.469,9.044)
  366. .. controls (7.579,8.953) and (8.296,9.632) .. (8.372,10.139)
  367. .. controls (8.458,10.698) and (8.936,11.535) .. (8.716,12.213)
  368. .. controls (8.970,11.458) and (8.535,10.636) .. (8.635,10.445)
  369. .. controls (8.778,10.641) and (9.060,11.037) .. (9.027,11.257)
  370. .. controls (8.994,11.477) and (9.170,11.874) .. (9.094,12.333)
  371. .. controls (9.228,11.883) and (9.065,11.702) .. (9.118,11.377)
  372. .. controls (9.166,11.052) and (8.979,10.626) .. (8.836,10.359)
  373. .. controls (8.549,9.828) and (7.889,9.187) .. (7.373,8.595)
  374. .. controls (7.708,8.796) and (8.535,9.077) .. (8.487,9.369)
  375. .. controls (8.434,9.661) and (8.860,9.900) .. (9.027,10.306)
  376. .. controls (8.903,9.928) and (8.587,9.656) .. (8.568,9.321)
  377. .. controls (8.554,8.982) and (8.023,8.815) .. (7.889,8.762)
  378. .. controls (7.995,8.752) and (8.253,8.748) .. (8.348,8.834)
  379. .. controls (8.444,8.920) and (8.702,9.097) .. (8.912,9.044)
  380. .. controls (8.539,9.044) and (8.463,8.671) .. (8.286,8.657)
  381. .. controls (8.109,8.647) and (7.641,8.566) .. (7.531,8.470)
  382. .. controls (7.015,8.016) and (6.599,7.223) .. (6.819,7.271)
  383. .. controls (7.344,7.381) and (7.899,7.471) .. (8.377,7.988)
  384. .. controls (8.023,7.567) and (7.999,7.562) .. (7.478,7.314)
  385. .. controls (7.091,7.137) and (6.537,6.979) .. (6.355,6.511)
  386. .. controls (6.250,6.229) and (5.887,5.789) .. (5.662,5.665) ;
  387. draw[fill=red!80!blue] (3.387,5.951)
  388. .. controls (3.779,7.003) and (2.665,8.600) .. (1.857,9.866)
  389. .. controls (1.384,10.607) and (1.704,11.157) .. (2.364,11.305)
  390. .. controls (2.842,11.410) and (4.515,11.004) .. (4.993,11.023)
  391. .. controls (5.480,11.037) and (5.604,10.856) .. (5.882,10.559)
  392. .. controls (5.815,10.894) and (5.256,11.305) .. (4.997,11.209)
  393. .. controls (4.735,11.114) and (4.199,11.229) .. (3.975,11.338)
  394. .. controls (4.280,11.425) and (4.787,11.401) .. (5.179,11.601)
  395. .. controls (5.571,11.802) and (5.920,11.750) .. (6.159,11.300)
  396. .. controls (6.140,11.730) and (5.538,11.955) .. (5.126,11.783)
  397. .. controls (4.715,11.616) and (3.736,11.434) .. (3.401,11.434)
  398. .. controls (3.176,11.429) and (3.009,11.468) .. (2.617,11.563)
  399. .. controls (3.324,11.635) and (4.252,12.084) .. (5.165,12.304)
  400. .. controls (5.863,12.471) and (6.680,12.452) .. (6.790,12.189)
  401. .. controls (6.895,11.946) and (7.072,11.840) .. (7.473,11.793)
  402. .. controls (7.000,12.008) and (6.866,12.156) .. (6.814,12.438)
  403. .. controls (7.015,12.490) and (7.411,12.256) .. (7.626,12.457)
  404. .. controls (7.846,12.658) and (8.439,12.653) .. (8.864,12.381)
  405. .. controls (8.386,12.730) and (7.770,12.710) .. (7.607,12.557)
  406. .. controls (7.445,12.405) and (7.077,12.553) .. (6.862,12.591)
  407. .. controls (6.647,12.634) and (6.446,12.644) .. (5.891,12.548)
  408. .. controls (5.714,12.620) and (5.657,12.715) .. (5.867,12.792)
  409. .. controls (6.082,12.835) and (6.537,12.806) .. (7.014,12.806)
  410. .. controls (7.258,12.806) and (7.430,12.935) .. (7.631,12.811)
  411. .. controls (7.832,12.682) and (8.033,12.873) .. (8.324,13.016)
  412. .. controls (7.999,12.906) and (7.746,12.768) .. (7.660,12.897)
  413. .. controls (7.574,13.031) and (7.263,12.916) .. (7.163,12.940)
  414. .. controls (7.292,12.992) and (7.493,12.935) .. (7.507,13.136)
  415. .. controls (7.526,13.337) and (8.057,13.284) .. (7.999,13.652)
  416. .. controls (7.923,13.294) and (7.540,13.423) .. (7.406,13.179)
  417. .. controls (7.277,12.940) and (6.885,13.055) .. (6.680,13.031)
  418. .. controls (6.250,12.973) and (5.557,13.074) .. (5.461,12.639)
  419. .. controls (5.217,12.600) and (4.921,12.514) .. (4.682,12.419)
  420. .. controls (4.687,12.538) and (5.103,13.026) .. (5.461,13.102)
  421. .. controls (5.815,13.174) and (6.532,13.155) .. (6.699,13.681)
  422. .. controls (6.345,13.174) and (5.614,13.356) .. (5.294,13.260)
  423. .. controls (4.978,13.160) and (4.213,12.285) .. (3.898,12.189)
  424. .. controls (3.583,12.099) and (3.272,11.922) .. (3.157,11.989)
  425. .. controls (3.062,12.084) and (3.119,12.600) .. (3.583,12.581)
  426. .. controls (4.046,12.562) and (4.362,12.882) .. (4.620,13.356)
  427. .. controls (4.271,12.897) and (3.721,12.615) .. (3.358,12.744)
  428. .. controls (2.990,12.868) and (2.823,11.936) .. (2.598,11.812)
  429. .. controls (2.373,11.683) and (1.594,11.377) .. (1.503,11.042)
  430. .. controls (1.465,11.377) and (2.106,11.903) .. (2.043,12.677)
  431. .. controls (1.953,11.922) and (1.522,11.783) .. (1.317,11.377)
  432. .. controls (1.111,10.966) and (1.212,10.555) .. (1.417,9.991)
  433. .. controls (1.422,9.971) and (3.836,6.267) .. (2.588,5.985)
  434. .. controls (2.235,5.904) and (1.981,5.813) .. (1.757,5.660)
  435. .. controls (1.871,4.489) and (2.187,2.481) .. (2.650,2.405)
  436. .. controls (3.176,2.314) and (4.185,2.878) .. (4.175,3.289)
  437. .. controls (4.166,3.724) and (3.817,4.766) .. (3.994,5.201)
  438. .. controls (3.759,5.397) and (3.277,5.617) .. (3.387,5.951) ;
  439. fill[fill=red!90!blue!70!white] (2.942,5.378)
  440. .. controls (2.875,5.339) and (2.736,5.378) .. (2.722,5.459)
  441. .. controls (2.712,5.535) and (2.741,5.583) .. (2.779,5.674)
  442. .. controls (3.013,6.066) and (3.200,6.716) .. (2.980,7.266)
  443. .. controls (2.803,7.720) and (2.564,8.226) .. (2.296,8.661)
  444. .. controls (2.048,9.068) and (1.627,9.670) .. (1.565,10.363)
  445. .. controls (1.579,10.105) and (1.837,9.737) .. (1.952,9.512)
  446. .. controls (2.263,8.905) and (3.071,7.815) .. (3.214,7.180)
  447. .. controls (3.362,6.534) and (3.243,5.875) .. (3.071,5.597)
  448. .. controls (3.066,5.540) and (3.028,5.425) .. (2.942,5.378) ;
  449. fill[fill=red!90!blue!70!white] (2.793,2.424)
  450. .. controls (2.253,3.542) and (2.115,3.948) .. (2.014,5.712)
  451. .. controls (2.019,5.784) and (2.349,5.903) .. (2.339,5.841)
  452. .. controls (2.301,4.665) and (2.650,3.289) .. (3.138,2.486)
  453. .. controls (3.032,2.447) and (2.870,2.419) .. (2.793,2.424) ;
  454. draw (2.526,6.104)
  455. .. controls (2.990,5.937) and (2.541,6.688) .. (2.545,6.673)
  456. .. controls (2.454,6.831) and (2.521,6.869) .. (2.564,6.922)
  457. .. controls (2.717,7.123) and (2.932,7.165) .. (2.660,7.471) ;
  458. draw (.461,3.241)
  459. .. controls (.576,3.657) and (2.187,3.657) .. (2.129,3.198) ;
  460. draw[fill=red!30!white] (3.687,5.731)
  461. .. controls (3.520,6.229) and (5.541,6.616) .. (5.556,6.214)
  462. .. controls (5.570,5.827) and (5.790,5.325) .. (5.800,4.919)
  463. .. controls (5.809,4.584) and (4.480,4.250) .. (4.308,4.517)
  464. .. controls (4.084,4.866) and (3.854,5.249) .. (3.687,5.731) ;
  465. draw (4.299,4.531)
  466. .. controls (4.189,4.885) and (5.752,5.315) .. (5.800,4.961) ;
  467. draw[fill=blue!20!red!80!white] (5.097,4.594)
  468. .. controls (5.436,4.694) and (5.699,4.823) .. (5.680,4.919)
  469. .. controls (5.656,5.009) and (5.360,5.000) .. (5.020,4.899)
  470. .. controls (4.681,4.799) and (4.428,4.675) .. (4.452,4.584)
  471. .. controls (4.475,4.493) and (4.757,4.493) .. (5.097,4.594) ;
  472. end{tikzpicture}
  473.  
  474. end{document}
  475.  
  476. prologues := 3;
  477. outputtemplate := "heart.eps";
  478. beginfig(1);
  479. path heart, p;
  480. heart = (100,162) .. (140,178){right} .. (195,125){down}
  481. .. (100,0){curl 0} .. (100,0){curl 0} .. {up}(5,125) .. {right}(60,178) .. (100,162);
  482. p = (100,200) -- (200,200) -- (200,100) -- (200,0) -- (0,0) -- (0,100) -- (0,200) -- (100,200);
  483. for n=0 upto 10: draw interpath(n/10,p,heart) withcolor .987red; endfor
  484. endfig;
  485. end.
  486.  
  487. documentclass{standalone}
  488. usepackage{arev}
  489. usepackage{xcolor}
  490. begin{document}
  491. rule[-2pt]{0pt}{10pt}
  492. textcolor{red}{$varheart$}
  493. rule{0pt}{10pt}
  494. end{document}
  495.  
  496. documentclass{beamer}
  497. usepackage{tikz}
  498. usetikzlibrary{hobby,shadows}
  499.  
  500. makeatletter
  501. pgfdeclareradialshading[tikz@ball]{heart}{pgfpoint{-0.275cm}{0.4cm}}{%
  502. color(0cm)=(tikz@ball!60!white);
  503. color(0.4cm)=(tikz@ball!85!white);
  504. color(0.7cm)=(tikz@ball);
  505. color(0.9925cm)=(tikz@ball!75!black);
  506. rgb(1cm)=(1,1,1)
  507. }
  508. tikzoption{heart on color}{pgfutil@colorlet{tikz@ball}{#1}deftikz@shading{heart on}tikz@addmode{tikz@mode@shadetrue}}
  509.  
  510. pgfdeclareradialshading[tikz@ball]{heart}{pgfpoint{-0.275cm}{0.4cm}}{%
  511. color(0cm)=(tikz@ball!80!white);
  512. color(0.4cm)=(tikz@ball!90!white);
  513. color(0.7cm)=(tikz@ball);
  514. color(0.9925cm)=(tikz@ball!75!black);
  515. rgb(1cm)=(1,1,1)
  516. }
  517. tikzoption{heart color}{pgfutil@colorlet{tikz@ball}{#1}deftikz@shading{heart}tikz@addmode{tikz@mode@shadetrue}}
  518. makeatother
  519.  
  520. % original code by Daniel:
  521. % http://tex.stackexchange.com/questions/55806/tikzpicture-in-beamer#55849
  522. tikzset{
  523. invisible/.style={opacity=0,text opacity=0},
  524. visible on/.style={alt=#1{}{invisible}},
  525. alt/.code args={<#1>#2#3}{%
  526. alt<#1>{pgfkeysalso{#2}}{pgfkeysalso{#3}}
  527. },
  528. }
  529.  
  530. % original code in
  531. % http://tex.stackexchange.com/questions/84513/highlighting-in-beamer-using-tikz-nodes#84608
  532. tikzset{
  533. background shade/.style={#1},
  534. shade on/.style={alt=#1{}{background shade}},
  535. background shade/.default={shading=heart,heart color=red}
  536. }
  537.  
  538. begin{document}
  539. begin{frame}
  540. begin{tikzpicture}[scale=4]
  541. path[drop shadow,heart on color=red,shade on=<{2,4,6,8,9,12,13}>]
  542. (0,0) to[curve through={(0.25,0.4) .. (0.5,0.6) .. (0.5,1.2) .. (0.4,1.25)}] (0,1)
  543. (0,1) to[curve through={(-0.4,1.25)..(-0.5,1.2) .. (-0.5,0.6).. (-0.25,0.4)}](0,0);
  544. end{tikzpicture}
  545. end{frame}
  546. end{document}
  547.  
  548. % Valentine heart
  549. % Author: Alain Matthes
  550. documentclass{article}
  551. usepackage[usenames,dvipsnames]{xcolor}
  552. usepackage{tikz}
  553. begin{document}
  554. begin{tikzpicture}
  555. draw[ball color=BrickRed,shading=ball] (4,1) ..controls +(120:2cm)
  556. and +(90:2cm) .. (0,0) .. controls +(-90:2cm) and +(90:3cm) ..
  557. (4,-8) .. controls +(90:3cm) and +(-90:2cm) ..(8,0) .. controls
  558. +(90:2cm) and +(60:2cm) .. (4,1);
  559. end{tikzpicture}
  560. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement