ElegantBook icon indicating copy to clipboard operation
ElegantBook copied to clipboard

How to change the front page stripe color

Open gpmartinson opened this issue 2 years ago • 3 comments

I have changed the theme for the book but the front page still has the same orange stripe. Is there a way to change this. Below is the pre-amble to the book \documentclass[color=green]{elegantbook}

\usepackage{suffix} \newcommand\chapterauthor[1]{\authortoc{#1}\printchapterauthor{#1}} \WithSuffix\newcommand\chapterauthor*[1]{\printchapterauthor{#1}}

\makeatletter \newcommand{\printchapterauthor}[1]{% {\parindent0pt\vspace*{-25pt}% \linespread{1.1}\large\scshape#1% \par\nobreak\vspace*{35pt}} @afterheading% } \newcommand{\authortoc}[1]{% \addtocontents{toc}{\vskip-10pt}% \addtocontents{toc}{% \protect\contentsline{chapter}% {\hskip1.3em\mdseries\scshape\protect\scriptsize#1}{}{}} \addtocontents{toc}{\vskip5pt}% } \makeatother \newenvironment{dedication} { \cleardoublepage \thispagestyle{empty} \vspace*{\stretch{1}} \hfill\begin{minipage}[t]{0.66\textwidth} \raggedright }% { \end{minipage} \vspace*{\stretch{3}} \clearpage }

\title{This is Us} \subtitle{A Personal Narrative Collection: \ Perspectives from English Language Learning Students} \institute{Roseville Area High School} \author{RAHS EL Students} \version{2021-22} \date{\today}

\extrainfo{“"We are never truly loved, until we are loved for WHO and not WHAT we are”” --― Olaotan Fawehinmi}

\cover{IMG_20200711_130227.jpg}

\begin{document}

\maketitle

gpmartinson avatar Dec 17 '21 14:12 gpmartinson

You specified color=green, the cover color has changed from \definecolor{structurecolor}{RGB}{60,113,183} to \definecolor{structurecolor}{RGB}{0,120,2}. If you want to customize the colors, please select nocolor or use color=none and declare the main, second, and third colors in the preamble section as follows:

\definecolor{structurecolor}{RGB}{60,113,183}
\definecolor{main}{RGB}{0,166,82}
\definecolor{second}{RGB}{255,134,24}
\definecolor{third}{RGB}{0,174,247}

sikouhjw avatar Dec 17 '21 14:12 sikouhjw

It's still orange. Using Overleaf if that matters.

gpmartinson avatar Dec 17 '21 14:12 gpmartinson

It's still orange. Using Overleaf if that matters.

You need to change the color like this.

\RequirePackage[table]{xcolor}
\definecolor{structurecolor}{RGB}{0,0,0}
\definecolor{main}{RGB}{0,0,0}
\definecolor{second}{RGB}{0,0,0}
\definecolor{third}{RGB}{0,0,0}
\documentclass[color=none]{elegantbook}
\begin{document}
  \maketitle
\end{document}

sikouhjw avatar Dec 18 '21 07:12 sikouhjw