TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to print a comma inside a \texttt{} tag, but it is not printing:

    \texttt{foo, bar}  


foo bar


foo, bar

How to print the comma inside without loading extra packages, though defining new command is allowed?

I have TeX 3.1415926 (TeX Live 2012) kpathsea version 6.1.0

I use the command \ll to compile and \lv to view from Vim using the Vim-LaTeX plugin. The viewer is Document Viewer 3.6.0

The \ll command calls the TeX compiler using this command:

latex -interaction=nonstopmode

The log file is located here: http://pastebin.com/JKJBk7xv

share|improve this question
I can see the comma on my system without any issue. – percusse Nov 28 '12 at 21:19
It should produce a comma, something is seriously wrong with your setuo if not. What does the log say when you run that? – David Carlisle Nov 28 '12 at 21:19
Which TeX compiler, which output format, which viewer? – Heiko Oberdiek Nov 28 '12 at 21:20
Are you sure you're typing a comma and not the character "‚" Unicode SINGLE LOW-9 QUOTATION MARK (U+201A)? – egreg Nov 28 '12 at 21:28
Yes It's a good call, if the OP shows the log file and that's the reason you get the crystall-ball badge again – David Carlisle Nov 28 '12 at 21:55

The problem was apparently the Document Viewer 3.6.0

I installed Okular, made it default dvi viewer and suddenly the commas show. Apparently it is a bug in Document Viewer.

share|improve this answer
Make a bug report to the guys who develop Document Viewer, ok? – Keks Dose Nov 29 '12 at 20:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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