quarto-dev / quarto-dev/quarto-cli
Customize the `out-width` in multi-plot layouts on PDF output.
Open
Nobody has claimed this yet.
bug
crossref
latex
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
This is related to #2417.
Changing the out-width in a multi-plot layout is ignored for pdf output.
---
title: "Customize out-width in multi-plot layouts"
format:
pdf:
keep-tex: true
---
::: {#fig-elephants layout-ncol="2" width="49%"}
{#fig-surus}
{#fig-hanno}
Famous Elephants
:::
::: {#fig-elephants-1 layout-ncol="2"}
{#fig-surus-1 width="97.5%"}
{#fig-hanno-2 width="97.5%"}
Famous Elephants 1
:::
Custom widths are completely ignored on pdf output.
Generated tex
\begin{figure}
\begin{minipage}[t]{0.50\linewidth}
{\centering
\raisebox{-\height}{
\includegraphics{out-width_files/mediabag/surus.png}
}
}
\subcaption{\label{fig-surus}Surus}
\end{minipage}%
%
\begin{minipage}[t]{0.50\linewidth}
{\centering
\raisebox{-\height}{
\includegraphics{out-width_files/mediabag/hanno.png}
}
}
\subcaption{\label{fig-hanno}Hanno}
\end{minipage}%
\caption{\label{fig-elephants}Famous Elephants}
\end{figure}
\begin{figure}
\begin{minipage}[t]{0.50\linewidth}
{\centering
\raisebox{-\height}{
\includegraphics{out-width_files/mediabag/surus.png}
}
}
\subcaption{\label{fig-surus-1}Surus}
\end{minipage}%
%
\begin{minipage}[t]{0.50\linewidth}
{\centering
\raisebox{-\height}{
\includegraphics{out-width_files/mediabag/hanno.png}
}
}
\subcaption{\label{fig-hanno-2}Hanno}
\end{minipage}%
\caption{\label{fig-elephants-1}Famous Elephants 1}
\end{figure}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.