diff --git a/latex-weekend/index.html b/latex-weekend/index.html index dbb0b22..76b6da7 100644 --- a/latex-weekend/index.html +++ b/latex-weekend/index.html @@ -18,9 +18,9 @@ Weekend -

A Fachschaft WIAI workshop. Presented by Laetitia Hilgendorf, -Jessica Klarmann, Florian Knoch, Theresa Knoll, Jochen Mehlich, and -Hannah Rattenberger.

+

A Fachschaft WIAI workshop. Presented by Alice, Christian, Clara, +Evelyn, Fabian, Florian, Jochen, Katharina, Kilian, Paul, and +Sandra.

@@ -37,7 +37,8 @@ Hannah Rattenberger.

Procedure of this workshop

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

+
LaTeX manual based on our LaTeX +Script.

Windows: In order to enable file endings, click the @@ -619,19 +620,20 @@ register: e. g. \section*{}.

Structure your document and text

-
    +
    +

    Close all open tabs from previous tasks.

    +
    +
    • 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.
    -
    \documentclass{article}
    +
    \documentclass{article}
     \usepackage[utf8]{inputenc}
     \usepackage[T1]{fontenc}
     \usepackage[english]{babel}
      -
    • In TeXstudio, right click on the file and select “Set as explicit -root document.” Next, compile the file.
    • 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 @@ -890,6 +892,85 @@ of section 2.
+ +
+
+
+

Compiling the project +

+
    +
  • +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.
  • +
+ +
+
+ +
+
+
+
+

A structured project +

+
+

Close all open tabs from previous tasks.

+
+

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.
  • +
  • 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?
  • +
+ +
+
+ +
+
+ + +
+
+
+
+

Macros +

+

It may be helpful to specify custom macros for often-used code.

+
\newcommand{\<name>}[<parameter_count>][<default>]{<content>}
+

In the script, we used these macros for margins and acronyms (see +commands.tex for more examples):

+
\newcommand{\widefiguremargin}{-.22\textwidth}
+\newcommand{\acro}[1]{\textsc{\lowercase{#1}}}
+

It is also possible to customize existing commands. \(\LaTeX\) even allows you to use programming +patterns like variables, conditionals, and loops. To learn more, have a +look at this +WikiBook chapter.

+ +
+
+
@@ -985,83 +1066,6 @@ as fragments.
-
-
-
-
-

Compiling the project -

-
    -
  • -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.
  • -
- -
-
- - -
-
-
-
-

A structured project -

-

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.
  • -
  • 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?
  • -
- -
-
- -
-
-
-
-

Embedding PDF documents -

-

The pdfpages package allows for embedding entire PDF -documents.

-
\includepdf[pages={<from>-<to>}]{<file>}
-

Further options make multiple pages appear in tiles and change the -orientation to landscape, among other things. See the package documentation for a -complete list.

- -
-
- -
-
-
-
-

Macros -

-

It may be helpful to specify custom macros for often-used code.

-
\newcommand{\<name>}[<parameter_count>][<default>]{<content>}
-

In the script, we used these macros for margins and acronyms (see -commands.tex for more examples):

-
\newcommand{\widefiguremargin}{-.22\textwidth}
-\newcommand{\acro}[1]{\textsc{\lowercase{#1}}}
-

It is also possible to customize existing commands. \(\LaTeX\) even allows you to use programming -patterns like variables, conditionals, and loops. To learn more, have a -look at this -WikiBook chapter.

- -
-
-
@@ -1874,6 +1878,8 @@ link.

recursive in exercises/text-markup/markup.tex using \emph{…}.
  • Make the URL in the text clickable.
  • +
  • Find a proper way to display the whole paragraph as a +quote. Have a look at the csquotes package.
  • Of course, you can also experiment with the other text markup possibilities. However, remove them afterwards if you want to have a clean document.
  • @@ -2715,10 +2721,10 @@ text (\textwidth). package.

    \usepackage{booktabs}
    \begin{table}[<position>]
    +    \caption{<caption>}
         \begin{tabular}{<column definition>}
             % table content
         \end{tabular}
    -    \caption{<caption>}
     \end{table}

    Positioning works just like with graphics.

    @@ -2786,7 +2792,7 @@ upon by typographers and should be avoided.

    \begin{tabular}{lll}
         \toprule
    -    Column 1 & Column 2 & Column 3 \\
    +    Column 1 & Column 2 & Column 3    \\
         \midrule
         Content a & Content b & Content c \\
         Content e & Content f & Content g \\
    @@ -2819,9 +2825,9 @@ upon by typographers and should be avoided.

    \toprule Language & Author & Year & File extension \\ \midrule - C++ & Bjarne Stroustrup & 1985 & .cpp \\ - Java & James Gosling & 1998 & .java \\ - Python & Guido van Rossum & 1991 & .py \\ + C++ & Bjarne Stroustrup & 1985 & .cpp \\ + Java & James Gosling & 1998 & .java \\ + Python & Guido van Rossum & 1991 & .py \\ \bottomrule \end{tabular} \end{table}
    @@ -2883,9 +2889,9 @@ text on the left side of the table in order to longtable package:

    \usepackage{longtable}
    \begin{longtable}{<column definition>}
    -    % table content
         \caption{<caption>}
         \label{<label>}
    +    % table content
     \end{longtable}
    @@ -2898,9 +2904,9 @@ text on the left side of the table in order to

    Notes on longtable

    \begin{longtable}{<column definition>}
    -    % table content
         \caption{<caption>}
         \label{<label>}
    +    % table content
     \end{longtable}
    +
    +
    +
    +
    +Citing in Alpha style ([style=alphabetic,backend=biber]) + +
    + +
    +
    + +
    +
    +
    +
    +
    +Citing in IEEE style ([style=ieee,backend=biber]) + +
    + +
    +
    +
    @@ -3510,9 +3539,19 @@ programming language Java.
  • a bibliography file (hereafter .bib file) for storing references
  • -BibLaTeX as an interface between the references and -LaTeX
  • +Biber/BibLaTeX as an interface between the +references and LaTeX +
    +

    Preparing TeXstudio:

    +
      +
    • Bibliography > set type to BibLaTeX +
    • +
    • Options > Configure TeXstudio > Generate > set standard for +bibliography to Biber +
    • +
    +
    @@ -3524,8 +3563,8 @@ LaTeX

    What is this mysterious .bib file?

    @article{turing1990, % the type of the document and an identifier for the \cite command
         title={The chemical basis of morphogenesis}, % information
    @@ -3536,6 +3575,11 @@ LaTeX
         date={1990},                                 % follows
         publisher={Springer}                         % …
     }
    +

    [1] Note: Even though we are working with BibLaTeX, +our bibliography file adheres to the conventions of BibTeX, which is an +alternative program. The name has been established for all kinds of +things related to LaTeX citations. This is similar to the way we refer +to online search by the name of one popular search engine.

    @@ -3548,7 +3592,7 @@ LaTeX

    Some well-meaning advice

    @@ -3557,10 +3601,6 @@ LaTeX

    This conversely means: Avoid fiddling around with styles manually.

    -
    -

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

    -
    @@ -3611,6 +3651,10 @@ backend=biber]{biblatex}
    \usepackage[style=numeric, citestyle=ieee, 
     backend=biber]{biblatex}
    +
    +

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

    +
    @@ -3731,14 +3775,12 @@ dashed=false, url=false, backend=biber]{biblatex}

    An exemplary reference in the citation style above:

    -
    \textcite{thatcher2002} or in parentheses
    -\parencite{thatcher2002}.
    -
    -\printbibliography
    +
    … in parentheses \parencite{thatcher2002} 
    +or simply as \textcite{thatcher2002} …
    - +
    @@ -3748,31 +3790,7 @@ backend=biber]{biblatex}
    -Citing in Alpha style - -
    - -
    -
    - -
    -
    -
    -
    -
    -Citing in IEEE style - -
    - -
    -
    - -
    -
    -
    -
    -
    -Finding ready-made BibTeX entries – University of Bamberg Library +Finding ready-made BibTeX entries – University of Bamberg Library
    @@ -3839,7 +3857,7 @@ following \(\LaTeX\) handbooks:
  • Add the BibTeX entries to the BibTeX file.
  • Assign unique and meaningful BibTeX keys.
  • Add the bibliography file to the project’s preamble.
  • -
  • Make use of the alpha bibliography style.
  • +
  • Make use of the alphabetic bibliography style.
  • Cite the two handbooks in the file exercises/literature/literature.tex.
  • Ensure that the bibliography is listed.
  • @@ -3899,16 +3917,6 @@ format, and set keep updated to true .bib-file -
  • -TeXstudio: -
      -
    • Bibliography > set type to BibLaTeX -
    • -
    • Options > Configure TeXstudio > Generate > set standard for -bibliography to Biber -
    • -
    -
  • @@ -4012,6 +4020,19 @@ themes.

    +
    +
    +
    +
    +
    +A (more modern) beamer example + +
    + +
    +
    +
    @@ -4050,7 +4071,7 @@ child { node {home}
    - +
    diff --git a/latex-weekend/svg/literature/bamberg_catalogue_bibtex.png b/latex-weekend/svg/literature/bamberg_catalogue_bibtex.png new file mode 100644 index 0000000..2773045 Binary files /dev/null and b/latex-weekend/svg/literature/bamberg_catalogue_bibtex.png differ diff --git a/latex-weekend/svg/literature/bamberger_katalog_bibtex.png b/latex-weekend/svg/literature/bamberger_katalog_bibtex.png new file mode 100644 index 0000000..2ebbf6e Binary files /dev/null and b/latex-weekend/svg/literature/bamberger_katalog_bibtex.png differ diff --git a/latex-weekend/svg/literature/example_citation-crop.svg b/latex-weekend/svg/literature/example_citation-crop.svg new file mode 100644 index 0000000..9dfe373 --- /dev/null +++ b/latex-weekend/svg/literature/example_citation-crop.svg @@ -0,0 +1,736 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latex-weekend/svg/literature/example_citation-orig.svg b/latex-weekend/svg/literature/example_citation-orig.svg new file mode 100644 index 0000000..9f44390 --- /dev/null +++ b/latex-weekend/svg/literature/example_citation-orig.svg @@ -0,0 +1,736 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latex-weekend/svg/literature/example_citation.tex b/latex-weekend/svg/literature/example_citation.tex new file mode 100644 index 0000000..c289335 --- /dev/null +++ b/latex-weekend/svg/literature/example_citation.tex @@ -0,0 +1,12 @@ +\documentclass[a4paper, pdftex, 12pt]{scrartcl} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[ngerman]{babel} +\usepackage[style=authoryear, backend=biber, maxnames=3, minnames=1, nohashothers=true, dashed=false, url=false]{biblatex} +\addbibresource{collection.bib} +\begin{document} +\thispagestyle{empty} +Wir können die Arbeit in Klammern \parencite{thatcher2002} oder einfach als \textcite{thatcher2002} zitieren. + +\printbibliography +\end{document} diff --git a/latex-weekend/svg/literature/example_citation_en-crop.svg b/latex-weekend/svg/literature/example_citation_en-crop.svg new file mode 100644 index 0000000..48ae334 --- /dev/null +++ b/latex-weekend/svg/literature/example_citation_en-crop.svg @@ -0,0 +1,733 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latex-weekend/svg/literature/example_citation_en-orig.svg b/latex-weekend/svg/literature/example_citation_en-orig.svg new file mode 100644 index 0000000..d7b8720 --- /dev/null +++ b/latex-weekend/svg/literature/example_citation_en-orig.svg @@ -0,0 +1,733 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latex-weekend/svg/literature/example_citation_en.tex b/latex-weekend/svg/literature/example_citation_en.tex new file mode 100644 index 0000000..b94ca9c --- /dev/null +++ b/latex-weekend/svg/literature/example_citation_en.tex @@ -0,0 +1,11 @@ +\documentclass[a4paper, pdftex, 12pt]{scrartcl} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[english]{babel} +\usepackage[style=authoryear, backend=biber, maxnames=3, minnames=1, nohashothers=true, dashed=false, url=false]{biblatex} +\addbibresource{collection.bib} +\begin{document} +\thispagestyle{empty} +We might exemplarily cite the work in parentheses \parencite{thatcher2002} or simply as \textcite{thatcher2002}. +\printbibliography +\end{document} diff --git a/latex-weekend/svg/packages/beamer-example-grabs.jpg b/latex-weekend/svg/packages/beamer-example-grabs.jpg new file mode 100644 index 0000000..a135bca Binary files /dev/null and b/latex-weekend/svg/packages/beamer-example-grabs.jpg differ diff --git a/latex-wochenende/index.html b/latex-wochenende/index.html index e5781db..fd5fdbb 100644 --- a/latex-wochenende/index.html +++ b/latex-wochenende/index.html @@ -17,9 +17,9 @@

    LATEX-Wochenende

    -

    Ein Workshop der Fachschaft WIAI. Präsentiert von -Laetitia Hilgendorf, Jessica Klarmann, Florian Knoch, Theresa Knoll, -Jochen Mehlich und Hannah Rattenberger.

    +

    Ein Workshop der Fachschaft WIAI. Präsentiert von Alice, Christian, +Clara, Evelyn, Fabian, Florian, Jochen, Katharina, Kilian, Paul und +Sandra.

    @@ -35,8 +35,9 @@ Jochen Mehlich und Hannah Rattenberger.

    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.

    @@ -245,17 +246,18 @@ Anleitung auf ⏩ klickt. -
  • Einige neue Dateien sollten nun durch das Kompilieren generiert -werden.
  • +
  • Schaut euch die neuen Dateien an, die durch das Kompilieren +generiert werden.
  • Windows: 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.

    +könnt ihr besser zwischen den einzelnen main-Dateien +unterscheiden.

    @@ -620,21 +622,22 @@ mit einem »*« versehen, also z. B.

    Dokument und Text gliedern

    -
      +
      +

      Schließt alle offenen Tabs aus vorherigen +Aufgaben.

      +
      +
      • Ö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 +document-Umgebung und schreibt darüber folgende Präambel.
      -
      \documentclass{article}
      +
      \documentclass{article}
       \usepackage[utf8]{inputenc}
       \usepackage[T1]{fontenc}
       \usepackage[ngerman]{babel}
        -
      • Öffnet mittels Rechtsklick auf die Datei das Kontextmenü und setzt -die Datei als explizites Root-Dokument. Kompiliert sie -anschließend.
      • Wie ihr sehen könnt, sind in der Datei die Absätze im Dokument mit \\ erstellt worden. Ersetzt diese durch richtige Absätze.
      • @@ -895,6 +898,89 @@ Inhalt von Abschnitt 2.
    +
    +
    +
    +
    +

    Kompilieren des Projekts +

    +
      +
    • +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.
    • +
    + +
    +
    + +
    +
    +
    +
    +

    Ein strukturiertes Projekt +

    +
    +

    Schließt alle offenen Tabs aus vorherigen +Aufgaben.

    +
    +

    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.
    • +
    • 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?
    • +
    + +
    +
    + +
    +
    + + +
    +
    +
    +
    +

    Makros +

    +

    Manchmal ist es nützlich, oft genutzten Codes durch Makros zu +vereinfachen.

    +
    \newcommand{\<name>}[<parameter_count>][<default>]{<content>}
    +

    Im Skript haben wir solche Makros unter anderem verwendet, um +Abstände und Akronyme zu definieren (siehe commands.tex für +weitere Beispiele):

    +
    \newcommand{\widefiguremargin}{-.22\textwidth}
    +\newcommand{\acro}[1]{\textsc{\lowercase{#1}}}
    +

    Es ist auch möglich, bestehende Befehle anzupassen. \(\LaTeX\) erlaubt es sogar, +Programmierkonstrukte wie Variablen, Verzweigungen und Schleifen zu +nutzen. Für weitere Einblicke dient dieses Kapitel des +WikiBooks.

    + +
    +
    +
    @@ -994,86 +1080,6 @@ Dateien einbindet, die wiederum andere Dateien referenzieren.
    -
    -
    -
    -
    -

    Kompilieren des Projekts -

    -
      -
    • -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.
    • -
    - -
    -
    - - -
    -
    -
    -
    -

    Ein strukturiertes Projekt -

    -

    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.
    • -
    • 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?
    • -
    - -
    -
    - -
    -
    -
    -
    -

    PDF-Dokumente einbetten -

    -

    Das Paket pdfpages erlaubt das Einbetten ganzer -PDF-Dokumente.

    -
    \includepdf[pages={<from>-<to>}]{<file>}
    -

    Weitere Parameter lassen mehrere Seiten in Kacheln nebeneinander -erscheinen oder ändern die Ausrichtung zu Querformat. Die Paket-Dokumentation enthält -eine abschließende Liste aller Möglichkeiten.

    - -
    -
    - -
    -
    -
    -
    -

    Makros -

    -

    Manchmal ist es nützlich, oft genutzten Codes durch Makros zu -vereinfachen.

    -
    \newcommand{\<name>}[<parameter_count>][<default>]{<content>}
    -

    Im Skript haben wir solche Makros unter anderem verwendet, um -Abstände und Akronyme zu definieren (siehe commands.tex für -weitere Beispiele):

    -
    \newcommand{\widefiguremargin}{-.22\textwidth}
    -\newcommand{\acro}[1]{\textsc{\lowercase{#1}}}
    -

    Es ist auch möglich, bestehende Befehle anzupassen. \(\LaTeX\) erlaubt es sogar, -Programmierkonstrukte wie Variablen, Verzweigungen und Schleifen zu -nutzen. Für weitere Einblicke dient dieses Kapitel des -WikiBooks.

    - -
    -
    -
    @@ -1892,6 +1898,11 @@ klickbaren Linktext.

    Recursion und recursive mit \emph{…}.
  • Macht die URL im Text anklickbar.
  • +
  • Findet einen geeigneten Weg, um den gesamten Absatz als +Zitat anzuzeigen. Schaut hierzu in die Doku des +Paketescsquotes.
  • +
  • Natürlich könnt ihr auch mit anderen Auszeichnungen +experimentieren.
  • @@ -2731,10 +2742,10 @@ werden. booktabs.

    \usepackage{booktabs}
    \begin{table}[<position>]
    +    \caption{<tabellenüberschrift>}
         \begin{tabular}{<spaltendefinition>}
             % Tabelleninhalt
         \end{tabular}
    -    \caption{<tabellenunterschrift>}
     \end{table}

    Die Positionierung erfolgt analog zu Grafiken.

    @@ -2835,9 +2846,9 @@ Typograph*innen nicht gern gesehen und sollten vermieden werden.

    \toprule Sprache & Autor & Erscheinungsjahr & Dateiendung \\ \midrule - C++ & Bjarne Stroustrup & 1985 & .cpp \\ - Java & James Gosling & 1998 & .java \\ - Python & Guido van Rossum & 1991 & .py \\ + C++ & Bjarne Stroustrup & 1985 & .cpp \\ + Java & James Gosling & 1998 & .java \\ + Python & Guido van Rossum & 1991 & .py \\ \bottomrule \end{tabular} \end{table}
    @@ -2898,9 +2909,9 @@ der Tabelle hinzu, in der ihr die Lehrveranstaltungen Paket longtable:

    \usepackage{longtable}
    \begin{longtable}{<spaltendefinition>}
    -    % Tabelleninhalt
    -    \caption{<tabellenunterschrift>}
    +    \caption{<tabellenüberschrift>}
         \label{<label>}
    +    % Tabelleninhalt
     \end{longtable}
    @@ -2913,9 +2924,9 @@ Paket longtable:

    Hinweise zu longtable

    \begin{longtable}{<spaltendefinition>}
    -    % Tabelleninhalt
    -    \caption{<tabellenunterschrift>}
    +    \caption{<tabellenüberschrift>}
         \label{<label>}
    +    % Tabelleninhalt
     \end{longtable}
    +
    +
    +
    +
    +Zitieren im Alpha-Zitierstil ([style=alphabetic,backend=biber]) + +
    + +
    +
    + +
    +
    +
    +
    +
    +Zitieren im IEEE-Zitierstil ([style=ieee,backend=biber]) + +
    + +
    +
    +
    @@ -3527,9 +3563,19 @@ Zeichenketten markieren.
  • eine Bibliographiedatei (nachfolgend .bib-Datei) zur Speicherung von Literaturverweisen
  • -BibLaTeX als Schnittstelle zwischen der Literatur -und LaTeX
  • +Biber/BibLaTeX als Schnittstelle zwischen der +Literatur und LaTeX +
    +

    TeXstudio vorbereiten:

    +
      +
    • Bibliographie > Art: BibLaTeX +
    • +
    • Optionen > TeXstudio konfigurieren > Erzeugen > ändert das +Standard-Bibliographieprogramm zu Biber +
    • +
    +
    @@ -3541,7 +3587,7 @@ und LaTeX

    Was ist diese ominöse .bib-Datei?

      -
    • Sammlung von Literatureinträgen im BibLaTeX-Format
    • +
    • Sammlung von Literatureinträgen im BibTeX-Format¹
    • Beispielhafter Literatureintrag:
    @article{turing1990, % Art des Dokuments und Bezeichner für den \cite Befehl
    @@ -3553,6 +3599,11 @@ und LaTeX
         date={1990}, % Erscheinungsjahr
         publisher={Springer} % Verleger des Journals
     }
    +

    [1] Hinweis: Auch wenn wir mit BibLaTeX arbeiten, +folgt unsere Bibliographie-Datei dem Format des alternativen Programms +BibTeX. Der Name hat sich für verschiedene Dinge im Zusammenhang mit +LaTeX-Referenzen etabliert, ähnlich wie wir spezielle Suchmaschinen im +Sprachgebrauch für alle Suchanfragen im Netz verwenden.

    @@ -3576,10 +3627,6 @@ Voreinstellungen.

    Das heißt im Umkehrschluss: Möglichst wenig manuell an den Zitationen herumschrauben.

    -
    -

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

    -
    @@ -3631,6 +3678,10 @@ backend=biber]{biblatex}
    \usepackage[style=numeric, citestyle=ieee, 
     backend=biber]{biblatex}
    +
    +

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

    +
    @@ -3751,14 +3802,12 @@ dashed=false, url=false, backend=biber]{biblatex}

    Ein Beispielzitat im obigen Zitierstil:

    -
    \textcite{thatcher2002} oder in Klammern 
    -\parencite{thatcher2002}.
    -
    -\printbibliography
    +
    … in Klammern \parencite{thatcher2002} oder 
    +einfach als \textcite{thatcher2002} …
    - +
    @@ -3768,31 +3817,7 @@ backend=biber]{biblatex}
    -Zitieren im Alpha-Zitierstil - -
    - -
    -
    - -
    -
    -
    -
    -
    -Zitieren im IEEE-Zitierstil - -
    - -
    -
    - -
    -
    -
    -
    -
    -Finden von fertigen BibTeX-Einträgen – Bamberger Katalog +Finden von fertigen BibTeX-Einträgen – Bamberger Katalog
    @@ -3862,7 +3887,7 @@ folgende \(\LaTeX\)-Handbücher: ein.
  • Zitiert die zwei Handbücher im Text in der Datei exercises/literature/literature.tex.
  • -
  • Wählt den Bibliographiestil alpha.
  • +
  • Wählt den Bibliographiestil alphabetic.
  • Stellt sicher, dass das Literaturverzeichnis angezeigt wird.
  • @@ -3924,16 +3949,6 @@ BibTeX” und nutzt sie als .bib-Datei -
  • -TeXstudio: -
      -
    • Bibliographie > Art: BibLaTeX -
    • -
    • Optionen > TeXstudio konfigurieren > Erzeugen > ändert das -Standard-Bibliographieprogramm zu Biber -
    • -
    -
  • @@ -4040,6 +4055,19 @@ Themes.

    +
    +
    +
    +
    +
    +Eine (etwas modernere) beamer-Präsentation + +
    + +
    +
    +
    @@ -4077,7 +4105,7 @@ child { node {home}
    - +
    diff --git a/latex-wochenende/svg/literature/bamberg_catalogue_bibtex.png b/latex-wochenende/svg/literature/bamberg_catalogue_bibtex.png new file mode 100644 index 0000000..2773045 Binary files /dev/null and b/latex-wochenende/svg/literature/bamberg_catalogue_bibtex.png differ diff --git a/latex-wochenende/svg/literature/bamberger_katalog_bibtex.png b/latex-wochenende/svg/literature/bamberger_katalog_bibtex.png new file mode 100644 index 0000000..2ebbf6e Binary files /dev/null and b/latex-wochenende/svg/literature/bamberger_katalog_bibtex.png differ diff --git a/latex-wochenende/svg/literature/example_citation-crop.svg b/latex-wochenende/svg/literature/example_citation-crop.svg new file mode 100644 index 0000000..9dfe373 --- /dev/null +++ b/latex-wochenende/svg/literature/example_citation-crop.svg @@ -0,0 +1,736 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latex-wochenende/svg/literature/example_citation-orig.svg b/latex-wochenende/svg/literature/example_citation-orig.svg new file mode 100644 index 0000000..9f44390 --- /dev/null +++ b/latex-wochenende/svg/literature/example_citation-orig.svg @@ -0,0 +1,736 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latex-wochenende/svg/literature/example_citation.tex b/latex-wochenende/svg/literature/example_citation.tex new file mode 100644 index 0000000..c289335 --- /dev/null +++ b/latex-wochenende/svg/literature/example_citation.tex @@ -0,0 +1,12 @@ +\documentclass[a4paper, pdftex, 12pt]{scrartcl} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[ngerman]{babel} +\usepackage[style=authoryear, backend=biber, maxnames=3, minnames=1, nohashothers=true, dashed=false, url=false]{biblatex} +\addbibresource{collection.bib} +\begin{document} +\thispagestyle{empty} +Wir können die Arbeit in Klammern \parencite{thatcher2002} oder einfach als \textcite{thatcher2002} zitieren. + +\printbibliography +\end{document} diff --git a/latex-wochenende/svg/literature/example_citation_en-crop.svg b/latex-wochenende/svg/literature/example_citation_en-crop.svg new file mode 100644 index 0000000..48ae334 --- /dev/null +++ b/latex-wochenende/svg/literature/example_citation_en-crop.svg @@ -0,0 +1,733 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latex-wochenende/svg/literature/example_citation_en-orig.svg b/latex-wochenende/svg/literature/example_citation_en-orig.svg new file mode 100644 index 0000000..d7b8720 --- /dev/null +++ b/latex-wochenende/svg/literature/example_citation_en-orig.svg @@ -0,0 +1,733 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latex-wochenende/svg/literature/example_citation_en.tex b/latex-wochenende/svg/literature/example_citation_en.tex new file mode 100644 index 0000000..b94ca9c --- /dev/null +++ b/latex-wochenende/svg/literature/example_citation_en.tex @@ -0,0 +1,11 @@ +\documentclass[a4paper, pdftex, 12pt]{scrartcl} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[english]{babel} +\usepackage[style=authoryear, backend=biber, maxnames=3, minnames=1, nohashothers=true, dashed=false, url=false]{biblatex} +\addbibresource{collection.bib} +\begin{document} +\thispagestyle{empty} +We might exemplarily cite the work in parentheses \parencite{thatcher2002} or simply as \textcite{thatcher2002}. +\printbibliography +\end{document} diff --git a/latex-wochenende/svg/packages/beamer-example-grabs.jpg b/latex-wochenende/svg/packages/beamer-example-grabs.jpg new file mode 100644 index 0000000..a135bca Binary files /dev/null and b/latex-wochenende/svg/packages/beamer-example-grabs.jpg differ