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
db8a9e29
Commit
db8a9e29
authored
May 20, 2019
by
Stefan Heimersheim
Browse files
lstlisting und marginbox
parent
5580d68a
Changes
1
Show whitespace changes
Inline
Side-by-side
workshops/latex/latex.tex
View file @
db8a9e29
\documentclass
[]
{
beamer
}
\documentclass
[
xcolor=dvipsnames
]
{
beamer
}
\usepackage
[utf8]
{
inputenc
}
\usepackage
[T1]
{
fontenc
}
...
...
@@ -15,6 +15,17 @@
\usetheme
{
OSAK
}
\lstset
{
basicstyle=
\scriptsize\ttfamily
,
language=
{
[LaTeX]TeX
}
,
texcsstyle=*
\color
{
Mahogany
}
\bfseries
,
commentstyle=
\itshape\color
{
RoyalBlue
}
,
keywordstyle=
\color
{
RoyalBlue
}
\bfseries
,
moretexcs=
{
lstset,testfont,color,sl,lstinputlisting,newfontfamily,fontsize,HUGE,
Gargantous,ShowCharInBox
}
,
morekeywords=
{
center,document
}
}
% TODO Titel & Autoren anpassen!
\date
{
\today
}
\title
[\LaTeX-Workshop]
{
\LaTeX
ist toll!
}
...
...
@@ -26,11 +37,10 @@
und der Aachener Linux User Group
}
\newlength\marginwidth
\newcommand\marginbox
[3][2pt]
{
% USAGE: \marginbox[margin width]{width}{content}
% TODO: width is set manually such that it fits real width!
\newlength\marginwidth
\setlength\marginwidth
{
#1
}
\begin{tikzpicture}
[even odd rule, scale=1]
\node
[anchor=north west]
(text)
{
%
...
...
@@ -135,7 +145,7 @@
\marginbox
{
\textwidth
}{
\lstinputlisting
{
examples/2a
_
umbruch.tex
}}
\end{column}
\begin{column}
{
0.35
\textwidth
}
\input
{
examples/2a
_
umbruch.tex
}
\marginbox
{
\textwidth
}{
\input
{
examples/2a
_
umbruch.tex
}
}
\end{column}
\end{columns}
...
...
@@ -149,7 +159,7 @@
\marginbox
{
\textwidth
}{
\lstinputlisting
{
examples/2b
_
umbruch.tex
}}
\end{column}
\begin{column}
{
0.35
\textwidth
}
\input
{
examples/2b
_
umbruch.tex
}
\marginbox
{
\textwidth
}{
\input
{
examples/2b
_
umbruch.tex
}
}
\end{column}
\end{columns}
...
...
@@ -163,7 +173,7 @@
\marginbox
{
\textwidth
}{
\lstinputlisting
{
examples/2c
_
umbruch.tex
}}
\end{column}
\begin{column}
{
0.35
\textwidth
}
\input
{
examples/2c
_
umbruch.tex
}
\marginbox
{
\textwidth
}{
\input
{
examples/2c
_
umbruch.tex
}
}
\end{column}
\end{columns}
...
...
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