m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/latex.md
blob: fea77a5478f397b4e0b72566195ea7c998c35e67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# LaTeX

## Lists

`itemize` for bullet lists, `enumerate` for numbered, `description` for
descriptive.

    \begin{itemize}
        \item First item
        \item Second item
    \end{itemize}

    \begin{description}
        \item [Description 1] First item
        \item [Description 2] Second item
    \end{itemize}

    \begin{enumarate}[(a)]  % pick enumeration style
        \item First item
        ...
    \end{enumarate}

## Arrows

Forward implication:

    \implies

Backwards implication:

    \impliedby

## Figures

    \begin{figure}
        \centering
        \def\svgwidth{\columnwidth}
        \input{input.pdf_tex}
        \caption{
            Description
        }\label{ref-label}
    \end{figure}

Note, `\label` comes after `\caption`.

To embed an svg:

    inkscape -D word.svg -o word.pdf --export-latex