Skip to content
Discussion options

You must be logged in to vote

Looks like Quarto handles fig-env="ENVRT" fig-pos="POS" by producing "\begin{ENVRT}[POS]" in LaTeX output, so it can't handle the fact that floatingfigure has an extra argument: with fig-pos="[r]{6cm" you get \begin{ENVRT}[[r]{6cm}]. Perhaps Quarto could introduce a fig-opt attribute for arbitrary additions, but it's not there yet.

A workaround would be to use conditional content to provide a raw LaTeX alternative for LaTeX/PDF output.

::: {.content-visible unless-format="pdf"}

![Voltaische Säule](./images/voltaicPillar.jpg){ width="4cm" }

:::

::: {.content-visible when-format="pdf"}

`\begin{floatingfigure}[r]{6cm}`{=latex}
![Voltaische Säule](./images/voltaicPillar.jpg){ width="4cm" }
`

Replies: 5 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@cscheid
Comment options

@jdutant
Comment options

@cscheid
Comment options

@cderv
Comment options

@MichelDSchmid
Comment options

Answer selected by MichelDSchmid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants