Yes, you can use \raggedright
inside a box:
\documentclass[a2paper,portrait]{baposter}
\usepackage[font=small,labelfont=bf]{caption} % Required for specifying captions to tables and figures
\usepackage{booktabs} % Horizontal rules in tables
\usepackage{relsize} % Used for making text smaller in some places
\graphicspath{{figures/}} % Directory in which figures are stored
\definecolor{bordercol}{RGB}{40,40,40} % Border color of content boxes
\definecolor{headercol1}{RGB}{186,215,230} % Background color for the header in the content boxes (left side)
\definecolor{headercol2}{RGB}{80,80,80} % Background color for the header in the content boxes (right side)
\definecolor{headerfontcol}{RGB}{0,0,0} % Text color for the header text in the content boxes
\definecolor{boxcolor}{RGB}{186,215,230} % Background color for the content in the content boxes
\begin{document}
\background{ % Set the background to an image (background.pdf)
\begin{tikzpicture}[remember picture,overlay]
\draw (current page.north west)+(-2em,2em) node[anchor=north west]
{\includegraphics[height=1.1\textheight]{background}};
\end{tikzpicture}
}
\begin{poster}{
grid=false,
borderColor=bordercol, % Border color of content boxes
headerColorOne=headercol1, % Background color for the header in the content boxes (left side)
headerColorTwo=headercol2, % Background color for the header in the content boxes (right side)
headerFontColor=headerfontcol, % Text color for the header text in the content boxes
boxColorOne=boxcolor, % Background color for the content in the content boxes
headershape=roundedright, % Specify the rounded corner in the content box headers
headerfont=\Large\sf\bf, % Font modifiers for the text in the content box headers
textborder=rectangle,
background=user,
headerborder=open, % Change to closed for a line under the content box headers
boxshade=plain
}
{}
%
%----------------------------------------------------------------------------------------
% TITLE AND AUTHOR NAME
%----------------------------------------------------------------------------------------
%
{\sf\bf Research Title} % Poster title
{\vspace{1em} John Doe\\ % Author names
{\smaller jdoe@uni.edu}} % Author email addresses
{} % University/lab logo
%----------------------------------------------------------------------------------------
% INTRODUCTION
%----------------------------------------------------------------------------------------
\headerbox{Introduction}{name=introduction,column=0,row=0}{
\raggedright
Donec feugiat sagittis \textbf{neque}, nec ultrices risus vestibulum at. Suspendisse enim purus, tempus sed malesuada et, aliquam non nulla. Cras vel tortor justo. Vestibulum viverra purus id risus lacinia quis malesuada lorem mattis. \textbf{Nullam ornare egestas} metus vel posuere. In hac habitasse platea dictumst. In malesuada aliquet nulla, quis iaculis mauris accumsan ac.
\raggedright
Maecenas placerat hendrerit mollis. Nunc fringilla sollicitudin pulvinar. Vestibulum a odio arcu. \textit{Ut tristique enim ut odio pulvinar non dignissim risus dignissim.} Nullam nibh augue.
}
\end{poster}
\end{document}
(Sorry, without a picture, but right click in my mouse is broken).
0.83
. I think.
What baposter
seems to do is to set the paper width to paperwidth x fontscale
, as supplied in the class options, and similar for the height. It then scales the page up again (with help from pgfpages
) to the defined paper size. As the base class is article
, which uses 10pt as the default, you need 10pt/12pt ≈ 0.83 for fontscale
.
\documentclass[paperwidth=22in,paperheight=28in,fontscale=0.833]{baposter}
\begin{document}
Foobar
\end{document}
Here is an attempt at a comparison with article
. The different Foobars are from screenshots at the same magnification.
Best Answer
All styles have its anchor hardcoded, so you should select
headershape=small-rounded
orheadershape=roundedright
which according tobaposter_guide.pdf
gives centered box titles.If you want to use some other style, will have to change its definition. To do this, you can look how in
baposter.cls
how are titles for boxes defined and change according to your needs.As an example,
smallrounded
are defined (lines 685-688 from baposter.cls) withwhile
rectangle
style is (lines 682-684)As you can see second style places title anchored to its left and at a mid point between north west (nw) and south west
(\baposter@box@name nw) +(0em,-0.5\baposter@box@@boxheaderheight)
corners of header box. Whilesmallrounded
style places title anchored at its center and in center point of header box. If you can obtain second effect withrectangle
style, change its definition in your preamble withand will obtain a
rectangle
header title with centered text: