Merge branch '2021-translate-script' of git.stuve-bamberg.de:latex/latex-skript into 2021-translate-script
This commit is contained in:
commit
9c2ba96e03
@ -1,15 +1,13 @@
|
||||
\chapter{Fußnoten}
|
||||
\chapter{Footnotes}
|
||||
\label{sec:footnotes}
|
||||
|
||||
Für Fußnoten gibt es den Befehl \mintinline{latex}{\footnote{text}}, der an der Stelle des Aufrufs automatisch die richtige Ziffer einfügt und den übergebenen Text in der Fußzeile erscheinen lässt.
|
||||
In Kombination mit dem Paket \mintinline{latex}{hyperref} sind die Fußnoten sowie URLs\footnote{Sofern sie über den Befehl \mintinline{latex}{\url{…}} gesetzt wurden.} zudem anklickbar.
|
||||
Beispiele findet ihr im gesamten Dokument.
|
||||
|
||||
Das Paket \mintinline{latex}{footmisc} stellt verschiedene weitere Optionen für die Darstellung von Fußnoten zur Verfügung, die als optionale Parameter an den Befehl \mintinline{latex}{\usepackage} übergeben werden können:
|
||||
Whenever we want to include footnotes into our \LaTeX{} document, we can use the command \mintinline{latex}{\footnote{text}}. At the position where we use the command, the correct number will be inserted automatically, and the text within the curly braces will appear in the footer. In combination with the package \mintinline{latex}{hyperref}, URLs within footnotes become clickable\footnote{if we use the command \mintinline{latex}{\url{…}}}.
|
||||
We can see examples for that in the whole document.
|
||||
|
||||
The package \mintinline{latex}{footmisc} provides us with additional options for how to display footnotes. They can be passed as optional parameters to the command \mintinline{latex}{\usepackage}:
|
||||
\begin{itemize}
|
||||
\item \mintinline{latex}{\usepackage[perpage]{footmisc}} sorgt dafür, dass die Zählung der Fußnoten auf jeder Seite neu beginnt.
|
||||
\item \mintinline{latex}{\usepackage[para]{footmisc}} lässt die Fußnoten in der Fußzeile als Fließtext (gegebenenfalls auch nebeneinander) erscheinen.
|
||||
\item \mintinline{latex}{\usepackage[symbol]{footmisc}} bewirkt eine Nummerierung mit Symbolen (z.\,B. \textdagger, \textdaggerdbl) statt Ziffern.
|
||||
\item \mintinline{latex}{\usepackage[perpage]{footmisc}} ensures that the count of footnotes begins at 1 for each new page.
|
||||
\item \mintinline{latex}{\usepackage[para]{footmisc}} lets the footnotes within the footer appear as continuous text (i.\,e., the footnotes can also appear next to each other).
|
||||
\item \mintinline{latex}{\usepackage[symbol]{footmisc}} causes a numbering with symbols (e.\,g., \textdagger, \textdaggerdbl) instead of numbers.
|
||||
\end{itemize}
|
||||
|
||||
|
||||
@ -1,13 +1,12 @@
|
||||
\chapter{Ausblick}
|
||||
\chapter{Prospects}
|
||||
\label{sec:prospects}
|
||||
|
||||
Natürlich konnten wir euch in diesem knappen Rahmen nicht ansatzweise zeigen, was \LaTeX{} alles zu bieten hat.
|
||||
In diesem letzten Abschnitt haben wir daher ein paar Informationen gesammelt, die euch dabei helfen sollen, selbständig tiefer einzusteigen.
|
||||
Obviously, in this script we were not able to show you the least of what \LaTeX{} has to offer.
|
||||
Therefore, in this last section, we gathered some information to help you to go further into depth by yourself.
|
||||
|
||||
\section{Pakete}
|
||||
\section{Packages}
|
||||
|
||||
Eine Auswahl an Paketen haben wir euch bereits vorgestellt, es gibt aber noch ein paar tausend weitere.
|
||||
Für einige häufig benötigte Features haben wir euch hier eine kurze Liste passender Pakete zusammengestellt:
|
||||
We already have presented a selection of packages. However, there are thousands more of them. In the following sections we have put together some packages for frequently needed features:
|
||||
|
||||
\begin{figure}[p]
|
||||
\widebox{
|
||||
@ -26,14 +25,14 @@ Für einige häufig benötigte Features haben wir euch hier eine kurze Liste pas
|
||||
\colrules
|
||||
% Left caption:
|
||||
\begin{subfigure}[t]{\widefigurewidth}
|
||||
\caption{Vektorgrafiken mit TikZ}
|
||||
\caption{Vector graphics with TikZ}
|
||||
\centering\tiny{\url{https://texample.net/tikz/examples/coffee-cup/}}
|
||||
\label{fig:tikz-example}
|
||||
\end{subfigure}
|
||||
\hspace{\widefiguregap}
|
||||
% Right caption:
|
||||
\begin{subfigure}[t]{\widefigurewidth}
|
||||
\caption{Konstituentenbäume mit qtree}
|
||||
\caption{Parse trees with qtree}
|
||||
\centering\tiny{\url{https://www.ling.upenn.edu/advice/latex/qtree/}}
|
||||
\label{fig:qtree-example}
|
||||
\end{subfigure}
|
||||
@ -54,87 +53,85 @@ Für einige häufig benötigte Features haben wir euch hier eine kurze Liste pas
|
||||
\colrules
|
||||
% Left caption:
|
||||
\begin{subfigure}[t]{\widefigurewidth}
|
||||
\caption{Beweisbäume mit prftree}
|
||||
\caption{Proof trees with prftree}
|
||||
\centering\tiny{\url{https://ftp.gwdg.de/pub/ctan/macros/latex/contrib/prftree/}}
|
||||
\label{fig:prftree-example}
|
||||
\end{subfigure}
|
||||
\hspace{\widefiguregap}
|
||||
% Right caption:
|
||||
\begin{subfigure}[t]{\widefigurewidth}
|
||||
\caption{Chemische Strukturformeln mit chemfig}
|
||||
\caption{Chemical structural formulas with chemfig}
|
||||
\centering\tiny{\url{http://latex-cookbook.net/cookbook/examples/benzene-ring/}}
|
||||
\label{fig:chemfig-example}
|
||||
\end{subfigure}
|
||||
\medskip
|
||||
}
|
||||
% General caption:
|
||||
\caption{Beispiele zu verschiedenen Paketen}
|
||||
\caption{Examples for some packages}
|
||||
\label{fig:package-examples}
|
||||
\end{figure}
|
||||
|
||||
|
||||
\begin{description}
|
||||
\item[Stichwortverzeichnisse]
|
||||
können mit \texttt{makeidx} automatisiert erstellt werden.\footnote{\url{https://www.ctan.org/pkg/makeidx}}
|
||||
Mit \mintinline{tex}{\index{…}} werden im Text einzelne Stichwörter ausgezeichnet, der Befehl \mintinline{tex}{\printindex} sammelt sie in einem Verzeichnis mit Referenzen.
|
||||
\item[Vektorgrafiken]
|
||||
\item[Indices]
|
||||
can be created automatically with \texttt{makeidx}.\footnote{\url{https://www.ctan.org/pkg/makeidx}}
|
||||
By using \mintinline{tex}{\index{…}} one can mark entries for their index. With \mintinline{tex}{\printindex} they are assembled within index with references.
|
||||
\item[Vector graphics]
|
||||
(\cref{fig:tikz-example})
|
||||
lassen sich mit \texttt{TikZ} (rekursives Akronym für \emph{TikZ ist kein Zeichenprogramm}) direkt im \LaTeX{}-Code erstellen.\footnote{\url{https://www.ctan.org/pkg/pgf}}
|
||||
Achtung: Dieses Paket ist sehr mächtig, aber nicht unbedingt einsteigerfreundlich.
|
||||
Bevor ihr damit etwas von Grund auf selbst gestaltet, empfehlen wir euch, mit einigen der Beispiele bei \TeX{}ample\footnote{\url{https://texample.net/tikz/examples/}} zu experimentieren.
|
||||
Für bestimmte Anwendungsfälle gibt es aber auch spezielle Pakete, die dann meist einfacher zu handhaben sind:
|
||||
\item[Konstituentenbäume,]
|
||||
die Sätze in ihre grammatikalischen Bestandteile zerlegen (\cref{fig:qtree-example}), erzeugt \texttt{qtree}.\footnote{\url{https://ctan.org/pkg/qtree}}
|
||||
\item[Beweisbäume,]
|
||||
wie sie in der Logik benötigt werden (\cref{fig:prftree-example}), erzeugt \texttt{prftree}.\footnote{\url{https://www.ctan.org/pkg/prftree}}
|
||||
\item[Chemische Strukturformeln]
|
||||
can be \enquote{drawn} directly in the \LaTeX{} source code with \texttt{TikZ} (recursive acronym for \emph{TikZ ist kein Zeichenprogramm}, in English: \emph{TikZ is not a drawing program}).\footnote{\url{https://www.ctan.org/pkg/pgf}}
|
||||
Caution: This package is very powerful, but not necessarily beginner-friendly.
|
||||
Before creating vector graphics from sratch, we recommend you to experiment with some of the examples at \TeX{}ample\footnote{\url{https://texample.net/tikz/examples/}}.
|
||||
For certain use cases, there are special packages that are easier to handle than \enquote{raw} TikZ:
|
||||
\item[Parse trees]
|
||||
that divide sentences into their grammatical components (\cref{fig:qtree-example}) can be created with \texttt{qtree}.\footnote{\url{https://ctan.org/pkg/qtree}}
|
||||
\item[Proof trees,]
|
||||
that are often used in logics (\cref{fig:prftree-example}), can be drawn with the package \texttt{prftree}.\footnote{\url{https://www.ctan.org/pkg/prftree}}
|
||||
\item[Chemical structural formulas]
|
||||
(\cref{fig:chemfig-example})
|
||||
können unter anderem mit dem Paket \texttt{chemfig} erzeugt werden.\footnote{\url{https://www.ctan.org/pkg/chemfig}}
|
||||
\item[Farbe]
|
||||
bringt \texttt{xcolor} in eure Dokumente.\footnote{\url{https://www.ctan.org/pkg/xcolor}}
|
||||
\item[Notizen,]
|
||||
die ihr bei der Abgabe garantiert nicht überseht, fügt \texttt{todonotes} ein.\footnote{\url{https://www.ctan.org/pkg/todonotes}}
|
||||
Damit könnt ihr markieren, was ihr noch \todo{Nicht ändern, das ist ein Beispiel.}ändern oder einfügen wollt.
|
||||
\item[Seiten aus anderen \acro{PDF}-Dateien]
|
||||
integriert ihr mit \texttt{pdfpages}.\footnote{\url{https://www.ctan.org/pkg/pdfpages}}
|
||||
Das eignet sich sehr gut, um Ausgaben anderer Programme in eure Arbeit zu integrieren, beispielsweise in einem Anhang.
|
||||
Einmal kompilieren, und schon ist auch der Anhang wieder auf dem neuesten Stand, wenn das externe Programm etwas geändert hat.
|
||||
\item[Verschachtelte Abbildungen]
|
||||
und die nahezu beliebige Positionierung von Bildunterschriften ermöglicht \texttt{subcaption}.\footnote{\url{https://www.ctan.org/pkg/subcaption}}
|
||||
Davon haben wir auch in diesem Dokument ausgiebig Gebrauch gemacht.
|
||||
\item[Tabellen]
|
||||
können noch sehr viel flexibler gestaltet werden, als wir es hier gezeigt haben.
|
||||
Dabei helfen unter anderem die Pakete
|
||||
can, amongst others, be created with \texttt{chemfig}.\footnote{\url{https://www.ctan.org/pkg/chemfig}}
|
||||
\item[Colors]
|
||||
for your documents are provided by \texttt{xcolor}.\footnote{\url{https://www.ctan.org/pkg/xcolor}}
|
||||
\item[Notes,]
|
||||
that you have made in your source code and that you cannot overlook can be created with \texttt{todonotes}.\footnote{\url{https://www.ctan.org/pkg/todonotes}}
|
||||
With the package, one can mark what they still \todo{Please do not change. This is an example.} have to change within their document.
|
||||
\item[Pages of other \acro{PDF} files]
|
||||
can be integrated into the source code with \texttt{pdfpages}.\footnote{\url{https://www.ctan.org/pkg/pdfpages}}
|
||||
It comes in very handy whenever one needs the output of external programs in the document, for example, in within the appendix.
|
||||
Just compile the document one more time and the appendix is up-to-date again, if the external program has changed something.
|
||||
\item[Nested graphics]
|
||||
and the positioning of captions at almost any place are provieded by \texttt{subcaption}.\footnote{\url{https://www.ctan.org/pkg/subcaption}}
|
||||
We also made extensive use of this package.
|
||||
\item[Tables]
|
||||
can be designed much more flexible than what we have shown here.
|
||||
The following packages can help you with that:
|
||||
\texttt{colortbl},\footnote{\url{https://www.ctan.org/pkg/colortbl}}
|
||||
\texttt{tabularx},\footnote{\url{https://www.ctan.org/pkg/tabularx}}
|
||||
\texttt{multirow},\footnote{\url{https://www.ctan.org/pkg/multirow}}
|
||||
\texttt{makecell}.\footnote{\url{https://www.ctan.org/pkg/makecell}}
|
||||
\end{description}
|
||||
|
||||
\noindent Eigentlich kein Paket, sondern eine weitere Dokumentenklasse ist \textbf{beamer:} Damit könnt ihr \textbf{Bildschirmpräsentationen} mit \LaTeX{} erstellen.
|
||||
Informationen und Beispiele dazu gibt es bei Overleaf\footnote{\url{https://www.overleaf.com/learn/latex/Beamer}} –
|
||||
womit wir schon beim nächsten Abschnitt sind:
|
||||
\noindent \texttt{beamer}, which is not a package, but another document class, can be used to create \textbf{slide shows}
|
||||
with \LaTeX{}. Information on the document class and examples are available at Overleaf\footnote{\url{https://www.overleaf.com/learn/latex/Beamer}}, which brings us to the next section:
|
||||
|
||||
\section{Hilfe und Informationen}
|
||||
\section{Help and Information}
|
||||
|
||||
Eine deutlich ausführlichere Einführung in \LaTeX{} bieten die \textbf{Wikibooks.}
|
||||
Das deutschsprachige Wikibook\footnote{\url{https://de.wikibooks.org/wiki/LaTeX-Kompendium}} ist dabei noch etwas unvollständiger als das englischsprachige.\footnote{\url{https://en.wikibooks.org/wiki/LaTeX}}
|
||||
Beide verweisen bei Bedarf auf zusätzliche Pakete.
|
||||
\textbf{Wikibooks} provides you with a much more detailed introduction into \LaTeX{}. Note that the German version\footnote{\url{https://de.wikibooks.org/wiki/LaTeX-Kompendium}} is less complete than the English one.\footnote{\url{https://en.wikibooks.org/wiki/LaTeX}}
|
||||
If required, both refer to additional packages.
|
||||
|
||||
Falls ihr mehr Informationen zu einem bestimmten Paket sucht, ist \acro{\textbf{CTAN}}\footnote{\url{https://ctan.org/}} die zentrale Anlaufstelle.
|
||||
Dort findet ihr zu jedem Paket die offizielle Dokumentation als \acro{PDF}-Dokument.
|
||||
Darin sind vor allem die ersten Abschnitte interessant, weiter hinten folgen Implementierungsdetails, die ihr normalerweise nicht braucht.
|
||||
Whenever you need information on certain packages \acro{\textbf{CTAN}}\footnote{\url{https://ctan.org/}} is your place to go. The official documentation as \acro{PDF} for each package can be found there.
|
||||
Within this file, the first paragraphs are the most interesting. They are followed by implementation details, that your normally do not need.
|
||||
|
||||
Wenn die Dokumentation zu theoretisch ist und ihr auf der Suche nach praktischen Beispielen seid, kann \textbf{Overleaf}\footnote{\url{https://www.overleaf.com/}} weiterhelfen.
|
||||
Das Portal ist primär ein kollaborativer Online-\LaTeX-Editor, ihr findet dort aber auch einige Vorlagen\footnote{\url{https://www.overleaf.com/latex/templates}} für verschiedene Arten von Dokumenten (Lebensläufe, Abschlussarbeiten u.\,v.\,m.).
|
||||
Speziell zu TikZ bietet \textbf{\TeX{}ample}\footnote{\url{https://texample.net/}} eine Vielzahl an Beispielen.
|
||||
If the official documentation is too theoretical, and you prefer a more hands-on approach, \textbf{Overleaf}\footnote{\url{https://www.overleaf.com/}} can help you out.
|
||||
Primarily, it is a collaborative online \LaTeX{} editor. However, you can find multiple templates\footnote{\url{https://www.overleaf.com/latex/templates}} for different types of documents (VCs, theses, \textellipsis) there.
|
||||
|
||||
Bei konkreten Fragen oder Problemen hilft – wie üblich – die Frage-Antwort-Plattform \textbf{Stackexchange} weiter:
|
||||
Es gibt dort auch eine \TeX-Community.\footnote{\url{https://tex.stackexchange.com/}}
|
||||
Und selbstverständlich könnt ihr euch auch immer gerne uns wenden:
|
||||
If you are looking for examples dedicated to TikZ, \textbf{\TeX{}ample}\footnote{\url{https://texample.net/}} provides you with multiple of them.
|
||||
|
||||
For concrete questions, the question-answering platform \textbf{Stackexchange} is a good place to go: There even is a \TeX{} community there.\footnote{\url{https://tex.stackexchange.com/}}
|
||||
|
||||
Needless to say, you can always contact us with your questions:
|
||||
\begin{compactitem}
|
||||
\item per Mail an \href{mailto:fachschaft-wiai.stuve@uni-bamberg.de}{fachschaft-wiai.stuve@uni-bamberg.de},
|
||||
\item telefonisch unter +49951\,863\,1219
|
||||
\item oder in unserem Büro in WE5/02.104.
|
||||
\item via mail to \href{mailto:fachschaft-wiai.stuve@uni-bamberg.de}{fachschaft-wiai.stuve@uni-bamberg.de},
|
||||
\item via phone at +49951\,863\,1219
|
||||
\item or just come to our bureau at WE5/02.104.
|
||||
\end{compactitem}
|
||||
|
||||
|
||||
@ -1,45 +1,43 @@
|
||||
\chapter{Referenzen}
|
||||
\chapter{References}
|
||||
\label{sec:references}
|
||||
|
||||
Für Querverweise der Form \enquote{Wie man in Abbildung 23 sieht, \textellipsis} bringt \LaTeX\ von Haus aus den Befehl \mintinline{latex}{\ref{label}} mit, der lästige Anpassungen an der Nummerierung der Grafiken, Tabellen etc. erspart.
|
||||
Er erhält als Argument ein eindeutiges Label, das auch dem referenzierten Element zugeordnet werden muss.
|
||||
Anschließend erscheint an der Stelle des Befehlsaufrufs die fortlaufende Nummer des referenzierten Elements.
|
||||
If we want to make references, like \enquote{\textellipsis , which you can see in figure 21, \textellipsis}, \LaTeX{} by default provides as with the command \mintinline{latex}{\ref{label}}. No more adapting of the numbering for graphics, tables, etc. needed!
|
||||
the command expects a unique label as argument, that needs to be assigned to the referenced element. After that, wherever we call the command, the number of our referenced object appears in the text.
|
||||
\Example{lst:fooboar-learning-latex}{references/ref}{references/ref_crop}{Example for a reference}
|
||||
|
||||
\Example{lst:fooboar-learning-latex}{references/ref}{references/ref_crop}{Beispiel für eine Referenzierung}
|
||||
|
||||
Noch smarter ist das Paket \mintinline{latex}{cleveref}.\footnote{mit nur einem \enquote{r}!}
|
||||
Es bringt den Befehl \mintinline{latex}{\cref{label}} mit, dem auch -- durch Kommata getrennt -- mehrere Labels übergeben werden können.
|
||||
Daraus entstehen dann automatisiert Angaben wie \enquote{Abschnitte 1 bis 3 und 5}.\footnote{für den Quelltext \mintinline{latex}{\cref{sec:section1,sec:section2,
|
||||
A smarter package for references is \texttt{cleverref}.\footnote{with only one \enquote{r}!}
|
||||
It provides us with the command \mintinline{latex}{\cref{label}}, which can also handle multiple labels separated by commas.
|
||||
This automatically generates text like \enquote{sections 1 to 3, and 5}.\footnote{for the source code \mintinline{latex}{\cref{sec:section1,sec:section2,
|
||||
sec:section3,sec:section5}}}
|
||||
Zudem fügt \mintinline{latex}{\cref{label}} eigenständig die richtige Abkürzung ein, beispielsweise \enquote{Abb.} für Grafiken.
|
||||
Furthermore \mintinline{latex}{\cref{label}} automatically inserts a suited abbreviaton, e.\,g., \enquote{fig.} for figures.
|
||||
|
||||
Referenziert werden können neben Grafiken und Tabellen unter anderem auch Abschnitte, Bilder, Quelltext-Listings und Gleichungen.
|
||||
Viele Pakete nutzen das Label, um herauszufinden, zu welchem Objekttyp es gehört.
|
||||
Aus diesem Grund ist es üblich, jedem Label ein Präfix voranzustellen (\cref{lst:reference-prefixes}).
|
||||
We can reference graphics, tables, sections, chapters, source code listings, and equations.
|
||||
Many packages use the label in order to find out the object type of the referenced element.
|
||||
For this reason, it is common to insert a prefix before each label (\cref{lst:reference-prefixes}).
|
||||
|
||||
\begin{table}[H]
|
||||
\centering
|
||||
\begin{tabular}{@{}llll@{}}
|
||||
\toprule
|
||||
Präfix & Objekttyp & Präfix & Objekttyp \\ \midrule
|
||||
fig: & Abbildungen & tbl: & Tabellen \\
|
||||
sec: & Abschnitte & subsec: & Unterabschnitte \\
|
||||
ch: & Kapitel & itm: & Aufzählungselemente \\
|
||||
eq: & Gleichungen & lst: & Quelltext-Listings \\ \bottomrule
|
||||
Prefix & Object Type & Prefix & Object Type \\ \midrule
|
||||
fig: & figures & tbl: & tables \\
|
||||
sec: & sections & subsec: & subsections \\
|
||||
ch: & chapters & itm: & items \\
|
||||
eq: & equations & lst: & source Code Listings \\ \bottomrule
|
||||
\end{tabular}
|
||||
\caption{Präfixe für Labels}
|
||||
\caption{Prefixes for labels}
|
||||
\label{lst:reference-prefixes}
|
||||
\end{table}
|
||||
|
||||
Bei der Verwendung von \mintinline{latex}{\cref{label}} ist zu beachten, dass die generierten Passagen in einigen Dokumentklassen erst dann auf Deutsch erscheinen, wenn bereits in der Dokumentklasse die Sprache festgelegt wurde:
|
||||
Note that, if we use \mintinline{latex}{\cref{label}}, for some document classes, the generated passages only appear in the desired language (e.\,g., German) when the language is specified already within the document class command:
|
||||
|
||||
\begin{minted}{latex}
|
||||
\documentclass[ngerman]{article}
|
||||
\end{minted}
|
||||
|
||||
\noindent Von Abschnitten abgesehen, müssen Beschriftungen\footnote{\mintinline{latex}{\caption{…}}} außerdem \emph{immer vergeben und vor dem Label platziert} werden, damit sie anschließend referenziert werden können.
|
||||
Bei Abschnitten wird das Label direkt hinter dem Befehl angefügt:
|
||||
\noindent Except for sections, captions\footnote{\mintinline{latex}{\caption{…}}} \emph{always need to be specified and positioned before the label}. Otherwise, they cannot be referenced later on in the text.
|
||||
Labels for sections are inserted directly after the command:
|
||||
|
||||
\begin{minted}{latex}
|
||||
\section{Hinweise}\label{sec:hints}
|
||||
\section{Comments}\label{sec:hints}
|
||||
\end{minted}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
\begin{minted}[breaklines,breakanywhere]{latex}
|
||||
Java ist eine objektorientierte Programmiersprache, die im Jahr 1995 erschienen ist. Die aktuellste Variante der Programmiersprache befindet sich mittlerweile in der Version 16\footnote{Stand: März 2021}. Um ein Java-Programm zu schreiben benötigt man, unter anderem, das sogenannte \emph{Java Development Kit (JDK)}.\footnote{\url{https://www.oracle.com/java/technologies/javase-downloads.html}} Java-Programme lassen sich unabhängig vom Betriebssystem, auf dem man sich befindet, schreiben.
|
||||
Java is an object-oriented programming language, that appeared in 1995. The most recent version of the programming language is version 16\footnote{March 2021}. In order to write Java programs, one needs to install the so-called \emph{Java Development Kit (JDK)}.\footnote{\url{https://www.oracle.com/java/technologies/javase-downloads.html}} Java programs can be written independently from the operating system that one uses.
|
||||
\end{minted}
|
||||
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
Java ist eine objektorientierte Programmiersprache, die im Jahr 1995 erschienen ist. Die aktuellste Variante der Programmiersprache befindet sich mittlerweile in der Version 16 (Stand: März 2021). Um ein Java-Programm zu schreiben benötigt man, unter anderem, das sogenannte \emph{Java Development Kit (JDK)}. Java-Programme lassen sich unabhängig vom Betriebssystem, auf dem man sich befindet, schreiben.
|
||||
Java is an object-oriented programming language, that appeared in 1995. The most recent version of the programming language is version 16 (March 2021). In order to write Java programs, one needs to install the so-called \emph{Java Development Kit (JDK)}. Java programs can be written independently from the operating system that one uses.
|
||||
@ -1,4 +1,6 @@
|
||||
Integriert im Text der Datei \mintinline{bash}{exercises/footnotes/footnotes.tex} das Statement \glqq{}Stand: März 2021\grqq{} in eine Fußnote. Fügt außerdem eine klickbare URL als Fußnote zum Download des Java Development Kits ein:\\
|
||||
Make the text \enquote{(March 2021)} of the file \texttt{exercises/footnotes/footnotes.tex} appear as footnote. Additionally, insert a clickable URL to the Java Development Kit as footnote.
|
||||
|
||||
|
||||
\texttt{https://www.oracle.com/java/technologies/javase-downloads.html}
|
||||
|
||||
\exercisematerial{exercises/footnotes/footnotes}
|
||||
|
||||
@ -1,24 +1,18 @@
|
||||
\begin{minted}[breaklines]{latex}
|
||||
C\# ist eine objektorientierte Programmiersprache, die im Auftrag von Microsoft entwickelt wurde und die es bereits seit 2001 gibt. In \cref{fig:csharp} seht ihr das Logo der Programmiersprache.
|
||||
|
||||
C\# is an object-oriented programming language that was developed by Microsoft in 2011. In \cref{fig:csharp} we can see the logo of the programming language.
|
||||
|
||||
\begin{figure}[H]
|
||||
\caption{Das Logo der Programmiersprache C\#}
|
||||
\caption{The logo of C\#}
|
||||
\label{fig:csharp}
|
||||
\centering
|
||||
\includegraphics[width=2cm]{exercises/references/csharp.png}
|
||||
\end{figure}
|
||||
|
||||
\cref{lst:csharphelloworld} zeigt ein Programm, das den Text \enquote{Hello LaTeX friends!} auf der Konsole ausgibt. Ähnlich wie bei Java werden auch in C\# Klassen und eine Main-Methode verwendet, um eine ausführbare Anwendung zu bauen.
|
||||
|
||||
\Cref{lst:csharphelloworld} shows a program that prints the text \enquote{Hello LaTeX friends!} to the console. Like Java, C\# makes use of classes and main methods to build executable applications.
|
||||
|
||||
\begin{listing}[H]
|
||||
\caption{Ein einfaches Programm in der Programmiersprache C\#}
|
||||
\caption{A simple C\# program}
|
||||
\label{lst:csharphelloworld}
|
||||
\inputminted[breaklines, linenos=true]{csharp}{exercises/references/HelloLateXFriends.cs}
|
||||
\end{listing}
|
||||
\end{minted}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\end{listing}
|
||||
\end{minted}
|
||||
@ -1,12 +1,12 @@
|
||||
C\# ist eine objektorientierte Programmiersprache, die im Auftrag von Microsoft entwickelt wurde und die es bereits seit 2001 gibt. In der Abbildung seht ihr das Logo der Programmiersprache.
|
||||
C\# is an object-oriented programming language that was developed by Microsoft in 2011. In the figure we can see the logo of the programming language.
|
||||
|
||||
\begin{figure}[H]
|
||||
\caption{Das Logo der Programmiersprache C\#}
|
||||
\caption{The logo of C\#}
|
||||
\centering
|
||||
\includegraphics[width=2cm]{exercises/references/csharp.png}
|
||||
\end{figure}
|
||||
|
||||
Das nachstehende Quelltext-Listing zeigt ein Programm, das den Text \enquote{Hello LaTeX friends!} auf der Konsole ausgibt. Ähnlich wie bei Java werden auch in C\# Klassen und eine Main-Methode verwendet, um eine ausführbare Anwendung zu bauen.
|
||||
The following source code listing shows a program that prints the text \enquote{Hello LaTeX friends!} to the console. Like Java, C\# makes use of classes and main methods to build executable applications.
|
||||
|
||||
\inputminted[breaklines, linenos=true]{csharp}{exercises/references/HelloLateXFriends.cs}
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
Ersetzt im Text in der Datei \mintinline{bash}{exercises/references/references.tex} die Phrasen \enquote{in der Abbildung} und \enquote{Das nachstehende Quelltext-Listing} jeweils durch eine Referenz auf das Bild und auf das Quelltext-Listing. Nutzt dafür den Befehl \mintinline{latex}{\cref}. Achtet darauf, dass ihr zunächst Labels für die Elemente, die ihr referenzieren wollt, vergeben müsst. Hüllt das Quelltext-Listing dafür zunächst in eine Umgebung namens \mintinline{latex}{listing} und fügt noch eine Beschriftung hinzu. Achtet auch auf geeignete Präfixe vor den Labels.
|
||||
In file \texttt{exercises/references/references.tex}, replace \enquote{in the figure}, and \enquote{the following source code listing} with suited references. Use the command \mintinline{latex}{\cref}. Do not forget to first introduce labels for the elements that you want to reference. To do so, first of all, wrap the source code listing in a \mintinline{latex}{listing} environment. Also insert a caption for the source code listing.
|
||||
Make sure to use suitable prefixes before the labels.
|
||||
|
||||
\exercisematerial{exercises/references/references}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user