Miscellaneous

Bookly provides several other helper functions to facilitate the writing of a book or a thesis and the creation of custom themes.

reset-counters

#reset-counters
Command

Resets the counters of equations, figures, tables, side notes and footnotes. The built-in themes call it at the beginning of each chapter.

row-img

#row-img(logo)
Argument
<logo>array

Array of images to display in a row.

#row-img((
  image("images/logo1.png", width: 20%),
  image("images/logo2.png", width: 20%),
  image("images/logo3.png", width: 20%),
))

noindent

#noindent
Command

Disables the indentation of a given paragraph when the par-indent option is enabled.

#noindent This paragraph will not be indented.

partial-outline

#partial-outline
Command

Displays a partial outline of the document, showing only the chapters and sections between the current part and the next one. This function is useful to create a mini table of contents for a specific part of the document (see the obook theme).

show-if

#show: show-if(condition, func)
Command

Applies the show rule func only if condition is true. This is useful in custom themes, for instance to apply a rule only in the tufte layout.

#show: show-if(states.tufte.get(), it => {
  set text(size: 0.9em)
  it
})