Linux.com

Home Linux Community Forums Software Installation Linux Libertine font with LaTeX

Linux Libertine font with LaTeX

Link to this post 03 Jul 09

Hi,

I use Ubuntu with Gnome, Texlive and Texmaker.

I want to use the Libertine font in my pdf documents.

But all instructions failed.

So what have I to do to include the Libertine font?

Please do not send me some links; I've read it all.

Thanks.

Link to this post 04 Jul 09

Here is the solution I got:


\documentclass[a4paper,10pt, twoside, smallheadings]{scrartcl}

%XeLaTeX spezific
\usepackage[cm-default]{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\setromanfont[Mapping=tex-text]{Linux Libertine O} %roman font
\setsansfont[Mapping=tex-text]{Linux Libertine O} % sans font
\setmonofont[Mapping=tex-text]{Linux Libertine O} % monospace font
% --------------------

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}

\begin{document}
test.

\end{document}

Compile:


xelatex -interaction=nonstopmode %.tex

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board