我对 Tikz 还不太熟悉。我想知道如何将文本与图表分开。例如,如果我要写一个简短的几何证明,并且我有一张图表和一个解释,我该如何将两者分开?我如何才能将图表整齐地格式化在文本下方?有什么特定的命令吗?(顺便说一下,我使用的是 LaTeX)。
这是我目前所拥有的:
\documentclass{article}
\usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{geometry}
\geometry{a4paper}
\usepackage[frenchb]{babel}
\usepackage{mathptmx}
\usepackage{tikz}
\title{Homework problem set 3} \author{Marcus} \date{}
\begin{document} \maketitle
\paragraph*{1}
\large
With this figure, we can see that it is represented in the 2 dimensional euclidean plane; therefore, the group of proper rotations, $G \cong C_2$. Furthermore, based on the symmetries of this figure, we can see that the set of all proper are the only rotations; hence, the group is $C_2$\\
\begin{tikzpicture}
\draw (0,0) -- (1,0) -- (1,1) -- (2,1);
\end{tikzpicture}
\end{document}
答案1
(评论太长)考虑到@Sigur 的评论,使用 12pt 字体大小并large
在文档正文中删除命令后,您的文档看起来会更好:
\documentclass[12pt]{article}
\usepackage{geometry}
\geometry{a4paper}
\usepackage[frenchb]{babel}
\usepackage{mathptmx}
\usepackage{tikz}
\title{Homework problem set 3}
\author{Marcus}
\date{}
\begin{document}
\maketitle
\paragraph*{1}
With this figure, we can see that it is represented in the 2 dimensional euclidean plane; therefore, the group of proper rotations, $G \cong C_2$. Furthermore, based on the symmetries of this figure, we can see that the set of all proper are the only rotations; hence, the group is $C_2$.
\begin{figure}[htb]
\centering
\begin{tikzpicture}
\draw (0,0) -- (1,0) -- (1,1) -- (2,1);
\end{tikzpicture}
\caption{My figure}
\label{fig:myfig}
\end{figure}
\end{document}