Hey!
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
Curricula Vitae / Résumés ⇒ Section title colors - increasing number of letters affected
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Re: Section title colors - increasing number of letters affe
Does anyone have a clue? Tried the obvious things like "\section{\color{<color here>}<section title here>}", but get an error then as the style file is very tightly bound to main.tex.
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
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
Hello,
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.
Bests,
paveheikkinen
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