I need to repeat a box with the same content on each page, but not how.
PDFTeX – How to Repeat Box on Every Page
boxespdftex
Related Solutions
You should not ignore LaTeX warnings about overfull boxes. The basic problem in your original is that the box constructed does not fit on the page. The inner minipage is \textwidth
wide but \colorbox
, like \fbox
adds padding around the box of length \fboxsep
so the box was 2\fboxsep
(6pt) too wide and then it was at the start of a paragraph so further indented by the paragraph indent, sticking it into the left margin.
\documentclass[letterpaper,11pt]{article}
\usepackage[left=0.9in, right=0.8in]{geometry}
\pagestyle{empty}
\raggedright
\def\bull{\vrule height 0.8ex width .7ex depth -.1ex }
\usepackage[usenames,dvipsnames]{color}
\definecolor{mygrey}{gray}{.90}
\newcommand{\headergrey}[1]{\par\noindent{\setlength\fboxsep{0pt}\hspace*{-18pt}\colorbox{mygrey}
{\begin{minipage}{\dimexpr\textwidth-2\fboxsep+18pt\relax}
\vspace{2pt}%
\textsc{\strut\hspace{3pt}#1}\par
\hrule
\end{minipage}}\par\smallskip}}
\begin{document}
\headergrey{Objective}
Seeking a Full Time position in the area of Blah blah blah Blah
\end{document}
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@domain.com\\
\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}
Best Answer
Here's one option using the
background
package; adjust the settings according to your needs:The code (needs two or three compilations):