
Ojalá pudiera usar la versión seminegrita de la fuente Libertine.
Por defecto, uso números elzevirianos y ahí, no hay problema, puedo tener números elzevirianos en seminegrita.
En algunas ocasiones, necesitaría utilizar números de revestimiento con semi-negrita.
Sin embargo, los números de revestimiento que se supone que están en seminegrita en realidad tienen un peso normal.
Aquí hay un 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}
¿Sabes cómo resolver este problema?
Gracias.
Respuesta1
Funciona con pdflatex
, pero no con (Lua|Xe)LaTeX, debido a un error libertine.sty
que restablece la familia de fuentes, en lugar de agregar las características requeridas al hacerlo \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}