# Change only the text font (and not the math font)

I would like to use one external font (GFS Artemisia) but I would like to preserve the main mathematical font. I did a search but I did not find something similar.

My preable is the following:

\documentclass[10pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[english,greek]{babel}
\usepackage{gfsartemisia}

\begin{document}  etc

• Welcome to TeX.SX! Just do \renewcommand{\rmdefault}{artemisia} instead of \usepackage{gfsartemisia}. But you may have problems with accents. Sep 20 '18 at 22:04
• That's the name of the font, as found in gfsartemisia.sty. There's no general rule. Sep 20 '18 at 22:11
• Just a suggestion to give a minimal working example (generally from \documentclass till \end{document}) instead of just giving the preamble.
– hola
Jun 7 '19 at 17:05
• @pushpen.paul Thanks for your suggestion. I ll keep it in my mind :) Jun 7 '19 at 18:32

# TL,DR

Use \renewcommand{\rmdefault}{artemisia} instead of \usepackage{gfsartemisia} and hope for the best.

The gfsartemisia does several things other than changing the text font. In particular it does \usepackage{txfonts}, which changes the math fonts to a (bad) version of Times.

You might find difficulties with accents, because the font has them in nonstandard positions, but apparently this is fixed if you load the T1 font encoding.

\documentclass[10pt,a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[english,greek]{babel}

\renewcommand{\rmdefault}{artemisia}

\begin{document}

'a \"a

\foreignlanguage{english}{\'a\a\"a\~a}

$a+b=3$

\end{document}


A different strategy could be using substitutefont, to only change the Greek font to Artemisia.

\documentclass[10pt,a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[english,greek]{babel}

\usepackage{substitutefont}

\substitutefont{LGR}{\rmdefault}{artemisia}

\begin{document}

'a \"a abgde

\foreignlanguage{english}{\'a\a\"a\~abcdef}

$a+b=3$

\end{document}