Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upclashes with LaTeX color package #17
Comments
|
Hm I think @aaronwolen or I have not encountered that. Can you post a minimal example exhibiting this? Also, I may even be in favour of turning Thoughts? |
|
Thanks for reporting! I was able to reproduce the error and agree the clash is caused by wallpaper loading the color package. I'll try to dig into this later this week. Also happy to review a PR! (@eddelbuettel — you are too damn quick! |
|
Ok, I think that this line is the culprit. If you remove the second line in this snippet of the template: $if(letterhead)$
\usepackage[dvipsnames]{color}
\usepackage{wallpaper}
\ThisULCornerWallPaper{1}{$letterhead$}
$endif$All works. Not sure what else could go wrong. I don't know what this option is for. I created a fork with an update. I'll send a PR so you can evaluate it better. |
|
@eddelbuettel I wouldn't be in favour of removing the |
|
Now merged (with minor cleanups) so closing. Thanks for catching this! |
This took me a while to find out, so maybe it can be documented somewhere?
If you use
rendering the file will give you a LaTeX option clash, because the color package will be included twice: once because
knitralready includes themdframespackage, and once just before thewallpaperpackage is loaded.However, if you also include the option
it all runs fine.
I can do a PR but not sure where you want to put it: in the
READMEand/or under?linl