You can see in this picture (made by ModernCV ) that the commas appear automatically between fields

enter image description here

I would like to remove some commas without changing the definition of this macro.

2 Answers 2


The commas are hard-coded within the \cventry macro; here's the definition (from moderncvbodyi.sty):

    \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
    \ifthenelse{\equal{#5}{}}{}{, #5}%
    \ifthenelse{\equal{#6}{}}{}{, #6}%

If arguments are not left blank, commas are inserted before displaying another argument. You should either change this definition within your preamble, or fool \cventry by formatting components manually within other arguments:

enter image description here

\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % default
\cventry{year--year}{Degree {\mdseries\itshape Institution}}{}{City}{\textit{Grade}}{Description}
\cventry{year--year}{Degree}{Institution \textup{City}}{}{\textit{Grade}}{Description}
\cventry{year--year}{Degree}{Institution}{City \textit{Grade}}{}{Description}

Use the following command.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .