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
0e980ec6
Commit
0e980ec6
authored
May 20, 2019
by
Valentin Bruch
Browse files
latex makro: margin box
parent
4f4ef650
Changes
2
Hide whitespace changes
Inline
Side-by-side
workshops/latex/examples/minimal_standalone.tex
deleted
100644 → 0
View file @
4f4ef650
\documentclass
[ngerman]
{
standalone
}
\begin{document}
Hallo Welt!
\end{document}
workshops/latex/latex.tex
View file @
0e980ec6
...
...
@@ -8,6 +8,7 @@
\usepackage
{
dtk-logos
}
\usepackage
{
hyperref
}
\usepackage
{
tikz
}
\usetikzlibrary
{
backgrounds, fit, matrix, calc
}
\usepackage
{
listings
}
\usepackage
{
calc
}
\graphicspath
{{
figures/
}{
examples/
}}
...
...
@@ -25,6 +26,20 @@
und der Aachener Linux User Group
}
\newcommand\marginbox
[3][2pt]
{
\begin{tikzpicture}
[even odd rule, scale=1]
\node
[anchor=north west]
(text)
{
%
\begin{minipage}
{
#1
}
%
#2
%
\end{minipage}
%
}
;
\begin{pgfonlayer}
{
background
}
\node
[draw opacity=.5, draw=blue, line width=#1, inner sep=2pt, fit = (text)]
{}
;
\end{pgfonlayer}
\end{tikzpicture}
}
\begin{document}
\begin{frame}
{
OSAK
\LaTeX
-Workshop
}{
Installation einer
\TeX
-Distribution
}
...
...
@@ -48,7 +63,7 @@
\begin{frame}
{
Aufbau eines
\LaTeX
-Dokuments
}
\begin{columns}
[T]
\begin{column}
{
.35
\textwidth
}
\LaTeX
übersetzt
\\
{
\LaTeX
}
übersetzt
\\
Text in ein PDF
\begin{itemize}
\item
Formatierung durch
\\
Befehle im Text
...
...
@@ -76,8 +91,7 @@
(2pt,-15pt) rectangle (
\textwidth
-2pt, -.4
\textwidth
+2pt);
\node
[anchor=north west]
at (0pt, 0pt)
{
PDF viewer: HelloWorld.pdf
}
;
\node
[anchor=north west]
at (2pt, -15pt)
{
\parbox
[t][.4\textwidth-27pt][c]
{
\textwidth
-12pt
}{
%
\centering
\includegraphics
{
examples/minimal
_
standalone.pdf
}
\hspace
{
.1
\textwidth
}
Hallo Welt!
}}
;
\end{tikzpicture}
\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