I've tried \texttt{' '} and \verb#' '# but those give me

enter image description here

when I'm really looking for the single quotes to be in code font. I can do it with double quotes like this:

enter image description here

but I can't get the single quotes to surround a single space. Appreciate any help. Thank you.

\usepackage{upquote} %for verbatim to use textquotesingle

\texttt{" "} \texttt{\textquotesingle\ \textquotesingle} \verb#' '# 

enter image description here

  • Maybe \texttt{"\mbox{ }"}? – egreg Aug 9 '17 at 9:00
  • @egreg Yes, should be considered, but imho the question is more about the "upquote". – Ulrike Fischer Aug 9 '17 at 9:04

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.