From 5c6a8d52c783f7d59dc51aee6008bf6ad4e9265a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hilbig?= Date: Tue, 31 Mar 2015 16:36:15 +0200 Subject: [PATCH] =?UTF-8?q?learning=20targets=20im=20Skript=20f=C3=BCr=20l?= =?UTF-8?q?ange=20listen=20durch=20optionales=20Argument=20angepasst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 +++++ ahilbig-script.sty | 28 ++++++++++++++++++++++------ 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 8d665bf..7bbf0cf 100755 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,11 @@ *.ods# *.aux *.bbl +*.bcf +*.lot +*.toc +*.upa +*.run.xml *.blg *.dvi *.glo diff --git a/ahilbig-script.sty b/ahilbig-script.sty index 9cb0a06..c91bc64 100644 --- a/ahilbig-script.sty +++ b/ahilbig-script.sty @@ -320,14 +320,20 @@ \let\l@chapterstar\l@subsection \def\toclevel@chapterstar{1} \renewcommand*\l@subsubsection[2]{} -\newenvironment{learning targets} +\NewDocumentEnvironment{learning targets}{o} { \begin{frame} \ifodd\c@page% \else% \hskip-4.75cm \fi - \noindent\begin{minipage}[t]{8cm} + \noindent + \IfNoValueTF{#1}{ + \begin{minipage}[t]{8cm} + }{ + \begin{minipage}[t]{16cm} + \begin{multicols}{2} + } \section*{\textcolor{structure.fg}{\translate{Vortrag -- Kompetenzen}}} \medskip \begin{enumerate} @@ -335,14 +341,24 @@ } { \end{enumerate} -\end{minipage}\qquad\textcolor{gray}{\vrule width.4pt}\qquad - \rlap{ - \begin{minipage}[t]{8cm} + \IfNoValueTF{#1}{ + \end{minipage} + }{} + \qquad\textcolor{gray}{\vrule width.4pt}\qquad + %\rlap{ + \IfNoValueTF{#1}{ + \begin{minipage}[t]{8cm} + }{} \section*{\textcolor{structure.fg}{\translate{Inhalte dieses Vortrags}}} \raggedright %\minitoc \the\microtoc% - \end{minipage}} + \IfNoValueTF{#1}{ + \end{minipage} + }{ + \end{multicols} + \end{minipage} + } \vskip2em \refstepcounter{framenumber}% \end{frame}