# A monospace or typewriter font with matching math support

This might sound odd but I really like the old typewriter books from the pre-TeX era (the type of books that inspired Knuth to make TeX!). I don't know the exact reason, maybe its because I am very fond of typewriter and monospace fonts or just a nostalgia for old math books from 1960s ...

Anyway I am looking for typewriter font with matching math support. It is easy to change the text of a document into a typewriter font however the math font never matches and that results in an ugly combination. An example which I really like is Moments, monodromy, and perversity: a diophantine perspective by Nick Katz. I contacted the author and unfortunately he has not done this in TeX. The fonts are bit fonts created by William Fulton back in the 1980s. So what are your suggestions?

-

DejaVu Sans Mono have both Latin and Greek plus some math symbols, if you use fontspec and unocode-math then it can be used for simple formulas:

\documentclass{article}

\usepackage{amsmath}
\usepackage{fontspec}
\usepackage{unicode-math}

\setmainfont{DejaVu Sans Mono}
\setmathfont[math-style=upright]{DejaVu Sans Mono}

\begin{document}
$$\text{Sum}(E, f, ψ) ≔ ∑_{x_1,\dots, x_n \text{in} E} ψ_E(f(x_1,\dots, x_n)).$$
\end{document}


But more complex formulas needs OpenType math tables in the font.

-
One should note that this needs XeTeX or LuaTeX. –  Caramdir Aug 19 '10 at 12:46
Indeed, that was implied. Also, there is Free Mono which have even more math coverage (and Courier look). –  Khaled Hosny Aug 19 '10 at 12:58
This did not work for me since I have tex-live on Linux. –  Hesam Aug 19 '10 at 19:45
Sorry, I should have been more clear, you also need texlive-2010 (which is in pretest) for this to work, otherwise you have to update/install all the required pieces yourself, which is quit tricky. –  Khaled Hosny Aug 20 '10 at 0:35
Setting the body text to a typewriter font and using mathastext will get you some way towards your goal. This won't give you greek letters or things like appropriate integral signs, but it's a start...