From 2ed37d8b17638dd26a78ad53cb18c38ef9abbbc0 Mon Sep 17 00:00:00 2001 From: niepra01 <rolf.niepraschk@ptb.de> Date: Mon, 25 Jan 2016 09:04:38 +0100 Subject: [PATCH] neu: "ptbposter-add.sty" --- ptbposter/ptbposter-add.sty | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 ptbposter/ptbposter-add.sty diff --git a/ptbposter/ptbposter-add.sty b/ptbposter/ptbposter-add.sty new file mode 100644 index 0000000..2211798 --- /dev/null +++ b/ptbposter/ptbposter-add.sty @@ -0,0 +1,45 @@ +\ProvidesPackage{ptbposter-add}[2016/01/25 v0.1a supplements for ptbposter (RN)] + +\newcommand\putPicture[4][t]{% + \trivlist\item\relax + \noindent\begin{minipage}[t]{\linewidth}% + \small + \@begin@tempboxa\hbox{#2}% + \ifx\relax#3\relax\mbox{}\hfill\fi + \begin{minipage}[#1]{\width}% + \if#1t% + \raisebox{\dimexpr\ht\strutbox-\height}{\usebox\@tempboxa}% + \else + \usebox\@tempboxa + \fi + \end{minipage}% + \hfill + \ifx\relax#3\relax + \mbox{} + \else + \begin{minipage}[#1]{\dimexpr\linewidth-\width-\columnsep}% + \hspace{0pt}#3 + \end{minipage} + \fi + \par\ifx\relax#4\relax\else\vskip\columnsep #4\fi + \@end@tempboxa + \end{minipage}% + \endtrivlist +} + +\newcommand\putInTwoColumn[2]{% + \trivlist\item\relax + \noindent\begin{minipage}[t]{\linewidth}% + \columnsep=.5\columnsep + \begin{minipage}[t]{\dimexpr.5\linewidth-\columnsep}% + #1 + \end{minipage}% + \hfill + \begin{minipage}[t]{\dimexpr.5\linewidth-\columnsep}% + #2 + \end{minipage}% + \end{minipage}% + \endtrivlist +} + +\endinput -- GitLab