1

I have used the Awesome CV template on Overleaf and some of the text is grey rather than black but I have no idea how to change this. The only thing I can see about font colour the the .tex file is:

% Colors for text
% Uncomment if you would like to specify your own color
% \definecolor{darktext}{HTML}{414141}
% \definecolor{text}{HTML}{333333}
% \definecolor{graytext}{HTML}{5D5D5D}
% \definecolor{lighttext}{HTML}{999999}

But no idea what to do with this...

2
  • 1
    Those lines name colors, but only if you remove the percent at the front (that's what's meant by "uncommenting "). Somewhere else in the file the colors are used. Can't tell without a complete document, though. Commented Dec 6, 2017 at 10:18
  • Thanks for that.. this is the template I am using: overleaf.com/latex/templates/awesome-cv/…
    – MQNY
    Commented Dec 6, 2017 at 10:23

2 Answers 2

6

as Matthew Leingang wrote in a comment; in LaTeX the % symbol is meant for commenting, this means that anything after a % symbol will not have any effect on the final outcome of the document.

This is great for making comments (like above), removing commands, and debugging.

If you have a really big align or aligned environment that throws an error (something like missing $) It's often really hard to find where. You can then use % to remove certain lines and track down where the bug is.

In your case the colors do the following:

  • awesome: This is the color of the first few letters in each major point.
  • darktext: First line under every major point, also in lists
  • text:Text not given another color, used both in Big ovelines, and the smallest points.
  • graytext: This is used for minor highlights
  • lighttext: Used for headers and the line under the name.

The colors are written in hex color format in RGB, meaning that Red holds a value from 00 to ff, so does green and so does blue.

Thus the following inserted in the template:

\definecolor{awesome}{HTML}{FFFF00}%Yellow
%% Colors for text
\definecolor{darktext}{HTML}{00FF00} %green
\definecolor{text}{HTML}{FF00FF} % pink
\definecolor{graytext}{HTML}{FF0000} % red
\definecolor{lighttext}{HTML}{0000FF} %blue

Will produce: enter image description here

4
  • Thank you so much for your help! I managed to change them all to black.
    – MQNY
    Commented Dec 6, 2017 at 10:55
  • 1
    Wow, that looks definitely not awesome. But I'm glad you answered the question! Commented Dec 6, 2017 at 16:07
  • 1
    I wasn't going for awesome, i was going for distinct colors to show what each color did, and the easy to remember colors was right at hand XD. But I could properbly have chosen some nicer easy to remember colors, just by using 9 instead of F XD. Commented Dec 6, 2017 at 16:09
  • How to make all the head sections (e.g., Education) all red instead of highlighting just the first three letters?
    – Thiago
    Commented Aug 9, 2022 at 9:52
0

If you want to change the number of colored characters in the head section you have to go to line 154

% Awesome section color \def\@sectioncolor #1{% \ifbool{acvSectionColorHighlight}{{\color{awesome}#1}}{#1}% }

you can for expample add #2#3#4#5 etc... and it will color the characters 1,2,3,4,5th etc...

% Awesome section color \def\@sectioncolor #1#2#3#4#5{% \ifbool{acvSectionColorHighlight}{{\color{awesome}#1#2#3#4#5}}{#1#2#3#4#5}% }

Hope it helps.

You must log in to answer this question.

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