# LuaLaTeX - Linux libertine (math and pgfplots)

I have some problems using Linux libertine font within equations or pgfplots and tried this answer but it doesn't work.

\documentclass{article}
\usepackage{fontspec}
\usepackage{pgfplots}

\setmainfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
\usepackage{blindtext}
\begin{document}

\blindtext[1]

$$x = 4 \cdot 3$$

\begin{tikzpicture}
\begin{axis}
\end{axis}
\end{tikzpicture}

\end{document}


• Could you say what the problems are other than saying "some problems"? – Sverre Jun 13 '14 at 13:10
• I had added a picture to show the problems. – SLx64 Jun 13 '14 at 14:05
• I see the picture, but I still don't know what the problems are. Please be explicit, don't leave it to us to guess what the problems are. – Sverre Jun 13 '14 at 14:25
• In the picture are red marks. The numbers and any other symbols are in a different font. – SLx64 Jun 13 '14 at 14:29

\documentclass{article}
\usepackage{unicode-math}
\usepackage{pgfplots}

\usepackage{blindtext}
\begin{document}
\blindtext[1]

$$x = 4 \cdot 3$$

\begin{tikzpicture}
\begin{axis}
\end{axis}
\end{tikzpicture}

\setmathfont[range=\mathit]{LinLibertineOI}
\setmathfont[range={\mathrm,0048-0057}]{LinLibertineO}

%% We now use Libertine for math characters
$$x = 4 \cdot 3$$

\begin{tikzpicture}
\begin{axis}

• see my edited answer, I'd forgotten the digits for \mathrm – user2478 Jun 11 '14 at 20:37
• Don't know the number for \cdot. Add it to the list. However, I suppose that nobody will see the difference .... ;-) – user2478 Jun 11 '14 at 20:40