-
When using ---
title: Hello World
jupyter: julia-1.8
---
```{julia}
#| echo: false
#| fig-cap: "My Plots"
#| fig-subcap:
#| - "Plot A"
#| - "Plot B"
#| layout-ncol: 2
using Plots
plot(rand(25)) |> display
plot(rand(25)) |> display
```
```{julia}
#| echo: false
#| fig-cap: "My Plots 2"
plot(rand(25)) |> display
``` The resulting *.tex contains \begin{figure}
\begin{minipage}[t]{0.50\linewidth}
{\centering
\raisebox{-\height}{
\includegraphics{subcap_files/figure-pdf/cell-2-output-1.pdf}
}
\caption{Plot A}
}
\end{minipage}%
%
\begin{minipage}[t]{0.50\linewidth}
{\centering
\raisebox{-\height}{
\includegraphics{subcap_files/figure-pdf/cell-2-output-2.pdf}
}
\caption{Plot B}
}
\end{minipage}%
\newline
\begin{minipage}[t]{0.50\linewidth}
{\centering
My Plots
}
\end{minipage}%
\end{figure} |
Beta Was this translation helpful? Give feedback.
Answered by
agerlach
Dec 19, 2022
Replies: 1 comment
-
I figured it out. You need to add a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
agerlach
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out. You need to add a
#| label: