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

control gradient degree in main section of betterland #112

Open
dr-JT opened this issue Nov 8, 2019 · 1 comment
Open

control gradient degree in main section of betterland #112

dr-JT opened this issue Nov 8, 2019 · 1 comment

Comments

@dr-JT
Copy link

dr-JT commented Nov 8, 2019

This is a very minor feature and does not deserve too much time spent on but I think it would be nice.

Also, for posterdown_html an option to set a color and or color gradient for the entire background (title section and body included)

@ethanweed
Copy link

For anybody who, like me, has found this post because you also want to alter the color gradient on your poster (or for myself, when I have forgotten this a year from now), I ended up achieving this by using the following method:

  1. Knit the poster
  2. Open the resulting html file in a text editor
  3. Find the line in the html that looks something like this: background-image: linear-gradient(#918E80 50%, #433F30);
  4. Change the percentage to whatever you like
  5. Save the html file with your changes
  6. Create a pdf from your altered html file using the following code in R: pagedown::chrome_print(PATH, format = "pdf") where PATH is the path to your html file (requires that you have Chrome installed)

By the way, this method also allowed me to control some things like the color of the author names and affiliations, which do have YAML keys, but which don't seem to work (at least for me).

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