-
Hey there! Is rendering OJS output/viewofs (or even Julia) in PDFs supported? As far as I can tell, It's only doable when targeting HTML, since all I get when rendering to PDF is the code, without any ability for code folding either. If I'm correct, and this feature isn't supported, I'd be delighted to try and implement this. Much obliged for any help 😇 This project is sick. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 15 replies
-
Observable (OJS) cells are processed by the browser. The best way to export it to PDF is to print from your browser. What content from Julia are you trying to export? |
Beta Was this translation helpful? Give feedback.
-
I don't have Julia installed in my machine to provide you with a example. I believe that Quarto will try to render your document using Jupyter because it has a Julia cell and you are required to have a Julia kernel.
Can you share the reason that you want OJS? Would R work for you? One of the advantages of OJS is it's graph resolution of cell order. The way that I had work around this with R is big portion of my data processing is in a separate R script that export the important variables to a
For OJS, it is a Javascript library. Quartos creates the HTML with the OJS cells and leave for the browser to render it. It is for math with TeX. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the kind words! You're correct that this feature is currently not supported, and we appreciate the offer and enthusiasm. Unfortunately, adding support for HTML screen captures in PDF format is significantly trickier than it looks at first. There are a variety of reasons for this, but they all come down to the order in which operations currently happen in quarto. and by the time the PDF renderer figures out it needs to screenshot an HTML element, it's too late to schedule the rendering of the HTML format. With that said, this is an important feature and it's 100% on our radar (we just had a design meeting about it yesterday in fact). The current expectation is that this should land anywhere from 3-9 months out. |
Beta Was this translation helpful? Give feedback.
-
We do accept PRs w/ a contributor agreement: https://quarto.org/about.html#contribute |
Beta Was this translation helpful? Give feedback.
Thanks for the kind words! You're correct that this feature is currently not supported, and we appreciate the offer and enthusiasm.
Unfortunately, adding support for HTML screen captures in PDF format is significantly trickier than it looks at first. There are a variety of reasons for this, but they all come down to the order in which operations currently happen in quarto. and by the time the PDF renderer figures out it needs to screenshot an HTML element, it's too late to schedule the rendering of the HTML format.
With that said, this is an important feature and it's 100% on our radar (we just had a design meeting about it yesterday in fact). The current expectation is that this should l…