Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
osak
talks
Commits
3ce84fa8
Commit
3ce84fa8
authored
May 28, 2019
by
Valentin Bruch
Browse files
handout: corrections
parent
2e9b30fb
Changes
1
Show whitespace changes
Inline
Side-by-side
workshops/latex/handout.tex
View file @
3ce84fa8
\documentclass
[twocolumn, a4paper, 10pt, DIV=20, ngerman]
{
scrartcl
}
\documentclass
[twocolumn, a4paper, 10pt, ngerman]
{
scrartcl
}
\usepackage
[top=16mm, bottom=10mm, inner=10mm, outer=12mm]
{
geometry
}
\usepackage
{
fontspec
}
\usepackage
{
polyglossia
}
\usepackage
{
csquotes
}
...
...
@@ -39,7 +40,7 @@
\usepackage
{
scrlayer-scrpage
}
\clearscrheadfoot
{}
%
\ihead
{
\LaTeX
-Cheatsheet
}
%
\ohead
{
was soll hier stehen?
}
%
\ohead
{
OSAK
}
%
\KOMAoptions
{
headsepline=true
}
%
\newcolumntype
{
R
}
[1]
{
>
{
\raggedleft\let\newline\\\arraybackslash
}
p
{
#1
}}
...
...
@@ -77,7 +78,8 @@ Pakete installieren?\\
\end{itemize}
\vspace*
{
-4pt
}
%
\begin{minipage}
{
.3
\linewidth
}
\scriptsize
\verb
|
\scriptsize
|
\tiny
\verb
|
\tiny
|
\qquad
\scriptsize
\verb
|
\scriptsize
|
\hfill
\footnotesize
\verb
|
\footnotesize
|
\small
\verb
|
\small
|
\normalsize
\verb
|
\normalsize
|
...
...
@@ -111,8 +113,8 @@ Syntax von Umgebungen:
\end{addmargin}
\begin{tabular}
{
@
{}
p
{
.25
\linewidth
}
p
{
.75
\linewidth
-
\tabcolsep
}}
\emph
{
Umgebung
}
&
Effekt
\\
\texttt
{
raggedright
}
&
Text
rechts ausgefranst
\\
\texttt
{
raggedleft
}
&
\hfill
Text
links ausgefranst
\\
\texttt
{
raggedright
}
&
Text
linksbündig
\\
\texttt
{
raggedleft
}
&
\hfill
Text
rechtsbündig
\\
\texttt
{
center
}
&
\centering
zentrierter Text
\end{tabular}
%
...
...
@@ -133,10 +135,10 @@ Syntax von Umgebungen:
%\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{N}
|
:
$
\mathscr
{
N
}$
%
\item \texttt{dsfont} Fancy font für z.\,B. \verb|\mathds{1}|: $\mathds1$
\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, Dira
k
notation
\item
\texttt
{
braket
}
: für Physiker, Dira
c
notation
\item
\texttt
{
amsthm
}
: für Mathematiker, Umgebung
\texttt
{
theorem
}
\end{itemize}
%
...
...
@@ -166,14 +168,14 @@ Syntax von Umgebungen:
\vspace
{
3pt
}
%
\begin{minipage}
{
\linewidth
}
\verb
|
\begin{align}
|
\\
\verb
|
2H &= p^2
+
x^2 \\
|
\\
\verb
|
2H &= p^2
+
x^2
\nonumber
\\
|
\\
\verb
|
&= 2 a^\dagger a + 1
|
\\
\verb
|
\end{align}
|
\end{minipage}
&
\begin{minipage}
{
\linewidth
}
{
\begin{align}
2H
&
= p
^
2
+ x
^
2
\\
2H
&
= p
^
2
+x
^
2
\nonumber
\\
&
= 2 a
^
\dagger
a + 1
\end{align}
}
\end{minipage}
...
...
@@ -218,7 +220,9 @@ Syntax von Umgebungen:
\verb
|
\int_0^1\mathrm{d}x\,x
|
&
$
\int
_
0
^
1
\mathrm
{
d
}
x
\,
x
$
&
\verb
|
\sum_{n=0}^{N}
|
&
$
\sum
_{
n
=
0
}^
N
$
\\
\verb
|
\iiint\mathrm{d}x
|
&
$
\iiint\mathrm
{
d
}
x
$
&
\verb
|
\prod_{n=0}^{N}
|
&
$
\prod
_{
n
=
0
}^
N
$
\verb
|
\prod_{n=0}^{N}
|
&
$
\prod
_{
n
=
0
}^
N
$
\\
\verb
|
\overset{def.}{=}
|
&
$
\overset
{
def.
}
=
$
&
\verb
|
\underbrace{a}_{b}
|
&
$
\underbrace
{
a
}_{
b
}$
\end{tabular}
%Pfeile, underbrace, \ldots
%
...
...
@@ -235,7 +239,7 @@ Syntax von Umgebungen:
\verb
|
\mathfrak
|
&
$
\mathfrak
{
abc ABC
123
}$
&
für Lie-Algebren
\\
\verb
|
\mathbb
|
&
$
\mathbb
{
ABC NQRZ
}$
&
nur Großbuchstaben
\\
% (erweiterbar mit \texttt{mathbbol}) \\
\verb
|
\mathscr
|
&
$
\mathscr
{
ABCHJKLN
}$
&
nur Großbuchstaben, mit
\verb
|
\usepackage{mathrsfs}
|
\\
%
\verb|\mathds| & $\mathds{ABC1}$ &
nur Großbuchstaben und 1
\\
\verb
|
\mathds
|
&
$
\mathds
{
ABC
1
}$
&
braucht
\texttt
{
dsfont
}
\\
\end{tabular}
Mehr Symbole finden:
\url
{
http://detexify.kirelabs.org
}
%
...
...
@@ -251,7 +255,7 @@ $\rightarrow$ definiert eine Umgebung \texttt{theorem}.
\section
{
Graphiken
}
In die Präambel:
\verb
|
\usepackage{graphicx}
|
\\
\verb
|
\includegraphics[
|
\emph
{
Optionen
}
\verb
|
]{
|
\emph
{
Bild.pdf
}
\verb
|
}
|
\\
\emph
{
Optionen
}
: z.
\,
B.
\verb
|
width=0.5\textwidth
|
,
\verb
|
height=3cm
|
\\
\emph
{
Optionen
}
: z.
\,
B.
\verb
|
width=0.5\textwidth
|
,
\verb
|
height=3cm
|
,
\verb
|
scale=.5
|
\\
Unterstützte Dateitypen:
\texttt
{
.pdf
}
,
\texttt
{
.png
}
,
\texttt
{
.jpg
}
%
\section
{
Tabellen
}
...
...
@@ -295,7 +299,8 @@ Die werden automatisch plaziert und haben eine Beschreiben.
\label
{
sec:references
}
Paket:
\verb
|
\usepackage{hyperref}
|
\\
Schreibt
\verb
|
\label{abc}
|
z.
\,
B. nach
\verb
|
\section{ABC}
|
, in
\verb
|
\begin{figure}
|
, oder
\verb
|
\begin{equation}
|
.
Mit
\verb
|
\autoref{abc}
|
verweist ihr auf die Referenz.
\\
Mit
\verb
|
\ref{abc}
|
verweist ihr auf die Referenz.
%
\footnote
{
Probiert auch mal
\texttt
{
\textbackslash
autoref
\{
abc
\}
}
und
\texttt
{
\textbackslash
eqref
}}
Mit
\verb
|
\footnote{Text}
|
erstellt ihr eine Fußnote.
\footnote
{
Mit
\texttt
{
\textbackslash
footnote[label]
\{
Text
\}
}
kann man das Label festlegen.
}
\\
\texttt
{
hyperref
}
kann noch mehr: (in der Präambel)
\\
\verb
|
\hypersetup{
|
\\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment