how to make a box over my title? Just a box (like that one on the picture) on my titlepage?
kind regards
how to make a box over my title? Just a box (like that one on the picture) on my titlepage?
kind regards
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
Received: & Approved: \\
& Date: \\
& Signature: \\
(for the instructor) & \\
\hline
\end{tabular}%
\endgroup
\end{document}
Remark:
array changes the calculation regarding rules. I have added it to get independent, whether it is loaded (because it is always loaded).\fboxSimilar, 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}} @{}}
Received: & Approved: \\
& 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}} @{}}
Received: & Approved: \\
& Date: \\
& Signature: \\
(for the instructor) & \\
\end{tabular}%
}
\end{document}
Remark:
\parbox updates \linewidth to the current available width.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
2\tabcolsep are enough, because the other two are suppressed (@{}).
– Heiko Oberdiek
Apr 26 '14 at 20:42