Block content can be useful for informing or alerting your readers about a specific topic.
We use the awesomebox
and tcolorbox
Latex packages for colored block content.
For supplemental information, you can use notes, tips, info, error, and warning elements. Each block serves a specific semantic purpose.
tcolorbox
is a well-known latex package that generates a configuration for colored and framed text boxes with a heading line.
Many special colored boxes are designed for the MPIThemes package.
The first part of the boxes is about highlighting the texts in the report.
These environments include:
The above blocks have two versions, with and without titles. To use the second type, it is sufficient to write the block' name with a small letter like rmdtip.
::: {.rmdThink data-latex=""} Lorem Ipsum ... :::
::: {.rmdthink data-latex=""} Lorem Ipsum ... :::
The other type of block is related to mathematical writing. The list of these blocks includes:
:::: {.Theorem data-latex="{Pythagorean theorem}"} This is a theorem about right triangles and can be summarised in the next equation \[ x^2 + y^2 = z^2 \] ::::
awesomebox
's aim is to use FontAwesome 5
icons to simplify the illustration of these boxes.
Some examples of block environments are shown below.
::: {.noteblock data-latex=""} Lorem Ipsum ... :::
::: {.tipblock data-latex=""} Lorem Ipsum ... :::
::: {.warningblock data-latex=""} Lorem Ipsum ... :::
::: {.cautionblock data-latex=""} Lorem Ipsum ... :::
::: {.importantblock data-latex=""} Lorem Ipsum ... :::
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.