A well-known trick in LaTeX if one wants to have math definition that is typeset in "math font", but actually appears as a single word, is to surround it with \mathit{}
.
For example, compare these two renderings of functional typesetting
:
The one on the bottom uses \mathit{}
, which has the effect of squishing the characters together. This is particularly noticeable between f
and u
.
If we now switch to eulervm
, we want to achieve the same. Sadly, it does not really work:
We can see that on top, the Euler font is used. On the bottom, it is not, since instead the regular italic text font is used. Before, we did not notice this, since the CM font for math and italic text is (almost?) the same.
The first proplem is that Euler is an upright font. Thus, we should use \mathrm
instead of \mathit
.
But this does not improve things, since it still uses the default text font. We can, of course, try to switch the default text font to find one that more closely resembles the Euler characters. But which font should one use for this use case? Is there a way to just directly use the Euler font, but have it kern letters properly?
PS: Since a commentor requested it, here is the code used for both pictures (the difference being one line):
\documentclass{article}
\usepackage{amsmath}
\usepackage{eulervm} % comment this line out for the first picture
\begin{document}
\begin{align*}
&functional\ typesetting\\
&\mathit{functional\ typesetting}\\
&\mathrm{functional\ typesetting} % bonus: using \mathrm, not shown in the pictures
\end{align*}
\end{document}
\documentclass
and ending with\end{document}
.\mathit
selects the text italic font, not a math font.\mathit
"has the effect of squishing the characters together." to tex it's simply a font change. As I say, you could in principle make a virtual font with smaller sidebearings, but I don't know of an existing one