我想知道为什么我的小节与文档的其余部分不一致。我显示第一个小节之后的所有小节都缩进。
\documentclass[12pt]{article}
\usepackage[english]{babel} %sets the language to English
\usepackage[text={7in, 9in}, centering]{geometry} %sets up the dimensions where text will
%be written within the doc. showframe will show the magian frame.
\usepackage{ragged2e} %improves left justification of paragraphs
\usepackage{amsfonts} %loads extra fonts and symbols, including boldface (\mathbf), blackboard boldface (\mathbb), and fractur (\mathfrac)
\usepackage{array}
\usepackage{enumerate}
\usepackage{tikz} %allows for you to draw venn diagrams
\setlength{\parindent}{0cm}
\begin{document}
\section*{Solutions}
\subsection*{1.2}
\begin{enumerate}
\setcounter{enumi}{3} %count at 4
\item a
\setcounter{enumi}{13} %count at 14
\item a
\setcounter{enumi}{19} %count at 20
\item
\begin{enumerate}[a)]
\item a
\item a
\end{enumerate}
\subsection*{2.1}
\setcounter{enumi}{3} %count at 4
\item
\begin{enumerate}[a)]
\item a
\item a
\end{enumerate}
\end{enumerate}
\end{document}
答案1
这能达到你想要的效果吗?
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{array}
\usepackage{enumerate}
\setlength{\parindent}{0cm}
\begin{document}
\section*{Solutions}
\subsection*{1.2}
\begin{enumerate}
\setcounter{enumi}{3} %count at 4
\item a
\setcounter{enumi}{13} %count at 14
\item a
\setcounter{enumi}{19} %count at 20
\item
\begin{enumerate}[a)]
\item a
\item a
\end{enumerate}
\end{enumerate}
\subsection*{2.1}
\begin{enumerate}
\setcounter{enumi}{3} %count at 4
\item
\begin{enumerate}[a)]
\item a
\item a
\end{enumerate}
\end{enumerate}
\end{document}
正如 Werner 所说,您遇到了枚举跨子部分的问题。如果您打开并关闭枚举环境,问题应该会得到解决。