bold small caps with mathpazo
Posted
by user312728
on Stack Overflow
See other posts from Stack Overflow
or by user312728
Published on 2010-04-09T11:57:03Z
Indexed on
2010/04/09
13:03 UTC
Read the original article
Hit count: 238
The bold small caps don't work with mathpazo font. I am a issue with this macro for take in upper case a bold text : the text is never in upper case.
\documentclass{minimal}
\usepackage[sc,osf]{mathpazo}
\newcommand\normal{\fontseries{\ifx\f@series\bfdefault\then m \fi}\selectfont}
\makeatletter
\DeclareRobustCommand{\mytextsc}[1]{%
\ifx\f@series\bfdefault%
\uppercase{#1}%
\else
{\scshape #1}%
\fi
}
\makeatother
\begin{document}
\textbf{This is a bold \mytextsc{upper case} text.}
This is a \mytextsc{small caps} text.
\end{document}
© Stack Overflow or respective owner