这是我的代码,我正在学习如何使用 TikZ 包,并尝试将不同的示例放在不同的页面上。如果可能的话,我想在第 22 行和第 24 行之间设置分页符。谢谢。
\documentclass[11pt]{article}
\usepackage{tikz}
%optional libraries
\usetikzlibrary{decorations,arrows}
\begin{document}
\begin{tikzpicture}
\draw(1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
\draw[step=0.25cm, color=gray]
(-1,-1) grid (1,1);
\draw[fill,color=blue!30,draw=red, line width=2pt, opacity=0.5]
(1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
\draw (0,0) grid (10,10);
\draw (5,5) circle (5);
\draw (0,10) rectangle (-2,8);
\draw (5,5) circle (3 and 5);
\draw (10,0) arc (-90:90:5);
%Define the desired points
\coordinate (origin) at (0,0);
\coordinate (A) at (360.0/7.0 *0 : 1);
\coordinate (B) at (360.0/7.0 *1 : 1);
\coordinate (C) at (360.0/7.0 *2 : 1);
\coordinate (D) at (360.0/7.0 *3 : 1);
\coordinate (E) at (360.0/7.0 *4 : 1);
\coordinate (F) at (360.0/7.0 *5 : 1);
\coordinate (G) at (360.0/7.0 *6 : 1);
%Draw the edges
\draw(A) -- (B) -- (C) -- (D) -- (E) -- (F) -- (G) -- cycle;
%Add spokes
\draw (origin) -- (A) (origin) -- (B) (origin) -- (C) (origin) -- (D)
(origin) -- (E) (origin) -- (F) (origin) -- (G);
\end{tikzpicture}
\end{document}
答案1
如果你插入
\end{tikzpicture}
\newpage
\begin{tikzpicture}
这是你预期的结果吗?