TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get a sans math version of the lmodern family using \DeclareMathVersion but my approach does not work and I do not see why. But I have to admit that I am not sure whether I use the correct fonts:

\documentclass{article}
\usepackage[T1]{fontenc} 
\usepackage{lmodern}
\DeclareMathVersion{sansmath}
% Math letters from Latin Modern Sans
\SetSymbolFont{letters}{sansmath}{OML}{lmsso}{m}{it}
% Math operators
\SetSymbolFont{operators}{sansmath}{OT1}{lmss}{m}{n}
% Math symbols
\SetSymbolFont{symbols}{sansmath}{OMS}{lmsy}{m}{n}
% Large symbols
%\SetSymbolFont{largesymbols}{sansmath}{OMX}{lmssex}{m}{n}
\begin{document}
\mathversion{normal}  
$a b c \alpha \beta$

\mathversion{sansmath}  
$a b c \alpha \beta$
\end{document}

In both cases the result is the normal serif math font.

share|improve this question
up vote 8 down vote accepted

There is no Latin Modern Sans in OML encoding and LaTeX tells you:

LaTeX Font Warning: Font shape `OML/lmsso/m/it' undefined
(Font)              using `OML/cmm/m/it' instead on input line 18.

You can try Computer Modern Bright instead:

\SetSymbolFont{letters}{sansmath}{OML}{cmbr}{m}{it}
share|improve this answer
    
So basically there are no math symbol in Latin Modern Sans? – Matthias Pospiech Dec 25 '11 at 21:38
    
@MatthiasPospiech That's true. – egreg Dec 25 '11 at 21:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.