Generalno colors with moderncv and font issues

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
canuzzi
Posts: 3
Joined: Tue Jun 24, 2025 10:10 am

no colors with moderncv and font issues

Post by canuzzi »

Hello board,

I used a long time moderncv for my CVs. Now I had a new computer and a new Latex Dist installation and the colors are missing an everything is black/white/grey. I tried the tex live and miktex both with the same issue.

Another issue is, that I get a lot of font warnings:
ams_cv.tex 99 LaTeX Font Warning: Font shape `T1/lmss/m/scsl' undefined using `T1/lmss/m/sc' instead on input line 99.
ams_cv.tex 99 LaTeX Font Warning: Font shape `T1/lmss/m/sc' in size <10.95> not available Font shape `T1/lmr/m/sc' tried instead on input line 99.
ams_cv.tex 105 LaTeX Font Warning: Font shape `T1/lmss/m/scsl' undefined using `T1/lmss/m/sc' instead on input line 105.
ams_cv.tex 112 LaTeX Font Warning: Font shape `T1/lmss/m/scsl' undefined using `T1/lmss/m/sc' instead on input line 112.
...
Hopefully somebody can help :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: no colors with moderncv and font issues

Post by Stefan Kottwitz »

Hi Canuzzi,

welcome to the forum!

The warnings happen because you are using fancy font shapes / combinations which are not available.
canuzzi wrote: Tue Jun 24, 2025 10:17 am ams_cv.tex 99 LaTeX Font Warning: Font shape `T1/lmss/m/scsl' undefined using `T1/lmss/m/sc' instead on input line 99.
This means, small caps slanted (scsl) font is not available, so small caps (sc) is used. If that looks ok for you, don't worry. If you need it, use the kpfonts package instead of lmodern, for example.

Regarding the color, I can only tell you if I see the code and the output. Maybe post the code here, and a screenshot as attachment. You can use dummy placeholder text instead of your CV data.

Stefan
LaTeX.org admin
canuzzi
Posts: 3
Joined: Tue Jun 24, 2025 10:10 am

Re: no colors with moderncv and font issues

Post by canuzzi »

Thanks for the reply and the greetings!

The code is not changed from the default of the package - just the information is added:

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% "ModernCV" CV and Cover Letter
% LaTeX Template
% Version 1.1 (9/12/12)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Xavier Danaux (xdanaux@gmail.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Important note:
% This template requires the moderncv.cls and .sty files to be in the same 
% directory as this .tex file. These files provide the resume style and themes 
% used for structuring the document.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
%	PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[11pt,a4paper,sans,german]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman

\moderncvstyle{classic} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{green} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\usepackage{lmodern}
\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
%\usepackage[T1]{fontenc}

\usepackage[scale=0.75]{geometry} % Reduce document margins

%----------------------------------------------------------------------------------------
%	NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

\firstname{Enzo} % Your first name
\familyname{Canuzzi} % Your last name

% All information in this block is optional, comment out any lines you don't need
\title{Curriculum Vitae}
\address{Foobargasse 420}{1660 Wien}
\mobile{+43 666 666 66 66}
\email{canuzzi@foo.net}

\photo[70pt][0.4pt]{../bewerbungsphotos/niels_neu}

%----------------------------------------------------------------------------------------

\begin{document}

\makecvtitle % Print the CV title

\section{Pers\"onliche Daten}
\cvitem{Geburtsdatum}{11.01.1973}
\cvitem{Geburtsort}{J\"ulich, Deutschland}
\cvitem{Staatsan- geh\"origkeit}{Deutsch}

%----------------------------------------------------------------------------------------
%	EDUCATION SECTION
%----------------------------------------------------------------------------------------

\section{Ausbildung}

\cventry{1993--1999}{Diplom Physiker}{Foo Universität}{Bar}{\textit{Deutschland}}{}  % Arguments not required can be left empty
\cventry{1984--1992}{Abitur}{Gymnasium Foobarf }{Foo}{\textit{Deutschland}}{}

\section{Diplom}

\cvitem{Titel}{\emph{Abbildung und Schaltung von ferroelektrischen Dom\"anen mittels spannungsmodulierter Rasterkraftmikroskopie}}
\cvitem{Betreuer}{Professor Dr. Foo Bar}

%----------------------------------------------------------------------------------------
%	WORK EXPERIENCE SECTION
%----------------------------------------------------------------------------------------

\section{Berufserfahrung}

\cventry{01/2021--10/2022}{Softwareentwickler}{\textsc{Bar}}{Wien}{\"Osterreich}
{Java Entwicklung auf Basis von Microservices und Spring Boot
\begin{itemize}
\item Ablösung eines Altsystemes (Docker, SQL, Kafka)
\end{itemize}
}

\cventry{10/2016--11/2020}{Lead Softwareentwickler}{\textsc{Foo}}{Wien}{\"Osterreich}
{Entwicklung, Beratung \& Third Level Support und Datenaufbereitung
\begin{itemize}
\item Umstellung von Multilayer auf Microservices (SPA) 
\item Deployments und Datenaufbereitung auf Kundensystemen (Websphere, JBoss, SQL)
\item Weiterentwicklung von Klassifizierungssoftware (Java, eCl@ss)
\end{itemize}
}


%----------------------------------------------------------------------------------------
%	COMPUTER SKILLS SECTION
%----------------------------------------------------------------------------------------

\section{Skill Matrix}
\cvskillhead{}


\cvskillentry{Sprachen}{5}{Java}{20}{Von SOAP zu Spring Boot}
\cvskillentry{}{5}{c}{20}{Ich liebe Funktionspointer}
\cvskillentry{}{4}{TCL}{5}{Nützliche Skriptsprache insb. mit TCL/expect}


\homepage{https://www.hackerrank.com/profile/canuzzi}{} % The first argument is the url for the clickable link, the second argument is the url displayed in the template - this allows special characters to be displayed such as the tilde in this example

%----------------------------------------------------------------------------------------
%	LANGUAGES SECTION
%----------------------------------------------------------------------------------------

\section{Sprachen}

\cvlistdoubleitem{Deutsch: Muttersprache}{Englisch: Gut in Schrift und Wort}

%----------------------------------------------------------------------------------------
%	INTERESTS SECTION
%----------------------------------------------------------------------------------------

\section{Interessen und Hobbies}

\renewcommand{\listitemsymbol}{-~} % Changes the symbol used for lists

\cvlistdoubleitem{Trekking}{Wissenschaft}
\cvlistdoubleitem{Wintersport}{Elektronik}


\section{Mitgliedschaften}

\renewcommand{\listitemsymbol}{-~} % Changes the symbol used for lists

\cvlistdoubleitem{\"Osterreichischer Alpenverein}{Deutsche Physikalische Gesellschaft}
\cvlistdoubleitem{Happy Lab}{}

\end{document}
The Name should be coloured, the lines before the sections and the skill matrix value too:
Attachments
cv.png
cv.png (138.87 KiB) Viewed 98 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: no colors with moderncv and font issues

Post by Stefan Kottwitz »

Hi Enzo,

thanks to your example code, I could test it. I found that it works if you reverse the order of commands and choose the color before the style:

Code: Select all

\moderncvcolor{green}
\moderncvstyle{classic} 
Stefan
LaTeX.org admin
canuzzi
Posts: 3
Joined: Tue Jun 24, 2025 10:10 am

Re: no colors with moderncv and font issues

Post by canuzzi »

Thank you a lot. That worked for me too - was the order of the original template - so something must have changed in latex here. Smells a little like a bug. The order should not be important for this. Also this was working for me with older latex versions.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: no colors with moderncv and font issues

Post by Stefan Kottwitz »

I agree, that looks like a bug, I suspect in the moderncv code because it's only related to the order if it own commands. Like if \moderncvstyle already applies "color" values and later changes don't have an effect. On an older LaTeX installation I also saw it working fine in both orders.

Stefan
LaTeX.org admin
Post Reply