The bookly template is a Typst package designed for writing academic documents such as theses, French habilitations, or scientific books. It provides a structured format that adheres to academic standards, making it easier for authors to focus on content rather than formatting.
This section provides the minimal amount of information to get started with the template. For more detailed information, see the manual.
To use the bookly template, you need to include the following line at the beginning of your typ file:
#import "@preview/bookly:1.0.0": *After importing bookly, you have to initialize the template by a show rule with the #bookly() command. This function takes a set of argument to customize the document.
title: Title of the bookauthor: Author of the bookbook-config: The dictionary allows you to customize various aspects of the book
Example
#show: bookly.with(
author: "Author Name",
book-config: (
fonts: (
body: "Lato",
math: "Lete Sans Math"
),
theme: "modern",
lang: "en",
logo: image("path_to_image/image.png")
)
)- Themes:
classic,modern,fancy,orly - Layout: "standard" and "tufte"
- Language support: English and French
- Font customization: Body and math fonts can be customized
- Environments:
front-matter,main-matter,appendix,back-matter - Outlines:
tableofcontents,listoffigures,listoftables,minitoc - Part and chapter definition:
part,chapter,chapter-nonum
Note: The chapters can be also written using the Typst standard markup syntax.
-
Subfigures - based on the
subparpackage#subfigure( figure(image("image1.png"), caption: []), figure(image("image2.png"), caption: []), <b>, columns: (1fr, 1fr), caption: [Figure title], label: <fig:subfig>, )
-
Equations
-
Boxed equations
$ #boxeq[$p(A|B) prop p(B|A) space p(A)$] $
-
Unnumbered equations
#nonumeq[$integral_0^1 f(x) dif x = F(1) - F(0)$]
-
Subequation numbering based on the
equatepackage
-
-
Information boxes
#info-boxfor remarks#tip-boxfor tips#important-boxfor important notesproof-boxfor proofsquestion-boxfor questionscustom-boxfor user defined boxes
-
book-title-pagefor defining the title page of a book -
thesis-title-pagefor defining the title page of a thesis -
back-coverfor defining the back cover of a book
For more information, please refer to the manual.
The template is under development. Here is the list of features that are implemented or will be in a future version.
Themes
-
fancy(default) -
modern -
classic -
orly(O'Reilly style)
Layout
- Standard layout
- Tufte layout
Cover pages
- Title page
- Back cover
Environments
- Creation of the
front-matterenvironment - Creation of the
main-matterenvironment - Creation of the
appendixenvironment
Parts and chapters
- Creation of a document
part - Creation of a document
chapter - Creation of an unnumbered
chapter
Tables of contents
- Creation of the table of contents
- Creation of the list of figures
- Creation of the list of tables
- Creation of a mini table of contents at the beginning of chapters using the
suboutlinepackage - Customization of entries (appearance, hyperlink) by modifying the
outline.entryelement - Localization of the different tables
Figures and tables
- Customization of the appearance of figure and table captions depending on the context (chapter or appendix)
- Short titles for the lists of figures and tables
- Creation of the
subfigurefunction for subfigures via thesubparpackage
Equations
- Adaptation of equation numbering depending on the context (chapter or appendix)
- Creation of a function to highlight important equations
- Creation of a function to define equations without numbering
- Use of the
equatepackage to number equations in a system like (1.1a)
Boxes
- Creation of information boxes to highlight important content
Bibliography
- Verification of the reference list via
bibtex - Same for
hayagriva
MIT licensed
Copyright © 2025 Mathieu AUCEJO (maucejo)