我正在尝试将 textBf 短语格式化为标题:
喜欢:
第 1 类:可以通过较少的更新历史记录关闭的事件单
第 2 类:可以通过平均数量的更新历史记录关闭的事件单
\vdots
类别 N:可以通过大量更新历史记录关闭的事件单
到目前为止,我已经明白了。如何让下一行与句子平行开始,而不是标题
\begin{enumerate}[]
\item\textbf{Category 1:} Incident tickets that can be closed with a less number of updating histories
\item\textbf{Category 2:} Incident ticket that can be closed with a average number of updating histories
\item[]{$\vdots$}
\item\textbf{Category \textit{N}:} Incident ticket that can be closed with a very high number of updating histories
\end{enumerate}
答案1
您可以使用以下命令(它用于enumitem
简化前几个项目的输入):
\documentclass[]{article}
\usepackage{enumitem}
\usepackage{bm}
\begin{document}
\begin{enumerate}[label=\textbf{Category \arabic*:}]
\item Incident tickets that can be closed with a less number of updating
histories
\item Incident ticket that can be closed with a average number of updating
histories
\item[{$\vdots$}]
\item[\textbf{Category $\bm{N}$:}] Incident ticket that can be closed with a very
high number of updating histories
\end{enumerate}
\end{document}
答案2
enumitem
我建议使用和获得这种变体布局makebox
:
\documentclass{article}
\usepackage{enumitem}
\usepackage{makebox}
\newlength{\mymargin}
\settowidth{\mymargin}{\textbf{Category \emph{N}:}}
\begin{document}
\begin{enumerate}[label=Category \arabic*:, font=\bfseries, wide=0pt, labelwidth=\mymargin, leftmargin =!, labelsep=0.4em]%
\item Incident tickets that can be closed with a less number of updating histories.
\item Incident ticket that can be closed with an average number of updating historie. \vspace{-1ex}
\item[\makebox*{\textbf{Category }}{$\vdots$}]\vspace*{-1ex}
\item[Category \emph{N}:]Incident ticket that can be closed with a very high number of updating histories.
\end{enumerate}
\end{document}