Skip to content

How to handle figure panels in a PDF book output? #11657

Answered by mcanouil
karaesmen asked this question in Q&A
Discussion options

You must be logged in to vote

Here is an example using 1.6.39

Input Output
---
title: "Reproducible Quarto Document"
format: pdf
engine: markdown
---

::: {#fig-placeholder layout-ncol="2"}

![An image]({{< placeholder 60 40 >}}){#fig-a}

![An image]({{< placeholder 60 40 >}}){#fig-b}

![An image]({{< placeholder 60 40 >}}){#fig-c}

![An image]({{< placeholder 60 40 >}}){#fig-d}

Representative PCA plots showing the first two principal components,
which capture the majority of the variance in the data.
PCA plots are colored by (a) histology, (b) RNA assay,
(c) sample tumor percentage, and (d) tissue site.

:::


You can cross-reference @fig-a and @fig-b in the text, or the whole figure @fig-placeholder.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mcanouil
Comment options

Answer selected by karaesmen
@karaesmen
Comment options

@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
latex LaTeX engines related libraries and technologies figures
2 participants