Technische Universität Darmstadt
02 Jul, 2025
Codeblock template: TBD
:::
block will not work: Need a line of content before(extended syntax for qmd is at the end)
To manual line break, \n
will not work -> use <br>
Centering : There is only one option known to work, style="text-align:center"
. Put this into delimiters
In fact, anything to be centered can enter a centered generic block, including images
You can stack stuff on top of each other (any block) with the .r-stack
property
See how it works? {.fragment}
.r-stack
behaviour:
.fragment
implicitly splits into blocks not marked with .fragment to group with ones above..columns
, care is needed:
style="width: 100%;"
::: {.block}
::: {.column} :::
width=
style="width: 40%"
is NOT correct!Codeblock template: 3 Columns
:::::: {.r-stack }
:::: {.columns style="width: 100%;" .fragment}
::: {.column width="50%"}
Content left
:::
<!-- left col -->
::: {.column width="50%" style="text-align:right"}
Content right
:::
<!-- right col -->
::::
<!-- cols -->
::: {.block .fragment}
Content after
:::
<!-- middle overlay -->
::::::
<!-- 3-cols block -->
Results in
Content left
Content right
Content after
Codeblock template: 3 Columns
:::: {.columns style="width: 100%;"}
::: {.column width="50%" .fragment fragment-index=1}
TopLeft
:::
<!-- left col -->
::: {.column width="50%" style="text-align:left" .fragment}
TopRight
:::
<!-- right col -->
::::
<!-- top cols -->
:::: {.columns style="width: 100%;" .fragment}
::: {.column width="50%"}
BottomLeft
:::
<!-- left col -->
::: {.column width="50%" style="text-align:left" .fragment}
BottomRight
:::
<!-- right col -->
::::
<!-- bottom cols -->
TopLeft
TopRight
BottomLeft
BottomRight
add :::::: {.r-stack }
above
add after to make TBD aligned photo block:
test for block:
content
test for column split:
content
{.absolute top=200 left=0 width="350" height="300"}
, vice versaCodeblock template: Overlaid image, 2 steps
fig-align="center"
{style="key:value;"}
.smaller
{key}
s:
font-size: {#}%;
.scrollable
scroll long code.fragment
delay display until next arrow cmdstyle="text-align:center"
to align center anything (text).r-stretch
vertical stretch to fill (no wrapping)
{.nostretch}
::: {.panel-tabset} :::
, with ###
being each tab
WARNING!
using line break ---
to force new slide will confuse yaml header -> unsafe
Instead , use other line break strings like ***
or ___
For a text:
Normal fragment are its own line/block , wrapped in .fragment
But if you want to do it inline,
use :::: {.inline-fragment}
(4x:) in addition, wrapping the block.
this was hacked with css
For irregular order, add fragment-index=
indexed fragments will show first by defaul ie. cannot intercept ordering implicitly
For an equation: \[
x =
\class{fragment}{{} x(x+1) + 1(x+1)}
\] Use \class{fragment}{ ... }
, but ordering appearance here is impossible
automatic .fragment
Citation with footnotes 1 via:
Render code with “{.code}” eg. {.python}
code-line-numbers=
, no spaces!|
separation|
at start{.python code-line-numbers="7,9|10"}
#| label: fig-1
#| fig-cap: "Demo plot name"
#| echo: true
#| output-location: column
import numpy as np
import matplotlib.pyplot as plt
r = np.arange(0, 2, 0.01)
theta = 2 * np.pi * r
fig, ax = plt.subplots( subplot_kw = {'projection': 'polar'} )
ax.plot(theta, r);ax.set_rticks([0.5, 1, 1.5, 2]); ax.grid(True) ; plt.show()
tagalong css styles with style="key:value;"
code wrapping does not work (yet)
(see forced squashing) Code should be separate from source items, size adjustment & other formatting likely
Or to dump the plot to next slide (no heading), use
#| echo: true
#| output-location: column
To really echo true source, use output options:
Is a global switch. Individual persistence currently impossible
(this is to test reveal-header)
This is a check for persistent header: h2 is included h3 will not be included in header persistence -> needs to be numbered and retyped
content..
content…
here we see a need for h3 persistence: h3 has to be manually retyped again!
Newline requirements are strict. Before anyblock needs a newline to break that block - anything is a block
Restrictions with list
:::
indent must EXACTBuilt-in
{.callout-note}
{.callout-tip}
{.callout-caution}
{.callout-warning}
{.callout-important}
TODO https://github.com/Martinomagnifico/quarto-simplemenu?tab=readme-ov-file
Alt + Click
(or Ctrl + Click on Linux)s
m
## {auto-animate=true}
between 2 codeblocks
Tinh Vo, @Event