Book¶
For this example we want to render homage to Albert Einstein by creating a small book using the Wikipedia as our source.
The text was converted to LATEX then built using the book template.
This example demonstrates the use of front matter for citations, abbreviations, glossary, and index.
For this example, we decided to use a small paper size (A5) and a sans serif font (Adventor). The book is structured in parts and specific slots are used for the colophon, dedication, and preface. Here is the front matter used for this example:
title: Albert Einstein
subtitle: His Life and Achievements
date: 2025-03-15
edition: Wikipedia Adaptation
author: Wikipedia Contributors
publisher: Wikipedia Sourcebooks
imprint:
thanks: |
Adapted from the Wikipedia article “Albert Einstein” (retrieved ).
Thank you to the Wikipedia contributors whose work makes this example
possible.
copyright: |
Wikipedia contributors. Text licensed under Creative Commons Attribution-ShareAlike
International (CC BY-SA).
license: |
This TeXSmith example is derived from Wikipedia and is not affiliated
with TeXSmith. Reuse must credit Wikipedia and share under CC BY-SA .
press:
paper: a5
template: book
base_level: part
fonts: adventor
admonition_style: classic
slots:
colophon: Colophon
dedication: Dedication
preface: Preface
The example can be built independently using the CLI in the examples/book/ folder. The engine can be chosen between tectonic, xelatex, and lualatex
as follows:
texsmith book.md book.bib --template book --build --engine tectonic
The power of TeXSmith is that it can generate such complex documents from simple Markdown with no LATEX knowledge required and no LATEX toolchain installed. Fonts, toolchain, and image conversion are all handled automatically by TeXSmith in a single command.