urw-garamond 中的斜体小型大写字母?

urw-garamond 中的斜体小型大写字母?

我正在使用 urw-garamond mathdesign 包,它不支持斜体小写字母。有没有合适的替代品?我试过 slantsc 包,但没有成功。

答案1

你可以用 TikZ 伪造小写字母。以下示例来自texample.net。它是由 Berteun Damman 撰写的。

% Author: Berteun Damman
% Faking slanted small caps using TikZ low level transforms.
\documentclass{minimal}
\usepackage{tikz}
\usepackage{amsthm}
\newtheorem{lem}{Lemma}
% If you externalize figures this will give a new figure for
% each usage!
\makeatletter
\newcommand{\textscsl}[1]{%
   \tikz[baseline=(N.base)]%
   % The transform says:
   % x' = 1x + 0.22y + 0pt
   % y' = 0x + 1y    + 0pt
   % This gives a slant - adjust the value for each font!
   \pgfsys@transformcm{1}{0}{0.22}{1}{0pt}{0pt}%
   \node[inner sep=0pt] (N) {\textsc{#1}};%
}
\makeatother
\begin{document}
   % In italicized environments normal small caps often looks wrong because of
   % its upright shape. A solution is to simply use all-uppercase in these
   % environments, but this too is ugly. Using TikZ one can fake a slant. This
   % is not that great, but better than nothing.
   %
   % Note that http://www.ctan.org/tex-archive/fonts/kpfonts/ for example
   % provides a font which has slanted small caps by default.

   \begin{minipage}{4.5cm}
       \begin{lem}
           The \textsc{gcd} of two numbers can be used to find
            the \textsc{lcm} of these numbers.
       \end{lem}
       \begin{lem}
           The \textscsl{gcd} of two numbers can be used to find
           the \textscsl{lcm} of these numbers.
       \end{lem}
   \end{minipage}

\end{document}

答案2

您可以使用加拉蒙德包裹。

\documentclass{minimal}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{garamondx}

\begin{document}
We can use \textit{\textsc{small caps in italic}}.
\end{document}

相关内容