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}
The warning is due to the fact that Computer Modern fonts are only available at “discrete” sizes. The problem is that, apparently, Koma classes process the fontsize
option too early, when Computer Modern is still the default font.
You can remove the spurious warning by loading fix-cm
before starting:
\RequirePackage{fix-cm}
\documentclass[fontsize=13pt,DIV=12]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\begin{document}
test
\end{document}
You'll only get
Class scrartcl Warning: Using fallback calculation to setup font sizes
(scrartcl) for basic size `13pt' on input line 1564.
that's unavoidable unless you use the silence
package to remove it:
\RequirePackage{fix-cm}
\RequirePackage{silence}
\WarningFilter{scrartcl}{Using fallback}
\documentclass[fontsize=13pt,DIV=12]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\begin{document}
test
\end{document}
A different strategy would be
\documentclass[DIV=12]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\normalfont
\KOMAoption{fontsize=13pt}
\recalctypearea
\begin{document}
test
\end{document}
but I don't recommend it.
Best Answer
Quite easy, once you know how to do it.
;-)
How to find this solution? Here's a method.
We know that we need a new math symbol font to which assigning the arrows we want to modify. So I looked into
fontmath.ltx
, the file where the standard assignment are found. There I found the lineand assigned a new name to the symbol font (I chose
arrows
). Then I looked for\rightarrow
,\leftarrow
and\mapstochar
, which are the basic ingredients for the needed arrow and copied the respective lines by changingsymbols
intoarrows
. I also put the two\let
instruction to make sure that the aliases\to
and\gets
point to the redefined symbols.Less easy is the question about
\longrightarrow
and\longleftarrow
. They are built by pasting together a minus sign and an arrow:We need to change also
\relbar
, because\joinrel
is just a negative spacing. Now, infontmath.ltx
we findand we find a problem. This definition uses the minus sign, but we don't want to change the minus sign coming from the Fourier fonts. So I found the line for
-
:and defined a new symbol with the same properties; finally, I redeclared
\relbar
to use it instead of the minus sign:Doing the same with other symbol fonts can be done similarly, by looking at the style files where the correspondence of symbols with triples “math type+math font+slot” is defined.