从列表中删除项目符号

从列表中删除项目符号

我必须排版一份包含几十个已编号列表的文档。由于各种原因,我无法对这些列表使用 LaTex 的枚举自动编号功能——必须手动输入编号。尽管如此,列表格式必须保留。我使用了 mdwlist 包来减少 LaTex 添加到列表中的额外间距。

然后列表会同时包含项目符号(自动添加)和数字(手动输入)。我想要做的就是删除项目符号,同时保留列表的其他间距。

以下是 MWE:

\documentclass[11pt,A4]{article}
\usepackage[utf8]{inputenc}
\usepackage{mdwlist}
\title{Brief Article}
\author{The Author}
\begin{document}
\maketitle

\begin{itemize*}

\item 1.\ \ Regular vacations and holidays according to the Law.
\item 2.\ \ Absence for performing examinations in accordance with what is stated in this Law.
\item 3.\ \ Leave without pay, which is not more than casual 20 days during the work year.
\end{itemize*}
\end{document}

在此处输入图片描述

谢谢。所有这些答案都很有帮助。

我同意这是个有点奇怪的要求——问题是我正在排版立法法规,有时它们不完整,包含编号错误,这些错误必须保留。此外,出于维护目的,关闭自动编号很有用。有一个德语软件包——jura——专为德国法律排版而设计,我觉得它有办法解决这些问题,但不幸的是,冗长的文档只有德语版本。

答案1

你为什么不使用这个,我试过了,它工作正常

\documentclass[11pt,A4]{article}
\usepackage[utf8]{inputenc}
\usepackage{mdwlist}
\title{Brief Article}
\author{The Author}
\begin{document}
\maketitle

\begin{itemize*}

\item [] 1.\ \ Regular vacations and holidays according to the Law.
\item [] 2.\ \ Absence for performing examinations in accordance with what is stated in this Law.
\item [] 3.\ \ Leave without pay, which is not more than casual 20 days during the work year.
\end{itemize*}
\end{document}

答案2

您可以使用enumerate*而不是itemize*来获得编号列表。也可以手动添加数字:

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{mdwlist}
\title{Brief Article}
\author{The Author}
\begin{document}
\maketitle

\begin{enumerate*}
\item[2.] Regular vacations and holidays according to the Law.
\item[3.] Absence for performing examinations in accordance with what is
      stated in this Law.
\item[5.] Leave without pay, which is not more than casual 20 days during
the work year.
\end{enumerate*}
\end{document}

结果

答案3

我不知道为什么会有这么奇怪的要求,但你可以简单地将itemize标签(\labelitemi)重新定义为空。

\renewcommand{\labelitemi}{}

平均能量损失

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{mdwlist}
\title{Brief Article}
\author{The Author}

\renewcommand{\labelitemi}{}

\begin{document}
\maketitle

\begin{itemize*}

\item 1.\ \ Regular vacations and holidays according to the Law.
\item 2.\ \ Absence for performing examinations in accordance with what is stated in this Law.
\item 3.\ \ Leave without pay, which is not more than casual 20 days during the work year.
\end{itemize*}
\end{document} 

在此处输入图片描述

答案4

您想自由调整间距吗?使用enumitem

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\title{Brief Article}
\author{The Author}
\begin{document}
\maketitle

\begin{enumerate}[itemsep=-1ex]     %% change as you like
\item[2.] Regular vacations and holidays according to the Law.
\item[3.] Absence for performing examinations in accordance with what is
      stated in this Law.
\item[5.] Leave without pay, which is not more than casual 20 days during
the work year.
\end{enumerate}
\end{document}

在此处输入图片描述

如果你必须使用itemize

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\title{Brief Article}
\author{The Author}
\begin{document}
\maketitle

\begin{itemize}[itemsep=-1ex]
\item[2.] Regular vacations and holidays according to the Law.
\item[3.] Absence for performing examinations in accordance with what is
      stated in this Law.
\item[5.] Leave without pay, which is not more than casual 20 days during
the work year.
\end{itemize}
\end{document}

在此处输入图片描述

优点enumitem是你可以自行灵活地调整许多其他空间。

相关内容