# How to change the background color of the Main Title in baposter?

Hi, everyone. This is my first question here! I am working on a poster. I was trying to change the main title’s color to be: background — marine blue, text color — white. I succeeded in changing the main title’s text color to white by directly using textbf{color{white}{main title}}, but somehow found no way to change the background color. I have tried to change all the color options to see if anything works, but got no luck. Can anyone help me with that? Many thanks!
baposter.cls

documentclass[landscape,archE]{baposter}

usepackage{color}
usepackage{times}
usepackage{helvet}
usepackage{palatino}
selectcolormodel{RGB}
begin{document}
definecolor{reddishyellow}{cmyk}{0,0.22,1.0,0.0}
definecolor{black}{cmyk}{0,0,0.0,1.0}
definecolor{DrexelBlue}{HTML}{07294D}
definecolor{Gray}{HTML}{777675}
typeout{Poster Starts}
background{
begin{tikzpicture}[remember picture,overlay]%
draw (current page.north west)+(-2em,2em) node[anchor=north west] {includegraphics[height=1.1textheight]{silhouettes_background}};
end{tikzpicture}%
}
newlength{leftimgwidth}
begin{poster}%
% Poster Options
{
% Show grid to help with alignment
grid=false,
columns=5,
% Column spacing
colspacing=1em,
% Color style
bgColorOne=DrexelBlue,
bgColorTwo=white,
borderColor=Gray,
boxColorOne=white,
%boxColorTwo=lighteryellow,
% Format of textbox
textborder=none,
textborder=rectangle,
eyecatcher=false,
linewidth=.5pt
}
% Eye Catcher
{% No eye catcher for this poster. (eyecatcher=no above).
}%If an eye catcher is present, the title is centered between eye-catcher and logo.
% Title
{sf %Sans Serif
%bf% Serif
vspace{.25em}
textbf{Evaluating the Model}\}
% Authors
{sf %Sans Serif
vspace{.25em}John Smith$^{1}$, Harrison Frank$^{2}$\ %.25
{small
$^1$ Doctoral Student,USA\
$^2$ USA}
}
{
begin{minipage}[t]{50.0em} %28
begin{tabular}{ll}
end{tabular}
vfill
end{minipage}
}
setlength{leftimgwidth}{0.78em+8.0em}
newcommand{colouredcircle}[1]{%
tikz{useasboundingbox (-0.2em,-0.32em) rectangle(0.2em,0.32em); draw[draw=black,fill=baposterBGone!80!black!#1!white,line width=0.03em] (0,0) circle(0.18em);}}
small
begin{minipage}[l]{1textwidth}
end{minipage}
}
begin{minipage}[l]{1textwidth}
end{minipage}
}
}
begin{minipage}[l]{1textwidth}
end{minipage}
}

end{poster}

end{document}


TeX - LaTeX Asked on November 12, 2021

Welcome to TeX.SE. There is no key for setting the background of the poster title. The process is:

1. Define the headerheight with headerheight=0.10textheight. This means that 10% of the height of the poster page will be used to write the poster header.
2. Set the key background=user. This means that you are going to define how the poster background will be created using the baposter macro, background{}.
3. Write the code to draw and / or fill the background. In this case, you want a different colour for the header. We can do this by writing: fill [fill=HeaderBackground] (current page.north west) rectangle ([yshift=-headerheight] current page.north east); where HeaderBackground defines your choice of colour, and we draw a rectangle equal to the width of the poster and a height equal to headerheight (as defined above).

The complete code for drawing the background is:

background{
begin{tikzpicture}[remember picture,overlay]%
%the poster background color (the whole page)
fill[fill=PosterBackground] (current page.north west) rectangle
(current page.south east);
%the header (just the top of the page where the title is written)
fill [fill=HeaderBackground] (current page.north west) rectangle
end{tikzpicture}
}


Doing so produces this result:

Some other comments. headerbox is a macro that is deprecated and replaced with begin{posterbox} ... end{posterbox}. The difference is that you cannot include verbatim content in the headerbox macro, whereas because begin{posterbox} ... end{posterbox} is an environment, you can include verbatim material. If you like grid layout that can be created using baposter, you might be interested in the functionality provided by the poster library in the tcolorbox package. It was modelled on baposter, but arguably has even more functionality.

The complete code is:

PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} % <-- added
documentclass[landscape,archE]{baposter}

usepackage{times}
usepackage{helvet}
usepackage{palatino}
selectcolormodel{RGB}
definecolor{reddishyellow}{cmyk}{0,0.22,1.0,0.0}
definecolor{black}{cmyk}{0,0,0.0,1.0}
definecolor{DrexelBlue}{HTML}{07294D}
definecolor{Gray}{HTML}{777675}
newlength{leftimgwidth}

begin{document}

typeout{Poster Starts}
background{
begin{tikzpicture}[remember picture,overlay]%
%the poster background color
fill[fill=PosterBackground] (current page.north west) rectangle (current page.south east); %% cover the whole poster
fill [fill=HeaderBackground] (current page.north west) rectangle ([yshift=-headerheight] current page.north east); % just for the poster header, fill with a different color.
end{tikzpicture}
}

begin{poster}%
% Poster Options
{
% Show grid to help with alignment
grid=false,
columns=5,
% Column spacing
colspacing=1em,
% Color style
bgColorOne=DrexelBlue,
bgColorTwo=white,
borderColor=Gray,
boxColorOne=white,
%boxColorTwo=lighteryellow,
% Format of textbox
textborder=none,
textborder=rectangle,
eyecatcher=false,
headerfont=Largesffamily, %Sans Serif  % <-- sffamily
background=user, %user or none or plain % <-- added
linewidth=.5pt
}
% Eye Catcher
{% No eye catcher for this poster. (eyecatcher=no above).
}%If an eye catcher is present, the title is centered between eye-catcher and logo.
% Title
{sffamilycolor{white}% %Sans Serif   % <-- sffamilycolor{white}
vspace{.5em}%
textbf{Evaluating the Model}%
}
% Authors
{sffamilycolor{white}%              % <-- sffamilycolor{white}
vspace{.5em}%
John Smithtextsuperscript{1}, Harrison Franktextsuperscript{2}par%
{small%
textsuperscript{1} Doctoral Student,USApar
textsuperscript{2} USA}}
{}% Logo
Some text
end{posterbox}

end{poster}

end{document}


Answered by Ross on November 12, 2021

## Related Questions

### How can I draw sphere passing though four points without knowing center and radius?

2  Asked on April 29, 2021 by thuy-nguyen

### Symmetric Economic Curves

2  Asked on April 29, 2021 by angel

### Using mintinline causes emergency stop

0  Asked on April 29, 2021 by timetravelpenguin

### Footnotes starting at one on each new page in a book-length document

0  Asked on April 29, 2021 by honza-pokorny

### No space anymore between section heading and numbering

1  Asked on April 29, 2021 by qiyuan

### How to not contain Title-Name in table-of-contents at the sidebar of the document? (Berkeley theme)

1  Asked on April 29, 2021

### Superscripts size in tikz label

1  Asked on April 28, 2021

### Problem with colortbl and makecell

4  Asked on April 28, 2021

### AUCTeX can’t find file when there is an umlaut in its name (on Mac OS X)

1  Asked on April 28, 2021 by user2249626

### How to place a framed full-width text box on the bottom of the last page in two column documents?

2  Asked on April 28, 2021 by rriemann

### Add table borders around notes created with package ‘threeparttablex’

1  Asked on April 28, 2021

### Drawing triangles in latex

1  Asked on April 28, 2021

### How to outline the union of an annulus and a rectangle in TikZ?

1  Asked on April 28, 2021

### Conditional header’s content depending on xsim solutions being printed or not

1  Asked on April 28, 2021

### Beamer/Latex, is there a way to put a theorem in an “itemize”, and hide the bullet?

1  Asked on April 28, 2021 by surb

### Solidity listing: IEEE Conference Template

0  Asked on April 28, 2021

### How to typeset listof (revisited)

1  Asked on April 28, 2021

### Change the location of graphic TOC in achemso template

0  Asked on April 28, 2021 by zjr

### How can we use tikz package to draw a rectangle and fill it with a color for the equations?

2  Asked on April 28, 2021

### Horizontal alignment in an item in itemize

5  Asked on April 28, 2021