Open eldobbins opened 1 month ago
Have experimented with rendering as PDF. Quarto uses KOMA-script to use defined LaTeX document classes, so formatting a report is super easy.
Working and looking good:
Problems:
So considering just those things, generating a PDF is pretty easy...
ojs figures are rendered by the browser when the HTML pages are viewed - not by Quarto. So the rendered PDF only has code - not the figures.
Quarto "recommends" to print pages from the browser to PDF files = twisted. In 2022, the prediction was that adding ojs rendering would be implemented in 3-9 months.
Also:
How to print website to PDF?
Note: the Quarto rendered HTML pages (_site/methods.html
) are full of javascript not static images in _site_images
. Of course! That was the point. So the converter has to render the js.
At the moment, we are in a bind over two issues:
First of all, our figures are built in OJS, which needs some workarounds to render into a static images.
Second, Quarto has conditional code execution, but only for R blocks. So we can't turn OJS blocks on/off depending on render format.
What if we thought of the PDF as a different beast with static figures, not as a differently rendered version of the interactive figures? That would broaden the applicability of Quarto to article and report generation without relying on an intermediate interactive version.
The steps of this would look like
Deadline for this would be July 1
Neil found it easier to work with PDFs rather than the web pages.
Example: https://openscapes.github.io/booklet/. (see the PDF symbol under the icon in the left margin?)