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

pdflatex breaks on headcolor option in Hyndman template #210

Open
AaronGullickson opened this issue May 30, 2022 · 0 comments
Open

pdflatex breaks on headcolor option in Hyndman template #210

AaronGullickson opened this issue May 30, 2022 · 0 comments

Comments

@AaronGullickson
Copy link

The headcolor YAML option in the Hyndman template allows you to specify the color of header text in hexidecimanl format(default is red which I do not care for). This was working fine until recently. However, now I get the following error whenever I reach the pdflatex stage of knitting:

! Missing number, treated as zero.
<to be read again> 
                   \edef 
l.10 \definecolor{headcolor}{HTML}{80}

The error seems to be because my headcolor is "000080" and this is being truncated somewhere as "80" which latex then rightly complains about as not being a proper hexidecimal code. If I put the leading zeroes back in in the produced tex document, it knits fine.

I have tried specifying headcolor without quotations and with a hash in front and neither works.

Repex is provided below. I just started with the basic Hyndman template and added the headcolor field.

---
name: Marie
surname: Curie
position: "Professor"
address: "School of Physics & Chemistry, École Normale Supérieure"
phone: +1 22 3333 4444
www: mariecurie.com
headcolor: "000080"
email: "[email protected]"
twitter: mariecurie
github: mariecurie
linkedin: mariecurie
date: "`r format(Sys.time(), '%B %Y')`"
output: vitae::hyndman
---

# Some stuff about me

 * I poisoned myself doing research.
 * I was the first woman to win a Nobel prize
 * I was the first person and only woman to win a Nobel prize in two different sciences.

# Education

* Some University
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

1 participant