Getting started with Latex on Ubuntu

Updated: 23 September 2026

Install TeX Live

sudo apt install texlive # minimal, ~300MB
sudo apt install texlive-latex-extra # possibly required
sudo apt install texlive-full # everything, but huge

Create file test.tex

\documentclass[a4paper,12pt]{article}
\begin{document}

The foundations of the rigorous study of \emph{analysis}
were laid in the nineteenth century, notably by the
mathematicians Cauchy and Weierstrass. Central to the
study of this subject are the formal definitions of
\emph{limits} and \emph{continuity}.

Let $D$ be a subset of $\bf R$ and let
$f \colon D \to \mathbf{R}$ be a real-valued function on
$D$. The function $f$ is said to be \emph{continuous} on
$D$ if, for all $\epsilon > 0$ and for all $x \in D$,
there exists some $\delta > 0$ (which may depend on $x$)
such that if $y \in D$ satisfies
\[ |y - x| < \delta \]
then
\[ |f(y) - f(x)| < \epsilon. \]

One may readily verify that if $f$ and $g$ are continuous
functions on $D$ then the functions $f+g$, $f-g$ and
$f.g$ are continuous. If in addition $g$ is everywhere
non-zero then $f/g$ is continuous.

\end{document}

Produce a pdf

pdflatex test.tex

Markdown

Updated: 23 September 2026

Lists

Nested list

* Foo
    * Foo sub 1
    * Foo sub 2

Syntax highlight

SQL

```sql
SELECT * FROM orders;
```

bash

```shell
docker compose up --build
```

Tables

|   |   |   |   |   |
|---|---|---|---|---|
|   |   |   |   |   |
|   |   |   |   |   |
|   |   |   |   |   |

Images

online resource

![Alt text here](https://example.com/path/to/my-image.gif 'Title here')

local file

![Alt text here](my-image.gif 'Title here')

Miscellaneous

Underline

This word right <ins>here</ins> will be underlined.

Horizontal rule

Three dashes
---
create a horizontal line.

Links

[Chris Taylor Developer](https://christaylordeveloper.co.uk)

Convert markdown to a pdf, converting headings (#, ##, ### etc.) to numbered sections (1, 1.1, 1.1.1 etc.)

pandoc volume_trading.md --number-sections -o volume_trading.pdf