12

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?

3 Answers 3

5

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.

4
  • 3
    One should note that this needs XeTeX or LuaTeX.
    – Caramdir
    Commented Aug 19, 2010 at 12:46
  • 1
    Indeed, that was implied. Also, there is Free Mono which have even more math coverage (and Courier look). Commented Aug 19, 2010 at 12:58
  • This did not work for me since I have tex-live on Linux.
    – Hesam
    Commented Aug 19, 2010 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. Commented Aug 20, 2010 at 0:35
4

They aren't monospace (neither is the font used in the main text of your example), but I think the Concrete fonts have a bit of a typewrite look.

1
  • 2
    I know about Concrete and I understand that the font in Katz's book is not monospace but it is definitely a typewriter font and if you look at my question it says monospace or typewriter font.
    – Hesam
    Commented Aug 19, 2010 at 10:08
1

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...

1
  • On the other hand that book is ugly, from a typographical point of view.
    – egreg
    Commented Jul 5, 2011 at 21:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .