[Tex/LaTex] Libertine (biolinum) font internal name

fontslibertine

My document used the libertine package. My chapter titles are formatted to sans serif with \sffamily and the titlesec package. I'm assuming this means it uses biolinum font for my chapters. Now I want to change my document to lmodern but keep the biolinum chapter formatting. Since I am changing the sffamily to the lmodern variant (whatever it may be called) I need to use the \fontfamily{<internalname>}\selectfont command.

After browsing the libertine documentation and the libertine type1 .sty files I can not find the internal name for biolinum. I have tried LinuxBiolinumO-LF and this seems to work but gives a warning when combined with \bfseries, so I can not reproduce the bold formatting I had when I used sffamily under the libertine package. Any ideas on how to fix? I do not want to change the sfdefault.

Im using texlive 2012 with pdflatex. Thanks.

Best Answer

Actually, it is not that difficult; the problems arise more from the many options the biolinum family offers, which means there is no \biolinum command per se.

The following should allow you access to both types of sans serif:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{biolinum}
\renewcommand{\sfdefault}{lmss}
\usepackage{lipsum}


\begin{document}

{\sffamily\lipsum[1]}

{\sffamily\bfseries\lipsum[1]}

{\sffamily\bfseries\itshape\lipsum[1]}

\newpage
{\biolinumOsF\lipsum[1]} % compare \biolinumLF

{\biolinumOsF\bfseries\lipsum[1]}

{\biolinumOsF\bfseries\itshape\lipsum[1]}

\end{document}
Related Question