Forgot password?
 Create new account
View 886|Reply 0

分享一个花哨的TikZ模板

[Copy link]

462

Threads

969

Posts

9934

Credits

Credits
9934

Show all posts

青青子衿 Posted at 2019-3-24 14:24:46 |Read mode
Last edited by 青青子衿 at 2019-3-24 14:35:00
  1. \documentclass[tikz,border=2pt]{standalone}
  2. \usepackage{ctex,amsmath}
  3. \setmainfont{Times New Roman}
  4. \usepackage{pgfornament}\usetikzlibrary{shapes.symbols,shapes.geometric}
  5. \definecolor{Maroon}{rgb}{0.5,0,0}
  6. \usepackage{shapepar}
  7. \begin{document}
  8. \begin{tikzpicture}[color=blue!50]
  9. \draw[help lines](-7,-7)grid(7,7);
  10. \node[minimum size=14cm](mybox){};
  11. \node[anchor=north west] at (mybox.north west){\pgfornament[width=5cm]{63}};
  12. \node[anchor=north east] at (mybox.north east){\pgfornament[width=5cm]{64}};
  13. \node[anchor=south west] at (mybox.south west){\pgfornament[width=5cm,symmetry=h]{63}};
  14. \node[anchor=south east] at (mybox.south east){\pgfornament[width=5cm,symmetry=h]{64}};
  15. \begin{scope}[every node={anchor=center,inner sep=0pt}]
  16. \node[scale=1.8,regular polygon,regular polygon sides=17,line width=2pt,minimum size=6cm,inner sep=0pt](s){};
  17. \path(s.side 1)to[color=blue,ornament=84](s.side 2)
  18.                to[color=red,ornament=84](s.side 3)
  19.                to[color=orange,ornament=84](s.side 4)
  20.                to[color=blue,ornament=84](s.side 5)
  21.                to[color=orange,ornament=84](s.side 6)
  22.                to[color=blue,ornament=84](s.side 7)
  23.                to[color=red,ornament=84](s.side 8)
  24.                to[color=orange,ornament=84](s.side 9)
  25.                to[color=blue,ornament=84](s.side 10)
  26.                to[color=red,ornament=84](s.side 11)
  27.                to[color=orange,ornament=84](s.side 12)
  28.                to[color=blue,ornament=84](s.side 13)
  29.                to[color=orange,ornament=84](s.side 14)
  30.                to[color=blue,ornament=84](s.side 15)
  31.                to[color=red,ornament=84](s.side 16)
  32.                to[color=orange,ornament=84](s.side 17)
  33.                to[color=red,ornament=84](s.side 1);
  34. \node[scale=1.4,brown!90!black,cloud,cloud puffs=17,line width=3pt,draw=red,align=flush center,text width=1.4cm]at(mybox.center)
  35. {\heartpar{\textbf{\kaishu{只要}\quad\kaishu{你对数学感兴趣,你就不会成为局外人。}\qquad\qquad——\,Peter Scholze}}};
  36. \end{scope}
  37. \end{tikzpicture}
  38. \end{document}
Copy the Code

手机版Mobile version|Leisure Math Forum

2025-4-20 21:57 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list