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-next: 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-nextbool

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-next. Controls spacing towards next block.
bottom-boxbool

false

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

Warning

The stretch-to-next 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 #

Warning

This function is currently not working due to unwieldy file-path handling. See #971 for more details.

bibliography-box(
    bib-file: str,
    text-size: length,
    title: none content,
    style: str,
    stretch-to-next: 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-nextbool

false

See Common Box.