
Eu gostaria de poder usar a versão semi-negrito da fonte Libertine.
Por padrão, eu uso números elzevirianos e aí, sem problemas, posso ter números elzevirianos em semi-negrito.
Em algumas ocasiões, eu precisaria usar forro nums com semi-negrito.
No entanto, os números do forro que deveriam estar em semi-negrito estão, na verdade, em peso normal.
Aqui está um MWE:
\documentclass{article}
\RequirePackage[oldstyle,proportional]{libertine}
\DeclareRobustCommand\textsb[1]{{\libertineSB#1}}
\begin{document}
\LARGE
\noindent
Some "default" text with old style nums : 1234567890\\
\textsb{Some semi-bold text with old style nums : 1234567890}\\
\textbf{Some bold text with old style nums : 1234567890}\\
\noindent
Some text with lining nums : \liningnums{1234567890}\\
\textsb{Some semi-bold text with lining nums : \liningnums{1234567890}}\\
\textbf{Some bold text with lining nums : \liningnums{1234567890}}\\
\end{document}
Você sabe como resolver esse problema?
Obrigado.
Responder1
Funciona com pdflatex
, mas não com (Lua|Xe)LaTeX, devido a um bug libertine.sty
que redefine a família de fontes, em vez de adicionar os recursos necessários ao fazer \liningnums
.
\documentclass{article}
\usepackage{iftex}
\usepackage[oldstyle,proportional]{libertine}
\DeclareTextFontCommand\textsb{\libertineSB}
\iftutex % XeLaTeX or LuaLaTeX
\RenewDocumentCommand{\liningnums}{m}{%
{\addfontfeatures{Numbers=Lining}#1}%
}
\fi
\begin{document}
\noindent
Some "default" text with old style nums: 1234567890\\
\textsb{Some semi-bold text with old style nums: 1234567890}\\
\textbf{Some bold text with old style nums: 1234567890}
\noindent
Some text with lining nums: \liningnums{1234567890}\\
\textsb{Some semi-bold text with lining nums: \liningnums{1234567890}}\\
\textbf{Some bold text with lining nums: \liningnums{1234567890}}
\end{document}