我是这个论坛的新手,但过去已经找到了很多解决我的问题的方法。
我想要按照第一张图所示的样式来格式化列表。
我相信解决方案在 enumitem 包的某个地方,但我搞不清楚。我有嵌套列表和标签名称,但标签与主文本的对齐方式以及项目主体的对齐方式我无法做到。
编辑:
这是我尝试过的,
\usepackage{enumitem}
\setenumerate[1]{label=\arabic*}
\setenumerate[2]{label*=.\arabic*}
\setenumerate[3]{label*=.\arabic*}
\setenumerate{align=right}
\setenumerate{leftmargin = 0pt}
结果是
编辑 2:Zarko 的建议给了我这个
我喜欢将第一级标签与部分标签对齐,但我想删除后续级别的缩进。
编辑3:
我对 Zarko 代码的修改。
\documentclass[12pt]{article}
\linespread{1.3}
\usepackage[a4paper,portrait,margin = 2.5cm]{geometry}
\usepackage[justification=centering]{caption}
\usepackage{enumitem}
\setenumerate[1]{label=\arabic*}
\setenumerate[2]{label*=.\arabic*}
\setenumerate[3]{label*=.\arabic*}
\setenumerate{align=right}
\setenumerate{leftmargin =*}
\begin{document}
\section{Section One}
Some text
\begin{enumerate}
\item Relevant standards - ClimbTrack shall be designed to conform with relevant international and national standards where possible however for the sake of brevity they are excluded from this document.
\item Functional Properties
\begin{enumerate}
\item ClimbTrack shall have a means for measuring the movement speed of the users hands and feet (extremities).
\begin{enumerate}
\item ClimbTrack shall be capable of measuring extremity speeds between 0 and 15m/s. (https://www.sciencedirect.com/science/article/pii/S1877705815014897)
\item The movement speed of users extremities shall be measured to a resolution of +- 0.05m/s.
\end{enumerate}
\end{enumerate}
\end{enumerate}
\end{document}
答案1
我想这就是你想要的:
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{fourier}
\usepackage[a4paper, margin = 2.5cm, showframe]{geometry}
\usepackage{url}
\def\UrlFont{\sffamily}
\usepackage{enumitem}
\setenumerate[1]{wide = 0pt,labelwidth = 1.25cm, leftmargin =!, label=\arabic*}
\setenumerate[2]{labelwidth =1.25cm, align = left, leftmargin =0cm, label*=\arabic*}
\setenumerate[3]{labelwidth =1.25cm, align = left, leftmargin =0cm, label*=.\arabic*}
\begin{document}
\section{Section One}
Some text
\begin{enumerate}
\item Relevant standards - ClimbTrack shall be designed to conform with relevant international and national standards where possible however for the sake of brevity they are excluded from this document.
\item Functional Properties.
\begin{enumerate}
\item ClimbTrack shall have a means for measuring the movement speed of the users hands and feet (extremities).
\begin{enumerate}
\item ClimbTrack shall be capable of measuring extremity speeds between 0 and 15\,m/s. (\url{https://www.sciencedirect.com/science/article/pii/S1877705815014897}).
\item The movement speed of users extremities shall be measured to a resolution of $\pm 0.05 $\,m/s.
\end{enumerate}
\end{enumerate}
\end{enumerate}
\end{document}
答案2
我提出这个解决方案
\documentclass[12pt]{article}
\usepackage[a4paper,portrait,margin = 2.5cm]{geometry}
\usepackage{enumitem}
\setlist[enumerate]{font=\sffamily\bfseries, label*=\arabic*., leftmargin=1.5cm, labelwidth=1.25cm, align=left}
\setlist[enumerate,2]{leftmargin=0cm}
\setlist[enumerate,3]{leftmargin=0cm}
\begin{document}
\section{Section One}
Some text
\begin{enumerate}
\item Relevant standards - ClimbTrack shall be designed to conform with relevant international and national standards where possible however for the sake of brevity they are excluded from this document.
\item Functional Properties
\begin{enumerate}
\item ClimbTrack shall have a means for measuring the movement speed of the users hands and feet (extremities).
\begin{enumerate}
\item ClimbTrack shall be capable of measuring extremity speeds between 0 and 15m/s. (https://www.sciencedirect.com/science/article/pii/S1877705815014897)
\item The movement speed of users extremities shall be measured to a resolution of +- 0.05m/s.
\end{enumerate}
\end{enumerate}
\end{enumerate}
\end{document}
答案3
编辑: 在您编辑问题之后,很明显您正在寻找列表嵌套的简单解决方案。我的第一个建议没有预料到这一点,所以它无法解决您的问题。
同时您收到了嵌套列表的解决方案,所以我现在只能显示略有不同的解决方案:
\documentclass{article}
\usepackage{enumitem}
\setlist[enumerate]{label*=\arabic*.,
labelwidth=6ex,
labelsep=2ex,
leftmargin=\dimexpr\labelwidth+\labelsep\relax,
align=left}
\setlist[enumerate,2]{leftmargin=0pt}
\setlist[enumerate,3]{leftmargin=0pt}
\usepackage{url}
\begin{document}
\section{section}
\subsection{subsection}
Some text
\begin{enumerate}
\item Relevant standards - ClimbTrack shall be designed to conform with relevant international and national standards where possible however for the sake of brevity they are excluded from this document.
\item Functional Properties
\begin{enumerate}
\item ClimbTrack shall have a means for measuring the movement speed of the users hands and feet (extremities).
\begin{enumerate}
\item ClimbTrack shall be capable of measuring extremity speeds between \SI{0}{m/s} and {15}{m/s}. (\url{https://www.sciencedirect.com/science/article/pii/S1877705815014897})
\item The movement speed of users extremities shall be measured to a resolution of \SI{\pm 0.05}{m/s}.
\end{enumerate}
\end{enumerate}
\end{enumerate}
\end{document}