Created
November 10, 2018 15:19
-
-
Save raydsameshima/3f197e209a2863d67e7390dfdf03abd3 to your computer and use it in GitHub Desktop.
typewriter.sty usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% !TeX program = lualatex | |
\documentclass{article} | |
\usepackage{amsmath} | |
\usepackage{typewriter} | |
\begin{document} | |
\title{Some math symbols} | |
\author{Ray D. Sameshima} | |
\maketitle | |
\section{Some equations} | |
\begin{equation} | |
E = mc^2 | |
\end{equation} | |
\subsection{a text} | |
The quick brown fox jumps over the lazy dog. | |
\subsubsection{another test} | |
Unfortunately some mathematical symbols can not be used e.g., let me write | |
\begin{equation} | |
\verb|\forall n \in \mathbb{N}| | |
\end{equation} | |
in equation: | |
\begin{equation} | |
\forall n \in \mathbb{N}. | |
\end{equation} | |
\verb|\pi| becomes \pi, but \verb|\sum, \prod| do not appear: $\sum, \prod$. | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was really aiming to emulate a typewriter and most (pre-electronic) typewriters would never have had those symbols... If you use the github version of the package, it's easier to change fonts: I used Lucida Console which has \sum and \prod and added a couple more definitions to get
Just changed the preamble to