Merge branch '2021-translate-script' of git.stuve-bamberg.de:latex/latex-skript into 2021-translate-script
This commit is contained in:
parent
56f2f42cc9
commit
2b23cf4290
21
commands.tex
21
commands.tex
@ -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},
|
||||
|
||||
4
exercises/literature/exercise-solution.tex
Normal file
4
exercises/literature/exercise-solution.tex
Normal 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}
|
||||
@ -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}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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}
|
||||
|
||||
|
||||
|
||||
|
||||
2
listings/basic-document-structure/encoding.tex
Normal file
2
listings/basic-document-structure/encoding.tex
Normal file
@ -0,0 +1,2 @@
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[t1]
|
||||
1
listings/basic-document-structure/foreign-language.tex
Normal file
1
listings/basic-document-structure/foreign-language.tex
Normal file
@ -0,0 +1 @@
|
||||
\foreignlanguage{<language>}{<text>}
|
||||
1
listings/basic-document-structure/language.tex
Normal file
1
listings/basic-document-structure/language.tex
Normal file
@ -0,0 +1 @@
|
||||
\usepackage[ngerman]{babel}
|
||||
1
listings/basic-document-structure/packages.tex
Normal file
1
listings/basic-document-structure/packages.tex
Normal file
@ -0,0 +1 @@
|
||||
\usepackage[<options>]{<packagename>}
|
||||
0
listings/basic-document-structure/section.tex
Normal file
0
listings/basic-document-structure/section.tex
Normal file
1
listings/basic-document-structure/title-in-toc.tex
Normal file
1
listings/basic-document-structure/title-in-toc.tex
Normal file
@ -0,0 +1 @@
|
||||
\section[Title in the TOC]{Actual Chapter Title}
|
||||
1
listings/basic-functionality/command-structure.xml
Normal file
1
listings/basic-functionality/command-structure.xml
Normal file
@ -0,0 +1 @@
|
||||
\<command>[<optional_parameters>]{<mandatory_parameters>}
|
||||
1
listings/basic-functionality/parameters.tex
Normal file
1
listings/basic-functionality/parameters.tex
Normal file
@ -0,0 +1 @@
|
||||
\includegraphics[width=12cm, height=4cm]{picture.png}
|
||||
5
listings/formatting-paragraphs/indentation.tex
Normal file
5
listings/formatting-paragraphs/indentation.tex
Normal file
@ -0,0 +1,5 @@
|
||||
\setlength{\parindent}{0pt}
|
||||
\setlength{\parskip}{1em
|
||||
plus .5em % admissible stretch
|
||||
minus .5em % admissible shrink
|
||||
}
|
||||
1
listings/graphics/image-size.tex
Normal file
1
listings/graphics/image-size.tex
Normal file
@ -0,0 +1 @@
|
||||
\includegraphics[width=0.5\textwidth,height=5cm]{<file path>}
|
||||
4
listings/graphics/insert-graphics.tex
Normal file
4
listings/graphics/insert-graphics.tex
Normal file
@ -0,0 +1,4 @@
|
||||
\begin{figure}
|
||||
\includegraphics{<file path>}
|
||||
\caption[<short title>]{<caption>}
|
||||
\end{figure}
|
||||
4
listings/graphics/positioning.tex
Normal file
4
listings/graphics/positioning.tex
Normal file
@ -0,0 +1,4 @@
|
||||
\begin{figure}[<position shortcut>]
|
||||
\centering
|
||||
\includegraphics{<file path>}
|
||||
\end{figure}
|
||||
9
listings/literature/bibliography-entry.bib
Normal file
9
listings/literature/bibliography-entry.bib
Normal 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}
|
||||
}
|
||||
9
listings/literature/bibliography-entry.tex
Normal file
9
listings/literature/bibliography-entry.tex
Normal 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}
|
||||
}
|
||||
1
listings/references/sections.tex
Normal file
1
listings/references/sections.tex
Normal file
@ -0,0 +1 @@
|
||||
\section{Comments}\label{sec:hints}
|
||||
1
listings/references/set-language.tex
Normal file
1
listings/references/set-language.tex
Normal file
@ -0,0 +1 @@
|
||||
\documentclass[ngerman]{article}
|
||||
4
listings/tables/excess-length.tex
Normal file
4
listings/tables/excess-length.tex
Normal file
@ -0,0 +1,4 @@
|
||||
\begin{longtable}
|
||||
% content
|
||||
\caption{<caption>}
|
||||
\end{longtable}
|
||||
1
listings/text-markup/font-size.tex
Normal file
1
listings/text-markup/font-size.tex
Normal file
@ -0,0 +1 @@
|
||||
\documentclass[9pt]{article}
|
||||
Loading…
x
Reference in New Issue
Block a user