Introduction to Linux: Markup Languages
Philipp Fruck & Pius Walter Markup Languages ██ Goal of this Lecture • Introduce markup languages and show their importance • Understand how tables are written in Markdown, Typst, and LaTeX • Learn how bibliographies work in LaTeX (incl. Zotero & Better BibTeX) • Explore Pandoc and its document-conversion capabilities • Know the role of LaTeX distributions (e.g., TeX Live) • Compare the differences between pdfLaTeX and XeLaTeX ██ Why? • Tables and citations are essential for academic writing • Pandoc is a key tool in modern documentation workflows • Understanding LaTeX distributions helps with installing and debugging • Choosing the right LaTeX engine improves compatibility and output quality Introduction to Linux: Markup Languages 2 / 20
Overview ██ What Are Markup Languages? ██ Markdown
• Text-based systems for structuring and formatting documents • Simple & lightweight
• Human-readable • Great for documentation, READMEs, notes
• Convert into other formats (HTML, PDF, slides, ...) • Today taking a look on ██ Typst
◦ Markdown ◦ Typst • New declarative typesetting
◦ LaTeX • Fast, modern, clear syntax
██ Advantages ██ LaTeX
• Easier consistent formatting compared to Word, etc. • Powerful scientific typesetting
• Similar to programming languages • Industry standard for math-heavy work
• Version control using Git ▓▓▓ When To Use What? • Markdown: documentation, blogs, lightweight notes
• Typst: structured documents, reports, modern workflows
• LaTeX: heavy mathematics, academic papers, journals
Introduction to Linux: Markup Languages 3 / 20
LaTeX vs. Typst ██ LaTeX: Classic Typesetting
\documentclass{article} % You can also use report,
LaTeX is extremely powerful but more verbose book, etc.
• 40+ years of tooling % Optional packages
• Academic gold standard \usepackage[utf8]{inputenc} % For UTF-8 encoding
• Mature packages \usepackage{amsmath, amssymb} % For math symbols
• Verbose syntax
• Large installation \title{My LaTeX Document}
\author{Your Name}
A "simple" LaTeX document snippet --> \date{December 2, 2025} % Or use \today for current
date
\begin{document}
...
\end{document}
Introduction to Linux: Markup Languages 4 / 20
Typst and Markdown ██ Typst: A Modern Alternative ██ Markdown
Typst is very fast and modern • Simple syntax with minimal markup
• Raw text is clean and easy to read without • Engine is written in Rust rendering
• Consists of a single static binary • Can be converted to HTML, PDF, slides, and many
• Much easier setup than LaTeX other formats
• Syntax is a wild mix - some like it, we don't • Widely supported, e.g., in GitHub, documentation,
• Built-in styling system blogs, notes, etc.
• Still a young ecosystem • Writers can concentrate on writing instead of
formatting A simple Typst document setup • Can include tables, code blocks, math, images,
links, and more with minimal effort #set page(size: "A4", margin: 2cm)
#set title["My Typst Document"]
#set author["Your Name"]
#set date[2025-12-02]
Introduction to Linux: Markup Languages 5 / 20
Markdown Structure ██ Level 1 Heading
# Level 1 Heading
This is an introductory paragraph under a level-1
This is an introductory paragraph under a level-1 heading.
heading.
▓▓▓ Level 2 Heading
## Level 2 Heading
More detailed section text goes here.
More detailed section text goes here.
Here is a simple unordered list
Here is a simple unordered list
- Apples • Apples
- Bananas • Bananas
Here is an ordered list Here is an ordered list
1. First step
2. Second step 1. First step
2. Second step
And finally, a nested list
- Programming languages And finally, a nested list
- Rust
- Python • Programming languages
◦ Rust
◦ Python Introduction to Linux: Markup Languages 6 / 20
Typst Structure = Level 1 Heading
This is an introductory paragraph under a level-1
heading.
== Level 2 Heading
More detailed section text goes here.
Here is a simple unordered list
- Apples
- Bananas
Here is an ordered list
1. First step
2. Second step
And finally, a nested list
- Programming languages
- Rust
- Python
Introduction to Linux: Markup Languages 7 / 20
LaTeX Structure \section{Level 1 Heading}
Introductory paragraph under a level-1 heading.
\subsection{Level 2 Heading}
More detailed section text goes here.
Here is a simple unordered list
\begin{itemize}
\item Apples
\item Bananas
\end{itemize}
Here is an ordered list
\begin{enumerate}
\item First step
\item Second step
\end{enumerate}
And finally, a nested list
\begin{itemize}
\item Programming Languages
\begin{itemize}
\item Rust
\item Python
\end{itemize}
\end{itemize}
Introduction to Linux: Markup Languages 8 / 20
Markdown Formatting Bold text
**Bold text**
Also bold text
__Also bold text__
Italic text
*Italic text*
Also italic text
_Also italic text_
Strikethrough
~~Strikethrough~~
<u>Underlined text</u>
<u>Underlined text</u>
<!-- Not standard, but supported in many Markdown <!-- Not standard, but supported in many Markdown
renderers --> renderers -->
[Link example](https://example.com) Link example (https://example.com)
Line<br>break Line<br>break
<!-- Not standard, but supported in many Markdown
renderers --> <!-- Not standard, but supported in many Markdown
renderers -->
▍ Italic text cannot be displayed in this presentation due to the font used!
Introduction to Linux: Markup Languages 9 / 20
Typst Formatting #text(weight: "bold")[Bold text]
_Italic text_ \
#emph[Italic text]
#strike[Strikethrough]
#underline[Underlined text]
#link("https://example.com")[Link example]
Line\ break
Introduction to Linux: Markup Languages 10 / 20
LaTeX Formatting \textbf{text}
\textit{Italic text}\\
\emph{Italic text}
% requires \usepackage{ulem}
\sout{Strikethrough}
\underline{Underlined text}
% requires \usepackage{hyperref}
\href{https://example.com}{Link example}
Line\\break
Introduction to Linux: Markup Languages 11 / 20
Mathematical Formulas ██ Typst██ LaTeX
$frac(a^2, 2)$ \[ \frac{a^{2}}{2} \]
$ \[
vec(1, 2, delim: "[") \begin{bmatrix}
$ 1 \\ 2
\end{bmatrix}
$ \]
mat(1, 2; 3, 4)
$ \[
\begin{pmatrix}
$ 1 & 2 \\3 & 4
mat(..#range(1, 5).chunks(2)) \end{pmatrix}
$ \]
$ \[
lim_x = \begin{pmatrix}
op("lim", limits: #true)_x 1 & 2 \\3 & 4
$ \end{pmatrix}
\]
\[
\lim_{x} = \operatorname{lim}_{x}
\]
Introduction to Linux: Markup Languages 12 / 20
Tables ██ Markdown ██ Typst ██ LaTeX
• Very simple table syntax • Built-in table type • Very flexible
• Limited styling in pure • Very clean syntax • Requires the tabular
Markdown • Supports alignment, styling, environment
• Extended features depend on table headers • Use booktabs for nicer tables
renderer (GitHub, Pandoc, etc.) #table( \begin{tabular}{l c r}
| **Name** | **Age** | **City** | columns: 3, \hline
|:---------|:-------:|---------:| align: (left, center, right), Name & Age & City \\
| Alice | 23 | Ulm | [*Name*], [*Age*], [City], \hline
| Bob | 21 | Mannheim | [Alice], [23], [Ulm], Alice & 23 & Ulm \\
[Bob], [21], [Mannheim], Bob & 21 & Mannheim \\
) \hline
▍ http://markdowntable.com \end{tabular}
▍ https://www.tablesgenerator.com/lat
▍ ex_tables
Name │ Age │ City![]()
![]()
──────┼─────┼───────── Alice │ 23 │ Ulm Bob │ 21 │ Mannheim Introduction to Linux: Markup Languages 13 / 20
Bibliography in LaTeX ██ Basics Import the package biblatex and add the bibliography
database file • Managed using BibTeX or BibLaTeX • Bibliography stored in .bib files
• Common fields: \usepackage[backend=biber,style=authoryear]{biblatex}
◦ author, title, year, journal, url, ... \addbibresource{refs.bib}
• Citation commands
◦ \cite{key}
◦ \parencite{key} (BibLaTeX) Use the references in the document
◦ \textcite{key} (BibLaTeX)
The .bib file (bibliography database file) According to \textcite{knuth1998}, ...
@book{knuth1998,
author = {Donald E. Knuth},
year = {1998},
title = {The {\TeX} Book},
publisher = {Addison-Wesley Professional}
}
Introduction to Linux: Markup Languages 14 / 20
Managing the Bibliography ██ Zotero ██ Better BibTeX (BBT)
• Free reference manager • Zotero plugin for LaTeX users
• Automatic metadata scraping from PDFs and websites • Adds
• Plugins for Word, LibreOffice and Firefox ◦ Better BibTeX keys (e.g., AuthorYearTitle)
• Stores references, notes, PDFs in a central library ◦ Automatic .bib export
◦ Auto-updating .bib on save
Why use it? • Perfect toolchain for LaTeX writing
• Easy to organise references • Sync across devices • Works extremely well with LaTeX Introduction to Linux: Markup Languages 15 / 20
LaTeX Distributions ██ What Is a LaTeX Distribution? ██ TeX Live Features
• Bundle of • Industry-standard distribution
◦ LaTeX engine (pdfTeX, XeTeX, LuaTeX, ...) • Updated yearly (TeX Live YYYY)
◦ Thousands of packages • Includes:
◦ Fonts ◦ LaTeX kernel
◦ Documentation tools ◦ BibLaTeX/Biber
• Needed to compile .tex files ◦ AMS packages
◦ Graphics and font packages ██ Common Distributions ◦ Many engines: pdftex, xetex, luatex
• TeX Live ██ Package Management
◦ Cross-platform (Linux, macOS, Windows) ◦ Very complete
◦ Package manager: tlmgr tlmgr install package
• MiKTeX tlmgr update --self
◦ Windows-focused tlmgr update --all
◦ Installs missing packages automatically
• MacTeX ◦ macOS version of TeX Live ██ Why TeX Live?
◦ Large but well-integrated • Best support on Linux • Most reproducible environment • Works perfectly with CI/CD pipelines Introduction to Linux: Markup Languages 16 / 20
Building a LaTeX project ██ pdfLaTeX ██ XeLaTeX
• Oldest and most stable • Modern engine
• Produces compact PDFs • Full Unicode support
• Limited font support (only Type 1 fonts by default) • Can use system fonts (e.g., Arial, Fira Code)
• UTF-8 works but sometimes tricky • Better for multilingual documents
• Best for: • Slightly slower than pdfLaTeX
◦ Scientific papers • Ideal for:
◦ Documents without special typography ◦ CVs
◦ Design-heavy documents ██ latexmk ◦ Anything requiring custom fonts
• Wrapper around multiple LaTeX compilers
• Automates repeated runs (e.g. bibliography, ToC) \usepackage{fontspec}
\setmainfont{Fira Sans}
██ latexdiff
• Highlight diff between documents (with git) • latexdiff-vc --pdf --flatten -r <commit1> [-r
<commit2>] main.tex
Introduction to Linux: Markup Languages 17 / 20
Pandoc ██ What Is Pandoc?
pandoc notes.md -o notes.pdf
• The Swiss-army knife of document conversion pandoc file.tex -o file.md
• Converts between almost any formats
• Popular in technical documentation ██ Why It's Useful ██ What Can It Do? • Automates formatting • Markdown -> PDF (via LaTeX or Typst) • Great for reproducible documents
• Markdown -> HTML/Slides • Works nicely in CI pipelines
• LaTeX -> Markdown • Robust tool for long-term documentation workflows
• Word -> Markdown • Typst -> PDF Introduction to Linux: Markup Languages 18 / 20
Pandoc ██ Markdown -> PDF via LaTeX ██ Filters & Extensions
• Pandoc has filters for modifying AST
pandoc report.md \ • Example: convert latex math to images, handle
--from markdown \ citations, code-block highlighting
--to pdf \ • Zotero -> Pandoc works via Citeproc
--pdf-engine=pdflatex \
-o report.pdf
pandoc paper.md \
--citeproc \
▍ Real world example using a LaTeX template! --bibliography=refs.bib \
-o paper.pdf
██ Markdown -> Typst
pandoc slides.md -t typst -o slides.typ
Introduction to Linux: Markup Languages 19 / 20
Thank you! Thank you for your attention! Don't forget the feedback in Moodle please! Introduction to Linux: Markup Languages 20 / 20