How to have a two-column layout to be non-float when compiled to PDF? #11849
-
DescriptionConsider the following example: ---
title: "Untitled"
format:
pdf:
keep-tex: true
fig-pos: H
---
![Elephant](elephant.png)
With layout:
:::: {layout="[0.5, 0.5]"}
:::{}
Text
:::
:::{}
![Elephant](elephant.png)
:::
:::: The first figure is compiled to PDF as this:
I.e., it is not actually float (due to
I.e., this will be a float! (Yes, there is an How can I achieve that the two-column layout itself is non-float, similar to the first figure...? As you can see, the Result of quarto check: Quarto 1.6.40
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.6.40
Path: C:\Program Files\Quarto\bin
CodePage: 1250
[>] Checking tools....................OK
TinyTeX: (external install)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Using: TinyTex
Path: C:\Users\username\AppData\Roaming\TinyTeX\bin\windows\
Version: 2024
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.13.1
Path: C:/Program Files/Python313/python.exe
Jupyter: 5.7.2
Kernels: python3
[>] Checking Jupyter engine render....OK
[>] Checking R installation...........OK
Version: 4.4.2
Path: C:/PROGRA~1/R/R-44~1.2
LibPaths:
- C:/Users/username/AppData/Local/R/win-library/4.4
- C:/Program Files/R/R-4.4.2/library
knitr: 1.49
rmarkdown: 2.29
[>] Checking Knitr engine render......OK |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
Since this is done either by Quarto or Pandoc, you are currently left with using raw content block. Unfortunately, not everything can be abstracted as everyone wants in Markdown for all supported formats. |
Beta Was this translation helpful? Give feedback.
-
Since this is done either by Quarto or Pandoc, you are currently left with using raw content block. Unfortunately, not everything can be abstracted as everyone wants in Markdown for all supported formats. |
Beta Was this translation helpful? Give feedback.
-
Images / figures don't have the same treatment. Since it works, what's the harm? (I am not saying there are no improvements to be made to be clear) |
Beta Was this translation helpful? Give feedback.
-
For reference as it may be related: |
Beta Was this translation helpful? Give feedback.
The figure is needed to allow the whole "layout" to be a cross-reference for instance when you want to make composite figure/table/whatever.
The answer to add
H
or whatever: