描述中小寫大寫字母

描述中小寫大寫字母

我會在該專案中使用普通的小寫字母,description以便區分小寫和大寫(例如 LaTeX)。

尤其:

\begin{description}
\item[I cAn't DiStiNguISH upPeR fROm LoWeR cASe] description1
\item[AlSo HeRe] description2
\end{description}

我想要普通的小型大寫字母\textsc{YeS I LiKe It!}

我見過這個問題但這對我沒有幫助。

編輯:我使用該包classicthesis

答案1

像這樣的東西嗎?

\documentclass{article}

\usepackage{enumitem}

\begin{document}

\begin{description}[font=\normalfont\scshape]
\item[I cAn't DiStiNguISH upPeR fROm LoWeR cASe] description1
\item[AlSo HeRe] description2
\end{description}

\end{document}

在此輸入影像描述

編輯:這是一個解決方案classicthesis

\documentclass{scrbook}

\usepackage{classicthesis}

% \renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}\spacedlowsmallcaps{#1}}% OLD
\renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}\textsc{#1}}% NEW

\begin{document}

\begin{description}
\item[I cAn't DiStiNguISH upPeR fROm LoWeR cASe] description1
\item[AlSo HeRe] description2
\end{description}

\end{document}

在此輸入影像描述

相關內容