Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using for my Resume the ModernCV template, but I would like to bring in some of the amazing FriggeriCV style of the title of the sections: I love the text half coloured and half black with each section styled by a different colour. There is any way I can edit my template for that? The image below is how the FriggeriCV looks like, and I would bring the heading styles. The image below

share|improve this question
    
From latextemplates.com/template/friggeri-resume-cv you can download a zip file with all files needed to type a Friggeri CV. Bicolor sections are provided by default. –  Ignasi Jun 28 '13 at 10:03
    
Thank you @Ignasi but I was looking for a way to personalize a bit ModernCV. –  Kicker Jun 28 '13 at 10:22
add comment

1 Answer 1

up vote 3 down vote accepted

Having the bicolor section title is quite simple, using:

\section{\textcolor{magenta}{edu}\textcolor{black}{cation}}

or

\section{\bfseries \textcolor{orange}{exp}\textcolor{black}{erience}}

at every section start (I like the bold one more).

image


EDIT

An automated way could be:

[...your preamble...]
\usepackage{xstring}
%\usepackage{xcolor}

\DeclareRobustCommand\bcolor[2][color1]{%
{\bfseries\textcolor{#1}{\StrLeft{#2}{3}}% the number '3' stands for three letters
\textcolor{black}{\StrGobbleLeft{#2}{3}}
}}

and in the document you have three choices:

\section{Education}%standard section
\section{\bcolor{Experience}}%bicolor section with standard color
\section{\bcolor[orange]{Applications}}%bicolor section with custom color

example

Please note that the second part of the word is always set to be black in this example.


The MWE:

\documentclass[sans]{moderncv}
\moderncvstyle{oldstyle}       
\moderncvcolor{blue} 
\firstname{My}
\familyname{Name}
\address{my street}{my city}{my country}
%
\usepackage{lipsum,blindtext,xstring}
\DeclareRobustCommand\bcolor[2][color1]{%
    {\bfseries\textcolor{#1}{\StrLeft{#2}{3}}%
    \textcolor{black}{\StrGobbleLeft{#2}{3}}
    }}
\begin{document}
\makecvtitle

\section{education} %standard section
\section{\bcolor{experience}} %bicolor section with standard color
\section{\bcolor[orange]{applications}} %bicolor section with standard color
\end{document}

enter image description here

share|improve this answer
    
That's almost what I was looking for. There is a way to make this automatic? Grazie :) –  Kicker Jun 27 '13 at 22:30
1  
I edited the answer, try now! :) –  bersanri Jun 28 '13 at 8:50
1  
Wow this is amazing –  Kicker Jun 28 '13 at 10:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.