# Need to make a box over my title [duplicate]

how to make a box over my title? Just a box (like that one on the picture) on my titlepage?

kind regards

-

## marked as duplicate by Sigur, cmhughes, dustin, Malipivo, GuidoApr 26 '14 at 21:10

Which document class do you use? –  Bernard Apr 26 '14 at 19:46
article :) and I know I have posted the last question, but their I asked for beautiful titlepages. Here I just ask for that box before my title :) –  Conrad Kopernikus Apr 26 '14 at 19:51

It can be done by a simple tabular using the full text width:

\documentclass{article}
\usepackage{array}%

\begin{document}
\noindent
\begingroup
\bfseries
\renewcommand*{\arraystretch}{1.2}%
\begin{tabular}{|*{2}{p{.5\dimexpr\linewidth-4\tabcolsep-2\arrayrulewidth\relax}}|}
\hline
& Date: \\
& Signature: \\
(for the instructor) & \\
\hline
\end{tabular}%
\endgroup
\end{document}


Remark:

• Package array changes the calculation regarding rules. I have added it to get independent, whether it is loaded (because it is always loaded).

## Frame with \fbox

Similar, but with lines coming from \fbox:

\documentclass{article}

\begin{document}
\noindent
\fbox{%
\bfseries
\parbox{\dimexpr\linewidth-2\fboxsep-2\fboxrule\relax}{%
\renewcommand*{\arraystretch}{1.2}%
\begin{tabular}{@{} *{2}{p{.5\dimexpr\linewidth-2\tabcolsep\relax}} @{}}
& Date: \\
& Signature: \\
(for the instructor) & \\
\end{tabular}%
}%
}

\medskip

\noindent
\fbox{%
\bfseries
\renewcommand*{\arraystretch}{1.2}%
\begin{tabular}{@{} *{2}{p{.5\dimexpr\linewidth-2\fboxsep-2\fboxrule-2\tabcolsep\relax}} @{}}
& Date: \\
& Signature: \\
(for the instructor) & \\
\end{tabular}%
}
\end{document}


Remark:

• \parbox updates \linewidth to the current available width.

-
Do you really need to subtract 4\tabcolsep? I think it is only 2\tabcolsep, 1 right and 1 left of the content. –  Henri Menke Apr 26 '14 at 20:35
@HenriMenke: Thanks, I have fixed the second example. There 2\tabcolsep are enough, because the other two are suppressed (@{}). –  Heiko Oberdiek Apr 26 '14 at 20:42