If I understand your question correctly, you are trying to get a document typeset using a sans-serif font rather than the "ordinary" serif font. In addition, you want the font that's used in math to be upright rather than "slanted". The only math font I'm familiar with that's upright rather than slanted is the so-called "Euler" font; it goes reasonably well with Computer Modern fonts, both serif and sans-serif. If the Euler font suits your needs, you should add the following commands to the preamble of your document:
\renewcommand{\encodingdefault}{T1}
\usepackage[T1]{fontenc}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{eulervm}
If you only need to change the font of certain elements then you can define them so
\begin{tikzpicture}
\begin{axis}[
width=14cm,
height=7cm,
scale only axis,
xmin=-5,xmax=105,
ymin=0,ymax=12,
x dir=reverse,
axis y line*=right,
axis x line*=top,
xticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},
yticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},
xlabel=Palmfett / Gew.\%,
xlabel style={at={(0.5,1.225)}},
]
\end{axis}
\begin{axis}[
width=14cm,
height=7cm,
scale only axis,
xmin=-5 ,xmax=105,
ymin=0, ymax=12,
axis y line*=left,
axis x line*=bottom,
xticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},
yticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},
xlabel=Bienenwachs / Gew.\%,
ylabel=Martenshärte / N/mm$^2$
]
\end{axis}
\end{tikzpicture}
This will keep the axis labels untouched but the tikc labels in sans-serif without going through the extra label declarations.
Best Answer
Prepare a file
sansiwona.sty
Then the document
will do the right thing, because the “wrong” settings made by
iwona.sty
are reverted.Put
sansiwona.sty
where TeX will find it, see Adding style filesThe
math
option is needed only if you need Iwona Math.