To place the wrap figure at the right , you have to use r
not l
. Another fact is that it should have enough text in the surrounding so as to wrap properly. If you want to force the placement **exactly here* you can use the capital R
(or L
, I
, or O
). Fot details see the documentation of wrapfigure. (texdoc wrapfig
). Here is a complete MWE:
\documentclass{article}
\usepackage{graphicx,wrapfig,lipsum}
%------------------------------------------
\begin{document}
This is where the figure goes with text wrapping around it. There should be enough text around the wrapfigure so that it is warpped properly.
%------------------------------------------
\begin{wrapfigure}{r}{6cm}
\includegraphics[width=6cm]{example-image-a}
\caption{A wrapped figure going nicely inside the text.}\label{wrap-fig:1}
\end{wrapfigure}
%------------------------------------------
\lipsum[3]
\par
Figure~\ref{wrap-fig:1} is a wrapped figure. \lipsum[4]
%------------------------------------------
\begin{wrapfigure}{R}{6cm}
\includegraphics[width=6cm]{example-image-a}
\caption{A wrapped figure going nicely inside the text.}\label{wrap-fig:1}
\end{wrapfigure}
%------------------------------------------
\lipsum[5]
%------------------------------------------
\end{document}
If I'm not mistaken, this is where the title is defined in baposter.cls
\ifbaposter@eyecatcher% Has eye catcher%
\draw (image.east) node(title)[anchor=west,text width=\baposter@titleimage@textwidth]{%
\begin{minipage}{\baposter@titleimage@textwidth}%
\begin{center}%
\textbf{\Huge #3}\\%
{\Large #4}%
\end{center}%
\end{minipage}
};%
\else% Has no eye catcher
\draw (image.east) node(title)[anchor=west] { {\begin{minipage}{\baposter@titleimage@textwidth}{\bfseries\Huge #3}\\{\Large #4}\end{minipage}} };%
\fi
Obviously, the fontsize used are Huge
and Large
, while the tikz node where they are ''hosted'' has no specific font size defined, which will cause bad line spacing. I'd recommend doing it slightly differently and modifying this portion of code such as
- the font size is correctly set inside the tikz node
- the #3 and #4 contents are in two different nodes
- the minipage environment is avoided
This would mean some code like this (for the if part, to be adapted for the else part):
\draw (image.east) node(title)[anchor=west,text width=\baposter@titleimage@textwidth,text badly centered,font=\Huge\bfseries]{#3};
\node[below of=title,anchor=west,text width=\baposter@titleimage@textwidth,text badly centered,font=\Large]{#4};
Note that the positioning
library of tikz might be requested if not already defined in the class header.
Best Answer
According to the changelog in the header of baposter.cls the
\headerbox
command was replaced with theposterbox
environment on 26. August 2011 by Reinhold Kainhofer (in order to support theverbatim
environment it seems).In that class file you can see that the
\headerbox
command is provided for backwards-compatibility and simply wraps theposterbox
environment. Here is the relevant snippet staring on line 838 as of 2017-05-23:I recommend using the
posterbox
environment as it makes the source code more readable (block contents are clearly delimited) and likely will support more special environments.I agree that the documentation is somewhat outdated, better to read the class source. It's not that long and includes many helpful comments.