Really strange demand..
Changing math font may help you---font Euler can be loaded by \usepackage{euler}
.
\documentclass{article}
\usepackage{euler}
\usepackage{amsmath}
\begin{document}
\[
E = mc^2.
\]
\end{document}
In addition, \usepackage[LGRgreek]{mathastext}
may be what you are looking for, see here:
\documentclass{article}
\usepackage[LGRgreek]{mathastext}
\usepackage{amsmath}
\begin{document}
\[
E = mc^2.
\]
\end{document}
Or, if you want to use your own font, have a look at the section 3.4 "Declaring math alphabets" of document fntguide (type texdoc fntguide
in terminal window).
Indeed, I strongly advise not to do evil things like printing all math upright.. PLUS ONE.
I found your question because I just had... the same question!
I am using LaTeX standard Helvetica (it's not 100% equal to the original one I guess) since I don't own Frutiger.
But you can just look at the FontName.pdf
file for the abbreviation of Frutiger (Thanks David Carlisle for the light on this great file). It should be something like ftr
or ftb
.
To keep Computer Modern for the whole text you don't need to change anything, it's already the default. As you mention sans, then just add:
\renewcommand*{\familydefault}{\sfdefault}
If you are using KOMA-script it's recommended to use the following:
\newcommand*\sectfont{\fontfamily{phv}\selectfont}
Refer to section 3.2 KOMA-Script
You can also use the titlesec
package, as the following:
\usepackage{titlesec}
\titleformat{\chapter}
{\fontfamily{phv}\selectfont\bfseries\LARGE\color{blue}}
{\thechapter}{20pt}{}
\titleformat{\section}
{\fontfamily{phv}\selectfont\color{blue}}
{\thechapter}{10pt}{}
To customize it like I did refer to section 3 titlesec. I adapted the code from this answer.
If you giveup KOMA-script then it's possivle to use the sectsty
package.
\usepackage{sectsty}
\allsectionsfont{\fontfamily{phv}\selectfont}
If you want the otherway around just add:
\renewcommand*\rmdefault{phv}
And replace phv
with cmss
on any of the above codes.
Another site I relay for quick reference on simple latex things is LaTeX Wikibook.
Hope this helps you, even been 3 months later.
Best Answer
With the default font encoding
OT1
you cannot switch the typewriter font to a normal text font, because of encoding issues (burden of compatiblity). The encoding issues are resolved in font encodingT1
, for example. Then the font for\ttfamily
can be changed to use the roman font instead, e.g.:If you need to inherit the font settings from the context, then
\verbatim@font
can be redefined to do nothing. It is used for\verb
and environmentverbatim
: