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

How to change the front page stripe color #171

Open
gpmartinson opened this issue Dec 17, 2021 · 3 comments
Open

How to change the front page stripe color #171

gpmartinson opened this issue Dec 17, 2021 · 3 comments

Comments

@gpmartinson
Copy link

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

@sikouhjw
Copy link
Contributor

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}

@gpmartinson
Copy link
Author

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

@sikouhjw
Copy link
Contributor

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}

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

2 participants