我有这个代码
\documentclass[paper=a4, paper=portrait, pagesize=auto]{scrartcl}
\usepackage[inline]{enumitem}
\setlist[enumerate,1]{label=\textit{\alph*)}}
\usepackage[table]{xcolor}
\definecolor{orange}{HTML}{FFC296}
\begin{document}
\section{Student 93b427156c}
\begin{description}
\item[number] 93b4s27156c
\item[name] Note that this analysis of a formative as a pair of sets of features is necessary
to impose an interpretation on an important distinction in language use.
\end{description}
\end{document}
我想将它们显示为表格,这样数据就不会出现在标题下。因此,基本上就像两列一样,标题在左侧,内容在右侧,位于单独的列中。
像这样:
答案1
我希望我理解的问题正确
使用该包,enumitem
您可以通过以下方式指定标签位置和标签对齐方式\SetLabelAlign
\documentclass[paper=a4, paper=portrait, pagesize=auto]{scrartcl}
\usepackage[inline]{enumitem}
\usepackage[table]{xcolor}
\definecolor{orange}{HTML}{FFC296}
\begin{document}
\SetLabelAlign{rightbox}{\hss\llap{#1\quad}}
\setlist[description,1]{align=rightbox,labelsep=0pt,leftmargin=0pt}
\section{Student 93b427156c}
\begin{description}
\item[number] 93b4s27156c
\item[name] Note that this analysis of a formative as a pair of sets of features is necessary
to impose an interpretation on an important distinction in language use.
\end{description}
\end{document}