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.

  • 5
    why archaic? textcomp is part of the core distribution so \textquotesingle requiring textcomp is no different to say \section requiring article Jun 17, 2016 at 14:24
  • 2
    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 Jun 17, 2016 at 14:31
  • 3
    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 Jun 17, 2016 at 14:33
  • 1
    With the OT1 encoding (so without loading fontenc), the straight quote is available as \texttt{\symbol{13}}
    – egreg
    Jun 17, 2016 at 15:13
  • 2
    @kando So you load fontenc but don't want to load textcomp? Curious. ;-)
    – egreg
    Jun 17, 2016 at 15:43

1 Answer 1


I see no reason for avoiding textcomp. Anyway,


produces the straight quote in typewriter type.

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





enter image description here

You must log in to answer this question.

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