-
DescriptionUsing Quarto: 1.3.450 In a book project I have several animated
This worked for the HTML version before I added the The same thing happens in the PDF version: No image, unresolved reference. Is it that the figure label, More generally, I suspect I will run into other problems trying to allow for multiple formats for this book. Is there a more comprehensive guide for doing this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
You should separate conditional divs from cross-ref divs. Also why are you using raw HTML to include GIF? It should work using the markdown syntax without having to do anything. And if you really need raw HTML, put it in a raw code block: |
Beta Was this translation helpful? Give feedback.
-
Yes, I think that's what's happening. In this case, you need to move I actually am surprised that this was working before. I would have suspected that the repeated |
Beta Was this translation helpful? Give feedback.
-
The syntax for images as GIF is an image. ---
title: issue-8172
format:
html: default
pdf: default
---
But wait! Where does that 4D thing (a _tesseract_) come from?
To really see a tesseract it helps to view it in an animation over time (@fig-tesseract).
But like the Square, contemplating 3D from a
2D world, it takes some imagination.
::: {.content-visible when-format="html"}
{#fig-tesseract}
:::
::: {.content-visible when-format="pdf"}
{#fig-tesseract}
::: Screen.Recording.2024-01-08.at.19.46.00.mov |
Beta Was this translation helpful? Give feedback.
-
Can I suggest trying to think more from a user's perspective? I did read the docs and they were insufficient for me to solve this for my use case. Why? Because the "general enough" didn't provide guidance to what would differ inside conditional blocks. Cluttering can be avoided by simply having a separate linked document with examples. Alternatively, I wish someone could write a blog post on this topic. |
Beta Was this translation helpful? Give feedback.
I'm again surprised that the following works!