
Após a compilação, isso gera um "E" com um til sobre ele. O que eu quero, claro, é um “E” com uma seta sobre ele. Acho que isso pode ser um problema de fonte. Alguém sabe como conseguir o que eu quero?
\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}
Responder1
Uma solução rápida (observe \let
na segunda linha):
\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}