Paralist* Compactdesc 環境中的字體選項

Paralist* Compactdesc 環境中的字體選項

我使用 paralist 中的compactdesc 環境作為帶有懸掛第一行的緊湊段落的拼湊。事實上,描述環境的使用適合我正在做的事情(名稱列表加上他們來自的機構),因此讓標籤(即名稱)採用某種不同的字體系列是不合適的。特別是我試圖擺脫粗體的使用,也許將其調整為其他內容- 例如無襯線或其他字體。一旦我知道怎麼做,我就會自己解決剩下的事情。

我只是想從標籤中刪除粗體 - 或以任何方式調整它 - 並且無法在網上找到對其進行詳細描述的任何地方(最好是有一個適合copypasta的示例)。

基本上;

\documentclass{article}
\usepackage{paralist}
    ...
\begin{document}

\begin{compactdesc}
    \raggedright
\item [Something]. Short description.
\item [Something else].  A very long line which may or may not run over to the next line and which isn't hyphen-split thanks to ragged edges
\item [And another thing]. Short description.
\end{compactdesc}

\end{document}

我正在尋找的是 [Something] 部分不要加粗,並且其代碼幾乎肯定會在序言中的某個地方 - 某種 \setcompactdesc{font=\normalfont} 之類的交易(除了該命令不起作用)。

有什麼幫助嗎?

答案1

我不太了解paralist,但是您可以使用 輕鬆獲得此結果enumitemscshape作為標籤字體的範例:

\documentclass{article}

\usepackage{enumitem}
\usepackage{lipsum}

\begin{document}

\lipsum[11]
\begin{description}[nosep, font=\mdseries\scshape]
  \raggedright
  \item [Something]. Short description.
  \item [Something else]. A very long line which may or may not run over to the next line and which isn't hyphen-split thanks to ragged edges
  \item [And another thing]. Short description.
\end{description}

\end{document} 

在此輸入影像描述

答案2

paralist 文件它在第四頁。

影像

\documentclass{article}

\usepackage{lipsum}
\usepackage{paralist}

\renewcommand*\descriptionlabel[1]{%
\hspace\labelsep\scshape #1}


\begin{document}

\lipsum[11]
\begin{compactdesc}\raggedright
  \item [Something.] Short description.
  \item [Something else.]  A very long line which may or may not run over to the next line and which isn't hyphen-split thanks to ragged edges.
  \item [And another thing.] Short description.
\end{compactdesc}

\end{document}

影像

……用點裡面@Bernard 建議的項目。

相關內容