Curricula Vitae / Résumésaddfontfeature color is distorted (e.g., white is not white)

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
rovmis
Posts: 1
Joined: Fri Sep 25, 2015 9:33 pm

addfontfeature color is distorted (e.g., white is not white)

Post by rovmis »

Hi there,

I'm having a bit of difficulty with modifying color in the Friggeri template, namely the "header" color is turning out to be pink and not white in regular text.

Here's the code block I've written:

Code: Select all

\newenvironment{headerInfo}{%
  \let\oldsection\section
  \renewcommand{\section}[1]{
    \par\vspace{\baselineskip}{\Large\headingfont\color{header} ##1}
  }
  \begin{textblock}{3.6}(16, 1.5)
  \begin{flushright}
  \addfontfeature{Color=header}
  \obeycr
}{%
  \restorecr
  \end{flushright}
  \end{textblock}
  \let\section\oldsection
}
and here's it invocated in the .tex file:

Code: Select all

\begin{headerInfo}
  test text
\end{headerInfo}
But here's what it looks like:
Image

What I don't understand is that the section text in the environment turns out as white just fine, but the regular text doesn't. Any idea why the colors are getting changed and how to fix this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

addfontfeature color is distorted (e.g., white is not white)

Post by Johannes_B »

Welcome to the forum and sorry for the late reply,

i was quite busy the last days and didn't have time to look into it closely. For now, add \color{white} before \obeycr.

It seems that you are doing things much more complex and hard as needed. Sadly, that is often the case when using templates. You are using advanced mechanics to change stuff, not succeeding leads to dissatisfaction.
I always promote reading some introductory material, a very good resource: LaTeX for complete novices.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply