Here's a simple demonstration program:
\documentclass[12pt]{article}
\usepackage[utf8x]{inputenc}
\DeclareMathVersion{sans}
\SetSymbolFont{letters}{sans}{OT1}{cmss}{m}{sl}
\begin{document}
\[
x + \alpha \beta
\]
\mathversion{sans}
\[
x + \alpha \beta
\]
\end{document}
It works fine, but the sans serif math does not have correct greek characters. Adding the following lines almost fixes the problem:
\usepackage[LGR]{fontenc}
\DeclareSymbolFont{grekletters}{LGR}{cmr}{m}{sl}
\DeclareMathSymbol{\alpha}{\mathord}{grekletters}{`a}
\DeclareMathSymbol{\beta}{\mathord}{grekletters}{`b}
%...
\SetSymbolFont{grekletters}{sans}{LGR}{cmss}{m}{n}
But now the Greek characters in math mode are not the original ones. Where are the original ones?
There's a similar question: Replacing greek glyphs in math mode. It is about luatex, though.
Also, I cannot use the sansmath package because it does not support my font encoding.
cmbrandcmbrm? Anyway, it seems to work. Unfortunately the font does not end up vectorized in my final PDF. – Ben Apr 16 '12 at 20:12omlcmbr.fdfile just refers to fonts defined inomlcmbrm.fd, so I used the latter. In my TeX Live I have the Type1 fonts, which are in ahfbrightdirectory. What distribution are you using? – egreg Apr 16 '12 at 20:15hfbright: http://miktex.org/packages/hfbright – egreg Apr 16 '12 at 20:48hfbrightpackage for MiKTeX says: "The hfbright fonts (Type1 version of the CM Bright fonts)" – egreg Apr 16 '12 at 23:17