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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
talks
Commits
3b6c0834
Commit
3b6c0834
authored
May 28, 2019
by
Stefan Heimersheim
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.fsmpi.rwth-aachen.de:osak/talks
parents
ca164016
7bc93648
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
workshops/latex/handout.tex
+11
-9
11 additions, 9 deletions
workshops/latex/handout.tex
workshops/latex/latex.tex
+17
-19
17 additions, 19 deletions
workshops/latex/latex.tex
with
28 additions
and
28 deletions
workshops/latex/handout.tex
+
11
−
9
View file @
3b6c0834
...
...
@@ -8,7 +8,7 @@
\usepackage
{
amssymb
}
\usepackage
{
mathrsfs
}
\usepackage
{
dsfont
}
\usepackage
{
bm
}
%
\usepackage{bm}
\usepackage
{
xcolor
}
\usepackage
{
graphicx
}
\usepackage
{
lmodern
}
...
...
@@ -250,7 +250,7 @@ Syntax von Umgebungen:
% \verb|\overset{def.}{=}| & $\overset{def.}=$ &
% \verb|\underbrace{a}_{b}| & $\underbrace{a}_{b}$
\end{tabular}
%Pfeile, underbrace, \ldots
Einheiten in der Physik:
\verb
|
13,\!6\,\mathrm{eV}
|
oder
\verb
|
13.5\,\mathrm{eV}
|
.
%
\subsection
{
Font shapes
}
\begin{tabular}
{
@
{}
r l p
{
.45
\linewidth
}}
...
...
@@ -297,7 +297,7 @@ Unterstützte Dateitypen: \texttt{.pdf}, \texttt{.png}, \texttt{.jpg}
%
\section
{
Floats
}
Graphiken und Tabellen können in Floats gepackt werden.
Die werden automatisch plaziert und haben eine Beschreib
en
.
Die werden automatisch plaziert und haben eine Beschreib
ung
.
\verb
|
\usepackage{caption}
|
\\
\verb
|
\begin{figure}[
|
\emph
{
Position
}
\verb
|
]
|
\\
\verb
|
\includegraphics[width=.5\textwidth]{Bild.pdf}
|
\\
...
...
@@ -351,18 +351,19 @@ Sprache (\texttt{ngerman}\footnote{\texttt{ngerman} für \textbf{n}eue Rechtschr
\texttt
{
article
}
&
Standardklasse
\\
\texttt
{
scrartcl
}
&
\verb
|
article
|
mit KOMA-Skript: schönere
\footnotemark
und einfachere
\footref
{
fn:ansichtssache
}
Formatierung
\\
\texttt
{
report
}
&
für längere Dokumente mit mehreren Kapiteln (
\verb
|
\chapter{Kapitel}
|
)
\\
\texttt
{
scrreprt
}
&
KOMA-Skript für
\verb
|
report
|
\\
%
\texttt{scrreprt} & KOMA-Skript für \verb|report|\\
\texttt
{
book
}
&
für Bücher (lange Dokumente)
\\
\texttt
{
scrbook
}
&
KOMA-Skript für
\verb
|
book
|
\\
%
\texttt{scrbook} & KOMA-Skript für \verb|book|\\
\texttt
{
beamer
}
&
für Präsentationen
\\
\texttt
{
scrlettr
}
&
für Briefe
%
\texttt{scrlettr} & für Briefe
\end{tabular}
\footnotetext
{
Ansichtssache
\dots\label
{
fn:ansichtssache
}}
%
%
\subsection
{
Umlaute und Sonderzeichen
}
\verb
|
\usepackage[utf8]{inputenc}
|
%(wenn man \texttt{pdflatex} verwendet)\\
%\verb|\usepackage[utf8]{inputenc}| (wenn man \texttt{pdflatex} verwendet)\\
\verb
|
\usepackage{fontenc}
|
(um mehr Fonts zu nutzen)
\\
\verb
|
\usepackage[T1]{fontenc}
|
(einfach immer laden
\dots
)
\\
%
\verb|\usepackage{textcomp}| Definiert weitere Sonderzeichen
\verb
|
\usepackage{textcomp}
|
Definiert weitere Sonderzeichen
%
\subsection
{
Seitenlayout
}
Bei
\emph
{
Dokumentklasse
}
\texttt
{
scrartcl
}
oder
\texttt
{
scrreprt
}
:
...
...
@@ -380,7 +381,8 @@ Alternativ, für alle Dokumentklassen:
\verb
|
\usepackage{hyperref}
|
siehe
\autoref
{
sec:references
}
%
\section
{
Makros
}
Befehle, Längen, Boxen
Neue Befehle definieren:
\verb
|
\newcommand{\abc}{ABC}
|
\\
Alte Befehle überschreiben:
\verb
|
\renewcommand{abc}{XYZ}
|
%
\section
{
Bibliographie
}
Zitieren in wissenschaftliche Arbeiten:
\\
...
...
This diff is collapsed.
Click to expand it.
workshops/latex/latex.tex
+
17
−
19
View file @
3b6c0834
\documentclass
[xcolor=dvipsnames]
{
beamer
}
\usepackage
[utf8]
{
inputenc
}
\usepackage
[T1]
{
fontenc
}
%
\usepackage[utf8]{inputenc}
%
\usepackage[T1]{fontenc}
\usepackage
[ngerman]
{
babel
}
\usepackage
{
lmodern
}
%
\usepackage{lmodern}
\usepackage
{
verbatim
}
\usepackage
{
dtk-logos
}
\usepackage
{
hyperref
}
\usepackage
{
tikz
}
\usetikzlibrary
{
backgrounds, fit, matrix, calc
}
\usepackage
{
listings
}
...
...
@@ -14,6 +13,8 @@
\graphicspath
{{
figures/
}{
examples/
}}
\usefonttheme
{
professionalfonts
}
\hypersetup
{
unicode=true
}
\setmonofont
{
FiraCode
}
\usetheme
{
OSAK
}
...
...
@@ -416,7 +417,7 @@
\node
[draw=blue!20!lightgray, line width=2pt]
{
\begin{minipage}
[t][7mm][c]
{
.4
\textwidth
}
\centering
\scriptsize
\ttfamily
\verb
|
\vec
x
^2 = x_1^2 + x_2^2
|
\scriptsize
\ttfamily
\verb
|
\vec
{x}
^2 = x_1^2 + x_2^2
|
\end{minipage}
}
;
&
\node
{
\includegraphics
[width=16pt]
{
figures/texstudio-compile.pdf
}}
;
&
...
...
@@ -446,7 +447,7 @@
\begin{minipage}
[t][7mm][c]
{
.4
\textwidth
}
\centering
\scriptsize
\ttfamily
\verb
|
\nabla\cdot\vec
E
= 4\pi\rho
|
\verb
|
\nabla\cdot\vec
{E}
= 4\pi\rho
|
\end{minipage}
}
;
&
\node
{
\includegraphics
[width=16pt]
{
figures/texstudio-compile.pdf
}}
;
&
...
...
@@ -620,9 +621,12 @@
\end{tikzpicture}
\structure
{
Besondere Zeichen
}
\begin{itemize}
\item
\%
:
\texttt
{
\textbackslash\%
}
\item
\&
,
\#
,
\$
:
\texttt
{
\textbackslash\&
,
\textbackslash\#
,
\textbackslash\$
}
\item
\textbackslash
,
\{
,
\}
:
\texttt
{
\textbackslash
textbackslash,
\textbackslash\{
,
\textbackslash\}
}
\item
\%
, "
{}
:
\texttt
{
\textbackslash\%
}
,
\verb
+
"{}
+
\item
\&
,
\#
,
\$
:
\texttt
{
\textbackslash\&
,
\textbackslash\#
,
\textbackslash\$
}
\item
\textbackslash
,
\{
,
\}
:
\texttt
{
\textbackslash
textbackslash,
\textbackslash\{
,
\textbackslash\}
}
\item
\^
,
\_
,
\textasciitilde
:
\verb
|
\^, \_, \textasciitilde
|
%todo besser sortieren, noch was vergessen?
\end{itemize}
\end{frame}
...
...
@@ -638,21 +642,15 @@
\item
Macros definieren (
\highlightRed
{
\textbackslash
{}
newcommand
}
)
\item
\highlightRed
{
\textbackslash
{}
begin
}
\verb
+
{document}
+
\\
(
\highlightRed
{
\textbackslash
{}
end
}
\verb
+
{document}
+
)
\item
{
\color
{
Gray
}
optionale Einstellungen
}
%TODO wegnehmen?
\end{itemize}
\end{column}
\begin{column}
{
0.05
\textwidth
}
\only
<1>
{
%
\color
{
RoyalBlue
}
\rule
{
0.5pt
}{
0.8
\textheight
}
%
}
%
\only
<2>
{
%
\color
{
Green
}
\rule
{
0.5pt
}{
0.8
\textheight
}
%
}
%
{
\only
<1>
{
\color
{
RoyalBlue
}}
\only
<2>
{
\color
{
Green
}}
\rule
{
0.5pt
}{
0.8
\textheight
}}
\end{column}
\begin{column}
{
0.55
\textwidth
}
% TODO vertical alignment
\only
<1>
{
\lstinputlisting
[basicstyle=\tiny\ttfamily]
{
examples/preamble.tex
}}
\only
<2>
{
\includegraphics
[width=0.8\textwidth]
{
examples/preamble.pdf
}}
\only
<2>
{
\
vspace
{
-.5em
}
\
includegraphics
[width=0.8\textwidth]
{
examples/preamble.pdf
}}
\end{column}
\end{columns}
\end{frame}
...
...
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