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
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.
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.