‘Ilm (Urdu: عِلْم) is the Urdu term for knowledge. It is pronounced as ill-lm.
A versatile, clean and minimal template for non-fiction writing. The template is ideal for class notes, reports, and books.
It contains a title page, a table of contents, and indices for different types of figures; images, tables, code blocks.
Dynamic running footer contains the title of the chapter (top-level heading).
See the example.pdf file to see how it looks.
You can use this template in the Typst web app by clicking "Start from template" on the
dashboard and searching for ilm
.
Alternatively, you can use the CLI to kick this project off using the command
typst init @preview/ilm
Typst will create a new directory with all the files needed to get you started.
This template uses the Iosevka font for raw text. In order to use Iosevka, the font must be installed on your computer. In case Iosevka is not installed, as will be the case for Typst Web App, then the template will fall back to the default "Fira Mono" font.
This template exports the ilm
function with the following named arguments:
Argument | Default Value | Type | Description |
---|---|---|---|
title |
Your Title |
content | The title for your work. |
author |
Author |
content | A string to specify the author's name |
paper-size |
a4 |
string | Specify a paper size string to change the page size. |
date |
none |
datetime | This date will be displayed on the cover page in the format: MMMM DD, YYYY . |
abstract |
none |
content | A brief summary/description of your work. This is shown on the cover page. |
preface |
none |
content | The preface for your work. The preface content is shown on its own separate page after the cover. |
bibliography |
none |
content | The result of a call to the bibliography function or none. Specifying this will configure numeric, IEEE-style citations. |
chapter-pagebreak |
true |
bool | Setting this to false will prevent chapters from starting on a new page. |
figure-index |
false |
bool | Setting this to true will display a index of image figures at the end of the document. |
table-index |
false |
bool | Setting this to true will display a index of table figures at the end of the document. |
listing-index |
false |
bool | Setting this to true will display a index of listing (code block) figures at the end of the document. |
The function also accepts a single, positional argument for the body.
The template will initialize your package with a sample call to the ilm
function in a
show rule. If you, however, want to change an existing project to use this template, you
can add a show rule like this at the top of your file:
#import "@preview/ilm:0.1.2": *
#show: ilm.with(
title: [Your Title],
author: "Max Mustermann",
date: datetime(year: 2024, month: 03, day: 19),
abstract: [],
preface: [],
bibliography: bibliography("refs.bib"),
figure-index: true,
table-index: true,
listing-index: true
)
// Your content goes below.