Curricula Vitae / RésumésDelete color from headings but keep block around name

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Delete color from headings but keep block around name

Post by templateuser »

I really like the layout and look of this template, but I would like to remove the color from the first three letters of the section headings. I want to do this without removing the dark block around the name, which is what happens when 'print' is added to the \documentclass declaration.

I apologize if this has been asked already, but I was not able to find it under the other discussion posts.

Thanks!

Justin

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Delete color from headings but keep block around name

Post by templateuser »

Nevermind, I figured it out. Heres what I did:

Code: Select all

\RequirePackage{parskip}
\newcounter{colorCounter}
\def\@sectioncolor#1#2#3{%
  {%
    \color{headercolor}% I JUST ADDED {HEADERCOLOR} AND REMOVED THE COLOR OPTIONS
%      \ifcase\value{colorCounter}%
%        blue\or%
%        red\or%
%        orange\or%
%        green\or%
%        purple\or%
%        brown\else%
%        headercolor\fi%
    } #1#2#3%
  }%
  \stepcounter{colorCounter}%
}
This is probably not the best way because it still separates the color assignment for the first three characters from the remainder of the header title. Whatever the case, it worked just fine.

Justin
Post Reply