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

Pr add pdf functionality #65

Merged
merged 12 commits into from
Jul 17, 2024

Conversation

ianalexmac
Copy link
Collaborator

This PR add to the GitHub workflow in order to build out a very rough PDF report of the text and figures. Due to issues rendering Javascript content to PDF, most of the figures will not render and will print the code instead. This is to be expected, no need to worry!

The exception, and test of our workaround, is the Prices page, which has some clever conditional formatting to render certain code chunks when outputting HTML and other chunks when outputting PDF/LaTeX. In time, all pages will be built in this style and we will be sitting pretty. Until then, please wade through the chaos to see the Prices figures starting on page 50 of the PDF report, found here: https://github.com/ianalexmac/aetr-web-book-2024/blob/gh-pages/2024-Alaska-Electricity-Trends-Report.pdf

Compare these figures to the HTML versions found here: https://ianalexmac.github.io/aetr-web-book-2024/prices.html

These PDF figures look very similar to their HTML counterparts and, in fact, share some code. But they are two different visuals for the two different mediums. Further PRs will follow this pattern: rebuilt HTML figures to convert from OJS to ggplot+interactive, plus PDF figures built with straight ggplot.

Copy link
Collaborator

@eldobbins eldobbins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whew that tex stuff.

@eldobbins eldobbins merged commit ce36070 into acep-uaf:main Jul 17, 2024
@ianalexmac ianalexmac deleted the pr-add-pdf-functionality branch July 22, 2024 22:08
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

Successfully merging this pull request may close these issues.

3 participants