TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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

kind regardsenter image description here

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
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
up vote 2 down vote accepted

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}

Result

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}} @{}}
      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.

Result

share|improve this answer
    
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

Not the answer you're looking for? Browse other questions tagged or ask your own question.