Merge branch '2021-translate-script' of git.stuve-bamberg.de:latex/latex-skript into 2021-translate-script

This commit is contained in:
Fradtschuk 2022-01-08 17:42:14 +01:00
parent 56f2f42cc9
commit 2b23cf4290
23 changed files with 80 additions and 13 deletions

View File

@ -117,6 +117,22 @@
language=[LaTeX]TeX
}
\lstdefinelanguage{csharp}{%
language=[Sharp]C
}
\lstdefinelanguage{bibtex}
{keywords={%
@article,@book,@collectedbook,@conference,@electronic,@ieeetranbstctl,%
@inbook,@incollectedbook,@incollection,@injournal,@inproceedings,%
@manual,@mastersthesis,@misc,@patent,@periodical,@phdthesis,@preamble,%
@proceedings,@standard,@string,@techreport,@unpublished%
},
comment=[l][\itshape]{@comment},
sensitive=false,
}
\newcommand\codeblock[2]{%
\ifthenelse{\equal{\listingsmode}{minted}}{%
\inputminted[breaklines]{#1}{#2}
@ -129,7 +145,10 @@
keywordstyle=\color{ForestGreen}\bfseries,
emph={%
subsection, subsubsection, url, includegraphics, toprule,
midrule, bottomrule, cref%
midrule, bottomrule, cref, setlength, maketitle,
tableofcontents, foreignlanguage, paragraph, subparagraph,
mint, mintinline, inputminted, usemintedstyle, definecolor,
citep, enquote%
},
postbreak=\mbox{{$\hookrightarrow$}\space},
emphstyle={\color{ForestGreen}\bfseries},

View File

@ -0,0 +1,4 @@
The first-mentioned book \citep{lamport1994} has been written by the creator of \LaTeX{}, Leslie Lamport himself. A more recent publication is \enquote{\LaTeX\ in 24 Hours} \citep{datta2017}. There is a plethora of further handbooks \citep*[e.\,g.,][]{goossensmittelbach2002}.
\bibliographystyle{natdin}
\bibliography{exercises/literature/literature.done.bib}

View File

@ -1,10 +1,4 @@
\inputminted[breaklines]{bibtex}{exercises/literature/literature.done.bib}
%\inputminted[breaklines]{bibtex}{exercises/literature/literature.done.bib}
\codeblock{bibtex}{./exercises/literature/literature.done.bib}
\begin{minted}[breaklines]{latex}
The first-mentioned book \citep{lamport1994} has been written by the creator of \LaTeX{}, Leslie Lamport himself.
A more recent publication is \enquote{\LaTeX\ in 24 Hours} \citep{datta2017}.
There is a plethora of further handbooks \citep*[e.\,g.,][]{goossensmittelbach2002}.
\bibliographystyle{natdin}
\bibliography{exercises/literature/literature.done.bib}
\end{minted}
\codeblock{latex}{./exercises/literature/exercise-solution.tex}

View File

@ -1,10 +1,13 @@
\begin{enumerate}
\item First one
\item
\textbf{Put the sections of the file into separate files, named
\file{section1.tex}, \file{section2.tex}, and \file{section3.tex}. Include
them using the \code{latex}{\textbackslash include} command.}
\begin{figure}[H]
\codeblock{latex}{exercises/project-structure/main-with-preamble.done.tex}
\caption{\file{main.tex}}
\end{figure}
\item Second one
\begin{figure}[H]
\codeblock{latex}{exercises/project-structure/section1.done.tex}
\caption{\file{section1.tex} (analogous for the other

View File

@ -8,7 +8,7 @@ C\# is an object-oriented programming language that was developed by Microsoft i
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}
\codeblock{csharp}{exercises/references/HelloLateXFriends.cs}

View File

@ -0,0 +1,2 @@
\usepackage[utf8]{inputenc}
\usepackage[t1]

View File

@ -0,0 +1 @@
\foreignlanguage{<language>}{<text>}

View File

@ -0,0 +1 @@
\usepackage[ngerman]{babel}

View File

@ -0,0 +1 @@
\usepackage[<options>]{<packagename>}

View File

@ -0,0 +1 @@
\section[Title in the TOC]{Actual Chapter Title}

View File

@ -0,0 +1 @@
\<command>[<optional_parameters>]{<mandatory_parameters>}

View File

@ -0,0 +1 @@
\includegraphics[width=12cm, height=4cm]{picture.png}

View File

@ -0,0 +1,5 @@
\setlength{\parindent}{0pt}
\setlength{\parskip}{1em
plus .5em % admissible stretch
minus .5em % admissible shrink
}

View File

@ -0,0 +1 @@
\includegraphics[width=0.5\textwidth,height=5cm]{<file path>}

View File

@ -0,0 +1,4 @@
\begin{figure}
\includegraphics{<file path>}
\caption[<short title>]{<caption>}
\end{figure}

View File

@ -0,0 +1,4 @@
\begin{figure}[<position shortcut>]
\centering
\includegraphics{<file path>}
\end{figure}

View File

@ -0,0 +1,9 @@
@article{turing1990,
title={The chemical basis of morphogenesis},
author={Turing, Alan Mathison},
journal={Bulletin of mathematical biology},
volume={52},
pages={153--197},
year={1990},
publisher={Springer}
}

View File

@ -0,0 +1,9 @@
@article{turing1990,
title={The chemical basis of morphogenesis},
author={Turing, Alan Mathison},
journal={Bulletin of mathematical biology},
volume={52},
pages={153--197},
year={1990},
publisher={Springer}
}

View File

@ -0,0 +1 @@
\section{Comments}\label{sec:hints}

View File

@ -0,0 +1 @@
\documentclass[ngerman]{article}

View File

@ -0,0 +1,4 @@
\begin{longtable}
% content
\caption{<caption>}
\end{longtable}

View File

@ -0,0 +1 @@
\documentclass[9pt]{article}