From 4e4b3d0b1333fff0e983707dd729ba9bb9535aae Mon Sep 17 00:00:00 2001 From: FSWIAI CICD Bot Date: Sat, 18 Nov 2023 12:55:39 +0000 Subject: [PATCH] updated latex weekend slides --- latex-weekend/index.html | 833 ++++++++++------------------------ latex-wochenende/index.html | 872 ++++++++++-------------------------- 2 files changed, 460 insertions(+), 1245 deletions(-) diff --git a/latex-weekend/index.html b/latex-weekend/index.html index 70988d3..4211799 100644 --- a/latex-weekend/index.html +++ b/latex-weekend/index.html @@ -16,8 +16,7 @@

0 . - First steps -with LATEX + First steps with LATEX

@@ -30,17 +29,11 @@ with LATEX -code into a PDF -
  • Depending on your operating system, different compilers are -available
  • -
  • Windows: -MikTEX +
  • The compiler translates our LATEX code into a PDF
  • +
  • Depending on your operating system, different compilers are available
  • +
  • Windows: MikTEX
  • -
  • macOS: -MacTEX +
  • macOS: MacTEX
  • -
  • Linux distributions: -TEXLive +
  • Linux distributions: TEXLive
  • -

    Make sure to install the full version with all packages, if you -can!

    +

    Make sure to install the full version with all packages, if you can!

    @@ -92,15 +75,10 @@ can!

    @@ -115,17 +93,13 @@ TEXstudio
    -

    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.

    +

    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.

    @@ -137,13 +111,10 @@ differentiating the different main files.

    -

    LATEX -Weekend +

    LATEX Weekend

    -

    A Fachschaft WIAI workshop. Presented by Evelyn Fradtschuk, -Jessica Klarmann, Florian Knoch, Theresa Knoll, Christian Kremitzl, -Fabian Lamprecht, Bernhard Luedtke and Jochen Mehlich.

    +

    A Fachschaft WIAI workshop. Presented by Evelyn Fradtschuk, Jessica Klarmann, Florian Knoch, Theresa Knoll, Christian Kremitzl, Fabian Lamprecht, Bernhard Luedtke and Jochen Mehlich.

    @@ -160,8 +131,7 @@ Fabian Lamprecht, Bernhard Luedtke and Jochen Mehlich.

    1 . - What is -LATEX? + What is LATEX?

    @@ -174,11 +144,8 @@ Lτεχ → /tɛç, tɛx, tɛk/ for The Art of -Computer Programming -
  • Leslie Lamport, from 1980s: software package -LaTeX made TeX easier to use
  • +
  • Donald Knuth, 1977–1986: typesetting system TeXτεχ → /tɛç, tɛx, tɛk/ for The Art of Computer Programming
  • +
  • Leslie Lamport, from 1980s: software package LaTeX made TeX easier to use
  • @@ -289,146 +256,47 @@ Leslie Lamport }
    -

    This paragraph shows the effect of varied line heights in combination -with varied line lengths. For this purpose, a little more text is needed -to make it look like an actual paragraph. For this purpose, a little -more text is needed to make it look like an actual paragraph. For this -purpose, a little more text is needed to make it look like an actual -paragraph. For this purpose, a little more text is needed to make it -look like an actual paragraph. For this purpose, a little more text is -needed to make it look like an actual paragraph. For this purpose, a -little more text is needed to make it look like an actual paragraph. For -this purpose, a little more text is needed to make it look like an -actual paragraph. For this purpose, a little more text is needed to make -it look like an actual paragraph. +

    This paragraph shows the effect of varied line heights in combination with varied line lengths. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph.

    short & tight

    -

    This paragraph shows the effect of varied line heights in combination -with varied line lengths. For this purpose, a little more text is needed -to make it look like an actual paragraph. For this purpose, a little -more text is needed to make it look like an actual paragraph. For this -purpose, a little more text is needed to make it look like an actual -paragraph. For this purpose, a little more text is needed to make it -look like an actual paragraph. For this purpose, a little more text is -needed to make it look like an actual paragraph. For this purpose, a -little more text is needed to make it look like an actual paragraph. For -this purpose, a little more text is needed to make it look like an -actual paragraph. For this purpose, a little more text is needed to make -it look like an actual paragraph. +

    This paragraph shows the effect of varied line heights in combination with varied line lengths. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph.

    normal length and tight leading

    -

    This paragraph shows the effect of varied line heights in combination -with varied line lengths. For this purpose, a little more text is needed -to make it look like an actual paragraph. For this purpose, a little -more text is needed to make it look like an actual paragraph. For this -purpose, a little more text is needed to make it look like an actual -paragraph. For this purpose, a little more text is needed to make it -look like an actual paragraph. For this purpose, a little more text is -needed to make it look like an actual paragraph. For this purpose, a -little more text is needed to make it look like an actual paragraph. For -this purpose, a little more text is needed to make it look like an -actual paragraph. For this purpose, a little more text is needed to make -it look like an actual paragraph. +

    This paragraph shows the effect of varied line heights in combination with varied line lengths. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph.

    long lines and tight leading

    -

    This paragraph shows the effect of varied line heights in combination -with varied line lengths. For this purpose, a little more text is needed -to make it look like an actual paragraph. For this purpose, a little -more text is needed to make it look like an actual paragraph. For this -purpose, a little more text is needed to make it look like an actual -paragraph. For this purpose, a little more text is needed to make it -look like an actual paragraph. For this purpose, a little more text is -needed to make it look like an actual paragraph. For this purpose, a -little more text is needed to make it look like an actual paragraph. For -this purpose, a little more text is needed to make it look like an -actual paragraph. For this purpose, a little more text is needed to make -it look like an actual paragraph. +

    This paragraph shows the effect of varied line heights in combination with varied line lengths. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph.

    short & medium

    -

    This paragraph shows the effect of varied line heights in combination -with varied line lengths. For this purpose, a little more text is needed -to make it look like an actual paragraph. For this purpose, a little -more text is needed to make it look like an actual paragraph. For this -purpose, a little more text is needed to make it look like an actual -paragraph. For this purpose, a little more text is needed to make it -look like an actual paragraph. For this purpose, a little more text is -needed to make it look like an actual paragraph. For this purpose, a -little more text is needed to make it look like an actual paragraph. For -this purpose, a little more text is needed to make it look like an -actual paragraph. For this purpose, a little more text is needed to make -it look like an actual paragraph. +

    This paragraph shows the effect of varied line heights in combination with varied line lengths. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph.

    normal length and leading

    -

    This paragraph shows the effect of varied line heights in combination -with varied line lengths. For this purpose, a little more text is needed -to make it look like an actual paragraph. For this purpose, a little -more text is needed to make it look like an actual paragraph. For this -purpose, a little more text is needed to make it look like an actual -paragraph. For this purpose, a little more text is needed to make it -look like an actual paragraph. For this purpose, a little more text is -needed to make it look like an actual paragraph. For this purpose, a -little more text is needed to make it look like an actual paragraph. For -this purpose, a little more text is needed to make it look like an -actual paragraph. For this purpose, a little more text is needed to make -it look like an actual paragraph. +

    This paragraph shows the effect of varied line heights in combination with varied line lengths. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph.

    long lines and medium leading

    -

    This paragraph shows the effect of varied line heights in combination -with varied line lengths. For this purpose, a little more text is needed -to make it look like an actual paragraph. For this purpose, a little -more text is needed to make it look like an actual paragraph. For this -purpose, a little more text is needed to make it look like an actual -paragraph. For this purpose, a little more text is needed to make it -look like an actual paragraph. For this purpose, a little more text is -needed to make it look like an actual paragraph. For this purpose, a -little more text is needed to make it look like an actual paragraph. For -this purpose, a little more text is needed to make it look like an -actual paragraph. For this purpose, a little more text is needed to make -it look like an actual paragraph. +

    This paragraph shows the effect of varied line heights in combination with varied line lengths. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph.

    short & loose

    -

    This paragraph shows the effect of varied line heights in combination -with varied line lengths. For this purpose, a little more text is needed -to make it look like an actual paragraph. For this purpose, a little -more text is needed to make it look like an actual paragraph. For this -purpose, a little more text is needed to make it look like an actual -paragraph. For this purpose, a little more text is needed to make it -look like an actual paragraph. For this purpose, a little more text is -needed to make it look like an actual paragraph. For this purpose, a -little more text is needed to make it look like an actual paragraph. For -this purpose, a little more text is needed to make it look like an -actual paragraph. For this purpose, a little more text is needed to make -it look like an actual paragraph. +

    This paragraph shows the effect of varied line heights in combination with varied line lengths. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph.

    normal length and loose leading

    -

    This paragraph shows the effect of varied line heights in combination -with varied line lengths. For this purpose, a little more text is needed -to make it look like an actual paragraph. For this purpose, a little -more text is needed to make it look like an actual paragraph. For this -purpose, a little more text is needed to make it look like an actual -paragraph. For this purpose, a little more text is needed to make it -look like an actual paragraph. For this purpose, a little more text is -needed to make it look like an actual paragraph. For this purpose, a -little more text is needed to make it look like an actual paragraph. For -this purpose, a little more text is needed to make it look like an -actual paragraph. For this purpose, a little more text is needed to make -it look like an actual paragraph. +

    This paragraph shows the effect of varied line heights in combination with varied line lengths. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph. For this purpose, a little more text is needed to make it look like an actual paragraph.

    long lines and loose leading

    @@ -549,8 +417,7 @@ it look like an actual paragraph.

    Procedure of this workshop

    -

    Goal: you are going to build your own little -
    LaTeX manual based on our LaTeX script.

    +

    Goal: you are going to build your own little
    LaTeX manual based on our LaTeX script.

    • learning by doing
    • understanding how LaTeX works
    • @@ -585,9 +452,7 @@ it look like an actual paragraph.

      2 . - How does -
      LATEX -work? + How does
      LATEX work?

    @@ -599,8 +464,7 @@ work?

    WYSIWhat?

    -

    What You See -Is What You Get

    +

    What You See Is What You Get

    • Formatting with immediate visual feedback
    @@ -627,9 +491,7 @@ Image source: xkcd
    -How to get the final document - +
    How to get the final document
    @@ -642,15 +504,13 @@ document

    Editor

    -

    writing our source code including all the commands that structure the -text semantically

    +

    writing our source code including all the commands that structure the text semantically

    TeXstudio, TeXMaker

    Compiler

    -

    takes the source code and creates a PDF document ready for -publication

    +

    takes the source code and creates a PDF document ready for publication

    MiKTeX, MacTeX, TeX Live

    @@ -665,10 +525,10 @@ publication

    General structure of a command:

    \<command>[<optional_parameters>]{<obligatory_parameters>}

    A few examples:

    -
    \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
    +
    \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
    @@ -695,9 +555,7 @@ publication

    3 . - Basic structure of a -LATEX -document + Basic structure of a LATEX document

    @@ -713,10 +571,8 @@ document 👁 Every LaTeX document is composed of

      -
    • a preamble: global settings (document class, -encoding, language, page format, additional packages, …) and
    • -
    • a document environment: content of the -document.
    • +
    • a preamble: global settings (document class, encoding, language, page format, additional packages, …) and
    • +
    • a document environment: content of the document.
    \documentclass{article}
     \usepackage[utf8]{inputenc}
    @@ -756,11 +612,9 @@ Hello world!
             
    \usepackage[utf8]{inputenc}
     \usepackage[t1]{fontenc}
      -
    • The character encoding determines which characters are -available.
    • +
    • The character encoding determines which characters are available.
    • -ASCII contains no special characters like German -umlauts.
    • +ASCII contains no special characters like German umlauts.
    • UTF-8 is a universal encoding.
    @@ -776,13 +630,9 @@ umlauts.
    \usepackage[ngerman]{babel}
      -
    • The package babel provides -language-specific information (e. g., hyphenation, special characters, -font changes, translated labels like ‘chapter,’ ‘table of contents’ or -‘figure’).
    • +
    • The package babel provides language-specific information (e. g., hyphenation, special characters, font changes, translated labels like ‘chapter,’ ‘table of contents’ or ‘figure’).
    • -ngerman is the German new -spelling.
    • +ngerman is the German new spelling.
    @@ -820,16 +670,13 @@ within continuous text.

    Comments

    -

    After a percent sign, the rest of the line is ignored by the -compiler. It is called a comment and does not appear in the resulting -document.

    +

    After a percent sign, the rest of the line is ignored by the compiler. It is called a comment and does not appear in the resulting document.

    % profile start
     Name: Donald Knuth \\
     Date of birth: \\ % TODO: insert
     Place of birth: Milwaukee, Wisconsin
     % profile end
    -

    Shortcuts: Ctrl + T and Ctrl + -U

    +

    Shortcuts: Ctrl + T and Ctrl + U

    @@ -849,8 +696,7 @@ Place of birth: Milwaukee, Wisconsin
    50% is one half.

    Solution: prefix with ‘\’:

    50\% is one half.
    -

    Does not work for ‘\\’, use \textbackslash -instead.

    +

    Does not work for ‘\\’, use \textbackslash instead.

    @@ -865,8 +711,7 @@ instead.

    Sections and chapters

    -

    Texts are structured by beeing subdivided in sections and chapters. -Always available:

    +

    Texts are structured by beeing subdivided in sections and chapters. Always available:

    \section{Level 1}
     \subsection{Level 2}
     \subsubsection{Level 3}
    @@ -898,12 +743,10 @@ Always available:

    • The values for the entries are stored in the preamble.
    • -\maketitle typesets the front matter within the -document environment.
    • +\maketitle typesets the front matter within the document environment.
    • The exact appearance depends on the document class.
    • Multiple authors can be joined with \and.
    • -
    • If no date is given, the current date will be used. A different date -can be defined with \date{}.
    • +
    • If no date is given, the current date will be used. A different date can be defined with \date{}.
    @@ -949,8 +792,7 @@ My favorite recipe \listoftables
    • automatic numbering
    • -
    • elements with an asterisk (*) are hidden from the -register: e. g. \section*{}.
    • +
    • elements with an asterisk (*) are hidden from the register: e. g. \section*{}.
    • generally requires two rounds of compilation
    @@ -994,22 +836,16 @@ My favorite recipe

    Structure your document and text

      -
    • Open the file document-structure.tex. It is located in -the directory exercises/basic-document-structure.
    • -
    • Wrap the entire text in a document environment and -insert the following preamble. Compile the -document.
    • +
    • Open the file document-structure.tex. It is located in the directory exercises/basic-document-structure.
    • +
    • Wrap the entire text in a document environment and insert the following preamble. Compile the document.
    \documentclass{scrartcl}
     \usepackage[utf8]{inputenc}
     \usepackage[T1]{fontenc}
     \usepackage[english]{babel}
      -
    • As you may already have noticed, paragraphs are -marked as ‘\\’. Use real paragraphs instead.
    • -
    • Time to structure our document! Use LaTex commands to declare all -headings (\section, -\subsubsection, etc.).
    • +
    • As you may already have noticed, paragraphs are marked as ‘\\’. Use real paragraphs instead.
    • +
    • Time to structure our document! Use LaTex commands to declare all headings (\section, \subsubsection, etc.).
    • Add a table of contents to your document.
    @@ -1023,27 +859,20 @@ marked as ‘\\’. Use real paragraphs instead.

    Document classes

      -
    • There are also other document classes than -article.
    • -
    • Based on the document class, the layout of the generated pdf file -changes.
    • -
    • Normally speled classes adhere to American English layout -norms.
    • +
    • There are also other document classes than article.
    • +
    • Based on the document class, the layout of the generated pdf file changes.
    • +
    • Normally speled classes adhere to American English layout norms.
    • -src document classes usually adhere to -European layout norms.
    • +src document classes usually adhere to European layout norms.

    Following document classes are available:

    • -scrartcl, article for -short documents
    • +scrartcl, article for short documents
    • -scrreprt, report for -longer documents
    • +scrreprt, report for longer documents
    • -scrbook, book for -books
    • +scrbook, book for books
    • beamer for presentations
    @@ -1100,11 +929,9 @@ books

    Headlines and the table of contents

    -

    With an asterisk, there is no numbering and no entry in the table of -contents:

    +

    With an asterisk, there is no numbering and no entry in the table of contents:

    \section*{No entry in table of contents}
    -

    You can also provide an alternative title for the table of -contents:

    +

    You can also provide an alternative title for the table of contents:

    \section[Entry in table of contents]
     {Actual chapter heading}
    @@ -1122,11 +949,8 @@ contents:

    Before we can continue …

    -

    Finally, comment out the preamble, the document -environment, and the table of contents.

    -

    Only this way, your solution can be embedded in the script itself. -(In TeXstudio, comments can be achieved by the shortcut Strg -+ T.)

    +

    Finally, comment out the preamble, the document environment, and the table of contents.

    +

    Only this way, your solution can be embedded in the script itself. (In TeXstudio, comments can be achieved by the shortcut Strg + T.)

    We will learn in the following chapter why this is the case.

    @@ -1208,8 +1032,7 @@ environment, and the table of contents.

    • contains no preamble
    • -
    • contains no \begin{document} or -\end{document} +
    • contains no \begin{document} or \end{document}
    \section{This is section 1}
    @@ -1237,17 +1060,13 @@ of section 2.
         	

    Specifying file paths 👣

      -
    • important for \input{}, but later also for other media -types
    • +
    • important for \input{}, but later also for other media types
    • file and folder structure = tree structure 🌳
    • -
    • with \input{}, you can specify the path relative to the -main file
    • +
    • with \input{}, you can specify the path relative to the main file

    -In LaTeX, you have to use UNIX-style paths. They are -separated by a forward slash: path/to/file. We will use -those from here on. +In LaTeX, you have to use UNIX-style paths. They are separated by a forward slash: path/to/file. We will use those from here on.

    @@ -1268,9 +1087,7 @@ those from here on.

    ./praeamble.tex

    -

    A single dot ‘. represents the current -folder (in this case: latex-skript). It is optional, you -could also write praeamble.tex here.

    +

    A single dot ‘. represents the current folder (in this case: latex-skript). It is optional, you could also write praeamble.tex here.

    @@ -1287,8 +1104,7 @@ could also write praeamble.tex here.

    Specifying file paths 👣

    -main-exercises.tex → -basic-document-structure.tex (in a subfolder) +main-exercises.texbasic-document-structure.tex (in a subfolder)

    ./content/basic-document-structure.tex
    @@ -1309,14 +1125,12 @@ could also write praeamble.tex here.

    basic-functionality.texgraphics.raw.tex

    -(basic-functionality.tex is imported into -main-exercises.tex) +(basic-functionality.tex is imported into main-exercises.tex)

    ./exercises/graphics/graphics.raw.tex

    -Paths are always relative to the root document that imports other files -as fragments. +Paths are always relative to the root document that imports other files as fragments.

    @@ -1335,18 +1149,12 @@ as fragments.
    • -Only the main file has to be compiled to get the -complete PDF document.
    • -
    • Error messages include a reference to the corresponding -subfile.
    • -
    • Subfiles cannot be compiled on their own as they don’t have a -preamble.
    • +Only the main file has to be compiled to get the complete PDF document. +
    • Error messages include a reference to the corresponding subfile.
    • +
    • Subfiles cannot be compiled on their own as they don’t have a preamble.
    -

    From now on, we will compile the file main-exercises.tex -in the project root. To do so, right click on the file in TeXstudio and -choose “Select as explicit root document” from the -dropdown. Next, compile as usual.

    +

    From now on, we will compile the file main-exercises.tex in the project root. To do so, right click on the file in TeXstudio and choose “Select as explicit root document” from the dropdown. Next, compile as usual.

    @@ -1359,16 +1167,12 @@ dropdown. Next, compile as usual.

    A structured project

    -

    You will find a file named main.tex in the folder -exercises/project-structure.

    +

    You will find a file named main.tex in the folder exercises/project-structure.

      -
    • Put the sections of the file into separate files, named -section1.tex and section2.tex.
    • +
    • Put the sections of the file into separate files, named section1.tex and section2.tex.
    • Include them using the \input command.
    • Move the preamble to its own file in a similar fashion.
    • -
    • Finally, have a look at the general project archive, starting from -main-exercises.tex (in the root folder of the project -archive). How do we include the different sections here?
    • +
    • Finally, have a look at the general project archive, starting from main-exercises.tex (in the root folder of the project archive). How do we include the different sections here?
    @@ -1396,8 +1200,7 @@ archive). How do we include the different sections here?

    Spaces

      -
    • Use thin spaces (\,) and non-breaking spaces -(~), where appropriate.
    • +
    • Use thin spaces (\,) and non-breaking spaces (~), where appropriate.
    Thin spaces are used in abbreviations
     and before units, e.\,g., 10\,s.
    @@ -1405,8 +1208,7 @@ Normal-width non-breaking spaces can help
     keep honorary titles and names on one
     line: Dr.~Fooboar.
      -
    • Use french spacing (\frenchspacing) to avoid giant -gaps after full stops.
    • +
    • Use french spacing (\frenchspacing) to avoid giant gaps after full stops.
    @@ -1493,12 +1295,10 @@ a dash — mostly in American English

    Quotes

    -

    The csquotes package provides, amongst others, the -command \enquote.

    +

    The csquotes package provides, amongst others, the command \enquote.

    \enquote{A \enquote{nested}
     quote.}
    -

    When included with autostyle=true, foreign-language -quotes use the according quotation marks:

    +

    When included with autostyle=true, foreign-language quotes use the according quotation marks:

    \foreignquote{ngerman}{Ein deutsches
     Zitat.}
    @@ -1519,8 +1319,7 @@ Zitat.}
    • A long list of symbols to use:
      -PDF -on the CTAN website +PDF on the CTAN website
    • Draw symbols and have them recognised:
      Detexify @@ -1537,20 +1336,12 @@ on the CTAN website

      Insert special characters

      -

      From now on, compile the file main-exercises.tex to see -your changes appear in the exercise script (in this task, see exercise -5).

      +

      From now on, compile the file main-exercises.tex to see your changes appear in the exercise script (in this task, see exercise 5).

        -
      • Replace the spaces in exercises/special-characters.tex -within the abbreviations (“e. g.”, “i. a.”) by thin -spaces.
      • -
      • Replace the hyphens separating the opening hours by en -dashes (--), optionally surrounded by thin -spaces.
      • -
      • Add quotation marks around the words -Studi-Ticket and Studi-Karte using the -\enquote command.
      • +
      • Replace the spaces in exercises/special-characters.tex within the abbreviations (“e. g.”, “i. a.”) by thin spaces.
      • +
      • Replace the hyphens separating the opening hours by en dashes (--), optionally surrounded by thin spaces.
      • +
      • Add quotation marks around the words Studi-Ticket and Studi-Karte using the \enquote command.
    @@ -1562,14 +1353,9 @@ spaces.

    English and French spacing

    -

    In English, LaTeX uses the old-fashioned English spacing, -i. e., double sentence spacing.

    -

    If you want to be more modern, you can use -\frenchspacing above your first paragraph. -\nonfrenchspacing goes back to default.

    -

    If you actually use English spacing, LaTeX will still try -and put normal word spacing after abbreviations. However, you should -check the results and intervene where needed by

    +

    In English, LaTeX uses the old-fashioned English spacing, i. e., double sentence spacing.

    +

    If you want to be more modern, you can use \frenchspacing above your first paragraph. \nonfrenchspacing goes back to default.

    +

    If you actually use English spacing, LaTeX will still try and put normal word spacing after abbreviations. However, you should check the results and intervene where needed by

    • forcing normal spaces: .\␣
    • @@ -1590,9 +1376,7 @@ check the results and intervene where needed by

      Hyphenation

      -

      Most of the time, LaTeX hyphenates words correctly, if the correct -language is configured. Sometimes, however, manual intervention is -necessary.

      +

      Most of the time, LaTeX hyphenates words correctly, if the correct language is configured. Sometimes, however, manual intervention is necessary.

      @@ -1761,8 +1545,7 @@ German altern.
      @@ -1735,7 +1519,7 @@ German \glq … \grq -‚ … ’ +‚ … ‘
      -

      Other rules my apply for other languages, but most of the time it’s -the same characters, only combined differently.

      +

      Other rules my apply for other languages, but most of the time it’s the same characters, only combined differently.

    @@ -1773,8 +1556,7 @@ the same characters, only combined differently.

    Diacritics

    -

    Letters with diacritics can either by typed directly on the keyboard -or via escape codes:

    +

    Letters with diacritics can either by typed directly on the keyboard or via escape codes:

    @@ -1907,8 +1689,7 @@ o͡o

    Special characters

    -

    The same is true for special characters: They can either be typed -directly or created via escape codes and commands:

    +

    The same is true for special characters: They can either be typed directly or created via escape codes and commands:

    @@ -2763,16 +2497,13 @@ result \left\lbrace \frac{1}{2} \right\rbrace
    @@ -2106,8 +1887,7 @@ underlined
    - - +
    @@ -2121,10 +1901,8 @@ underlined

    Some well-meaning advice

    You want the entire document to look consistent?

    -

    Trust LaTeX’s defaults (font sizes of title, paragraphs, footnotes, -etc.)!

    -

    This conversely means: Avoid fiddling around with font sizes -manually.

    +

    Trust LaTeX’s defaults (font sizes of title, paragraphs, footnotes, etc.)!

    +

    This conversely means: Avoid fiddling around with font sizes manually.

    @@ -2136,8 +1914,7 @@ manually.

    URLs

    -

    The hyperref package provides an \url{} -command that reproduces URLs

    +

    The hyperref package provides an \url{} command that reproduces URLs

    • letter by letter
    • using line breaks without hyphens
    • @@ -2161,13 +1938,9 @@ command that reproduces URLs

      • -Emphasise the words Recursion and -recursive in exercises/text-markup/markup.tex -using \emph{…}.
      • +Emphasise the words Recursion and recursive in exercises/text-markup/markup.tex using \emph{…}.
      • Make the URL in the text clickable.
      • -
      • Of course, you can also experiment with the other text -markup possibilities. However, remove them afterwards, if you -want to have a clean document.
      • +
      • Of course, you can also experiment with the other text markup possibilities. However, remove them afterwards, if you want to have a clean document.
    @@ -2205,8 +1978,7 @@ want to have a clean document.

    Ragged alignment

    -

    By default, LaTeX sets text in full justification, but it is possible -to activate ragged alignment.

    +

    By default, LaTeX sets text in full justification, but it is possible to activate ragged alignment.

    \raggedright … \raggedleft …
     \centering …

    Alternatively, we can use dedicated environments:

    @@ -2214,8 +1986,7 @@ to activate ragged alignment.

    \begin{flushright} Text \end{flushright} \begin{center} Text \end{center}

    -Proper ragged alignment is even more difficult than good justification, -so better avoid it. +Proper ragged alignment is even more difficult than good justification, so better avoid it.

    @@ -2232,10 +2003,8 @@ so better avoid it.

    Indentation and spacing

      -
    • paragraphs are usually indicated by first-line indentation -(\parindent)
    • -
    • we can decide to use paragraph spacing (\parskip) -instead (!)
    • +
    • paragraphs are usually indicated by first-line indentation (\parindent)
    • +
    • we can decide to use paragraph spacing (\parskip) instead (!)
    • both parameters are customisable:
    \setlength{\parindent}{0pt}
    @@ -2245,8 +2014,7 @@ instead (!)
     }
    • -\noindent allows us to disable first-line indentation -for a given paragraph
    • +\noindent allows us to disable first-line indentation for a given paragraph
    @@ -2285,8 +2053,7 @@ for a given paragraph \item flour \item milk \end{itemize} -

    We mark each bullet point with \item. This pattern is -the same for all kinds of enumerations.

    +

    We mark each bullet point with \item. This pattern is the same for all kinds of enumerations.

    @@ -2314,8 +2081,7 @@ the same for all kinds of enumerations.

    - - +
    @@ -2353,13 +2119,8 @@ the same for all kinds of enumerations.

    Adding enumerations

      -
    • Turn the recipe in lists.tex into an unordered -list consisting of the elements Ingredients and -Instructions. You can find the file in the directory -exercises/lists. Use the itemize command.
    • -
    • Within this list, create a unordered list for the -ingredients and a ordered list for the -instructions.
    • +
    • Turn the recipe in lists.tex into an unordered list consisting of the elements Ingredients and Instructions. You can find the file in the directory exercises/lists. Use the itemize command.
    • +
    • Within this list, create a unordered list for the ingredients and a ordered list for the instructions.
    @@ -2371,8 +2132,7 @@ instructions.

    Compact lists

    -

    The package paralist offers enumerations with less line -spacing.

    +

    The package paralist offers enumerations with less line spacing.

    \section{Ingredients}
     \begin{compactitem}
       % \item …
    @@ -2399,16 +2159,14 @@ spacing.

    In-line enumerations

    -

    Another feature provided by paralist enables us to -integrate enumerations into paragraphs.

    +

    Another feature provided by paralist enables us to integrate enumerations into paragraphs.

    The following herbs are % …
     \begin{inparaitem}
         \item lovage
         \item parsley
         \item chives
     \end{inparaitem}
    -

    Of course, there is an accompanying list type called -inparaenum for ordered lists.

    +

    Of course, there is an accompanying list type called inparaenum for ordered lists.

    @@ -2423,9 +2181,7 @@ integrate enumerations into paragraphs.

    List styles

    -

    The list style type can be set using the optional parameter -label. To accomplish this, we need to include the package -enumitem first.

    +

    The list style type can be set using the optional parameter label. To accomplish this, we need to include the package enumitem first.

    % Roman numerals
     \begin{enumerate}[label=\roman*]
     % …
    @@ -2465,14 +2221,11 @@ integrate enumerations into paragraphs.

    Formula environments 🧮

    $2 \sqrt{\frac{\pi^2}{3} \cdot c_2}$
    -

    Mathematical formulas are only accepted in the so-called math -mode. In-line formulas must therefor be guarded by two dollar -signs. We can also use the equation block environment:

    +

    Mathematical formulas are only accepted in the so-called math mode. In-line formulas must therefor be guarded by two dollar signs. We can also use the equation block environment:

    \begin{equation}
       2 \sqrt{\frac{\pi^2}{3} \cdot c_2}
     \end{equation}
    -

    Packages: amsmath, amsthm, -amssymb, mathtools

    +

    Packages: amsmath, amsthm, amssymb, mathtools

    @@ -2531,19 +2284,15 @@ result

    Aligning a group of equations

    -

    The align environment permits us to align equations at -certain positions like the ‘ = ’ character.

    +

    The align environment permits us to align equations at certain positions like the ‘ = ’ character.

    \begin{align}
       13 \cdot (4a - 3)^2 &= 13 … \\
           &= 208a^2 - 312a + 117
     \end{align}
      -
    • The equations will be aligned with respect to the ampersands -(‘&’).
    • +
    • The equations will be aligned with respect to the ampersands (‘&’).
    • We can mark a new line using ‘\\’.
    • -
    • align and equation will not be numbered -if we add an asterisk after their names (e. g. -\begin{align*} and \end{align*}).
    • +
    • align and equation will not be numbered if we add an asterisk after their names (e. g. \begin{align*} and \end{align*}).
    @@ -2561,8 +2310,7 @@ if we add an asterisk after their names (e. g. Typesetting mathematics -

    Code up the following formulas in the file -exercises/maths/math-formulas.tex.

    +

    Code up the following formulas in the file exercises/maths/math-formulas.tex.

    @@ -2581,18 +2329,15 @@ if we add an asterisk after their names (e. g. - + - + - +
    Formula to solve quadratic equations\(x_{1,2} = - \frac{p}{2} \pm -\sqrt{\left(\frac{p}{2}\right)^2 - q}\)\(x_{1,2} = - \frac{p}{2} \pm \sqrt{\left(\frac{p}{2}\right)^2 - q}\)
    Another formula to solve quadratic equations\(x_{1,2} = \frac{-b \pm \sqrt{b^2 - -4ac}}{2a}\)\(x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\)
    Catalan numbers\(C_n = \frac{1}{n+1} {2n \choose n} = -\frac{(2n)!}{(n+1)!n!}\)\(C_n = \frac{1}{n+1} {2n \choose n} = \frac{(2n)!}{(n+1)!n!}\)
    @@ -2608,8 +2353,7 @@ if we add an asterisk after their names (e. g. Typesetting mathematics -

    Code up the following formulas in the file -exercises/maths/math-formulas.tex.

    +

    Code up the following formulas in the file exercises/maths/math-formulas.tex.

    @@ -2628,14 +2372,12 @@ if we add an asterisk after their names (e. g. - + - +
    Set of all odd natural numbers\(\{ x \mid x \in \mathbb{N}, -\text{odd}(x) \}\)\(\{ x \mid x \in \mathbb{N}, \text{odd}(x) \}\)
    Elimination \(\neg\exists x\) \(\neg\exists x . p(x) \Leftrightarrow -\forall x . \neg p(x)\)\(\neg\exists x . p(x) \Leftrightarrow \forall x . \neg p(x)\)
    @@ -2660,18 +2402,15 @@ result
    -(x), [x], \lbrace x \rbrace, -\lvert x \rvert +(x), [x], \lbrace x \rbrace, \lvert x \rvert -\((x), [x], \lbrace x\rbrace, \lvert -x\rvert\) +\((x), [x], \lbrace x\rbrace, \lvert x\rvert\)
    -\exists, \forall, \in, -
    \notin, \infty +\exists, \forall, \in,
    \notin, \infty
    \(\exists,\forall,\in,\notin,\infty\) @@ -2679,23 +2418,18 @@ x\rvert\)
    -\alpha, \beta, \Gamma, -
    \Delta, \varepsilon, \pi +\alpha, \beta, \Gamma,
    \Delta, \varepsilon, \pi
    -\(\alpha, \beta, \Gamma, \Delta, \varepsilon, -\pi\) +\(\alpha, \beta, \Gamma, \Delta, \varepsilon, \pi\)
    -\rightarrow, \leftarrow, -\Rightarrow, \Leftarrow, -\Leftrightarrow +\rightarrow, \leftarrow, \Rightarrow, \Leftarrow, \Leftrightarrow -\(\rightarrow, \leftarrow, \Rightarrow, -\Leftarrow, \Leftrightarrow\) +\(\rightarrow, \leftarrow, \Rightarrow, \Leftarrow, \Leftrightarrow\)
    -\(\left\lbrace \frac{1}{2} -\right\rbrace\) +\(\left\lbrace \frac{1}{2} \right\rbrace\)
    $4 \cdot \left( \frac{1}{2} % …

    -\(4 \cdot \left(\frac{1}{2} +\frac{3}{ 12 -\cdot \left( 2 + \frac{1}{86 \cdot \left(\frac{1}{2} + 24 \right)} -\right)} \right)\) +\(4 \cdot \left(\frac{1}{2} +\frac{3}{ 12 \cdot \left( 2 + \frac{1}{86 \cdot \left(\frac{1}{2} + 24 \right)} \right)} \right)\)

    @@ -2784,9 +2515,7 @@ result

    Depicting boundaries

    -

    The bounds of an integral can be enforced to appear above and below -the integral symbol using the \limits command. This is the -standard behaviour for sums, products and limits.

    +

    The bounds of an integral can be enforced to appear above and below the integral symbol using the \limits command. This is the standard behaviour for sums, products and limits.

    \sum_{i=1}^{n^2}(x+2)
     \prod_{j=1}^{100}(3 \cdot x)
     \lim_{x \rightarrow \infty}(14x^3 - 12)
    @@ -2808,16 +2537,13 @@ Don’t use \limits inline.
         

    Set-builder notation

    -

    In certain situations, it is more adequate to use textual predicates -or long function names within the set builder notation.

    +

    In certain situations, it is more adequate to use textual predicates or long function names within the set builder notation.

    This is where \text{} comes into play.

    -\(\left\lbrace x \mid frequency(x) \geq -20\right\rbrace\) +\(\left\lbrace x \mid frequency(x) \geq 20\right\rbrace\)

    -\(\left\lbrace x \mid \text{frequency}(x) \geq -20\right\rbrace\) +\(\left\lbrace x \mid \text{frequency}(x) \geq 20\right\rbrace\)

    $\left\lbrace x \mid \text{frequency} …
    @@ -2865,8 +2591,7 @@ height=5cm]{<file path>}

    Layout on the page

    \begin{figure}[<position code>]
    -

    LaTeX places graphics automatically. With position codes, we can -express our preferences (they can be combined as well).

    +

    LaTeX places graphics automatically. With position codes, we can express our preferences (they can be combined as well).

    @@ -2948,16 +2673,12 @@ Here, for God’s sake!
    (float package required)

    Inserting graphics

      -
    • In the directory exercises/graphics you can find an -image file named latex-logo.png.
    • +
    • In the directory exercises/graphics you can find an image file named latex-logo.png.
    • -Include the figure in -exercises/graphics/graphics.tex and place it -exactly where you include it.
    • +Include the figure in exercises/graphics/graphics.tex and place it exactly where you include it.
    • The image shall be centered.
    • Additionally, add a caption for the figure.
    • -
    • Adapt the width of the image to the width of the -text (\textwidth).
    • +
    • Adapt the width of the image to the width of the text (\textwidth).
    @@ -2984,8 +2705,7 @@ text (\textwidth).

    Basic structure 🗒️

    -

    For typographically pleasing tables, we use the booktabs -package.

    +

    For typographically pleasing tables, we use the booktabs package.

    \usepackage{booktabs}
    \begin{table}[<position>]
         \begin{tabular}{<column definition>}
    @@ -3041,8 +2761,7 @@ right-justified column
     
     
    -

    Vertical separator lines and double horizontal lines are frowned -upon by typographers and should be avoided.

    +

    Vertical separator lines and double horizontal lines are frowned upon by typographers and should be avoided.

    @@ -3069,8 +2788,7 @@ upon by typographers and should be avoided.

    • Columns are separated by ’&’.
    • Rows are ended by ‘\\’.
    • -
    • \toprule, \midrule and -\bottomrule structure the table.
    • +
    • \toprule, \midrule and \bottomrule structure the table.
    @@ -3099,12 +2817,10 @@ upon by typographers and should be avoided.

    \caption{Well-known programming languages} \end{table}

    -@{} to the left and right of a column definition removes -the padding of the corresponding column. +@{} to the left and right of a column definition removes the padding of the corresponding column.

    -\begin{tabular}{@{}lrcl@{}} limits the row separators to -the width of the table content +\begin{tabular}{@{}lrcl@{}} limits the row separators to the width of the table content

    @@ -3116,8 +2832,7 @@ the width of the table content

    More comfort

    -

    The Tables Generator is a -wonderful tool to quickly create tables of different formats.

    +

    The Tables Generator is a wonderful tool to quickly create tables of different formats.

    @@ -3130,15 +2845,10 @@ wonderful tool to quickly create tables of different formats.

    Typesetting tables

      -
    • The list in file exercises/tables/tables.tex stores -information on a few modules of the WIAI faculty.
    • +
    • The list in file exercises/tables/tables.tex stores information on a few modules of the WIAI faculty.
    • Transform the list into a table.
    • -
    • The table shall have colums for the name, the -abbreviation (Kürzel) and the semester of the -lectures.
    • -
    • Add a column with center-aligned -text on the left side of the table in order to -number the lectures.
    • +
    • The table shall have colums for the name, the abbreviation (Kürzel) and the semester of the lectures.
    • +
    • Add a column with center-aligned text on the left side of the table in order to number the lectures.
    • Add a caption for the table.
    @@ -3151,9 +2861,7 @@ text on the left side of the table in order to

    Particularly long tables

    -

    Tables that exceed one page are simply cut off by -tabular. A solution is offered by the -longtable package:

    +

    Tables that exceed one page are simply cut off by tabular. A solution is offered by the longtable package:

    \usepackage{longtable}
    \begin{longtable}{<column definition>}
         % table content
    @@ -3176,12 +2884,9 @@ text on the left side of the table in order to
         \label{<label>}
     \end{longtable}
      -
    • The longtable environment merges the -tabular and table environments.
    • -
    • Caption and label can therefore be inserted directly under the table -content.
    • -
    • As long as the booktabs package is used, its features -are also provided in longtable.
    • +
    • The longtable environment merges the tabular and table environments.
    • +
    • Caption and label can therefore be inserted directly under the table content.
    • +
    • As long as the booktabs package is used, its features are also provided in longtable.
    @@ -3193,8 +2898,7 @@ are also provided in longtable.

    Particularly wide tables

    -

    If you need a table to be wider than a page, you can display it in -landscape orientation:

    +

    If you need a table to be wider than a page, you can display it in landscape orientation:

    \usepackage{rotating}
    \begin{sidewaystable}[<position>]
         \begin{tabular}{<column def.>}
    @@ -3254,10 +2958,8 @@ landscape orientation:

    Footnotes 📎

    \usepackage{hyperref}
    -

    Footnotes are automatically numbered consecutively, independent of -sections.

    -

    (Here, hyperref is used for the \url -command, it is not necessary for footnotes per se.)

    +

    Footnotes are automatically numbered consecutively, independent of sections.

    +

    (Here, hyperref is used for the \url command, it is not necessary for footnotes per se.)

    The wild boar (\textit{Sus scrofa}), also 
     known as the wild swine, common wild pig, 
     or simply wild pig, is a suid native to 
    @@ -3304,12 +3006,8 @@ As you can see in figure
         

    Assigning labels

    -

    Both cross-reference commands work with sections, figures, -tables, listings, and equations, as long as you use correct -labels.

    -

    Labels have to be unambiguous. For clarity, certain -prefixes are common, and some packages use them to derive -information.

    +

    Both cross-reference commands work with sections, figures, tables, listings, and equations, as long as you use correct labels.

    +

    Labels have to be unambiguous. For clarity, certain prefixes are common, and some packages use them to derive information.

    @@ -1781,8 +1551,7 @@ Englisch (B. E.)
    @@ -3363,8 +3061,7 @@ information.

    Fooboar is a young and highly engaged boar (see \Cref{img:fooboar}). -

    The \cref command automatically inserts suitable -prefixes.

    +

    The \cref command automatically inserts suitable prefixes.

    @@ -3381,16 +3078,12 @@ prefixes.

    • -

      Terms inserted by \cref use the language specified -with the document class (or babel):

      +

      Terms inserted by \cref use the language specified with the document class (or babel):

      \documentclass[english]{article}
    • -
    • Apart from sections, referenced elements need captions -(\caption{…}), and the captions have to be placed -before the label.

    • +
    • Apart from sections, referenced elements need captions (\caption{…}), and the captions have to be placed before the label.

    • -

      For sectioning commands, the label is inserted directly after the -section command.

      +

      For sectioning commands, the label is inserted directly after the section command.

      \section{Notes}\label{sec:notes}
    @@ -3405,12 +3098,8 @@ section command.

    Inserting footnotes

      -
    • Make the text March 2023 in file -exercises/footnotes/footnotes.tex appear as a -footnote.
    • -
    • Additionally, insert a clickable URL that leads to -the download page for the Java Development Kit -(https://www.oracle.com/java/technologies/javase-downloads.html).
    • +
    • Make the text March 2023 in file exercises/footnotes/footnotes.tex appear as a footnote.
    • +
    • Additionally, insert a clickable URL that leads to the download page for the Java Development Kit (https://www.oracle.com/java/technologies/javase-downloads.html).
    @@ -3423,17 +3112,10 @@ the download page for the Java Development Kit

    Inserting references

      -
    • In file exercises/references/references.tex, replace -In the figure and The following source code listing by -references to the figure and to the source code -listing.
    • +
    • In file exercises/references/references.tex, replace In the figure and The following source code listing by references to the figure and to the source code listing.
    • Use the command \Cref for the references.
    • -
    • Make sure to add labels to the elements that you -want to create a reference for.
    • -
    • For source code listings, adding labels and captions is a bit -different. Try to apply the knowledge you gained so far to retrieve the -correct version of the \lstinputlisting command. Use the -Internet, if necessary.
    • +
    • Make sure to add labels to the elements that you want to create a reference for.
    • +
    • For source code listings, adding labels and captions is a bit different. Try to apply the knowledge you gained so far to retrieve the correct version of the \lstinputlisting command. Use the Internet, if necessary.
    @@ -3445,9 +3127,7 @@ Internet, if necessary.

    Configuring footnotes

    -

    The footmisc package provides additional options for the -presentation of footnotes that can be activated by adding parameters to -the \usepackage command.

    +

    The footmisc package provides additional options for the presentation of footnotes that can be activated by adding parameters to the \usepackage command.

    % Reset the counter on each page:
     \usepackage[perpage]{footmisc}
     
    @@ -3471,11 +3151,9 @@ the \usepackage command.

    A few more things

      -
    • It is recommended that you include the package hyperref -before cleveref.
    • +
    • It is recommended that you include the package hyperref before cleveref.
    • -\cref can take multiple references at once, separated -by commas.
    • +\cref can take multiple references at once, separated by commas.
    \section{An introduction}
     \label{sec:section1}
    @@ -3513,11 +3191,9 @@ sec:section3,sec:section5}.

    What do we need?

      -
    • a bibliography file (hereafter .bib -file) for storing references
    • +
    • a bibliography file (hereafter .bib file) for storing references
    • -BibTeX as an interface between the references and -LaTeX
    • +BibTeX as an interface between the references and LaTeX
    @@ -3552,8 +3228,7 @@ LaTeX

    How is it used?

    -

    BibTeX adds some citation commands to LaTeX. In addition, we need the -natbib package.

    +

    BibTeX adds some citation commands to LaTeX. In addition, we need the natbib package.

    • Citing an author: \citeauthor{<source>}
    • @@ -3561,19 +3236,15 @@ LaTeX
    • Citing a page: \cite[p. 15]{<source>}
    • -
    • Citing with additional -text:
      \cite[<prefix>][<suffix>]{<source>} +
    • Citing with additional text:
      \cite[<prefix>][<suffix>]{<source>}
    • -
    • Referencing the .bib file: -\bibliography{<.bib file>} +
    • Referencing the .bib file: \bibliography{<.bib file>}
    • -
    • Choosing a citation style: -
      \bibliographystyle{<citation style>} +
    • Choosing a citation style:
      \bibliographystyle{<citation style>}
    -

    Two things are infinite: the universe and the assortment of citation -styles.Unknown

    +

    Two things are infinite: the universe and the assortment of citation styles.Unknown

    @@ -3584,8 +3255,7 @@ styles.Unknown

    -Citing in Alpha style - +
    Citing in Alpha style
    @@ -3596,8 +3266,7 @@ styles.Unknown

    -Citing in Natdin style - +
    Citing in Natdin style
    @@ -3608,9 +3277,7 @@ styles.Unknown

    -Finding ready-made BibTeX entries – University of Bamberg Library - +
    Finding ready-made BibTeX entries – University of Bamberg Library
    @@ -3621,9 +3288,7 @@ University of Bamberg Library
    -Finding ready-made BibTeX entries – Google Scholar - +
    Finding ready-made BibTeX entries – Google Scholar
    @@ -3634,9 +3299,7 @@ Google Scholar
    -Finding ready-made BibTeX entries – Google Scholar - +
    Finding ready-made BibTeX entries – Google Scholar
    @@ -3647,9 +3310,7 @@ Google Scholar
    -Finding ready-made BibTeX entries – dblp.org - +
    Finding ready-made BibTeX entries – dblp.org
    @@ -3662,22 +3323,17 @@ dblp.org

    Creating and inserting references

      -
    • Create a new BibTeX file called literature.bib in the -exercises/literature folder.
    • -
    • Use Google Scholar or dblp.org to retrieve BibTeX references for the -following \(\LaTeX\) handbooks: +
    • Create a new BibTeX file called literature.bib in the exercises/literature folder.
    • +
    • Use Google Scholar or dblp.org to retrieve BibTeX references for the following \(\LaTeX\) handbooks:
        -
      • Dilip Datta (2017): \(\LaTeX\) in -24 Hours. A Practical Guide for Scientific Writing.
      • +
      • Dilip Datta (2017): \(\LaTeX\) in 24 Hours. A Practical Guide for Scientific Writing.
      • Frank Mittelbach / Michel Goossens (2012): Der \(\LaTeX\)-Begleiter.
    • Add the BibTeX entries to the BibTeX file.
    • Assign unique and meaningful BibTeX keys.
    • -
    • Include the BibTeX file in a suitable location, where later on the -references should be listed.
    • -
    • Cite the two handbooks in the file -exercises/literature/literature.tex.
    • +
    • Include the BibTeX file in a suitable location, where later on the references should be listed.
    • +
    • Cite the two handbooks in the file exercises/literature/literature.tex.
    • Make use of the plain bibliography style.
    @@ -3705,8 +3361,7 @@ references should be listed.

    In-situ listings

    -

    The listings package provides a dedicated -environment:

    +

    The listings package provides a dedicated environment:

    \section*{Haskell Magic}
     Squares of all even % …
     \begin{lstlisting}[language=Haskell]
    @@ -3748,8 +3403,7 @@ Squares of all even % …
         

    Themes and styles

    -

    listings does not provide any themes by default, but can -be configured extensively.

    +

    listings does not provide any themes by default, but can be configured extensively.

    \begin{lstlisting}[
         language=Java,
         basicstyle=\footnotesize\ttfamily,
    @@ -3760,8 +3414,7 @@ be configured extensively.

    ] % … \end{lstlisting}
    -

    Have a look at the \lstset command for creating your own -themes.

    +

    Have a look at the \lstset command for creating your own themes.

    @@ -3774,18 +3427,14 @@ themes.

    @@ -3799,27 +3448,18 @@ themes for listings

    Listings

      -
    • In the directory exercises/source-code-listings you can -find a file named Source.java.
    • +
    • In the directory exercises/source-code-listings you can find a file named Source.java.
    • -Include it in the file -source-code-listings.tex. (Keep in mind that the file path -is relative to the main LaTeX document, i. e., to -main-exercises.tex.)
    • -
    • Enable special characters via the -literate option.
    • -
    • Activate syntax highlighting by stating the -programming language Java.
    • +Include it in the file source-code-listings.tex. (Keep in mind that the file path is relative to the main LaTeX document, i. e., to main-exercises.tex.) +
    • Enable special characters via the literate option.
    • +
    • Activate syntax highlighting by stating the programming language Java.
    • Number the code lines.
    • -
    • Set the basicstyle to a proper mono-spaced font -(\ttfamily \small)
    • +
    • Set the basicstyle to a proper mono-spaced font (\ttfamily \small)
    • Change the keyword color to blue.
    • -
    • Don’t show special characters for spaces in -strings.
    • +
    • Don’t show special characters for spaces in strings.
    -

    If you have questions, try to consult the documentation of the -listings package.

    +

    If you have questions, try to consult the documentation of the listings package.

    @@ -3875,9 +3515,7 @@ popular.

    Designing presentation slides

    -

    For slides, there is the beamer document class, as well -as numerous templates and -themes.

    +

    For slides, there is the beamer document class, as well as numerous templates and themes.

    \documentclass{beamer}
     \usetheme{Frankfurt}
     \usecolortheme{seahorse}
    @@ -3908,9 +3546,7 @@ themes.

    Drawing images

    -

    TikZ (“TikZ ist kein Zeichenprogramm” — “TikZ is no -drawing software”) is a powerful package for drawing vector -graphics.

    +

    TikZ (“TikZ ist kein Zeichenprogramm” — “TikZ is no drawing software”) is a powerful package for drawing vector graphics.

    % …
     \tikzstyle{every node}=[draw=black,thick,anchor=west]
     \tikzstyle{selected}=[draw=red,fill=red!30]
    @@ -3951,8 +3587,7 @@ child { node {home}
         

    Linguistics

    -

    The qtree package can render constituent-based parse -trees:

    +

    The qtree package can render constituent-based parse trees:

    \Tree [.S [.NP LaTeX ]
     [.VP [.V is ] [.NP fun ] ] ]
    @@ -3969,8 +3604,7 @@ trees:

    Mathematical proofs

    -

    Logical tableaux can be renderd using the prftree -package.

    +

    Logical tableaux can be renderd using the prftree package.

    \begin{displaymath}
     \prftree[l,r]{}{[comp$\_{ns}$]}
     {
    @@ -4072,10 +3706,7 @@ Nested figures and fine-tuned captions
     
    -colortbl, -tabularx, -multirow, -makecell +colortbl, tabularx, multirow, makecell Table tuning @@ -4108,8 +3739,7 @@ Table tuning

    Wikibooks

    -

    The LaTeX Wikibook offers numerous interesting articles and is -available in English and German (among others).

    +

    The LaTeX Wikibook offers numerous interesting articles and is available in English and German (among others).

    @@ -4122,8 +3752,7 @@ available in English and German (among others).

    CTAN

    -

    The “Comprehensive TeX Archive Network” is the central source for -LaTeX packages and their documentation.

    +

    The “Comprehensive TeX Archive Network” is the central source for LaTeX packages and their documentation.

    @@ -4137,9 +3766,7 @@ LaTeX packages and their documentation.

    Overleaf

    Overleaf is a collaborative online LaTeX editor.

    -

    It also offers a multiple tutorials and templates for different -occasions (CV, theses, …): -»Templates«.

    +

    It also offers a multiple tutorials and templates for different occasions (CV, theses, …): »Templates«.

    @@ -4176,8 +3803,7 @@ occasions (CV, theses, …):
    -Classic (source) - +
    Classic (source)
    @@ -4188,8 +3814,7 @@ occasions (CV, theses, …):
    -More classic (source) - +
    More classic (source)
    @@ -4200,8 +3825,7 @@ occasions (CV, theses, …):
    -Different (source) - +
    Different (source)
    @@ -4214,12 +3838,9 @@ occasions (CV, theses, …):

    Fachschaft WIAI

    - If you have any other questions or problems, just come over or write us -an e-mail! + If you have any other questions or problems, just come over or write us an e-mail!

    -📍WE5/02.104
    -☎️0951 863 1219
    -📧fachschaft-wiai.stuve@uni-bamberg.de +📍WE5/02.104
    ☎️0951 863 1219
    📧fachschaft-wiai.stuve@uni-bamberg.de

    diff --git a/latex-wochenende/index.html b/latex-wochenende/index.html index bb938b8..5f5e468 100644 --- a/latex-wochenende/index.html +++ b/latex-wochenende/index.html @@ -16,8 +16,7 @@

    0 . - Erste Schritte -mit LATEX + Erste Schritte mit LATEX

    @@ -31,15 +30,11 @@ mit LMikTEX +
  • Je nach Betriebssystem stehen unterschiedliche Compiler zur Verfügung:
  • +
  • Windows: MikTEX
  • -
  • Linux-Distributionen: -TEXLive +
  • Linux-Distributionen: TEXLive
      -
    • Debian-basierte Distros: Führt -sudo apt install texlive-full aus
    • -
    • Andere Distributionen: Folgt den anweisungen auf der -TEXLive-Website
    • +
    • Debian-basierte Distros: Führt sudo apt install texlive-full aus
    • +
    • Andere Distributionen: Folgt den anweisungen auf der TEXLive-Website
  • -

    Bitte achtet darauf, die full version mit allen Paketen zu -installieren, wenn ihr die Auswahl habt!

    +

    Bitte achtet darauf, die full version mit allen Paketen zu installieren, wenn ihr die Auswahl habt!

    @@ -87,18 +76,11 @@ installieren, wenn ihr die Auswahl habt!

    Installieren des Editors

      -
    • Ein Editor kann heruntergeladen werden, sobald die Installation des -Compilers fertig ist
    • -
    • Es funktioniert jeglicher Text-Editor, wie etwa -Notepad++ oder -VSCode +
    • Ein Editor kann heruntergeladen werden, sobald die Installation des Compilers fertig ist
    • +
    • Es funktioniert jeglicher Text-Editor, wie etwa Notepad++ oder VSCode
    • -
    • Für Anfänger:innen empfehlen wir jedoch -TEXstudio, -da es LaTeX-spezifische Features bietet
    • -
    • Ladet -TEXstudio -herunter und installiert es
    • +
    • Für Anfänger:innen empfehlen wir jedoch TEXstudio, da es LaTeX-spezifische Features bietet
    • +
    • Ladet TEXstudio herunter und installiert es
    @@ -113,17 +95,12 @@ herunter und installiert es
    • Ladet das Projektarchiv aus dem VC herunter
    • Entpackt das Archiv
    • -
    • Öffnet die Datei main-exercises.tex in TeXstudio. Ihr findet es im -Wurzelverzeichnis des Archivs
    • -
    • Kompiliert die Datei, indem ihr -klickt
    • -
    • Einige neue Dateien sollten nun durch das Kompilieren generiert -werden
    • +
    • Öffnet die Datei main-exercises.tex in TeXstudio. Ihr findet es im Wurzelverzeichnis des Archivs
    • +
    • Kompiliert die Datei, indem ihr klickt
    • +
    • Einige neue Dateien sollten nun durch das Kompilieren generiert werden
    -

    Windows-Nutzer:innen: Um Dateiendungen zu aktivieren, klickt auf das -Ansichts-Tab im Dateiexplorer und wählt Dateiendungen. So könnt -ihr besser zwischen den einzelnen main-Files unterscheiden.

    +

    Windows-Nutzer:innen: Um Dateiendungen zu aktivieren, klickt auf das Ansichts-Tab im Dateiexplorer und wählt Dateiendungen. So könnt ihr besser zwischen den einzelnen main-Files unterscheiden.

    @@ -138,9 +115,7 @@ ihr besser zwischen den einzelnen main-Files unterscheiden.

    LATEX-Wochenende

    -

    Ein Workshop der Fachschaft WIAI. Präsentiert von Evelyn Fradtschuk, -Jessica Klarmann, Florian Knoch, Theresa Knoll, Christian Kremitzl, -Bernhard Luedtke und Jochen Mehlich.

    +

    Ein Workshop der Fachschaft WIAI. Präsentiert von Evelyn Fradtschuk, Jessica Klarmann, Florian Knoch, Theresa Knoll, Christian Kremitzl, Bernhard Luedtke und Jochen Mehlich.

    @@ -157,8 +132,7 @@ Bernhard Luedtke und Jochen Mehlich.

    1 . - Was ist -LATEX? + Was ist LATEX?

    @@ -171,11 +145,8 @@ Lτεχ → /tɛç/ für -The Art of Computer Programming -
  • Leslie Lamport, ab 1980er: Softwarepaket -LaTeX zur einfacheren Benutzung von TeX
  • +
  • Donald Knuth, 1977–1986: Textsatzsystem TeXτεχ → /tɛç/ für The Art of Computer Programming
  • +
  • Leslie Lamport, ab 1980er: Softwarepaket LaTeX zur einfacheren Benutzung von TeX
  • @@ -286,155 +257,47 @@ Leslie Lamport }
    -

    Dieser Absatz soll zeigen, wie sich unter­schied­liche -Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu -ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach -einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, -damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch -ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. +

    Dieser Absatz soll zeigen, wie sich unter­schied­liche Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht.

    Kurz und eng

    -

    Dieser Absatz soll zeigen, wie sich unter­schied­liche -Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu -ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach -einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, -damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch -ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. +

    Dieser Absatz soll zeigen, wie sich unter­schied­liche Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht.

    Normale Länge und enger Zeilenabstand

    -

    Dieser Absatz soll zeigen, wie sich unter­schied­liche -Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu -ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach -einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, -damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch -ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. +

    Dieser Absatz soll zeigen, wie sich unter­schied­liche Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht.

    Lange Zeilen und enger Zeilenabstand

    -

    Dieser Absatz soll zeigen, wie sich unter­schied­liche -Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu -ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach -einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, -damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch -ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. +

    Dieser Absatz soll zeigen, wie sich unter­schied­liche Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht.

    Kurz und normal

    -

    Dieser Absatz soll zeigen, wie sich unter­schied­liche -Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu -ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach -einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, -damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch -ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. +

    Dieser Absatz soll zeigen, wie sich unter­schied­liche Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht.

    Normale Länge und Zeilenabstand

    -

    Dieser Absatz soll zeigen, wie sich unter­schied­liche -Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu -ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach -einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, -damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch -ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. +

    Dieser Absatz soll zeigen, wie sich unter­schied­liche Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht.

    Lange Zeilen und normaler Zeilenabstand

    -

    Dieser Absatz soll zeigen, wie sich unter­schied­liche -Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu -ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach -einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, -damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch -ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. +

    Dieser Absatz soll zeigen, wie sich unter­schied­liche Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht.

    Kurz und weit

    -

    Dieser Absatz soll zeigen, wie sich unter­schied­liche -Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu -ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach -einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, -damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch -ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. +

    Dieser Absatz soll zeigen, wie sich unter­schied­liche Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht.

    Normale Länge und weiter Zeilenabstand

    -

    Dieser Absatz soll zeigen, wie sich unter­schied­liche -Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu -ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach -einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, -damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch -ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das -auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein -bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz -aussieht. +

    Dieser Absatz soll zeigen, wie sich unter­schied­liche Zeilen­abstände bei unter­schied­lichen Satz­breiten aus­wirken. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht. Dazu ist hier noch ein bisschen mehr Text nötig, damit das auch wirklich nach einem Absatz aussieht.

    Lange Zeilen und weiter Zeilenabstand

    @@ -555,8 +418,7 @@ aussieht.

    Ablauf des Workshops

    -

    Ziel: Wir arbeiten zusammen unser LaTeX-Skript durch, -das ihr nach dem Workshop als kompakte Referenz verwenden könnt.

    +

    Ziel: Wir arbeiten zusammen unser LaTeX-Skript durch, das ihr nach dem Workshop als kompakte Referenz verwenden könnt.

    • Learning by Doing
    • Verstehen, wie LaTeX funktioniert
    • @@ -591,8 +453,7 @@ das ihr nach dem Workshop als kompakte Referenz verwenden könnt.

      2 . - Wie funktioniert -LATEX? + Wie funktioniert LATEX?

    @@ -604,8 +465,7 @@ L

    WYSIWaaas?

    -

    What You See -Is What You Get

    +

    What You See Is What You Get

    • Formatierung mit unmittelbarem optischen Feedback
    @@ -632,9 +492,7 @@ Bildquelle: xkcd
    -Der Weg zum fertigen Dokument - +
    Der Weg zum fertigen Dokument
    @@ -647,8 +505,7 @@ Dokument

    Editor

    -

    zum Schreiben unseres Quelltextes mit allen Befehlen zur semantischen -Gliederung

    +

    zum Schreiben unseres Quelltextes mit allen Befehlen zur semantischen Gliederung

    TeXstudio, TeXMaker

    @@ -669,10 +526,10 @@ Gliederung

    Allgemeiner Aufbau eine Befehls:

    \<befehl>[<optionale_parameter>]{<obligatorische_parameter>}

    Ein paar Beispiele:

    -
    \newpage % fügt eine neue Seite ein
    -\textbf{fetter Text} % schreibt den übergebenen Text fett
    -\documentclass[10pt,a5paper,landscape]{article} % konfiguriert die Dokumentenklasse
    -\frac{1}{4} % fügt den mathematischen Bruch ein
    +
    \newpage % fügt eine neue Seite ein
    +\textbf{fetter Text} % schreibt den übergebenen Text fett
    +\documentclass[10pt,a5paper,landscape]{article} % konfiguriert die Dokumentenklasse
    +\frac{1}{4} % fügt den mathematischen Bruch ein
    @@ -699,8 +556,7 @@ Gliederung

    3 . - Grundstruktur eines -LATEX-Dokuments + Grundstruktur eines LATEX-Dokuments

    @@ -713,13 +569,11 @@ L -👁 Ein mit LaTeX gesetztes Dokument besteht -aus: +👁 Ein mit LaTeX gesetztes Dokument besteht aus:

    • -Präambel: globale Einstellungen (Dokumentklasse, -Kodierung, Sprache, Seitenformat, zusäzliche Pakete, …) und
    • +Präambel: globale Einstellungen (Dokumentklasse, Kodierung, Sprache, Seitenformat, zusäzliche Pakete, …) und
    • Dokumentumgebung: Inhalt des Dokuments.
    @@ -763,8 +617,7 @@ Hallo, Welt!
    • Die Zeichenkodierung bestimmt, welche Zeichen verfügbar sind.
    • -ASCII enthält kaum Sonderzeichen wie deutsche -Umlaute.
    • +ASCII enthält kaum Sonderzeichen wie deutsche Umlaute.
    • UTF-8 ist eine universelle Kodierung.
    @@ -780,13 +633,9 @@ Umlaute.
    \usepackage[ngerman]{babel}
      -
    • Das Paket babel stellt -sprachspezifische Informationen (z. B. Silbentrennung, Sonderzeichen, -Wechsel zwischen Fonts, Übersetzung von Labels wie ›Kapitel‹, -›Inhaltsverzeichnis‹ oder ›Abbildung‹) bereit.
    • +
    • Das Paket babel stellt sprachspezifische Informationen (z. B. Silbentrennung, Sonderzeichen, Wechsel zwischen Fonts, Übersetzung von Labels wie ›Kapitel‹, ›Inhaltsverzeichnis‹ oder ›Abbildung‹) bereit.
    • -ngerman steht für die neue deutsche -Rechschreibung.
    • +ngerman steht für die neue deutsche Rechschreibung.
    @@ -824,16 +673,13 @@ nichts verloren.

    Kommentare

    -

    Nach einem Prozentzeichen wird der Rest der Zeile vom Compiler -ignoriert. Der Kommentartext erscheint also nicht im fertigen -Dokument.

    +

    Nach einem Prozentzeichen wird der Rest der Zeile vom Compiler ignoriert. Der Kommentartext erscheint also nicht im fertigen Dokument.

    % Beginn Steckbrief
     Name: Donald Knuth \\
     Geburtsdatum: \\ % TODO: einfügen
     Geburtsort: Milwaukee, Wisconsin
     % Ende Steckbrief
    -

    Tastenkombinationen: Strg + T und -Strg + U

    +

    Tastenkombinationen: Strg + T und Strg + U

    @@ -853,8 +699,7 @@ Geburtsort: Milwaukee, Wisconsin
    50% sind die Hälfte.

    Lösung: »\« voranstellen:

    50\% sind die Hälfte.
    -

    Funktioniert nicht mit »\\«, nutzt -\textbackslash stattdessen.

    +

    Funktioniert nicht mit »\\«, nutzt \textbackslash stattdessen.

    @@ -869,8 +714,7 @@ Geburtsort: Milwaukee, Wisconsin

    Abschnitte und Kapitel

    -

    Texte werden durch Überschriften in Abschnitte und Kapitel -unterteilt. Immer verfügbar:

    +

    Texte werden durch Überschriften in Abschnitte und Kapitel unterteilt. Immer verfügbar:

    \section{Ebene 1}
     \subsection{Ebene 2}
     \subsubsection{Ebene 3}
    @@ -901,14 +745,10 @@ unterteilt. Immer verfügbar:

    \end{document}
    • In der Präambel werden die Werte für die Einträge gespeichert.
    • -
    • Das Setzen des Titels erfolgt in der Dokumentumgebung mit dem Befehl -\maketitle.
    • -
    • Die genaue Gestaltung hängt ab von der verwendeten -Dokumentklasse.
    • +
    • Das Setzen des Titels erfolgt in der Dokumentumgebung mit dem Befehl \maketitle.
    • +
    • Die genaue Gestaltung hängt ab von der verwendeten Dokumentklasse.
    • Mehrere Autoren werden mit \and verbunden.
    • -
    • Wird kein Datum angegeben, wird per default das aktuelle Datum -gesetzt. Ein abweichendes Datum kann mit \date{} definiert -werden.
    • +
    • Wird kein Datum angegeben, wird per default das aktuelle Datum gesetzt. Ein abweichendes Datum kann mit \date{} definiert werden.
    @@ -954,9 +794,7 @@ Mein Lieblingsrezept \listoftables % Tabellenverzeichnis
    • Nummerierung erfolgt automatisch
    • -
    • Elemente, die nicht im Verzeichnis aufgeführt werden sollen, werden -mit einem »*« versehen, also z. B. -\section*{}.
    • +
    • Elemente, die nicht im Verzeichnis aufgeführt werden sollen, werden mit einem »*« versehen, also z. B. \section*{}.
    • am besten zweimal kompilieren
    @@ -1000,25 +838,17 @@ Mein Lieblingsrezept

    Dokument und Text gliedern

      -
    • Öffnet die Datei document-structure.tex, die im Ordner -exercises/basic-document-structure liegt.
    • -
    • Packt den gesamten Text in der Datei in eine -Document-Umgebung und schreibt darüber folgende -Präambel. Kompiliert die Datei.
    • +
    • Öffnet die Datei document-structure.tex, die im Ordner exercises/basic-document-structure liegt.
    • +
    • Packt den gesamten Text in der Datei in eine Document-Umgebung und schreibt darüber folgende Präambel. Kompiliert die Datei.
    \documentclass{scrartcl}
     \usepackage[utf8]{inputenc}
     \usepackage[T1]{fontenc}
     \usepackage[ngerman]{babel}
      -
    • Wie ihr sehen könnt, sind in der Datei die Absätze im Dokument mit -\\ erstellt worden. Ersetzt diese durch richtige -Absätze.
    • -
    • Zeit für etwas Struktur! Verwendet für die -Überschriften die passenden LaTeX-Befehle -(\section u. ä.).
    • -
    • Fügt anschließend ein Inhaltsverzeichnis in euer -Dokument ein.
    • +
    • Wie ihr sehen könnt, sind in der Datei die Absätze im Dokument mit \\ erstellt worden. Ersetzt diese durch richtige Absätze.
    • +
    • Zeit für etwas Struktur! Verwendet für die Überschriften die passenden LaTeX-Befehle (\section u. ä.).
    • +
    • Fügt anschließend ein Inhaltsverzeichnis in euer Dokument ein.
    @@ -1031,27 +861,20 @@ Dokument ein.

    Dokumentenklassen

      -
    • Natürlich gibt es auch andere Dokumentenklassen als -article.
    • -
    • Je nachdem, welche Dokumentenklasse man verwendet, ändert sich das -Layout der generierten PDF.
    • -
    • Die korrekt geschriebenen Dokumentenklassen richten sich nach -US-amerikanischen Layout-Normen.
    • +
    • Natürlich gibt es auch andere Dokumentenklassen als article.
    • +
    • Je nachdem, welche Dokumentenklasse man verwendet, ändert sich das Layout der generierten PDF.
    • +
    • Die korrekt geschriebenen Dokumentenklassen richten sich nach US-amerikanischen Layout-Normen.
    • -src-Dokumentenklassen versuchen -europäische Normen abzubilden.
    • +src-Dokumentenklassen versuchen europäische Normen abzubilden.

    Folgende Dokumentenklassen stehen zur Verfügung:

    • -scrartcl, article für -kurze Dokumente
    • +scrartcl, article für kurze Dokumente
    • -scrreprt, report für -lange Dokumente
    • +scrreprt, report für lange Dokumente
    • -scrbook, book für -Bücher
    • +scrbook, book für Bücher
    • beamer für Präsentationen
    @@ -1108,11 +931,9 @@ Bücher

    Überschriften und das Inhaltsverzeichnis

    -

    Mit Sternchen fallen bei allen diesen Befehlen die Nummerierung und -der Eintrag im Inhaltsverzeichnis weg:

    +

    Mit Sternchen fallen bei allen diesen Befehlen die Nummerierung und der Eintrag im Inhaltsverzeichnis weg:

    \section*{Kein Verzeichniseintrag}
    -

    Außerdem kann für das Inhaltsverzeichnis ein alternativer Titel -angegeben werden:

    +

    Außerdem kann für das Inhaltsverzeichnis ein alternativer Titel angegeben werden:

    \section[Titel im Verzeichnis]
     {Kapitelüberschrift}
    @@ -1130,12 +951,8 @@ angegeben werden:

    Bevor wir fortfahren können …

    -

    Kommentiert zuletzt die Präambel, die -Dokumentenumgebung und das Inhaltsverzeichnis wieder -aus.

    -

    Nur so kann eure Lösung auch ins Skript eingebunden werden (Schnelles -Auskommentieren kann in TeXstudio mit dem Shortcut Strg + -T erreicht werden).

    +

    Kommentiert zuletzt die Präambel, die Dokumentenumgebung und das Inhaltsverzeichnis wieder aus.

    +

    Nur so kann eure Lösung auch ins Skript eingebunden werden (Schnelles Auskommentieren kann in TeXstudio mit dem Shortcut Strg + T erreicht werden).

    Im nächsten Kapitel erklären wir, warum das notwendig ist.

    @@ -1217,8 +1034,7 @@ Auskommentieren kann in TeXstudio mit dem Shortcut Strg +
    • enthält keine Präambel
    • -
    • enthält kein \begin{document} und -\end{document} +
    • enthält kein \begin{document} und \end{document}
    \section{Dies ist Abschnitt 1}
    @@ -1246,18 +1062,13 @@ Inhalt von Abschnitt 2.
         	

    Dateipfade angeben 👣

      -
    • wichtig für \input{} sowie später für das Einbinden von -Bildern und anderen Medien
    • +
    • wichtig für \input{} sowie später für das Einbinden von Bildern und anderen Medien
    • Datei- und Ordnerstruktur = Baumstruktur 🌳
    • -
    • bei \input{} kann der Pfad zu einer Unterdatei relativ -zur Hauptdatei angeben werden
    • +
    • bei \input{} kann der Pfad zu einer Unterdatei relativ zur Hauptdatei angeben werden

    -Bei LaTeX muss stets die Unix-Syntax für Pfadangaben -verwendet werden. Pfadelemente werden durch einen Schrägstrich getrennt: -pfad/zur/datei. Deshalb werden wir im Folgenden diese -Schreibweise verwenden. +Bei LaTeX muss stets die Unix-Syntax für Pfadangaben verwendet werden. Pfadelemente werden durch einen Schrägstrich getrennt: pfad/zur/datei. Deshalb werden wir im Folgenden diese Schreibweise verwenden.

    @@ -1278,10 +1089,7 @@ Schreibweise verwenden.

    ./praeamle.tex

    -

    Der einfache Punkt ».« bezieht sich bei -relativen Pfaden auf den aktuellen Ordner (hier: -latex-skript). Er ist optional, es könnte also auch nur -praeamble.tex geschrieben werden.

    +

    Der einfache Punkt ».« bezieht sich bei relativen Pfaden auf den aktuellen Ordner (hier: latex-skript). Er ist optional, es könnte also auch nur praeamble.tex geschrieben werden.

    @@ -1298,8 +1106,7 @@ relativen Pfaden auf den aktuellen Ordner (hier:

    Dateipfade angeben 👣

    -main-exercises.tex → -basic-document-structure.tex (in einem Unterordner) +main-exercises.texbasic-document-structure.tex (in einem Unterordner)

    ./content/basic-document-structure.tex

    @@ -1322,14 +1129,12 @@ relativen Pfaden auf den aktuellen Ordner (hier: basic-functionality.texgraphics.raw.tex

    -(wenn basic-functionality.tex von -main-exercises.tex importiert wird) +(wenn basic-functionality.tex von main-exercises.tex importiert wird)

    ./exercises/graphics/graphics.raw.tex

    -Pfade sind immer relativ zum Wurzelelement, auch wenn dieses noch andere -Dateien einbindet, die wiederum andere Dateien referenzieren. +Pfade sind immer relativ zum Wurzelelement, auch wenn dieses noch andere Dateien einbindet, die wiederum andere Dateien referenzieren.

    @@ -1348,19 +1153,12 @@ Dateien einbindet, die wiederum andere Dateien referenzieren.
    • -Nur die Hauptdatei wird kompiliert, um das fertige -PDF-Dokument zu erhalten.
    • -
    • Fehlermeldungen enthalten dann Verweis, in welcher Unterdatei sie -aufgetreten sind.
    • -
    • Die Unterdateien können wegen ihrer fehlenden Präambel nicht -selbstständig kompiliert werden.
    • +Nur die Hauptdatei wird kompiliert, um das fertige PDF-Dokument zu erhalten. +
    • Fehlermeldungen enthalten dann Verweis, in welcher Unterdatei sie aufgetreten sind.
    • +
    • Die Unterdateien können wegen ihrer fehlenden Präambel nicht selbstständig kompiliert werden.
    -

    Von nun an kompilieren wir die Datei main-exercises.tex -im Wurzelverzeichnis des Projektordners. Klickt hierzu in TeXstudio mit -der rechten Maustaste auf die Datei und wählt „Explizit als -Root-Dokument setzen“. Anschließend könnt ihr wie gewohnt -kompilieren.

    +

    Von nun an kompilieren wir die Datei main-exercises.tex im Wurzelverzeichnis des Projektordners. Klickt hierzu in TeXstudio mit der rechten Maustaste auf die Datei und wählt „Explizit als Root-Dokument setzen“. Anschließend könnt ihr wie gewohnt kompilieren.

    @@ -1373,17 +1171,12 @@ kompilieren.

    Ein strukturiertes Projekt

    -

    Im Ordner exercises/project-structure findet ihr eine -Datei namens main.tex.

    +

    Im Ordner exercises/project-structure findet ihr eine Datei namens main.tex.

      -
    • Erstellt neue Dateien (z. B. section1.tex und -section2.tex und verschiebt die Abschnitte in diese.
    • -
    • Importiert die Fragmente anschließend mit Hilfe des -\input-Befehls.
    • +
    • Erstellt neue Dateien (z. B. section1.tex und section2.tex und verschiebt die Abschnitte in diese.
    • +
    • Importiert die Fragmente anschließend mit Hilfe des \input-Befehls.
    • Lagert die Präambel auf demselben Weg in eine eigene Datei aus.
    • -
    • Schaut euch abschließend die Gesamtstruktur unseres Projektarchivs -an, beginnend mit main-exercises.tex im Wurzelverzeichnis. -Wie binden wir hier die einzelnen Abschnitte ein?
    • +
    • Schaut euch abschließend die Gesamtstruktur unseres Projektarchivs an, beginnend mit main-exercises.tex im Wurzelverzeichnis. Wie binden wir hier die einzelnen Abschnitte ein?
    @@ -1411,8 +1204,7 @@ Wie binden wir hier die einzelnen Abschnitte ein?

    Leerzeichen

      -
    • Nutzt schmale Leerzeichen (\,) und geschützte -Leerzeichen (~) an den geeigneten Stellen.
    • +
    • Nutzt schmale Leerzeichen (\,) und geschützte Leerzeichen (~) an den geeigneten Stellen.
    Schmale Leerzeichen werden z.\,B. in
     Abkürzungen und zwischen Zahlen und
    @@ -1422,8 +1214,7 @@ Leerzeichen können u.\,a.
     dabei helfen, Titel und Namen in
     einer Zeile zu halten: Dr.~Fooboar.
      -
    • Nutzt French Spacing (\frenchspacing), um riesige -Freiräume nach Satzzeichen zu verhindern.
    • +
    • Nutzt French Spacing (\frenchspacing), um riesige Freiräume nach Satzzeichen zu verhindern.
    @@ -1510,13 +1301,10 @@ a dash — mostly in American English

    Zitate

    -

    Das Paket csquotes stellt u. a. den Befehl -\enquote zur Verfügung:

    +

    Das Paket csquotes stellt u. a. den Befehl \enquote zur Verfügung:

    \enquote{Ein \enquote{verschachteltes}
     Zitat.}
    -

    Wenn das Paket mit autostyle=true eingebunden wird, -werden bei fremdsprachigen Zitaten die entsprechenden Anführungszeichen -verwendet:

    +

    Wenn das Paket mit autostyle=true eingebunden wird, werden bei fremdsprachigen Zitaten die entsprechenden Anführungszeichen verwendet:

    \foreignquote{english}{An English
     quote.}
    @@ -1537,8 +1325,7 @@ quote.}
    • Ausführliche Liste an verwendbaren Symbolen:
      -PDF -auf der CTAN-Website +PDF auf der CTAN-Website
    • Symbole malen und erkennen lassen:
      Detexify @@ -1555,20 +1342,12 @@ auf der CTAN-Website

      Sonderzeichen einfügen

      -

      Kompiliert von nun an immer die Datei -main-exercises.tex, um eure Änderungen im Übungsskript zu -sehen (in diesem Fall im Abschnitt zu Übung 5).

      +

      Kompiliert von nun an immer die Datei main-exercises.tex, um eure Änderungen im Übungsskript zu sehen (in diesem Fall im Abschnitt zu Übung 5).

        -
      • Ersetzt die Leerzeichen innerhalb der Abkürzungen in -exercises/special-characters.tex durch schmale -Leerzeichen.
      • -
      • Die Bindestriche bei den Öffnungszeiten der ERBA sollen durch -Halbgeviertstriche ersetzt werden, optional mit -schmalen Leerzeichen außenrum.
      • -
      • Nutzt den Befehl \enquote, um die Wörter -Studi-Ticket und Studi-Karte in -Anführungszeichen zu setzen.
      • +
      • Ersetzt die Leerzeichen innerhalb der Abkürzungen in exercises/special-characters.tex durch schmale Leerzeichen.
      • +
      • Die Bindestriche bei den Öffnungszeiten der ERBA sollen durch Halbgeviertstriche ersetzt werden, optional mit schmalen Leerzeichen außenrum.
      • +
      • Nutzt den Befehl \enquote, um die Wörter Studi-Ticket und Studi-Karte in Anführungszeichen zu setzen.
    @@ -1580,15 +1359,9 @@ schmalen Leerzeichen außenrum.

    English spacing

    -

    In englischsprachigen Dokumenten verwendet LaTeX das traditionelle -English spacing, also doppelte Leerzeichen nach dem -Satzende.

    -

    Das kann mit \frenchspacing vor dem ersten Absatz -verhindert werden. \nonfrenchspacing schaltet wieder -zurück.

    -

    Bei English spacing versucht LaTeX, nach Abkürzungen -trotzdem normale Wortzwischenräume zu setzen. Das sollte aber -kontrolliert werden. Eingreifen können wir mit

    +

    In englischsprachigen Dokumenten verwendet LaTeX das traditionelle English spacing, also doppelte Leerzeichen nach dem Satzende.

    +

    Das kann mit \frenchspacing vor dem ersten Absatz verhindert werden. \nonfrenchspacing schaltet wieder zurück.

    +

    Bei English spacing versucht LaTeX, nach Abkürzungen trotzdem normale Wortzwischenräume zu setzen. Das sollte aber kontrolliert werden. Eingreifen können wir mit

    • erzwungenen Wortzwischenräumen: .\␣
    • @@ -1609,9 +1382,7 @@ kontrolliert werden. Eingreifen können wir mit

      Silbentrennung

      -

      LaTeX trennt Wörter im Normalfall automatisch richtig, wenn die -richtige Sprache konfiguriert ist. Manchmal muss aber auch manuell -eingegriffen werden.

      +

      LaTeX trennt Wörter im Normalfall automatisch richtig, wenn die richtige Sprache konfiguriert ist. Manchmal muss aber auch manuell eingegriffen werden.

      @@ -1663,8 +1434,7 @@ Strich ohne Trennstelle

      -Einige der Codes funktionieren nur mit eingebundenem -babel-Paket. +Einige der Codes funktionieren nur mit eingebundenem babel-Paket.

      @@ -1711,7 +1481,7 @@ Deutsch \glq … \grq
    -‚ … ’ +‚ … ‘
    -

    Für andere Sprachen können andere Regeln gelten, meistens aber mit -den gleichen Zeichen, nur in anderer Zusammensetzung.

    +

    Für andere Sprachen können andere Regeln gelten, meistens aber mit den gleichen Zeichen, nur in anderer Zusammensetzung.

    @@ -1793,8 +1562,7 @@ den gleichen Zeichen, nur in anderer Zusammensetzung.

    Diakritika

    -

    Buchstaben mit Diakritika können entweder direkt über die Tastatur -eingegeben werden oder über Escape-Codes:

    +

    Buchstaben mit Diakritika können entweder direkt über die Tastatur eingegeben werden oder über Escape-Codes:

    @@ -1927,8 +1695,7 @@ o͡o

    Sonderzeichen & Symbole

    -

    Auch andere Sonderzeichen können entweder direkt eingegeben werden -oder per Befehl:

    +

    Auch andere Sonderzeichen können entweder direkt eingegeben werden oder per Befehl:

    @@ -2782,16 +2502,13 @@ Ergebnis \left\lbrace \frac{1}{2} \right\rbrace
    @@ -2126,8 +1893,7 @@ unterstrichen
    - - +
    @@ -2141,10 +1907,8 @@ unterstrichen

    Ein gutgemeinter Rat

    Konsistentes Aussehen über das gesamte Dokument hinweg gewünscht?

    -

    Voreinstellungen von LaTeX zur Schriftgröße verschiedener -Textelemente (Titel, Fließtext, Fußnoten) vertrauen!

    -

    Das heißt im Umkehrschluss: Möglichst wenig manuell an Schriftgrößen -herumschrauben.

    +

    Voreinstellungen von LaTeX zur Schriftgröße verschiedener Textelemente (Titel, Fließtext, Fußnoten) vertrauen!

    +

    Das heißt im Umkehrschluss: Möglichst wenig manuell an Schriftgrößen herumschrauben.

    @@ -2156,8 +1920,7 @@ herumschrauben.

    URLs

    -

    Das Paket hyperref stellt den Befehl \url{} -bereit, der URLs

    +

    Das Paket hyperref stellt den Befehl \url{} bereit, der URLs

    • zeichentreu
    • mit bindestrichlosen Umbrüchen
    • @@ -2182,10 +1945,7 @@ bereit, der URLs

      • -Betont in der Datei -exercises/text-markup/markup.tex die Wörter -Recursion und recursive mit -\emph{…}.
      • +Betont in der Datei exercises/text-markup/markup.tex die Wörter Recursion und recursive mit \emph{…}.
      • Macht die URL im Text anklickbar.
      @@ -2198,8 +1958,7 @@ bereit, der URLs

      Schriftgröße

      -

      Voreingestellte -Schriftgrößen

      +

      Voreingestellte Schriftgrößen

      {\<fontsize> ein Textabschnitt}

      Schriftgrößen relativ zu normalsize:

      {\tiny         Wenn}
      @@ -2225,8 +1984,7 @@ Schriftgrößen
           

      Flattersatz

      -

      Standardmäßig setzt LaTeX Fließtext im Blocksatz, aber auch -Flattersatz ist möglich.

      +

      Standardmäßig setzt LaTeX Fließtext im Blocksatz, aber auch Flattersatz ist möglich.

      \raggedright … \raggedleft …
       \centering …

      Alternativ einsetzbare Umgebungen:

      @@ -2234,8 +1992,7 @@ Flattersatz ist möglich.

      \begin{flushright} Text \end{flushright} \begin{center} Text \end{center}

      -Guter Flattersatz ist noch schwieriger als guter Blocksatz, daher lieber -vermeiden! +Guter Flattersatz ist noch schwieriger als guter Blocksatz, daher lieber vermeiden!

      @@ -2252,10 +2009,8 @@ vermeiden!

      Einzüge und Abstände

        -
      • Absätze werden standardmäßig durch Erstzeileneinzüge -(\parindent) verdeutlicht
      • -
      • Stattdessen (!) können auch Abstände (\parskip) -verwendet werden
      • +
      • Absätze werden standardmäßig durch Erstzeileneinzüge (\parindent) verdeutlicht
      • +
      • Stattdessen (!) können auch Abstände (\parskip) verwendet werden
      • Die beiden Parameter sind beliebig einstellbar:
      \setlength{\parindent}{0pt}
      @@ -2264,8 +2019,7 @@ verwendet werden
           minus .5em % erlaubte Stauchung
       }
        -
      • Mit \noindent kann für nur einen Absatz der Einzug -abgeschaltet werden
      • +
      • Mit \noindent kann für nur einen Absatz der Einzug abgeschaltet werden
    @@ -2304,8 +2058,7 @@ abgeschaltet werden \item Mehl \item Milch \end{itemize} -

    Die einzelnen Stichpunkte werden in jeder Aufzählungsumgebung durch -den Befehl \item gekennzeichnet.

    +

    Die einzelnen Stichpunkte werden in jeder Aufzählungsumgebung durch den Befehl \item gekennzeichnet.

    @@ -2333,8 +2086,7 @@ den Befehl \item gekennzeichnet.

    - - +
    @@ -2372,13 +2124,8 @@ den Befehl \item gekennzeichnet.

    Aufzählungen einfügen

      -
    • Formatiert das Rezept in lists.tex im Ordner -exercises/lists als ungeordnete Liste mit -den Elementen Ingredients und Instructions. Nutzt -dafür den Befehl \itemize.
    • -
    • Benutzt innerhalb dieser Liste für die Zutaten eine -ungeordnete Liste und für die Arbeitsschritte eine -geordnete Liste.
    • +
    • Formatiert das Rezept in lists.tex im Ordner exercises/lists als ungeordnete Liste mit den Elementen Ingredients und Instructions. Nutzt dafür den Befehl \itemize.
    • +
    • Benutzt innerhalb dieser Liste für die Zutaten eine ungeordnete Liste und für die Arbeitsschritte eine geordnete Liste.
    @@ -2390,8 +2137,7 @@ dafür den Befehl \itemize.

    Kompakte Listen

    -

    Das Paket paralist stellt Aufzählungen ohne riesige -Zwischenräume zur Verfügung.

    +

    Das Paket paralist stellt Aufzählungen ohne riesige Zwischenräume zur Verfügung.

    \section{Zutaten}
     \begin{compactitem}
       % \item …
    @@ -2418,16 +2164,14 @@ Zwischenräume zur Verfügung.

    Aufzählungen im Absatz

    -

    Neben den kompakten Listen stellt paralist auch Listen -zur Verfügung, die in einem Absatz stehen.

    +

    Neben den kompakten Listen stellt paralist auch Listen zur Verfügung, die in einem Absatz stehen.

    Folgende Kräuter sind für % …
     \begin{inparaitem}
         \item Liebstöckel
         \item Petersilie
         \item Schnittlauch
     \end{inparaitem}
    -

    Natürlich gibt es auch hier ein Pendant namens -inparaenum für geordnete Listen.

    +

    Natürlich gibt es auch hier ein Pendant namens inparaenum für geordnete Listen.

    @@ -2442,9 +2186,7 @@ zur Verfügung, die in einem Absatz stehen.

    Aufzählungsarten

    -

    Die Art der Aufzählung lässt sich über den optionalen Parameter -label ändern. Hierfür ist das Paket enumitem -notwendig.

    +

    Die Art der Aufzählung lässt sich über den optionalen Parameter label ändern. Hierfür ist das Paket enumitem notwendig.

    % Römische Zahlen
     \begin{enumerate}[label=\roman*]
     % …
    @@ -2484,14 +2226,11 @@ notwendig.

    Formel-Umgebungen 🧮

    $2 \sqrt{\frac{\pi^2}{3} \cdot c_2}$
    -

    Mathematische Formeln können nur im sogenannten -Mathmode gesetzt werden, der inline durch zwei Dollarzeichen -aktiviert wird. Außerdem gibt es eine Blockumgebung:

    +

    Mathematische Formeln können nur im sogenannten Mathmode gesetzt werden, der inline durch zwei Dollarzeichen aktiviert wird. Außerdem gibt es eine Blockumgebung:

    \begin{equation}
       2 \sqrt{\frac{\pi^2}{3} \cdot c_2}
     \end{equation}
    -

    Pakete: amsmath, amsthm, -amssymb, mathtools

    +

    Pakete: amsmath, amsthm, amssymb, mathtools

    @@ -2550,8 +2289,7 @@ Ergebnis

    Ausrichtung von mehreren Gleichungen

    -

    Die Umgebung align erlaubt es, Gleichungen zum Beispiel -am › = ‹ auszurichten.

    +

    Die Umgebung align erlaubt es, Gleichungen zum Beispiel am › = ‹ auszurichten.

    \begin{align}
       13 \cdot (4a - 3)^2 &= 13 … \\
           &= 208a^2 - 312a + 117
    @@ -2559,10 +2297,7 @@ am › = ‹ auszurichten.

    • Ausgerichtet wird am ›&‹-Zeichen.
    • Zeilenumbrüche werden mit ›\\‹ markiert.
    • -
    • Die Nummerierung kann bei align und -equation durch durch ein Sternchen nach dem Umgebungsnamen -(z. B. \begin{align*} und \end{align*}) -unterdrückt werden.
    • +
    • Die Nummerierung kann bei align und equation durch durch ein Sternchen nach dem Umgebungsnamen (z. B. \begin{align*} und \end{align*}) unterdrückt werden.
    @@ -2580,8 +2315,7 @@ unterdrückt werden. Formeln setzen -

    Setzt die folgenden Formeln in der Datei -exercises/maths/math-formulas.tex.

    +

    Setzt die folgenden Formeln in der Datei exercises/maths/math-formulas.tex.

    @@ -2600,18 +2334,15 @@ unterdrückt werden. - + - + - +
    pq-Formel\(x_{1,2} = - \frac{p}{2} \pm -\sqrt{\left(\frac{p}{2}\right)^2 - q}\)\(x_{1,2} = - \frac{p}{2} \pm \sqrt{\left(\frac{p}{2}\right)^2 - q}\)
    Mitternachtsformel\(x_{1,2} = \frac{-b \pm \sqrt{b^2 - -4ac}}{2a}\)\(x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\)
    Catalansche Zahlen\(C_n = \frac{1}{n+1} {2n \choose n} = -\frac{(2n)!}{(n+1)!n!}\)\(C_n = \frac{1}{n+1} {2n \choose n} = \frac{(2n)!}{(n+1)!n!}\)
    @@ -2627,8 +2358,7 @@ unterdrückt werden. Formeln setzen -

    Setzt die folgenden Formeln in der Datei -exercises/maths/math-formulas.tex.

    +

    Setzt die folgenden Formeln in der Datei exercises/maths/math-formulas.tex.

    @@ -2647,14 +2377,12 @@ unterdrückt werden. - + - +
    Menge aller ungeraden natürlichen Zahlen\(\{ x \mid x \in \mathbb{N}, -\text{ungerade}(x) \}\)\(\{ x \mid x \in \mathbb{N}, \text{ungerade}(x) \}\)
    Elimination \(\neg\exists x\) \(\neg\exists x . p(x) \Leftrightarrow -\forall x . \neg p(x)\)\(\neg\exists x . p(x) \Leftrightarrow \forall x . \neg p(x)\)
    @@ -2679,18 +2407,15 @@ Ergebnis
    -(x), [x], \lbrace x \rbrace, -\lvert x \rvert +(x), [x], \lbrace x \rbrace, \lvert x \rvert -\((x), [x], \lbrace x\rbrace, \lvert -x\rvert\) +\((x), [x], \lbrace x\rbrace, \lvert x\rvert\)
    -\exists, \forall, \in, -
    \notin, \infty +\exists, \forall, \in,
    \notin, \infty
    \(\exists,\forall,\in,\notin,\infty\) @@ -2698,23 +2423,18 @@ x\rvert\)
    -\alpha, \beta, \Gamma, -
    \Delta, \varepsilon, \pi +\alpha, \beta, \Gamma,
    \Delta, \varepsilon, \pi
    -\(\alpha, \beta, \Gamma, \Delta, \varepsilon, -\pi\) +\(\alpha, \beta, \Gamma, \Delta, \varepsilon, \pi\)
    -\rightarrow, \leftarrow, -\Rightarrow, \Leftarrow, -\Leftrightarrow +\rightarrow, \leftarrow, \Rightarrow, \Leftarrow, \Leftrightarrow -\(\rightarrow, \leftarrow, \Rightarrow, -\Leftarrow, \Leftrightarrow\) +\(\rightarrow, \leftarrow, \Rightarrow, \Leftarrow, \Leftrightarrow\)
    -\(\left\lbrace \frac{1}{2} -\right\rbrace\) +\(\left\lbrace \frac{1}{2} \right\rbrace\)
    $4 \cdot \left( \frac{1}{2} % …

    -\(4 \cdot \left(\frac{1}{2} +\frac{3}{ 12 -\cdot \left( 2 + \frac{1}{86 \cdot \left(\frac{1}{2} + 24 \right)} -\right)} \right)\) +\(4 \cdot \left(\frac{1}{2} +\frac{3}{ 12 \cdot \left( 2 + \frac{1}{86 \cdot \left(\frac{1}{2} + 24 \right)} \right)} \right)\)

    @@ -2803,16 +2520,13 @@ Ergebnis

    Darstellung von Grenzen

    -

    Mit dem Befehl \limits lassen sich die Grenzen von -Integralen unter und über dem Integralzeichen darstellen. Bei Summen, -Produkten und Grenzwerten geschieht das automatisch.

    +

    Mit dem Befehl \limits lassen sich die Grenzen von Integralen unter und über dem Integralzeichen darstellen. Bei Summen, Produkten und Grenzwerten geschieht das automatisch.

    \sum_{i=1}^{n^2}(x+2)
     \prod_{j=1}^{100}(3 \cdot x)
     \lim_{x \rightarrow \infty}(14x^3 - 12)
     \int\limits_{-12}^{4}(14x^3 - 12)

    -Der Einsatz von \limits sollte im Fließtext vermieden -werden. +Der Einsatz von \limits sollte im Fließtext vermieden werden.

    @@ -2828,17 +2542,13 @@ werden.

    Mengenschreibweise

    -

    Manchmal ist es notwendig, im Zusammenhang mit der Mengenschreibweise -Prädikate unter Verwendung von textuellen Beschreibungen oder längeren -Funktionsnamen zu definieren.

    +

    Manchmal ist es notwendig, im Zusammenhang mit der Mengenschreibweise Prädikate unter Verwendung von textuellen Beschreibungen oder längeren Funktionsnamen zu definieren.

    Für diesen Fall gibt es den Befehl \text{}.

    -\(\left\lbrace x \mid tiefe(x) \geq -20\right\rbrace\) +\(\left\lbrace x \mid tiefe(x) \geq 20\right\rbrace\)

    -\(\left\lbrace x \mid \text{tiefe}(x) \geq -20\right\rbrace\) +\(\left\lbrace x \mid \text{tiefe}(x) \geq 20\right\rbrace\)

    $\left\lbrace x \mid \text{tiefe}(x) …
    @@ -2866,8 +2576,7 @@ Funktionsnamen zu definieren.

    Grafiken abbilden 🖼️

    -

    Um Grafiken darzustellen, muss das Paket graphicx -eingebunden werden.

    +

    Um Grafiken darzustellen, muss das Paket graphicx eingebunden werden.

    \begin{figure}
         \includegraphics{<dateipfad>}
         \caption[<kurztitel (abbildungsver-
    @@ -2887,8 +2596,7 @@ height=5cm]{<dateipfad>}

    Positionierung auf der Seite

    \begin{figure}[<positionskürzel>]
    -

    LaTeX positioniert Grafiken automatisch. Durch Kürzel können wir -unsere Präferenzen (auch in Kombination) angeben.

    +

    LaTeX positioniert Grafiken automatisch. Durch Kürzel können wir unsere Präferenzen (auch in Kombination) angeben.

    @@ -2970,15 +2678,11 @@ Hier, verdammt noch mal!
    (benötigt Paket float)

    Grafiken einfügen

      -
    • Im Ordner exercises/graphics findet ihr eine Bilddatei -namens latex-logo.png.
    • -
    • Fügt sie genau unterhalb dieser Aufgabenstellung im -Skript ein.
    • -
    • Das Bild soll zentriert auf der Seite eingebunden -werden.
    • +
    • Im Ordner exercises/graphics findet ihr eine Bilddatei namens latex-logo.png.
    • +
    • Fügt sie genau unterhalb dieser Aufgabenstellung im Skript ein.
    • +
    • Das Bild soll zentriert auf der Seite eingebunden werden.
    • Fügt außerdem eine Bildunterschrift ein.
    • -
    • Passt die Größe des Bildes an Breite der Seite -(\textwidth) an.
    • +
    • Passt die Größe des Bildes an Breite der Seite (\textwidth) an.
    @@ -3005,8 +2709,7 @@ werden.

    Grundstruktur 🗒️

    -

    Für typografisch schöne Tabellen nutzen wir das Paket -booktabs.

    +

    Für typografisch schöne Tabellen nutzen wir das Paket booktabs.

    \usepackage{booktabs}
    \begin{table}[<position>]
         \begin{tabular}{<spaltendefinition>}
    @@ -3062,8 +2765,7 @@ rechtsbündige Spalte
     
     
    -

    Vertikale Trennlinien und doppelte horizontale Linien sind unter -Typograph*innen nicht gern gesehen und sollten vermieden werden.

    +

    Vertikale Trennlinien und doppelte horizontale Linien sind unter Typograph*innen nicht gern gesehen und sollten vermieden werden.

    @@ -3090,8 +2792,7 @@ Typograph*innen nicht gern gesehen und sollten vermieden werden.

    • Zellen werden durch ›&‹ abgetrennt.
    • Reihen werden durch ›\\‹ beendet.
    • -
    • \toprule, \midrule und -\bottomrule strukturieren die Tabelle.
    • +
    • \toprule, \midrule und \bottomrule strukturieren die Tabelle.
    @@ -3120,12 +2821,10 @@ Typograph*innen nicht gern gesehen und sollten vermieden werden.

    \caption{Bekannte Programmiersprachen} \end{table}

    -Mit @{} vor und nach einer Spaltendefinition wird der -umgebende Weißraum unterdrückt. +Mit @{} vor und nach einer Spaltendefinition wird der umgebende Weißraum unterdrückt.

    -\begin{tabular}{@{}lrcl@{}} beschränkt die Linien auf die -Breite des Tabelleninhalts. +\begin{tabular}{@{}lrcl@{}} beschränkt die Linien auf die Breite des Tabelleninhalts.

    @@ -3137,9 +2836,7 @@ Breite des Tabelleninhalts.

    Mehr Komfort

    -

    Der Tables Generator ist -ein wunderbares Werkzeug, um schnell Tabellen verschiedener Formate zu -erstellen.

    +

    Der Tables Generator ist ein wunderbares Werkzeug, um schnell Tabellen verschiedener Formate zu erstellen.

    @@ -3152,14 +2849,10 @@ erstellen.

    Tabellen setzen

      -
    • Die Liste in der Datei exercises/tables/tables.tex -enthält Infos zu ein paar Lehrveranstaltung an der Fakultät WIAI.
    • +
    • Die Liste in der Datei exercises/tables/tables.tex enthält Infos zu ein paar Lehrveranstaltung an der Fakultät WIAI.
    • Wandelt die Liste in eine Tabelle um.
    • -
    • Die Tabelle soll Spalten für den Namen, das Kürzel -und das Semester der Vorlesungen haben.
    • -
    • Fügt außerdem eine zentrierte Spalte ganz links in -der Tabelle hinzu, in der ihr die Lehrveranstaltungen -nummeriert.
    • +
    • Die Tabelle soll Spalten für den Namen, das Kürzel und das Semester der Vorlesungen haben.
    • +
    • Fügt außerdem eine zentrierte Spalte ganz links in der Tabelle hinzu, in der ihr die Lehrveranstaltungen nummeriert.
    @@ -3171,9 +2864,7 @@ der Tabelle hinzu, in der ihr die Lehrveranstaltungen

    Besonders lange Tabellen

    -

    Tabellen, die über eine Seite hinaus gehen, werden von -tabular einfach abgeschnitten. Die Lösung bietet hier das -Paket longtable:

    +

    Tabellen, die über eine Seite hinaus gehen, werden von tabular einfach abgeschnitten. Die Lösung bietet hier das Paket longtable:

    \usepackage{longtable}
    \begin{longtable}{<spaltendefinition>}
         % Tabelleninhalt
    @@ -3196,12 +2887,9 @@ Paket longtable:

    \label{<label>} \end{longtable}
      -
    • Die longtable-Umgebung vereint die -tabular-Umgebung und die table-Umgebung.
    • -
    • Titel und Label können deshalb direkt unter dem Tabelleninhalt -stehen.
    • -
    • Sofern das Paket booktabs eingebunden ist, stehen seine -Features auch in longtable zur Verfügung.
    • +
    • Die longtable-Umgebung vereint die tabular-Umgebung und die table-Umgebung.
    • +
    • Titel und Label können deshalb direkt unter dem Tabelleninhalt stehen.
    • +
    • Sofern das Paket booktabs eingebunden ist, stehen seine Features auch in longtable zur Verfügung.
    @@ -3213,8 +2901,7 @@ Features auch in longtable zur Verfügung.

    Besonders breite Tabellen

    -

    Sollte die Tabelle einmal zu breit für eine Seite werden, kann sie -auch im Querformat dargestellt werden:

    +

    Sollte die Tabelle einmal zu breit für eine Seite werden, kann sie auch im Querformat dargestellt werden:

    \usepackage{rotating}
    \begin{sidewaystable}[<position>]
         \begin{tabular}{<spaltendef.>}
    @@ -3274,8 +2961,7 @@ auch im Querformat dargestellt werden:

    Fußnoten 📎

    \usepackage{hyperref}
    -

    Die Nummerierung erfolgt automatisch und ist fortlaufend, unabhängig -davon, ob ein neuer Abschnitt beginnt.

    +

    Die Nummerierung erfolgt automatisch und ist fortlaufend, unabhängig davon, ob ein neuer Abschnitt beginnt.

    Eber, beim Hausschwein insbesondere
     oberdeutsch Saubär, beim Wildschwein
     Keiler, bezeichnet das männliche
    @@ -3329,8 +3015,7 @@ Wie man in Abbildung \ref{img:fooboar} …
    Fooboar ist ein sehr engagierter Jungeber (siehe \Cref{img:fooboar}).
    -

    Der Befehl \cref fügt selbstständig die passende -Abkürzung ein.

    +

    Der Befehl \cref fügt selbstständig die passende Abkürzung ein.

    @@ -3345,12 +3030,8 @@ Abkürzung ein.

    Label vergeben

    -

    Beide Referenzierungsbefehle funktionieren mit Abschnitten, -Bildern, Tabellen, Listings und Gleichungen, sofern die -richtigen Label vergeben wurden.

    -

    Label müssen eindeutig sein. Zur Strukturierung ist -das Voranstellen von Kürzeln üblich, denn einige Pakete ziehen aus den -Kürzeln Informationen.

    +

    Beide Referenzierungsbefehle funktionieren mit Abschnitten, Bildern, Tabellen, Listings und Gleichungen, sofern die richtigen Label vergeben wurden.

    +

    Label müssen eindeutig sein. Zur Strukturierung ist das Voranstellen von Kürzeln üblich, denn einige Pakete ziehen aus den Kürzeln Informationen.

    @@ -3397,17 +3078,12 @@ Kürzeln Informationen.

    • -

      Durch \cref eingefügte Passagen tauchen in -einigen Dokumentklassen erst dann auf Deutsch auf, wenn bereits in der -Dokumentklasse die Sprache festgelegt wurde:

      +

      Durch \cref eingefügte Passagen tauchen in einigen Dokumentklassen erst dann auf Deutsch auf, wenn bereits in der Dokumentklasse die Sprache festgelegt wurde:

      \documentclass[ngerman]{article}
    • -
    • Beschriftungen (\caption{…}) müssen, von -Abschnitten abgesehen, immer und vor dem Label vergeben -werden.

    • +
    • Beschriftungen (\caption{…}) müssen, von Abschnitten abgesehen, immer und vor dem Label vergeben werden.

    • -

      Bei Abschnitten wird das Label direkt hinter dem Befehl -angefügt.

      +

      Bei Abschnitten wird das Label direkt hinter dem Befehl angefügt.

      \section{Hinweise}\label{sec:hinweise}
    @@ -3422,13 +3098,8 @@ angefügt.

    Fußnoten einfügen

      -
    • Pack den Text March 2023 in der Datei -exercises/footnotes/footnotes.tex in eine -Fußnote.
    • -
    • Fügt zusätzlich eine klickbare URL, die zur -Download-Seite des Java Development Kit führt -(https://www.oracle.com/java/technologies/javase-downloads.html), -als Fußnote ein.
    • +
    • Pack den Text March 2023 in der Datei exercises/footnotes/footnotes.tex in eine Fußnote.
    • +
    • Fügt zusätzlich eine klickbare URL, die zur Download-Seite des Java Development Kit führt (https://www.oracle.com/java/technologies/javase-downloads.html), als Fußnote ein.
    @@ -3441,18 +3112,10 @@ als Fußnote ein.

    Referenzen einfügen

      -
    • Ersetzt im Text in der Datei references.tex im Ordner -exercises/references In the figure und The -following source code listing durch eine Referenz -auf das Bild bzw. auf das Quelltext-Listing.
    • +
    • Ersetzt im Text in der Datei references.tex im Ordner exercises/references In the figure und The following source code listing durch eine Referenz auf das Bild bzw. auf das Quelltext-Listing.
    • Nutzt dafür den Befehl \Cref.
    • -
    • Achtet darauf, zuerst Labels für die Elemente, die -ihr referenzieren wollt, zu vergeben.
    • -
    • Bei Quelltext-Listings funktioniert die Angabe von -Labels und Captions leicht anders. Nutzt euer bisheriges Wissen und das -Internet, um herauszufinden, wie ihr den Befehl -\lstinputlisting anpassen müsst, um beides zu -vergeben.
    • +
    • Achtet darauf, zuerst Labels für die Elemente, die ihr referenzieren wollt, zu vergeben.
    • +
    • Bei Quelltext-Listings funktioniert die Angabe von Labels und Captions leicht anders. Nutzt euer bisheriges Wissen und das Internet, um herauszufinden, wie ihr den Befehl \lstinputlisting anpassen müsst, um beides zu vergeben.
    @@ -3464,10 +3127,7 @@ vergeben.

    Konfiguration von Fußnoten

    -

    Das Paket footmisc stellt verschiedene weitere Optionen -für die Darstellung von Fußnoten zur Verfügung, die als optionale -Parameter an den Befehl \usepackage übergeben werden -können.

    +

    Das Paket footmisc stellt verschiedene weitere Optionen für die Darstellung von Fußnoten zur Verfügung, die als optionale Parameter an den Befehl \usepackage übergeben werden können.

    % Zählung auf jeder Seite neu beginnen:
     \usepackage[perpage]{footmisc}
     
    @@ -3491,11 +3151,8 @@ können.

    Weiterführend

      -
    • Wurde vor dem Paket cleveref das Paket -hyperref eingebunden, entsteht ein klickbarer -Link im fertigen PDF.
    • -
    • Mehrere Referenzen können in \cref kommagetrennt -angegeben werden.
    • +
    • Wurde vor dem Paket cleveref das Paket hyperref eingebunden, entsteht ein klickbarer Link im fertigen PDF.
    • +
    • Mehrere Referenzen können in \cref kommagetrennt angegeben werden.
    \section{Ein Einstieg}
     \label{sec:section1}
    @@ -3533,11 +3190,9 @@ sec:section3,sec:section5}.

    Was brauchen wir dafür?

      -
    • eine Bibliographiedatei (nachfolgend -.bib-Datei) zur Speicherung von Literaturverweisen
    • +
    • eine Bibliographiedatei (nachfolgend .bib-Datei) zur Speicherung von Literaturverweisen
    • -BibTeX als Schnittstelle zwischen der Literatur und -LaTeX
    • +BibTeX als Schnittstelle zwischen der Literatur und LaTeX
    @@ -3572,30 +3227,23 @@ LaTeX

    Wie wird das verwendet?

    -

    Durch BibTeX wird LaTeX um einige Befehle zum Zitieren erweitert. -Außerdem benötigt wird das Paket natbib.

    +

    Durch BibTeX wird LaTeX um einige Befehle zum Zitieren erweitert. Außerdem benötigt wird das Paket natbib.

      -
    • Zitieren eines Autors: -\citeauthor{<quelle>} +
    • Zitieren eines Autors: \citeauthor{<quelle>}
    • Zitieren einer Quelle: \cite{<quelle>}
    • -
    • Zitieren einer Seite: -\cite[S. 15]{<quelle>} +
    • Zitieren einer Seite: \cite[S. 15]{<quelle>}
    • -
    • Zitieren mit weiteren -Zusätzen:
      \cite[<präfix>][<suffix>]{<quelle>} +
    • Zitieren mit weiteren Zusätzen:
      \cite[<präfix>][<suffix>]{<quelle>}
    • -
    • Verweis auf die genutzte .bib-Datei: -\bibliography{<.bib-datei>} +
    • Verweis auf die genutzte .bib-Datei: \bibliography{<.bib-datei>}
    • -
    • Angabe des genutzten Zitierstils: -
      \bibliographystyle{<zitierstil>} +
    • Angabe des genutzten Zitierstils:
      \bibliographystyle{<zitierstil>}
    -

    Zwei Dinge sind unendlich. Das Universum und die Auswahl an -Zitierstilen.Unbekannt

    +

    Zwei Dinge sind unendlich. Das Universum und die Auswahl an Zitierstilen.Unbekannt

    @@ -3606,8 +3254,7 @@ Zitierstilen.Unbekannt

    -Zitieren im Alpha-Zitierstil - +
    Zitieren im Alpha-Zitierstil
    @@ -3618,9 +3265,7 @@ Zitierstilen.Unbekannt

    -Zitieren im Natdin-Zitierstil - +
    Zitieren im Natdin-Zitierstil
    @@ -3631,9 +3276,7 @@ Natdin-Zitierstil
    -Finden von fertigen BibTeX-Einträgen – Bamberger Katalog - +
    Finden von fertigen BibTeX-Einträgen – Bamberger Katalog
    @@ -3644,9 +3287,7 @@ Bamberger Katalog
    -Finden von fertigen BibTeX-Einträgen – Google Scholar - +
    Finden von fertigen BibTeX-Einträgen – Google Scholar
    @@ -3657,9 +3298,7 @@ Google Scholar
    -Finden von fertigen BibTeX-Einträgen – Google Scholar - +
    Finden von fertigen BibTeX-Einträgen – Google Scholar
    @@ -3670,9 +3309,7 @@ Google Scholar
    -Finden von fertigen BibTeX-Einträgen – dblp.org - +
    Finden von fertigen BibTeX-Einträgen – dblp.org
    @@ -3685,22 +3322,17 @@ dblp.org

    Ein Literaturverzeichnis erstellen und einfügen

      -
    • Erstellt im Ordner exercises/literature eine neue -BibTeX-Datei literature.bib.
    • -
    • Sucht bei Google Scholar oder dblp.org die BibTeX-Einträge für -folgende \(\LaTeX\)-Handbücher: +
    • Erstellt im Ordner exercises/literature eine neue BibTeX-Datei literature.bib.
    • +
    • Sucht bei Google Scholar oder dblp.org die BibTeX-Einträge für folgende \(\LaTeX\)-Handbücher:
        -
      • Dilip Datta (2017): \(\LaTeX\) in -24 Hours. A Practical Guide for Scientific Writing.
      • +
      • Dilip Datta (2017): \(\LaTeX\) in 24 Hours. A Practical Guide for Scientific Writing.
      • Frank Mittelbach / Michel Goossens (2012): Der \(\LaTeX\)-Begleiter.
    • Fügt die BibTeX-Einträge in die BibTeX-Datei ein.
    • Vergebt aussagekräftige BibTeX-Keys.
    • -
    • Bindet die BibTeX-Datei an einer geeigneten Stelle ein, an der -später auch das Literaturverzeichnis zu sehen sein soll.
    • -
    • Zitiert die zwei Handbücher im Text in der Datei -exercises/literature/literature.tex.
    • +
    • Bindet die BibTeX-Datei an einer geeigneten Stelle ein, an der später auch das Literaturverzeichnis zu sehen sein soll.
    • +
    • Zitiert die zwei Handbücher im Text in der Datei exercises/literature/literature.tex.
    • Wählt den Bibliographiestil plain.
    @@ -3728,8 +3360,7 @@ später auch das Literaturverzeichnis zu sehen sein soll.

    Direkt im LaTeX-Quelltext

    -

    Das Paket listings bietet zum Einfügen von Code eine -eigene Umgebung:

    +

    Das Paket listings bietet zum Einfügen von Code eine eigene Umgebung:

    \section*{Haskell-Magie}
     Quadrate aller geraden % …
     \begin{lstlisting}[language=Haskell]
    @@ -3749,8 +3380,7 @@ Quadrate aller geraden % …
         

    Externer Code

    -

    Praktischerweise bietet listings einen Befehl zum -Einfügen externen Codes:

    +

    Praktischerweise bietet listings einen Befehl zum Einfügen externen Codes:

    \section*{Einfache Java-Anwendung}
     \lstinputlisting[language=Java]{Test.java}
    public class Test {
    @@ -3772,9 +3402,7 @@ Einfügen externen Codes:

    Themen und Stile

    -

    listings stellt keine eigenen Themes zur Verfügung. Dies -kann aber durch die vielen Konfigurationsoptionen ausgeglichen -werden.

    +

    listings stellt keine eigenen Themes zur Verfügung. Dies kann aber durch die vielen Konfigurationsoptionen ausgeglichen werden.

    \begin{lstlisting}[
         language=Java,
         basicstyle=\footnotesize\ttfamily,
    @@ -3785,8 +3413,7 @@ werden.

    ] % … \end{lstlisting}
    -

    Für die Erstellung eigener Themes ist der Befehl \lstset -nützlich.

    +

    Für die Erstellung eigener Themes ist der Befehl \lstset nützlich.

    @@ -3799,16 +3426,13 @@ nützlich.

    @@ -3822,27 +3446,18 @@ solarized-Stil für listings

    Listings

      -
    • Im Ordner exercises/source-code-listings findet ihr -eine Datei namens Source.java.
    • +
    • Im Ordner exercises/source-code-listings findet ihr eine Datei namens Source.java.
    • -Bindet den Java-Quelltext in der Datei -source-code-listings.tex ein. (Beachtet, -dass der Dateipfad relativ zu main-exercises.tex ist.)
    • -
    • Erlaubt die Verwendung von Sonderzeichen durch -Angabe der literate-Option.
    • -
    • Aktiviert das Syntax-Highlighting durch Angabe der -Sprache Java.
    • +Bindet den Java-Quelltext in der Datei source-code-listings.tex ein. (Beachtet, dass der Dateipfad relativ zu main-exercises.tex ist.) +
    • Erlaubt die Verwendung von Sonderzeichen durch Angabe der literate-Option.
    • +
    • Aktiviert das Syntax-Highlighting durch Angabe der Sprache Java.
    • -Nummeriert die Zeilen und aktiviert -Umbrüche.
    • -
    • Setzt mit dem Parameter basicstyle eine dicktengleiche -Schrift (\ttfamily \small).
    • +Nummeriert die Zeilen und aktiviert Umbrüche. +
    • Setzt mit dem Parameter basicstyle eine dicktengleiche Schrift (\ttfamily \small).
    • Ändert die Schlüsselwortfarbe zu Blau.
    • -
    • Verbergt die Sonderzeichen, die Leerzeichen in -Zeichenketten markieren.
    • +
    • Verbergt die Sonderzeichen, die Leerzeichen in Zeichenketten markieren.
    -

    Seht bei Fragen in der Dokumentation des Paketes -listings nach.

    +

    Seht bei Fragen in der Dokumentation des Paketes listings nach.

    @@ -3898,9 +3513,7 @@ weiter verbreitet.

    Präsentationen gestalten

    -

    Für Präsentationen gibt es die Dokumentenklasse beamer -sowie zahlreiche Vorlagen und -Themes.

    +

    Für Präsentationen gibt es die Dokumentenklasse beamer sowie zahlreiche Vorlagen und Themes.

    \documentclass{beamer}
     \usetheme{Frankfurt}
     \usecolortheme{seahorse}
    @@ -3931,8 +3544,7 @@ Themes.

    Grafiken erstellen

    -

    TikZ (»TikZ ist kein Zeichenprogramm«) ist ein -umfangreiches Paket zur Erstellung von Vektorgrafiken.

    +

    TikZ (»TikZ ist kein Zeichenprogramm«) ist ein umfangreiches Paket zur Erstellung von Vektorgrafiken.

    % …
     \tikzstyle{every node}=[draw=black,thick,anchor=west]
     \tikzstyle{selected}=[draw=red,fill=red!30]
    @@ -3973,8 +3585,7 @@ child { node {home}
         

    Linguistik

    -

    Mit dem Paket qtree lassen sich Konstituentenbäume -erstellen:

    +

    Mit dem Paket qtree lassen sich Konstituentenbäume erstellen:

    \Tree [.S [.NP LaTeX ]
     [.VP [.V is ] [.NP fun ] ] ]
    @@ -3991,8 +3602,7 @@ erstellen:

    Mathematische Beweisführung

    -

    Beweisbäume lassen sich mit dem Paket prftree -einwandfrei darstellen.

    +

    Beweisbäume lassen sich mit dem Paket prftree einwandfrei darstellen.

    \begin{displaymath}
     \prftree[l,r]{}{[comp$\_{ns}$]}
     {
    @@ -4094,10 +3704,7 @@ Verschachtelte Abbildungen und ausgefeilte Bildunterschriften
     
    -colortbl, -tabularx, -multirow, -makecell +colortbl, tabularx, multirow, makecell Gestalten von Tabellen @@ -4130,8 +3737,7 @@ Gestalten von Tabellen

    Wikibooks

    -

    Das Wikibook zu LaTeX enthält eine große Anzahl interessanter Artikel -und ist auch in deutscher Sprache verfügbar.

    +

    Das Wikibook zu LaTeX enthält eine große Anzahl interessanter Artikel und ist auch in deutscher Sprache verfügbar.

    @@ -4144,8 +3750,7 @@ und ist auch in deutscher Sprache verfügbar.

    CTAN

    -

    Das »Comprehensive TeX Archive Network« ist die zentrale Quelle für -LaTeX-Pakete und ihre Dokumentation.

    +

    Das »Comprehensive TeX Archive Network« ist die zentrale Quelle für LaTeX-Pakete und ihre Dokumentation.

    @@ -4158,12 +3763,8 @@ LaTeX-Pakete und ihre Dokumentation.

    Overleaf

    -

    Ein Online-LaTeX-Editor, der das kollaboratives Arbeiten an -Dokumenten ermöglicht.

    -

    Außerdem findest du auf der Seite verschiedene Tutorials und unter -»Templates« -LaTeX-Vorlagen für viele Gelegenheiten (Lebenslauf, Abschlussarbeiten, -…).

    +

    Ein Online-LaTeX-Editor, der das kollaboratives Arbeiten an Dokumenten ermöglicht.

    +

    Außerdem findest du auf der Seite verschiedene Tutorials und unter »Templates« LaTeX-Vorlagen für viele Gelegenheiten (Lebenslauf, Abschlussarbeiten, …).

    @@ -4189,8 +3790,7 @@ LaTeX-Vorlagen für viele Gelegenheiten (Lebenslauf, Abschlussarbeiten,

    TeXample

    -

    Webseite mit zahlreichen LaTeX-Beispielvorlagen, vor allem zu -TikZ.

    +

    Webseite mit zahlreichen LaTeX-Beispielvorlagen, vor allem zu TikZ.

    @@ -4201,8 +3801,7 @@ TikZ.

    -Klassisch (Quelle) - +
    Klassisch (Quelle)
    @@ -4213,8 +3812,7 @@ TikZ.

    -Noch klassischer (Quelle) - +
    Noch klassischer (Quelle)
    @@ -4225,8 +3823,7 @@ TikZ.

    -Anders (Quelle) - +
    Anders (Quelle)
    @@ -4239,12 +3836,9 @@ TikZ.

    Fachschaft WIAI

    - Wenn ihr sonst noch Fragen oder Probleme habt, kommt gerne bei uns -vorbei oder schreibt uns eine Mail! + Wenn ihr sonst noch Fragen oder Probleme habt, kommt gerne bei uns vorbei oder schreibt uns eine Mail!

    -📍WE5/02.104
    -☎️0951 863 1219
    -📧fachschaft-wiai.stuve@uni-bamberg.de +📍WE5/02.104
    ☎️0951 863 1219
    📧fachschaft-wiai.stuve@uni-bamberg.de