我正在尝试将 tikz 图形与小页面中捆绑在一起的一组枚举项目对齐:
\begin{enumerate}
\begin{minipage}[t]{.5\textwidth}
\item One circle
\item Two circles
\item Three circles
\end{minipage}%
\begin{minipage}[t]{.5\textwidth}
\begin{tikzpicture}
\draw (0,0) circle (1);
\end {tikzpicture}
\end{minipage}
\begin{minipage}[t]{.5\textwidth}
\item One rectangle
\item Two rectangles
\item Three rectangles
\end{minipage}%
\begin{minipage}[t]{.5\textwidth}
\begin{tikzpicture}
\draw (0,0) rectangle (2,2);
\end {tikzpicture}
\end{minipage}
\begin{minipage}[t]{.5\textwidth}
\item One triangle
\item Two triangles
\item Three triangles
\end{minipage}%
\begin{minipage}[t]{.5\textwidth}
\begin{tikzpicture}
\draw (0,0) -- (0,2) -- (2,2) -- cycle;
\end {tikzpicture}
\end{minipage}
\end{enumerate}
答案1
[t]
将位置说明符的所有六个实例更改为[c]
似乎可以完成工作。
对于以下示例,我必须猜测应该使用哪种字体大小;如果12pt
不正确,请告诉我们应该使用什么字体。我更改了环境的宽度,minipage
以便将视觉元素更紧密地放在一起。
\documentclass[12pt]{article}
\usepackage{tikz}
\begin{document}
\begin{enumerate}
\begin{minipage}{.3\textwidth}
\item One circle
\item Two circles
\item Three circles
\end{minipage}%
\begin{minipage}{.3\textwidth}
\begin{tikzpicture}
\draw (0,0) circle (0.925);
\end {tikzpicture}
\end{minipage}
\begin{minipage}{.3\textwidth}
\item One rectangle
\item Two rectangles
\item Three rectangles
\end{minipage}%
\begin{minipage}{.3\textwidth}
\begin{tikzpicture}
\draw (0,0) rectangle (1.85,1.85);
\end {tikzpicture}
\end{minipage}
\begin{minipage}{.3\textwidth}
\item One triangle
\item Two triangles
\item Three triangles
\end{minipage}%
\begin{minipage}{.3\textwidth}
\begin{tikzpicture}
\draw (0,0) -- (0,1.85) -- (1.85,1.85) -- cycle;
\end {tikzpicture}
\end{minipage}
\end{enumerate}
\end{document}