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 – David Carlisle Jun 17 '16 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 – David Carlisle Jun 17 '16 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 – David Carlisle Jun 17 '16 at 14:33
  • 1
    With the OT1 encoding (so without loading fontenc), the straight quote is available as \texttt{\symbol{13}} – egreg Jun 17 '16 at 15:13
  • 2
    @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,


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.