Boxes

Boxes #

Please note that most values which have default values none are probably specified either by a theme or layout.

Common Box #

This box is mostly meant as a shared template for other functions to be calling. While it can be used individually, users should strongly consider relying on other functions.

The common-box method creates two rectangles, one for the heading and one for the body of the box. Both are optional and can be left out. This box also automatically considers the currently defined theme and styles the box accordingly.

common-box(
    body: none content,
    heading: none content,
    heading-size: none length,
    heading-box-args: none dictionary,
    heading-text-args: none dictionary,
    body-size: none length,
    body-box-args: none dictionary,
    body-text-args: none dictionary,
    stretch-to-bottom: bool,
    spacing: none length relative,
    bottom-box: bool,
) --> content
ArgumentTypeDefault ValueDescription
bodynone contentnoneThe lower rectangle containing the body of the box.
headingnone contentnoneThe upper rectangle which defines the heading of the box.
heading-box-argsnone dictionarynoneArguments given to the box-type function that creates the heading.
heading-text-argsnone dictionarynoneArguments given to the text function which creates the heading.
body-sizenone lengthnoneSize of the body.
body-box-argsnone dictionarynoneArguments given to the box-type function that creates the body.
body-text-argsnone dictionarynoneArguments given to the text function which creates the body.
stretch-to-bottombool

false

The vertical size of the box is stretched such that it fills out the remainder of the vertical space.
spacingnonenoneOnly useful when specifying stretch-to-bottom. Controls spacing towards next block.
bottom-boxbool

false

The box should be aligned towards the bottom of the page.

Warning

The stretch-to-bottom should not be used on a block which is already maximal by itself. Doing so will most likely result in glitches.

Example #

#common-box(
    heading: "peace-of-posters - Create scientific posters",
)

Column Box #

column-box(
    body: content,
    ..args
) --> content

All arguments align with common-box but the column-box requires at least a body.

Bottom Box #

A box that will be placed at the bottom of the page. It is also possible to specify a logo and text-width of the remaining content.

bottom-box(
    body: content,
    text-relative-width: relative,
    logo: none content,
    ..args
) --> content
ArgumentTypeDefault ValueDescription
bodycontentBody of the bottom box.
text-relative-widthrelative70%Space left of the logo where text can be displayed.
logonone contentnoneThe content which should be used as logo. Usually specified by an image. It will be aligned towards the right side of the box.

Bibliography Box #

bibliography-box(
    bib-file: str,
    text-size: length,
    title: none content,
    style: str,
    stretch-to-bottom: bool
) --> content
ArgumentTypeDefault ValueDescription
bib-filestrPath to the bibliography file.
text-sizelength24ptFont size of the bibliography.
titlenone contentnoneTitle of the Bibliography Box.
stylestr"ieee"Citation style.
stretch-to-bottombool

false

See Common Box.