Replies: 6 comments 6 replies
-
You can use the option as cell chunk option.
|
Beta Was this translation helpful? Give feedback.
-
As @mcanouil noted, you can set the location per chunk, but right now it looks like you can't set the document globally to use the margin location and then override that on a per chunk basis. I'll try to take a quick look this weekend to see if that is something we could make work, as I think it would be pretty helpful for large documents... |
Beta Was this translation helpful? Give feedback.
-
My last reply is not very visable so I'd like to restate it here. Is it possible to modify Or is this really the same task as processing the |
Beta Was this translation helpful? Give feedback.
-
How do you override the cap location per chunk with an image file? Most examples on the Maybe the solution is to use a R code that show the image, but I have never used R before. |
Beta Was this translation helpful? Give feedback.
-
Just to illustrate, look what happens when I try to add a figure in the margin: https://share.getcloudapp.com/E0uZoodE This is the code. :: {.column-margin #fig-ars_magna_disc label="fig-ars_magna_disc"}
![](imgs/ars_magna_disc.png)
Example of one of Lull’s Ars Magna’s paper discs.
:::
In the 13^th^ century, the Catalan philosopher Ramon Lull wanted to produce all statements the human mind can think. For this task, he developed *logic paper machines*, discs of paper filled with esoteric coloured diagrams that connected symbols representing statements. Unfortunately, according to @gardner:1959, in a modern reassessment of his work, *"it is impossible, perhaps, to avoid a strong sense of anticlimax"* [@gardner:1959]. With megalomaniac self-esteem that suggests psychosis, his delusional sense of importance is more characteristic of cult founders. On the bright side, his ideas and books exerted some magic appeal that helped them be rapidly disseminated through all Europe [@gardner:1959].
::: {.column-margin}
![](imgs/ars_magna_disc.png)
Example of one of Lull’s Ars Magna’s paper discs.
:::
I don't know how to add a label to the margin figure. I also have tried: ::: {.column-margin}
![](imgs/ars_magna_disc.png){#fig-ars_magna_disc label="fig-ars_magna_disc"}
Example of one of Lull’s Ars Magna’s paper discs.
::: but didn't work. |
Beta Was this translation helpful? Give feedback.
-
I am also interested in being able to override caption location on a (non-code) per-figure basis. I would expect there to be a CSS parameter for the div like
Oh wait...I'm discovering the top-level YAML config isn't working for LaTeX...why is that? I tried fig-cap-location: margin and it only worked for my code-generated figure and not all div ones. All captions are in the margin as expected for HTML EDIT: I've discovered that in LaTeX, the div-style figures with captions don't respond to |
Beta Was this translation helpful? Give feedback.
-
I specify cap-location: margin in my Quarto book yaml. For the few figures that have multiple panels this causes the figures to no longer be rendered in a matrix but rather as larger individual plots. Is there a way to override cap-location for one code chunk? Here's some test code:
title: "Test"
format:
html:
self-contained: true
cap-location: margin
Beta Was this translation helpful? Give feedback.
All reactions