3

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.

Any ideas please?

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
  • 1
    Welcome to TeX.SX! Just do \renewcommand{\rmdefault}{artemisia} instead of \usepackage{gfsartemisia}. But you may have problems with accents. – egreg Sep 20 '18 at 22:04
  • @egreg Thank you for your comment. It works! But, why did we write "\renewcommand{\rmdefault}{artemisia}" instead of "\renewcommand{\rmdefault}{gfsartemisia}"? Is there a general way? What if we have other fonts? – Chris Sep 20 '18 at 22:09
  • 1
    That's the name of the font, as found in gfsartemisia.sty. There's no general rule. – egreg Sep 20 '18 at 22:11
  • 1
    Just a suggestion to give a minimal working example (generally from \documentclass till \end{document}) instead of just giving the preamble. – pushpen.paul Jun 7 at 17:05
  • @pushpen.paul Thanks for your suggestion. I ll keep it in my mind :) – Chris Jun 7 at 18:32
3

TL,DR

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

Long answer

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}

enter image description here

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}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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