@slide(layout=chapter-slide)

@number
2

@title
How does <br/>L<sup style="font-weight: bold; font-size: 73%; margin-left: -.25em; margin-right: -.05em; position: relative; top: .2em">A</sup>T<sub style="font-size: 100%; margin-left: -.1em">E</sub>X work?


@slide(layout=content-and-preview)

@title
WYSIWhat?

@content
### What You See Is What You Get {data-category=Word}

* Formatting with immediate visual feedback

<div class="fragment">
### What You See Is What You Mean {data-category=LaTeX}

* Separation of content and structure
* Formatting only visible afterwards
</div>

<p style="margin-top:calc(.25 * var(--square));">
    Image source: <a href="https://xkcd.com/1341/">xkcd</a>
</p>

@preview
![](svg/chapter-02/xkcd-types-of-editors.png)


@slide(layout=preview-only)

@preview
![How to get the final document](svg/chapter-02/wysiwyg.svg){}


@slide(layout=two-columns)

@title
What do we need?

@column-one
### Editor
writing our source code including all the commands that structure the text semantically

[TeXstudio](http://www.texstudio.org/), [TeXMaker](https://www.xm1math.net/texmaker/)

@column-two
### Compiler
takes the source code and creates a PDF document ready for publication

[MiKTeX](http://miktex.org/), [MacTeX](http://tug.org/mactex/), [TeX Live](https://tug.org/texlive/)


@slide(layout=wide-content)

@title
Commands

@content
General structure of a command:

``` {.hljs .lang-txt}
\<command>[<optional_parameters>]{<obligatory_parameters>}
```

++ A few examples:

``` {.lang-tex .tex .hljs .fragment}
\newpage % inserts a new page
\textbf{bold text} % formats the text bold
\documentclass[a4paper,12pt, landscape]{article} % configures the document class
\frac{1}{4} % inserts a mathematical fraction
```


@slide(layout=content-only)

@title
Backslash

@content
You get the backslash by pressing

<kbd>AltGr</kbd>&nbsp;+&nbsp;<kbd>ß</kbd>&nbsp;(Windows/Linux)

<kbd>Alt</kbd>&nbsp;+&nbsp;<kbd>Shift</kbd>&nbsp;+&nbsp;<kbd>7</kbd>&nbsp;(MacOS)


