-
Notifications
You must be signed in to change notification settings - Fork 175
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
Themes #334
Comments
Currently, we only have a single default HTML theme available. Multiple themes has been a common user request (see #112), so we'd like to develop alternative themes in the future. @thorowitz if there are specific tweaks you'd like to the theme, then let us know here. Many things are possible with small changes to |
Changing the font and font size is my basic request. More complex would be changing the citation style. |
A bit about changing these aspects is metnionted in USAGE.
Changing the citation style to an existing CSL style is as simple as changing a single line. See #242 (comment)
@vincerubinetti have we explained in any issues how to change the font? Can you point @thorowitz to which lines of |
Luckily changing the font is very easy. You can import online fonts, like Google Fonts, right at the top of rootstock/build/themes/default.html Lines 5 to 6 in 073ce0e
Then to apply the font to everything, replace "Open Sans" on this line with your desired font name: rootstock/build/themes/default.html Line 15 in 073ce0e
You can put multiple fonts there, separated by comma, and for each character of text in your document, the browser will try the left-most font first, then try the next if the it isn't installed on the user's system or if it font doesn't have that particular text character, and so on. |
I was able to change the font, as described. However, I have not been able to change the CSL style. I think the directions in comment #242 may be out of date. The |
@thorowitz sorry about the outdated documentation. The CSL behavior changed in #290. Now the CSL style is specified in a pandoc defaults in line 12 of the Is that the part of the Pandoc defaults you already tried editing? Let's keep this issue open until we update the CSL information in |
Yes, I tried to edit common.yaml. It failed with |
Instead of pointing to a URL, I copied the app.csl file into my build/assets directory, and then changed Pandoc-defaults to point to that file. Success! |
Opened #338. @thorowitz can you see whether the updates in that PR clarify how to set the citation style? |
The Manubot manuscript promises that
Are there existing alternate themes available? Where would I find them?
The text was updated successfully, but these errors were encountered: