答案1
有几种解决方案可以解决此问题,下面介绍两种。首先labeling
使用scrextend
或任何KOMA-Script 类description
,其次使用来自使用的环境enumitem
:
\documentclass{article}
\renewcommand{\familydefault}{\sfdefault}% you are using a sans serif font
% use package scrextend to have the labeling environment of KOMA-Script
\usepackage{scrextend}
\setkomafont{labelinglabel}{$\triangleright$\enskip}% ugly hack to have a
% triangle before the item
% use package enumitem to have an extended description environment
\usepackage{enumitem}
\newcommand*{\descriptionlabelwith}[2]{\hspace\labelsep
\normalfont#1\enskip #2}
\newlist{itemdesc}{description}{1}% currently only one level is definded
\setlist*[itemdesc,1]{font=\normalfont,format=\descriptionlabelwith{$\triangleright$},leftmargin=27mm,labelwidth=*}
\begin{document}
\begin{labeling}{\hspace{2.5cm}}
\item[some text] some very long text. some very long text. some very long text. some very long text.
\end{labeling}
\begin{itemdesc}
\item[some text] some very long text. some very long text. some very long text. some very long text.
\end{itemdesc}
\end{document}