9

I'd like to do the text

"conservative"

with the quotation marks into a \texttt. However, when I do so, the first quotation mark is removed. I'm using the LNCS documentclass, I'm not sure if this has something to do with it. I also can't escape the first ", then it puts two dots above the c, which is wrong.

  • 3
    1. Please add a minimal working example (MWE). \documentclass{llncs} \begin{document} \texttt{"conservative"} \end{document} does it here. 2. \" is not escaping. – Qrrbrbirlbel Dec 9 '12 at 22:59
  • For the record, the problem seems to have been fixed, at least with TeX Live 2016 and llncs.cls 2015/06/24 v2.20. – lhf Jan 10 '17 at 9:38
8

this is a bit of a plain-tex hack, but it'll get you what you want.

\texttt{\char`\"}

you might want to make this into a command:

\newcommand*{\ditto}{\texttt{\char`\"}}
  • @LLNCS You probably can avoid hacks; why didn't you provide a MWE? – egreg Dec 10 '12 at 13:34
6

A bit simpler: \texttt{"{}conservative"{}}

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.