Forked from
vaclab / ptb-latex
339 commits behind the upstream repository.
-
Rolf Niepraschk authoredRolf Niepraschk authored
ptbposter-add.sty 1.27 KiB
\ProvidesPackage{ptbposter-add}[2016/01/25 v0.1a supplements for ptbposter (RN)]
\RequirePackage{ragged2e}
\newif\ifPTB@temp
\newcommand*\putPicture{%
\@ifstar{\PTB@temptrue\PTB@putPicture}{\PTB@tempfalse\PTB@putPicture}%
}
\newcommand\PTB@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}\ifPTB@temp\RaggedRight\fi#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