-
DescriptionI'm using Quarto v1.3.433 on macOS 14.7.1 with the following specification in the
I am having difficulty understanding how figure panels are handled by LaTeX in the book context. Here are two examples showing 4 sub-figures in a panel in Chapter 3 of a quarto book. Example 1: no caption added at the sub-figure level, and sub-figures don't get any numbering (e.g. Figure 3.1.a would be preferred) ::: {#fig-pca-plots layout-ncol=2 fig-cap="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."}
![](PCA_fig1.png){width="50%"}
![](PCA_fig2.png){width="50%"}
![](PCA_fig3.png){width="50%"}
![](PCA_fig4.png){width="50%"}
::: Example 2: Same setup but with captions for each sub-figure ::: {#fig-pca-plots layout-ncol=2 fig-cap="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."}
![a](PCA_fig1.png){width="50%"}
![b](PCA_fig2.png){width="50%"}
![c](PCA_fig3.png){width="50%"}
![d](PCA_fig4.png){width="50%"}
::: Finally, if a panel figure is too long (or big), is there a way to push it to the next page rather than having it cut off at the end of a single page? Using the same example from above, but with ::: {#fig-pca-plots layout-ncol=1 fig-cap="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."}
![a](PCA_fig1.png){width="50%"}
![b](PCA_fig2.png){width="50%"}
![c](PCA_fig3.png){width="50%"}
![d](PCA_fig4.png){width="50%"}
::: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
1.3.433 is 1.5 years old. Quarto CLI is currently at 1.6.39. I highly suggest you upgrade your Quarto CLI version to the latest stable version if you can. Additionally, please provide fully reproducible example we can use to help you. Finally, figures and other elements like that need to be surrounded by empty line or then will be considered as part of the same line/paragraph. Test the following: ---
title: "Reproducible Quarto Document"
format: pdf
engine: markdown
---
## No empty lines
![An image]({{< placeholder 60 40 >}}){#fig-placeholder1}
![An image]({{< placeholder 60 40 >}}){#fig-placeholder2}
![An image]({{< placeholder 60 40 >}}){#fig-placeholder3}
![An image]({{< placeholder 60 40 >}}){#fig-placeholder4}
## Empty lines
![An image]({{< placeholder 60 40 >}}){#fig-placeholder5}
![An image]({{< placeholder 60 40 >}}){#fig-placeholder6}
![An image]({{< placeholder 60 40 >}}){#fig-placeholder7}
![An image]({{< placeholder 60 40 >}}){#fig-placeholder8} You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
Here is an example using 1.6.39