
Beim Kompilieren wird ein „E“ mit einer Tilde darüber erzeugt. Was ich natürlich möchte, ist ein „E“ mit einem Pfeil darüber. Ich denke, das könnte ein Schriftartproblem sein. Weiß jemand, wie ich das bekomme, was ich will?
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage[eulergreek]{sansmath}
\tikzstyle{every picture}+=[font=\sffamily\sansmath]
\begin{document}
\begin{tikzpicture}
\node at (0,0) {This math expression should be sans serif and have a vector arrow: $ \vec{ E } $.};
\end{tikzpicture}
\end{document}
Antwort1
Eine schnelle Lösung (bitte \let
zweite Zeile beachten):
\documentclass{article}
\let\oldvec\vec
\usepackage{amsmath}
\usepackage{tikz}
\usepackage[eulergreek]{sansmath}
\tikzstyle{every picture}+=[font=\sffamily\sansmath]
\begin{document}
\begin{tikzpicture}
\node at (0,0) {This math expression should be sans serif and have a vector arrow: $ \oldvec{ E } $.};
\end{tikzpicture}
\end{document}