Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
talks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
talks
Commits
393749ef
Commit
393749ef
authored
6 years ago
by
Valentin Bruch
Browse files
Options
Downloads
Patches
Plain Diff
LaTeX handout: some first ideas
parent
f1be1e38
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
workshops/latex/handout.tex
+183
-0
183 additions, 0 deletions
workshops/latex/handout.tex
with
183 additions
and
0 deletions
workshops/latex/handout.tex
0 → 100644
+
183
−
0
View file @
393749ef
\documentclass
[twocolumn, a4paper, 10pt, DIV=20, ngerman]
{
scrartcl
}
\usepackage
{
polyglossia
}
\usepackage
{
mathtools
}
\usepackage
{
amsfonts
}
\usepackage
{
amssymb
}
\usepackage
{
mathrsfs
}
\usepackage
{
dsfont
}
\usepackage
{
csquotes
}
\usepackage
{
fontspec
}
\usepackage
{
lmodern
}
\usepackage
{
calc
}
\usepackage
{
enumitem
}
\usepackage
{
array
}
\usepackage
{
hyperref
}
\hypersetup
{
pdfauthor=
{
Gustav Geier
}
,
pdftitle=
{
LaTeX Handout
}
}
\setdefaultlanguage
{
german
}
\setlength\parindent
{
0pt
}
\newcolumntype
{
R
}
[1]
{
>
{
\raggedleft\let\newline\\\arraybackslash
}
p
{
#1
}}
\newcolumntype
{
C
}
[1]
{
>
{
\centering\let\newline\\\arraybackslash
}
m
{
#1
}}
\newcolumntype
{
L
}
[1]
{
>
{
\raggedright\let\newline\\\arraybackslash
}
p
{
#1
}}
\begin{document}
\section
{
TeX studio
}
Installation
\\
Pakete installieren?
\\
Grundlagen:
\%
macht Kommentare
\section
{
Aufbau eines Dokuments
}
Grundstruktur jedes
{
\LaTeX
}
-Dokuments:
\begin{addmargin}
[1em]
{
0em
}
\texttt
{
\textbackslash
documentclass[
}
\emph
{
Optionen
}
\texttt
{
]
\{
}
\emph
{
Klasse
}
\texttt
{
\}
}
\\
\emph
{
Präambel
}
\\
\verb
|
\begin{document}
|
\\
\emph
{
Dokument
}
\\
\verb
|
\end{document}
|
\end{addmargin}
\begin{tabular}
{
@
{}
p
{
.2
\linewidth
-.5
\tabcolsep
}
p
{
.8
\linewidth
-.5
\tabcolsep
}}
\emph
{
Optionen
}
&
Globale Optionen (durch Komma getrennt): Sprache
\mbox
{
(
\emph
{
ngerman
}
)
}
, Schriftgröße (
\emph
{
11pt
}
), Seitengröße
\mbox
{
(
\emph
{
a4paper
}
)
}
\\
\emph
{
Klasse
}
&
Art des Dokuments:
\emph
{
article
}
,
\emph
{
scrartcl
}
,
\emph
{
report
}
,
\dots
\\
\emph
{
Präambel
}
&
Einbinden von Paketen und globale Einstellungen: siehe
\autoref
{
sec:präambel
}
\\
\emph
{
Dokument
}
&
Inhalt des Dokuments: Was hier steht, erscheint im PDF
\end{tabular}
%
\section
{
Textformatierung
}
\begin{itemize}
[noitemsep]
\item
\verb
|
\textbf{
|
\textbf
{
fett
}
\verb
|
}
|
\item
\verb
|
\textit{
|
\textit
{
kursiv
}
\verb
|
}
|
\item
\verb
|
\underline{
|
\underline
{
unterstrichen
}
\verb
|
}
|
\item
Neue Zeile:
\verb
|
\\
|
oder eine Leerzeile im Code
\item
Seitenumbruch:
\verb
|
\newpage
|
\item
halbes Leerzeichen:
\verb
|
z.\,B.
|
oder
\verb
|
80\,kg
|
\item
geschütztes Leerzeichen:
\verb
|
G.~Geier
|
\end{itemize}
Geschützte und halbe Leerzeichen
%
\section
{
Strukturierung eines Dokuments
}
\begin{itemize}
[noitemsep]
\item
\verb
|
\section{Abschnitt}
|
\item
\verb
|
\subsection{Unterabschnitt}
|
\item
\verb
|
\subsubsection{Unterunterabschnitt}
|
\item
\verb
|
\paragraph{Paragraph}
|
\item
Inhaltsverzeichnis:
\verb
|
\tableofcontents
|
\end{itemize}
%
\section
{
Umgebungen
}
Farben
%
\section
{
Mathematik
}
\subsection
{
Pakete für die Präambel (
\autoref
{
sec:präambel
}
)
}
\begin{itemize}
[noitemsep]
\item
\texttt
{
mathtools
}
: Für Formeln immer einbinden.
%\item \texttt{amsmath}: Wird von \texttt{mathtools} geladen.
\item
\texttt
{
amssymb
}
,
\texttt
{
amsfonts
}
: noch mehr Symbole und Fonts.
\item
\texttt
{
mathrsfs
}
: Script Font, z.
\,
B.
\verb
|
\mathscr{H}
|
:
$
\mathscr
{
H
}$
\item
\texttt
{
dsfont
}
Fancy font für z.
\,
B.
\verb
|
\mathds{1}
|
:
$
\mathds
1
$
%\item \texttt{mathbbol}: erweitert \verb|\mathbb\|
%\item \texttt{mathdots}: Punkte in Matrizen
\item
\texttt
{
braket
}
: für Physiker, Diraknotation
\item
\texttt
{
amsthm
}
: für Mathematiker, Umgebung
\texttt
{
theorem
}
\end{itemize}
\subsection
{
Mathematikumgebungen
}
\begin{tabular}
{
C
{
.5
\linewidth
-
\tabcolsep
}
C
{
.5
\linewidth
}}
\verb
|
Rechnung $1+1=2$ im Text
|
&
Rechnung
$
1
+
1
=
2
$
im Text
\\
\begin{minipage}
{
\linewidth
}
\vspace
{
3pt
}
%
\verb
|
\begin{equation}
|
\newline
\verb
|
a^2 + b^2 = c^2
|
\newline
\verb
|
\end{equation}
|
\vspace
{
3pt
}
%
\end{minipage}
&
\hphantom
{
(1)
}
\hfill
$
\displaystyle
a
^
2
+
b
^
2
=
c
^
2
$
\hfill
(1)
\\
\begin{minipage}
{
\linewidth
}
\vspace
{
3pt
}
%
\verb
|
\begin{equation*}
|
\\
\verb
|
e^{i\pi} + 1 = 0
|
\\
\verb
|
\end{equation*}
|
\vspace
{
3pt
}
%
\end{minipage}
&
$
\displaystyle
e
^{
i
\pi
}
+
1
=
0
$
\\
\begin{minipage}
[c]
{
\linewidth
}
\vspace
{
3pt
}
%
\verb
|
\begin{align}
|
\\
\verb
|
2H &= p^2 + x^2 \\
|
\\
\verb
|
&= 2 a^\dagger a + 1
|
\\
\verb
|
\end{align}
|
\vspace
{
3pt
}
%
\end{minipage}
&
\begin{minipage}
[c]
{
\linewidth
}
{
\begin{align}
2H
&
= p
^
2 + x
^
2
\\
&
= 2 a
^
\dagger
a + 1
\end{align}
}
\end{minipage}
\end{tabular}
\subsection
{
Befehle im Mathemodus
}
\begin{itemize}
[noitemsep]
\item
Wurzel:
\verb
|
\sqrt{x}
|
$
\sqrt
{
x
}$
\item
Brüche:
\verb
|
\frac{a}{b}
|
$
\frac
ab
$
\item
Potenzen:
\verb
|
e^{x}
|
$
e
^
x
$
\item
Indices:
\verb
|
x_n
|
$
x
_
n
$
\item
Große Klammern:
\verb
|
\left(\frac{1}{2}\right)
|
$
\left
(
\frac
12
\right
)
$
\item
Summe:
\verb
|
\sum_{n=0}^{N} x^n
|
$
\sum
_{
n
=
0
}^
N x
^
n
$
\item
Integral:
\verb
|
\int_0^1 \mathrm{d}x\,x
|
$
\int
_
0
^
1
\mathrm
{
d
}
x
\,
x
$
\item
Pfeile, underbrace,
\ldots
\end{itemize}
\subsection
{
Symbole
}
\begin{itemize}
[noitemsep]
\item
\verb
|
\approx
|
$
\approx
$
,
\verb
|
\neq
|
$
\neq
$
,
\verb
|
\leq
|
$
\leq
$
,
\verb
|
\geq
|
$
\geq
$
\item
\verb
|
\pm
|
$
\pm
$
,
\verb
|
\mp
|
$
\mp
$
,
\verb
|
\infty
|
$
\infty
$
,
\verb
|
\dagger
|
$
\dagger
$
\item
$
\iff\implies\impliedby
$
\item
$
\sin
$
,
$
\cos
$
,
$
\tan
$
,
$
\log
$
\end{itemize}
\subsection
{
Font shapes
}
\begin{itemize}
[noitemsep]
\item
$
N
\,\mathrm
{
N
}
\,\mathbf
{
N
}
\,\mathcal
{
N
}
\,\mathbb
{
N
}
\,\mathds
{
N
}
\,\mathscr
{
N
}$
\end{itemize}
detexify
\\
Theoreme
%
\section
{
Graphiken
}
%
\section
{
Tabellen
}
%
\section
{
Floats
}
%
\section
{
Listen
}
%
\section
{
Schriftarten
}
%
\section
{
Kodierung und Sonderzeichen
}
%
\section
{
Referenzen
}
label
ref
hyperref
footnotes
\section
{
Präambel
}
\label
{
sec:präambel
}
\verb
|
\documentclass[
|
\emph
{
Optionen
}
\verb
|
]{
|
\emph
{
Klasse
}
\verb
|
}
|
\\
\verb
|
\usepackage[T1]{fontenc}
|
\\
\verb
|
\usepackage[utf8]{inputenc}
|
(wenn man
\texttt
{
pdflatex
}
verwendet)
\\
Geometrie und Seitenlayout, header, footer
%
\section
{
Makros
}
Längen, Boxen
%
\section
{
Bibliographie
}
%
\section
{
Fehlermeldungen
}
% Greek
% TODO: latex tabular of Greek symbols
%
\section
{
Präsentationen
}
beameruserguide
%
\section
{
Weitere Infos
}
wikibooks
beameruserguide
stackexchange
%
\end{document}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment