Replies: 5 comments 12 replies
-
Did you try doing (I just worked on a book for a client and did not have the issue, but I don't use UI) edit: you might want to cleanup your |
Beta Was this translation helpful? Give feedback.
-
I'm sorry that you're running into this. It's definitely a bug somewhere which someone at Posit should address. As @mcanouil mentioned, we need to sort out what RStudio does with those options. Let me do a bit of internal investigation and get back to you. |
Beta Was this translation helpful? Give feedback.
-
@friendly when you do call This is done to get a clean state to re-render everything. But I am curious if this is a problem in the UI and if a call to
Several hints to ease your workflow:
Those may seems advanced, but they can probably help in your workflow at some point. Hope it helps. We'll see with RStudio folks to improve the experience in the UI, and make that clear. |
Beta Was this translation helpful? Give feedback.
-
Thx @mcanouil and @cderv for these helpful comments. I just tried from the terminal
Yet, in this, the problem of xrefs in the HTML version remains the same --they all appear as Thus, this approach is of no use to me -- I still have to re-render to HTML to get the web version correct. I think this should be classified as a bug. What I have in my _quarto.yml may help to understand what's happening here. At the top, I define the
Note that I had tried using I also defined the
But, then each in each
Incremental rendering This works very well for the HTML version: The current chapter is rendered, and the I'll look into I've looked at the info on Quarto profiles, but I don't see how to adopt it for my simple (??) situation of wanting to get both HTML & PDF without tears. |
Beta Was this translation helpful? Give feedback.
-
SUCCESS! For the record: I get both PDF and HTML versions with the UI menu
This is despite the fact that my
I owe you guys several rounds of drinks next if we ever meet in person, but I also acknowledge your help in the Preface. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
[
ENV: R 4.5.1 / RStudio 2025-05.0-496 / Quarto: 1.7.29
if useful, here is my _quarto.yml
]
When I started writing my book, I chose to use Quarto over bookdown because I thought it would be easier to produce both the printed PDF and online HTML versions from the same source (using conditikonal divs like
.content-visible when-format=
)I mostly worked with the HTML version, but now that it's nearly done, I am more frequently compiling both versions, and run into the following problems
Build -> Render book -> PDF format
, all thedocs/*.html
files are deletedalong with the
.png
images underdocs/
(I'm usingfriendly.github.io
to host the online version.). So,, I have to render it again in HTML.Build -> Render book -> All formats
, all of the cross-references in the HTML version appear incorrectly asFigure fig-tag
rather thanFigure 2.1
. Same for chapter/section xrefs, as shown below.Consequently, when I'm done with an editing pass, I have to do separate runs of both
All formats
followed byHTML format
before Igit push
. This is a pain, b/c it takes ~ 15 min for a single pass.Unless I've missed something, I think this might count as a bug in Quarto rendering.
Beta Was this translation helpful? Give feedback.
All reactions