Commit db8a9e29 authored by Stefan Heimersheim's avatar Stefan Heimersheim
Browse files

lstlisting und marginbox

parent 5580d68a
\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}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment