[Tex/LaTex] How to use garamond font in Overleaf

garamondgaramondxmathdesignoverleaf

I have seen several questions on how to enable the garamond font via downloading the garamondx or the mathdesign packages from ctan and copying the files to MikTeX directories in your own PC, but is there a way I can use the font in a Overleaf document?

(ps: I have already tried to add \usepackage{garamondx} to my preamble, but that runs in the same errors discussed in other questions)

Best Answer

EB Garamond is available in Overleaf.

enter image description here

\documentclass{article}
\usepackage[cmintegrals,cmbraces]{newtxmath}
\usepackage{ebgaramond-maths}
\usepackage[T1]{fontenc}

\begin{document}

Font test with EB Garamond. $x+y=0$.

\end{document}

So is Cormorant Garamond:

enter image description here

\documentclass{article}

\usepackage{CormorantGaramond}

\begin{document}

Font test with Cormorant Garamond. $x+y=0$.

\end{document}