I need to typeset a report such that it looks like it was written by an old, unreliable typewriter.

I have looked into the memoir class, however it has chapter numbering which I don't want. It also looks too clean.

I have looked into the manuscript package, but it looks way too clean for what I want.

Digging around I found a typewriter package, but it is no longer on CTAN and even getting the .sty from the author's git I can't get it to work properly: probably because it requires compiling with lualatex which I have zero experience with.

Is there an available package that does what I want easily? Namely, that makes my document look like it was written with an old, unreliable typewriter.

Alternatively, is there a way to get the typewriter package to work?

Alternatively, even just editing the memoir class such that it behaves more like article would be acceptable.

  • 2
    Have you got a picture of the kind of look you're after? Oct 9, 2017 at 14:50
  • 7
  • 2
    the typewriter package there was never on ctan, what error did you get? Oct 9, 2017 at 14:58
  • 2
    Btw: You should never ignore a "bunch of errors"!
    – TeXnician
    Oct 9, 2017 at 15:21
  • 1
    Fixed. I was just missing cmuntt.otf. Now it works almost perfectly, except \maketitle appears to also produce an empty page at the beginning. I had to encase it in a {\let \newpage \relax ...} block. Oct 9, 2017 at 16:12

2 Answers 2


Regarding the questions about memoir: if you don't want chapters numbered then put setsecnumdepth{part} in your preamble or, for all classes with \chapter use \chapter* to have an unnumbered title.

To make memoir output similar to that of the article class use the article option:


With this option \chapter behaves as \section, \section as \subsection and so on. This ability was introduced to help those (many) authors (or their supervisors) who could not decide between report or book class type output and an article style document without having to do extensive rewrites.

  • I am accepting this answer because it is the most pertinent to my original point, even though I managed to make David's code work and ultimately settled on that solution. Oct 11, 2017 at 19:19

bad typewriter

I've generated a lookup table of macros to print characters with a vertical offset that's random but consistent for each character. This covers all printable ascii characters except those that have to be escaped in LaTeX.

A few letters are used as examples of special cases for how the characters can be further modified:

  • T has a 50% chance of a double hit (with the underneath hit in grey).
  • e is so worn it's fake bold.
  • t has a bent arm, tilting it to the right
  • w has a wobbly arm resulting in a random tilt to the left

A similar approach could be used to make compound symbols (like {'\hspace{-0.5em}.} instead of !, but this doesn't work very well in cmtt).

\usepackage[first=0, last=10,counter=rnd]{lcg}

\newcommand{\BTsetupchar}[3]{\csdef{BT#1}{{\raisebox{#2 pt}{#3}}}}
    \@BTtype#1 \@empty
\def\@BTtype#1 #2{%
   \ifx #2\@empty\else

\newcommand{\rnddoublehit}[2]{%first arg is character, second is probability (expressed as 0...10 out of 10)
    \makebox[0 pt]{\textcolor{DarkGrey}{#1}\hspace{-0.9\charwidth}}%



\BTtype{This text was typed by a monkey on the world's worst typewriter.  This text was typed by a monkey on the world's worst typewriter.  This text was typed by a monkey on the world's worst typewriter.  This text was typed by a monkey on the world's worst typewriter.}

\emph{\BTtype{This text is underlined using the ulem package}}

The lookup table was generated using python:

import random
for i in range (33,127):
    if not c in "&%$#_{}~^\\": 
        print "\BTsetupchar{"+c+"}{"+str((random.random()-0.5)*2)+"}{"+c+"}"

I haven't tried to handle maths mode or accented letters -- in fact any control sequence or escaped special character few to the macro breaks. It is possible (as demonstrated) to emphasise the text, but the \emph{} must be on the outide.

A few more ideas:

  • Implement underlining with a load of \textunderscores
  • Fake-bold one or more characters for emphasis
  • Basic maths (using a handwriting font for characters not on the a standard typewriter would be a bonus)

Important sources:

  • I've spotted a bug in \rnddoublehit -- the grey letter will always be a T (a hangover from how I demonstrated it) , and (similarly) the \hspace should depend on the character width even though this is constant in a typewriter font.
    – Chris H
    Feb 7, 2018 at 9:16
  • Awesome work. How do I make my whole document to use BTtype as a default font?
    – Peter B.
    Oct 2, 2020 at 19:35

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