m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/markdown.md
blob: 0b0eda2bf14418413ac697ea6c62fdb9670aeea5 (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
49
50
51
52
53
54
55
56
# Markdown/Pandoc tricks

## Math

    $\text{\LaTeX}$

    \begin{equation}
        \mathbb{N} \ni 2 + 2 = 2^2
    \end{equation}

## Links

### Named links

    [This][link name] is a link. [Link name][] is the link's name.

    [link name]: <https://en.wikipedia.org> (link title)

### Automatic links

    <https://youtube.com>

## Images

    ![alt text](https://url.of/image.png)
    ![alt text][reference]

    [reference]: https://url.of/image.png

Can place images side-by-side and control width:

    ![](1.png){width=50%} ![](2.png){width=50%}

## Presentations

    pandoc in.md -t beamer -o out.pdf
    pandoc in.md -t beamer -o out.pdf -i # incremental lists
    pandoc in.md -t beamer --slide-level 2 -o out.pdf # # - section, ## - slide

### Markdown details

* `#` is a new slide with heading
* Metadata to generate title page, select theme, etc.:

        ---
        title:
        - Title
        subtitle:
        - Subtitle
        author:
        - Author Name
        - Another Author
        theme:
        - Copenhagen
        toc: true
        ---