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
6b88ec6f
Commit
6b88ec6f
authored
May 30, 2019
by
Lennart Klebl
Browse files
floats should be done in latex.tex
parent
820d496f
Changes
5
Show whitespace changes
Inline
Side-by-side
workshops/latex/examples/doge.png
0 → 120000
View file @
6b88ec6f
../figures/doge.png
\ No newline at end of file
workshops/latex/examples/figure.pdf
0 → 100644
View file @
6b88ec6f
File added
workshops/latex/examples/figure.tex
0 → 100644
View file @
6b88ec6f
\begin{figure}
\centering
\includegraphics
[width=4cm]
{
doge.png
}
\caption
[Doge mit Helm]
{
\label
{
fig:doge
}
Dieses Bild zeigt
einen
\emph
{
Doge
}
mit Bauhelm.
}
\end{figure}
workshops/latex/examples/generic_header.tex
0 → 100644
View file @
6b88ec6f
\documentclass
[12pt,a6paper,german]
{
article
}
\usepackage
[ngerman]
{
babel
}
\usepackage
{
geometry
}
\usepackage
{
graphicx
}
\begin{document}
\input
{
figure.tex
}
\end{document}
workshops/latex/latex.tex
View file @
6b88ec6f
...
...
@@ -26,7 +26,7 @@
commentstyle=
\itshape\color
{
RoyalBlue
}
,
keywordstyle=
\color
{
RoyalBlue
}
\bfseries
,
moretexcs=
{
lstset,subsubsection,paragraph,subsection,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,section,documentclass,begin,includegraphics,hello,bye,setmainlanguage,setlength
}
,
morekeywords=
{
center,document,flushleft,flushright,itemize,enumerate,tabular,article,polyglossia,geometry,amsmath,graphicx,xcolor,hyperref
}
morekeywords=
{
center,document,flushleft,flushright,itemize,enumerate,tabular,article,polyglossia,geometry,amsmath,graphicx,xcolor,hyperref
,figure
}
}
\makeatletter
...
...
@@ -553,21 +553,48 @@
\end{frame}
\begin{frame}
[fragile]
{
Floats
}
\begin{columns}
\begin{column}
{
0.45
\textwidth
}
\structure
{
Floats
}
für Bilder, Tabellen, ...
\emph
{
im Text
}
\begin{itemize}
\small
\item
Umgebungen
\highlightBlu
{
table
}
\&
\highlightBlu
{
figure
}
\item
\highlightRed
{
\textbackslash
{}
centering
}
\item
\highlightRed
{
\textbackslash
{}
caption
}
\verb
+
{
Bildunterschrif
t}
+
\item
\highlightRed
{
\textbackslash
{}
caption
}
\verb
+
{
Tex
t}
+
\item
\highlightRed
{
\textbackslash
{}
includegraphics
}
\verb
+
{}
+
\&
\highlightBlu
{
tabular
}
zusätzlich
\\
\highlightBlu
{
tabular
}
zusätzlich
\\
[5pt]
\scriptsize
\emph
{{
\ttfamily\color
{
RoyalBlue
}
table
}
\&
{
\ttfamily\color
{
RoyalBlue
}
figure
}
Umgebungen sind initial leer!
}
% TODO Bild von float machen!
\end{itemize}
\end{column}
\begin{column}
{
0.45
\textwidth
}
\begin{tikzpicture}
\node
[matrix,column sep=4pt, row sep=6pt]
{
\node
[draw=blue!20!lightgray,line width=2pt]
{
\begin{minipage}
[t][2.1cm][c]
{
\textwidth
}
\lstinputlisting
[basicstyle=\tiny]
{
examples/figure.tex
}
\end{minipage}
}
;
\\
\node
[rotate=270]
{
\includegraphics
[width=16pt]
{
figures/texstudio-compile.pdf
}
}
;
\\
\node
[draw=blue!20!lightgray,line width=2pt]
{
\begin{minipage}
[t][2.75cm][c]
{
\textwidth
}
\centering
\includegraphics
[width=0.7\textwidth]
{
examples/figure.pdf
}
\end{minipage}
}
;
\\
}
;
\end{tikzpicture}
\end{column}
\end{columns}
\end{frame}
\begin{frame}
[fragile]
{
Labels, Referenzen und Links
}
\structure
{
Referenzen
}
markieren mit
\texttt
{
\textbackslash
label
}
, verweisen mit
\texttt
{
\textbackslash
ref
}
:
\structure
{
Referenzen
}
markieren mit
\texttt
{
\textbackslash
label
}
,
verweisen mit
\texttt
{
\textbackslash
ref
}
:
\begin{tikzpicture}
\node
[matrix, column sep=4pt, row sep=6pt]
{
\node
{
...
...
@@ -617,6 +644,8 @@
\begin{itemize}
\item
Einfügen mit
\verb
|
\footnote{Fußnotentext}
|
irgendwo:
\end{itemize}
\begin{center}
\vspace
{
-6pt
}
\begin{tikzpicture}
\node
[matrix, column sep=4pt, row sep=6pt]
{
\node
[draw=blue!20!lightgray, line width=2pt]
{
...
...
@@ -633,14 +662,17 @@
\\
}
;
\end{tikzpicture}
\vspace
{
-6pt
}
\end{center}
\structure
{
Besondere Zeichen
}
\begin{itemize}
\item
\%
, "
{}
:
\texttt
{
\textbackslash\%
}
,
\verb
+
"{}
+
\item
\&
,
\#
,
\$
:
\texttt
{
\textbackslash\&
,
\textbackslash\#
,
\textbackslash\$
}
\item
\textbackslash
,
\{
,
\}
:
\texttt
{
\textbackslash
textbackslash,
\textbackslash\{
,
\textbackslash\}
}
\item
\^
,
\_
,
\textasciitilde
:
\verb
|
\^, \_, \textasciitilde
|
\item
{
\bfseries\color
{
MidnightBlue
}
\%
, "
{}}
:
\texttt
{
\textbackslash\%
}
,
\verb
+
"{}
+
\item
{
\bfseries\color
{
MidnightBlue
}
\&
,
\#
,
\$
}
:
\texttt
{
\textbackslash\&
,
\textbackslash\#
,
\textbackslash\$
}
\item
{
\bfseries\color
{
MidnightBlue
}
\textbackslash
,
\{
,
\}
}
:
\texttt
{
\textbackslash
textbackslash,
\textbackslash\{
,
\textbackslash\}
}
\item
{
\bfseries\color
{
MidnightBlue
}
\^
~,
\_
,
\textasciitilde
}
:
%
\verb
|
\^, \_, \textasciitilde
|
%todo besser sortieren, noch was vergessen?
\end{itemize}
\end{frame}
...
...
@@ -662,7 +694,6 @@
{
\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>
{
\vspace
{
-.5em
}
\includegraphics
[width=0.8\textwidth]
{
examples/preamble.pdf
}}
\end{column}
...
...
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