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.

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

This image shows the excerpt of a CV produced with the moderncv document class:

Notice that after the bold text there is a comma. This seems to be produced automatically. How can I stop this?

share|improve this question
Welcome to TeX.SE. It would be helpful if you composed a fully compilable MWE including \documentclass and the appropriate packages that sets up the problem. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem. – Peter Grill Dec 12 '12 at 4:12
up vote 12 down vote accepted

The entry you're showing is produce with \cventry, so we want to change the definition of this macro. It is defined in moderncvstyleclassic.sty. All I did is copy it into my preamble verbatim and remove the undesired comma. (In the MWE, I actually copied the line and commented out the original, to make the change recognizable.

% the following definition is from the file moderncvstyleclassic.sty
%   \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}% I changed this line (with comma) ...
    \ifthenelse{\equal{#4}{}}{}{ {\slshape#4}}% ... into this one (without comma).
    \ifthenelse{\equal{#5}{}}{}{, #5}%
    \ifthenelse{\equal{#6}{}}{}{, #6}%
\cventry{December 2012}{Master of Science in Chocolatology}{University of Candyland}{Sugartown}{A+ with Golden Gummy Bear}{I am the chocolate-man.} 


share|improve this answer
+1 for the Golden Gummy Bear. – ClintEastwood Dec 14 '12 at 7:30

instead of redefining the whole command yourself also consider using xpatch:



this line replaces the first occurence in the macro text of , by the empty string - i.e. removes it.

Here is also a nice documentation of how the command works.

share|improve this answer

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.