1

Current Preamble

I want to wrap the top part of my document with a colored banner, spanning the entire page width and to the very top of the document. Here is my preamble and title section:

documentclass[a0, landscape]{a0poster}

\usepackage{multicol}           % This is so we can have multiple columns of text side-by-side
\columnsep=100pt                % This is the amount of white space between the columns in the poster
\columnseprule=0pt              % This is the thickness of the black line between the columns in the poster

\usepackage[svgnames,dvipsnames]{xcolor}
\usepackage{color}

\usepackage{verbatim}       
\usepackage{caption}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{float}
\usepackage{graphicx}
\graphicspath{{path}}   % Location of the graphics files
\usepackage{booktabs}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{amsfonts, amsmath, amsthm, amssymb}

\begin{document}

%----------------------------------------------------------------------------------------
%   POSTER HEADER 
%----------------------------------------------------------------------------------------

% The header is divided into three boxes:
% The first is 55% wide and houses the title, subtitle, names and university/organization
% The second is 25% wide and houses contact information
% The third is 19% wide and houses a logo for your university/organization or a photo of you
% The widths of these boxes can be easily edited to accommodate your content as you see fit 

\begin{minipage}[b]{0.55\linewidth}
\veryHuge \color{BrickRed} \textbf{Title of Poster} \color{Black}\\ % Title
\huge \textbf{Authors}\\ % Author(s)
\huge University\\ % University/organization
\end{minipage}
%
\begin{minipage}[b]{0.25\linewidth}
\color{DarkSlateGray}\Large \textbf{Contact Information:}\\
University \\
Address\\\\
Phone: (800)-999-9999\\
Email: [email protected]\\
\end{minipage}
%
\begin{minipage}[b]{0.19\linewidth}
\begin{flushright}
    \includegraphics[width=20cm]{"/Users/hgducharme/Documents/School/Projects/Calculus II Honors/Poster Board/figures/logo"} 
\end{flushright}
\end{minipage}

\vspace{1cm} % A bit of extra whitespace between the header and poster content

%----------------------------------------------------------------------------------------

First attempt at solution:

I have tried to use method #2 from this answer regarding the same problem. With all else being same, my code changes to the below block and the result is the image below.

%%% Packages %%%

\newcommand{\postertitle}[2]  % Poster title
{
\begin{center}
\begin{tikzpicture}
\draw [purple,line width=0.2cm,rounded corners=0.2cm,fill=cyan] (-0.5\textwidth,-4)--
(-0.5\textwidth,4)--(0.5\textwidth,4)--(0.5\textwidth,-4)--cycle;
\draw (0,1)node[anchor=center,rotate=0]{\bfseries \sffamily \fontsize{43}   
{0}\selectfont {}{#1}};
\draw (0,-2)node[anchor=center,rotate=0]{\bfseries \sffamily \fontsize{33}
{0}\selectfont {}{#2}};
\end{tikzpicture}
\end{center}
\vspace{0.015\textheight}
}

\begin{document}

%----------------------------------------------------------------------------------------
%   POSTER HEADER 
%----------------------------------------------------------------------------------------

\postertitle{
\begin{minipage}[b]{0.55\linewidth}
   Title section
\end{minipage}
}

.


Second Attempt At Solution

I also tried to wrap the section in a color box but that did not work either.

\colorbox{Grey!70}{\parbox{\linewidth - 2\fboxsep}{%
%
\begin{minipage}[b]{0.55\linewidth}
   Title Section
\end{minipage}
}}

.

In the second picture, I like where the bottom of the color box ends. However, I would just like for it to expand the page length, and for the top of the color box to extend up to the top of the page. How can I accomplish this?

Thank you in advance to anyone who is willing to help.

2
  • 1
    Hi, I am not sure that I understand ; You want to remove the margin of the document ?
    – flav
    Commented Feb 22, 2016 at 6:25
  • Not quite. I want to have a header to my a0poster like the one in this image
    – Hunter
    Commented Feb 22, 2016 at 16:11

1 Answer 1

1

By using tikzpicture (remove showframe to see the header like you want ) :

\documentclass[a0, landscape]{a0poster}

\usepackage[margin={1cm,1cm}]{geometry}

\usepackage{mwe}
\usepackage{multicol}           % This is so we can have multiple columns of text side-by-side
\columnsep=100pt                % This is the amount of white space between the columns in the poster
\columnseprule=0pt              % This is the thickness of the black line between the columns in the poster

\usepackage[svgnames,dvipsnames]{xcolor}

\usepackage{showframe}

\usepackage{color}

\usepackage{verbatim}       
\usepackage{caption}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{float}
\usepackage{graphicx}
\graphicspath{{path}}   % Location of the graphics files
\usepackage{booktabs}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{amsfonts, amsmath, amsthm, amssymb}

\usepackage{tikz}

\begin{document}

%----------------------------------------------------------------------------------------
%   POSTER HEADER 
%----------------------------------------------------------------------------------------

% The header is divided into three boxes:
% The first is 55% wide and houses the title, subtitle, names and university/organization
% The second is 25% wide and houses contact information
% The third is 19% wide and houses a logo for your university/organization or a photo of you
% The widths of these boxes can be easily edited to accommodate your content as you see fit 

\begin{tikzpicture}[remember picture, overlay]
  \node[rectangle, fill=cyan, anchor=north west, xshift=1cm, yshift=-1cm] at (current page.north west)
  {
      \begin{minipage}[b]{0.55\linewidth}
        \veryHuge \color{BrickRed} \textbf{Title of Poster} \color{Black}\\ % Title
        \huge \textbf{Authors}\\ % Author(s)
        \huge University\\ % University/organization
      \end{minipage}
      % 
      \begin{minipage}[b]{0.25\linewidth}
        \color{DarkSlateGray}\Large \textbf{Contact Information:}\\
        University \\
        Address\\\\
        Phone: (800)-999-9999\\
        Email: [email protected]\\
      \end{minipage}
      % 
      \begin{minipage}[b]{0.19\linewidth}
        \begin{flushright}
          % \includegraphics[width=20cm]{"/Users/hgducharme/Documents/School/Projects/Calculus II Honors/Poster Board/figures/logo"} 
          \includegraphics[width=20cm]{example-image}
        \end{flushright}
      \end{minipage}
};
\end{tikzpicture}
\vspace{1cm} % A bit of extra whitespace between the header and poster content



\end{document}

enter image description here

2
  • This is what i'm getting: picture
    – Hunter
    Commented Feb 24, 2016 at 5:06
  • Please, put the code
    – flav
    Commented Feb 24, 2016 at 6:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .