Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
4  
I can see the comma on my system without any issue. –  percusse Nov 28 '12 at 21:19
4  
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
2  
Which TeX compiler, which output format, which viewer? –  Heiko Oberdiek Nov 28 '12 at 21:20
3  
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
3  
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 1

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
6  
Make a bug report to the guys who develop Document Viewer, ok? –  Keks Dose Nov 29 '12 at 20:33

Your Answer

 
discard

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.