2024-04-18 13:05:25 +02:00

67 lines
3.1 KiB
Markdown

@slide(layout=chapter-slide)
@number
0
@title
First steps with&nbsp;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
@content
In order to compile the script for this tutorial, a few steps have to be followed, which are explained in the next slides.
@slide(layout=content-only)
@title
Digression: Opening&nbsp;a&nbsp;command&nbsp;prompt
@content
* For the following tasks, we are going to need a command prompt.
* It can be opened in different ways, depending on your operating system.
* **Windows**: Press the Windows key and type in *cmd*, press <kbd>Enter</kbd>.
* **MacOS**: Press the *Command* key and the *space bar* simultaneously, then type in *Terminal* and double click on *Terminal*.
* **Linux**: Press <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>T</kbd>.
@slide(layout=content-only)
@title
Installing the compiler
@content
* The compiler translates our 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 code into a properly formatted PDF document.
* Depending on your operating system, different compilers are available:
* Windows: <a href="https://miktex.org/download">MikT<sub style="font-size: 100%; margin-left: -.1em">E</sub>X</a>
* Linux: <a href="https://tug.org/texlive/doc/texlive-en/texlive-en.html#installation">T<sub style="font-size: 100%; margin-left: -.1em">E</sub>XLive</a> (preferably `texlive-full`)
* macOS: <a href="http://tug.org/mactex/">MacT<sub style="font-size: 100%; margin-left: -.1em">E</sub>X</a>
<div class="box warning">
On Windows, please open the MikT<sub style="font-size: 100%; margin-left: -.1em">E</sub>X Console once and search for updates.
</div>
@slide(layout=content-only)
@title
Installing the editor
@content
* An editor can be downloaded once the compiler has been installed.
* For editing LaTeX documents, any text editor works fine, e.&thinsp;g., <a href="https://notepad-plus-plus.org/downloads/">Notepad++</a> or <a href="https://code.visualstudio.com/download">VSCode</a>.
* For beginners, we recommend <a href="https://www.texstudio.org/">T<sub style="font-size: 100%; margin-left: -.1em">E</sub>Xstudio</a> due to its LaTeX-specific features.
* Download and install T<sub style="font-size: 100%; margin-left: -.1em">E</sub>Xstudio.
@slide(layout=content-only)
@title
Compile the script for&nbsp;the&nbsp;first&nbsp;time
@content
* Download the project archive from the VC.
* Unzip the archive.
* Open the file `main-exercises.tex` in T<sub style="font-size: 100%; margin-left: -.1em">E</sub>Xstudio. It is located in the root directory of the archive.
* Compile `main-exercises.tex` by pressing <span class="emoji"></span>
* A few new files will be generated by the compilation.
<div class="box warning">
Windows users: In order to enable file endings, click the view tab in the file explorer, and select *file name extensions*. This helps differentiating the different ``main`` files.
</div>