我正在使用itemize
和enumerate
环境,虽然我已经使用包删除了缩进,但enumitem
我还想删除数字/项目符号下方的空格。
\documentclass[12pt]{article}
\usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry}
\setlength{\parindent}{0cm}
\usepackage{enumitem}
\usepackage{lipsum}
\everymath{\displaystyle}
\newcommand{\3}{\vspace{0.3cm}}
\begin{document}
\lipsum[1]
This is what I have so far:
\begin{enumerate}[leftmargin=*]
\item \lipsum[1]
\item \lipsum[1]
\end{enumerate}
What I want from the itemize/enumerate environments is something like that (without the spaces bellow the numbers/bullets):
\3
(1) \lipsum[1]
\3
(2) \lipsum[1]
\end{document}
这就是我所拥有的:
我想要的就是这样的东西:
答案1
使用wide
enumitem 选项就足够了。左 matgin 设置为 0。请注意,如果您愿意,仍然可以缩进项目的第一行,写成wide=some value
。我给出了两者的示例:
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry}
\setlength{\parindent}{0cm}
\usepackage{enumitem}
\usepackage{lipsum}
\begin{document}
What I want from the itemize/enumerate environments is something like that (without the spaces bellow the numbers or bullets):
\begin{enumerate}[wide]
\item \lipsum[1]
\item \lipsum[1]
\end{enumerate}
Or if you want to have an indented label:
\setlength\parindent{1em}
\begin{enumerate}[wide=\parindent]
\item \lipsum[1]
\item \lipsum[1]
\end{enumerate}
\end{document}