# Typewriter Apostrophe

Is there a method to create a typewriter apostrophe \texttt{'} with only basic Latex or amssymb?

The closest thing I've found requires the textcomp package.

• why archaic? textcomp is part of the core distribution so \textquotesingle requiring textcomp is no different to say \section requiring article – David Carlisle Jun 17 '16 at 14:24
• see the text it says: that is the pre-latex2e version which is obsolete textcomp was adopted into the core latex2e distribution back in 1993 or so so that "new" version is not obsolete – David Carlisle Jun 17 '16 at 14:31
• textcomp is not "another package" is certainly more core than amsmath, if you object to textcomp, do you pbject to \documentclass{article} since article.cls and textcomp.sty are distributed in the same ctan upload to latex/base – David Carlisle Jun 17 '16 at 14:33
• With the OT1 encoding (so without loading fontenc), the straight quote is available as \texttt{\symbol{13}} – egreg Jun 17 '16 at 15:13
• @kando So you load fontenc but don't want to load textcomp? Curious. ;-) – egreg Jun 17 '16 at 15:43

I see no reason for avoiding textcomp. Anyway,

\texttt{\fontencoding{OT1}\selectfont\symbol{13}}


produces the straight quote in typewriter type.

You can see the full set of characters in the OT1-encoded typewriter font with

\documentclass{article}
\usepackage{fonttable}

\begin{document}

\xfonttable{OT1}{\ttdefault}{\seriesdefault}{\shapedefault}

\end{document}