Debian-based distributions: run
-sudo apt install texlive-full
+
Debian-based distributions: run sudo apt install texlive-full
-
other distributions: see the
-TEXLive
-website
+
other distributions: see the TEXLive website
-
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!
An editor can downloaded once the compiler has been installed
-
For editing LaTeX documents, any text editor works fine, e.g.,
-Notepad++,
-VSCode
+
For editing LaTeX documents, any text editor works fine, e.g., Notepad++, VSCode
-
For beginners,
-TEXstudio
-is recommended due to its LaTeX-specific features
-
Download and install
-TEXstudio
+
For beginners, TEXstudio is recommended due to its LaTeX-specific features
+
Download and install TEXstudio
@@ -115,17 +93,13 @@ TEXstudio
Download the project archive from the VC.
Unzip the archive.
-
Open the file main-exercises.tex in
-TEXstudio. It is
-located in the root directory of the archive.
+
Open the file main-exercises.tex in TEXstudio. It is located in the root directory of the archive.
Compile main-exercises.tex by pressing ⏩
A few new files will be generated by the compilation.
-
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?
\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
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:
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.tex → basic-document-structure.tex (in a subfolder)
./content/basic-document-structure.tex
@@ -1309,14 +1125,12 @@ could also write praeamble.tex here.
basic-functionality.tex → graphics.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:
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.
@@ -1735,7 +1519,7 @@ German
\glq … \grq
-‚ … ’
+‚ … ‘
@@ -1761,8 +1545,7 @@ German altern.
-
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:
@@ -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 (!)
-\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.
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:
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.
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:
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.
@@ -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.
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.
- 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!
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 unterschiedliche
-Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche
-Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche
-Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche
-Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche
-Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche
-Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche
-Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche
-Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche
-Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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 unterschiedliche Zeilenabstände bei unterschiedlichen Satzbreiten auswirken. 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?
\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:
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
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.tex → basic-document-structure.tex (in einem Unterordner)
./content/basic-document-structure.tex
@@ -1322,14 +1129,12 @@ relativen Pfaden auf den aktuellen Ordner (hier:
basic-functionality.tex → graphics.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:
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
-‚ … ’
+‚ … ‘
@@ -1781,8 +1551,7 @@ Englisch (B. E.)
-
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:
@@ -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
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.
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:
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.
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.
-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.
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:
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/referencesIn 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/referencesIn 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.
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,
- 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!