\ProvidesPackage{ptbposter-add}[2019/02/20 v0.1b 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.75\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
