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.

1 Answer 1

\usepackage{upquote} %for verbatim to use textquotesingle

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

enter image description here

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

You must log in to answer this question.

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