使用带有 sc 的 mathpazo 但仍然使用 tgpagella 来显示粗体标题的小写字母?

使用带有 sc 的 mathpazo 但仍然使用 tgpagella 来显示粗体标题的小写字母?

我发现这个链接到代码来让它工作,但对我来说不起作用。即使像示例中那样切换字体,我仍然无法获得粗体小写字母。有没有办法保留 sc 选项,但让其在标题中使用其他字体?

我也会在这里列出代码:

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[sc]{mathpazo}
\usepackage{tgpagella}
\linespread{1.05}

\begin{document}

% here you can see the difference of the two small-cap types
An arbitrary \fontfamily{qpl}\selectfont \textsc{Acronym} and some text. \par
An arbitrary \fontfamily{pplx}\selectfont \textsc{Acronym} and some text. \par
\fontfamily{qpl}\selectfont \textsc{Acronym}
\fontfamily{pplx}\selectfont \textsc{Acronym}

% my work-around with 'qpl' for titles and 'pplx' for normal text
\fontfamily{qpl}\selectfont
\section{Arbitrary \textsc{Acronym}}
\fontfamily{pplx}\selectfont
An arbitrary \textsc{Acronym} and some text. \par

\end{document}

我也发现了这段代码,但它工作正常,但不会减小第一个字母后的小型大写字母的大小。如果我手动调整它,\scalefont字母会变得太细,所以我只需要调整字体的高度,而不是宽度。我认为这不可能吗?:

\makeatletter
\def\boldseriesname{bx}
\DeclareRobustCommand{\mytextsc}[1]{%
    \ifx\f@series\boldseriesname\uppercase{#1}%
    \else{\scshape #1}%
    \fi}
\makeatother

相关内容