
我看到了有關如何獲得斜體小型大寫字母的各種問題,這表明例如使用lmodern
和slantsc
一起。
但是,我目前正在使用,並且希望在大多數地方beamer
保留無襯線字體(不支援)。slantsc
只有幾個特定的範圍,我需要區分大寫字母、小型大寫字母、斜體/傾斜小型大寫字母、小寫字母和斜體/傾斜小寫字母。 (在音譯楔形文字時,這些表示不同類別的符號。)
大概fontspec
我可以設定拉丁現代或其他支援斜體/傾斜小型大寫字母的字體,並僅在音譯段落中使用該字體。但我找不到任何有關如何製作fontspec
和slantsc
協同工作的文件。
如何設定 Latin Modern 或任何其他字體,以便fontspec
我可以使用斜體小型大寫字母?
微量元素:
\documentclass{beamer}
\usepackage{slantsc}
\begin{document}
\begin{frame}{Example}
Normal \textit{Italic} \textsc{Smallcaps} \textsl{\textsc{Slanted Smallcaps}}
\end{frame}
\end{document}
LaTeX Font Warning: Font shape `TU/lmss/m/sc' in size <10.95> not available
(Font) Font shape `TU/lmr/m/sc' tried instead on input line 8.
LaTeX Font Warning: Font shape `TU/lmss/m/scsl' undefined
(Font) using `TU/lmss/m/sc' instead on input line 8.
(我不喜歡這裡字體的差異,但如果有必要的話,我可以忍受它;小型大寫字母和斜體/傾斜小型大寫字母之間的區別至關重要,而實際上看起來漂亮就不那麼重要了。 )
答案1
你不再需要了slantsc
,目前的 LaTeX 直接支援傾斜的小型大寫字母。對於 Latin Modern Sans Serif LaTeX 已經指定了小型大寫字母的替換以回退到 Latin Modern Roman,您可以為傾斜變體添加類似的規則:
\documentclass{beamer}
\DeclareFontShape{TU}{lmss}{m}{scsl}
{<->sub*lmr/m/scsl}{}
\begin{document}
\begin{frame}{Example}
Normal \textit{Italic} \textsc{Smallcaps} \textsl{\textsc{Slanted Smallcaps}}
\end{frame}
\end{document}