我想在一页上分两列显示六个图表。它们是各种集合的图表。我希望第一列与左边距齐平。由于这些图表是问题的解决方案,我想在左边距显示“4.) a.) set_1”、“c.) set_2”和“e.) set_3”。我想将它们显示在每张图表的左上角会很好看。也许在每个图表上方。我见过解决方案手册以两种方式呈现它。第二列也是一样。我想第二列应该与右边距齐平。还有其他意见吗?
我为每个图表都添加了代码。我不知道它们是否都应该放在一个 TikZ 环境中。它没有按我希望的方式显示,但要显示的集合在那里,并且除了 b.) 和 e.) 的阴影(一种特殊的阴影)之外,用于绘制每个集合的代码也在那里。我在 tikzpgfmanual.pdf 的第 217 页上查找了绘制对角线阴影线的方法。它们不在那里,我没有看到在圆圈外或圆圈内绘制阴影线的任何示例。
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{calc,angles,quotes,decorations.markings}
\begin{document}
{\bf 4.) a.)} $\{z \mid \vert z – 1 + i \vert = 1\}$
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-2,0) -- (2,0) node[below] {$x $};
\draw[<->] (0,-2) -- (0,2) node[left] y$};
\draw[help lines] (1,-1) circle (1);
\end{tikzpicture}
{\bf b.)} $\{z \mid \vert z + i \vert < 3\}$
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-4,0) -- (4,0) node[below] {$x$};
\draw[<->] (0,-4) -- (0,4) node[left] y$};
\pscircle[linestyle=dashed,dash=2pt 4pt,linewidth=0.5pt](0,-1) circle (3);
\end{tikzpicture}
{\bf c.)} $\{z \mid {\mathrm{Re}}\bigl(\overline{z} - i\bigr) = 2\}$
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-4,0) -- (4,0) node[below] {$x $};
\draw[<->] (0,-4) -- (0,4) node[left] y$};
\draw[help lines] (0,-1) circle (3);
\end{tikzpicture}
{\bf d.)} $\{z \mid \vert z – i \vert = \vert z + i \vert \}$
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-2,0) -- (2,0) node[below] {$x $};
\draw[<->] (0,-2) -- (0,2) node[left] y$};
\draw[line width=12] (0,0) (-1.75,0) -- (1.75,0);
{\bf e.)} $\{z \mid \vert z \vert > 1\}$
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-2,0) -- (2,0) node[below] {$x $};
\draw[<->] (0,-2) -- (0,2) node[left] y$};
\pscircle[linestyle=dashed,dash=2pt 4pt,linewidth=0.5pt](0,0) circle (1);
\end{tikzpicture}
{\bf f.)} $\{z \mid z^{5} = 1\}$
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-2,0) -- (2,0) node[below] {$x $};
\draw[<->] (0,-2) -- (0,2) node[left] y$};
\foreach \i in {1,...,5 } {\node[dot,label={\i*360/5 -(\i==5)*45:$w_{\i}$}] (w\i) at (\i*360/5:1) {};
\draw[->] (O) -- (w\i);
}
\draw[->] (0:.3) arc (0:360/5:.3);
\node at (360/5 /2:.5) {${\scriptscripttyle{72^{\circ}}}$};
\end{tikzpicture}
\end{document}
答案1
虽然我不得不注释掉一些代码并修复一些拼写错误,但下面的代码仍然实现了我认为你的目标。我还根据 Gonzalo 的评论进行了更改。它使用\bf
了\bfseries
floatrow
包将浮动元素放在两列中。我还调整了边距,以便它更适合,但你最好调整图形的大小。希望这对你有帮助!
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{calc,angles,quotes,decorations.markings}
\usepackage[margin=1cm]{geometry}
\usepackage{floatrow}
\begin{document}
\begin{figure}
\begin{floatrow}
\ffigbox{}{
{\bfseries 4.) a.)} $\{z \mid \vert z - 1 + i \vert = 1\}$\\
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-2,0) -- (2,0) node[below] {$x $};
\draw[<->] (0,-2) -- (0,2) node[left] {$y$};
\draw[help lines] (1,-1) circle (1);
\end{tikzpicture}
\par
{\bfseries b.)} $\{z \mid \vert z + i \vert < 3\}$\\
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-4,0) -- (4,0) node[below] {$x$};
\draw[<->] (0,-4) -- (0,4) node[left] {$y$};
% \pscircle[linestyle=dashed,dash=2pt 4pt,linewidth=0.5pt](0,-1) circle (3);
\end{tikzpicture}
\par
{\bfseries c.)} $\{z \mid {\mathrm{Re}}\bigl(\overline{z} - i\bigr) = 2\}$\\
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-4,0) -- (4,0) node[below] {$x $};
\draw[<->] (0,-4) -- (0,4) node[left] {$y$};
\draw[help lines] (0,-1) circle (3);
\end{tikzpicture}
}
\hfill
\ffigbox{}{
{\bfseries d.)} $\{z \mid \vert z – i \vert = \vert z + i \vert \}$\\
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-2,0) -- (2,0) node[below] {$x $};
\draw[<->] (0,-2) -- (0,2) node[left] {$y$};
\draw[line width=12] (0,0) (-1.75,0) -- (1.75,0);
\end{tikzpicture}
\par
{\bfseries e.)} $\{z \mid \vert z \vert > 1\}$\\
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-2,0) -- (2,0) node[below] {$x $};
\draw[<->] (0,-2) -- (0,2) node[left] {$y$};
% \pscircle[linestyle=dashed,dash=2pt 4pt,linewidth=0.5pt](0,0) circle (1);
\end{tikzpicture}
\par
{\bfseries f.)} $\{z \mid z^{5} = 1\}$\\
\begin{tikzpicture}[dot/.style={draw,fill,circle,inner sep=1pt}]
\draw[<->] (-2,0) -- (2,0) node[below] {$x $};
\draw[<->] (0,-2) -- (0,2) node[left] {$y$};
\foreach \i in {1,...,5 } {\node[dot,label={\i*360/5 -(\i==5)*45:$w_{\i}$}] (w\i) at (\i*360/5:1) {};
\draw[->] (0,0) -- (w\i);
}
\draw[->] (0:.3) arc (0:360/5:.3);
\node at (360/5 /2:.5) {${\scriptstyle{72^{\circ}}}$};
\end{tikzpicture}
}
\end{floatrow}
\end{figure}
\end{document}
输出: