Curricula Vitae / Résumés ⇒ Section title colors - increasing number of letters affected
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Section title colors - increasing number of letters affected
I've been fiddling around a bit with this template, and I'd like to try to see how it'd look with entire sectiontitles with a certain color instead of the standard 3 letter one.
I've found the place in the code this happens, but they way it's done is through arguments #1, #2 and #3. With somewhat limited amount of experience with LaTeX, I tried to increase the number of arguments to the desired amount. (Length of the longest title)
I quickly noticed that the limit of arguments is 9, which is not enough for my longest sectiontitle. I read up a bit and found ways to increase the number of arguments, but couldn't quite get it to work with this template. (http://tex.stackexchange.com/questions/ ... -arguments)
Is there a way this can be done relatively easely with this template?
Thanks for any answers!
robikar
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
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: Section title colors - increasing number of letters affe
I can't seem to edit the style-file in order to be able to color entire section titles without removing the style of the document itself. (Tried to remove all color-related things bound up to the sections without removing the style of the sections themselves, easier said than done.)
robikar
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Section title colors - increasing number of letters affected
I am indeed late with my answer but if anyone happens to have the same question:
I was able to increase the number of letter colored to four by adding #4 to the frigger-cv file.
Code: Select all
\newcounter{colorCounter} \def\@sectioncolor#1#2#3[color=#FF0000]#4[/color]{%{%\color{%\ifcase\value{colorCounter}% blue\or% red\or% orange\or% green\or% purple\or% brown\else% headercolor\fi%} #1#2#3[color=#FF0000]#4[/color]%}%
paveheikkinen