Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First word of cvparagraph in colour rather than first 3 letters #104

Closed
chappo007 opened this issue Jan 31, 2017 · 7 comments
Closed

First word of cvparagraph in colour rather than first 3 letters #104

chappo007 opened this issue Jan 31, 2017 · 7 comments

Comments

@chappo007
Copy link

Is it possible to change the behaviour of the section for 'cvparagraph' to use the 'awesome' colour for the full length of the first word rather just the first 3 letters. I can change it for length of characters and probably create individual paragraph sections but would prefer something generic.
Cheers
Mike Chapman

@ben-e-whitney
Copy link

Do you want the change for all sections or only those containing a cvparagraph environment? If it would be acceptable to use the color for the entirety (not just the first word) of all section headings, you could replace the definition of \@sectioncolor with

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

and the definition of \sectionstyle with

\newcommand*{\sectionstyle}[1]{%
{\fontsize{16pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor{#1}}%
}

If you want just the first word of the section title to be in color, maybe you can use the answers to this question.

@chappo007
Copy link
Author

Just the first word. Thanks for the tip, I'll try it sometime soon. Cheers.

@chappo007
Copy link
Author

Just got this working. It does the job. I needed to use the latest release.

@antoine1003
Copy link

Hey,
I try to figure out who can I color the first word in the cvparagraph section but I don't see where should I put \FirstWord method...
I hope you can help.
Thanks
A.D

@hsellik
Copy link

hsellik commented Jan 26, 2020

It would be nice to have an example of the solution. I couldn't get it working.

@jocroton
Copy link

@chappo007 would you mind sharing the solution that worked for you?

Cheers

@darshak-bhatti
Copy link

What I have done is,
I added
\newcommand*{\lettersectionstyledark}[1]{{\fontsize{14pt}{1em}\bodyfont\bfseries\color{darktext} #1}}

And modified lettersection to this,

\newcommand{\lettersection}[2]{%
\par\addvspace{2.5ex}
\phantomsection{}
\lettersectionstyle{#1}
\lettersectionstyledark{#2}
\color{gray}\vhrulefill{0.9pt}
\par\nobreak\addvspace{0.4ex}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants