我是超级菜鸟,所以请原谅任何错误!:)
我的问题是,在我的文档中(见下例),从第二个标记开始的段落会自动缩进。我不想这样;我希望所有左边缘都完美对齐。如何做到这一点?
\documentclass{article}
\usepackage{amsmath}
\usepackage{pifont} %For the very nice dingbats
\begin{document}
\section*{Elementary Algebra}
\ding{234} One amusing way to look at \textbf{irrational numbers} is to say that they don't behave rationally. The point is, given their non-terminating, non-repeating decimals, there's no `sane' way to work with them!
\ding{234} Here are some elementary but easily forgotten (and highly useful) algebraic identities:
\begin{itemize}
\item $a^3 - b^3 = (a-b)(a^2+ab+b^2)$
\end{itemize}
\end{document}
答案1
在每个 \ding{234} 之前添加\noindent
(第一个除外:那样没用),或者\parindent=0pt
在序言中设置 - 但随后您应该将其固定\parskip
为非零值(比如说\smallskipamount
)以区分段落。
您还可以将这些段落视为(第一级)项目环境中的项目,加载 enumitem
包并写入:
\documentclass{article}
\usepackage{amsmath}
\usepackage{enumitem}
\usepackage{pifont} %For the very nice dingbats
\begin{document}
\section*{Elementary Algebra}
\begin{itemize}[label = \ding{234},wide, labelindent = 0pt]
\item One amusing way to look at \textbf{irrational numbers} is to say that they don't behave rationally. The point is, given their non-terminating, non-repeating decimals, there's no `sane' way to work with them!
\item Here are some elementary but easily forgotten (and highly useful) algebraic identities:
\begin{itemize}[label = \textbullet, align = left, labelindent = 1.5em, labelsep* = 0.5em,labelwidth = 1em, leftmargin =! ,topsep = 0pt]
\item $a^3 - b^3 = (a-b)(a^2+ab+b^2)$
\item $a^3 + b^3 = (a + b)(a^2-ab+b^2)$
\end{itemize}
\end{itemize}
\end{document}