# Comma inside \texttt{} does’nt show up

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

\documentclass{article}
\begin{document}
\texttt{foo, bar}
\end{document}


produces:

foo bar


not

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

-
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

## 1 Answer

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.

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