2

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

2
\documentclass{article}
\usepackage{textcomp}
\usepackage{courier}
\usepackage{upquote} %for verbatim to use textquotesingle
\begin{document}

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

enter image description here

2
  • 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 .