TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

Is there an easy way to put a box in the upper right corner asking for student name/number on the first page? Is there something analogous to defining the location of something on a web-page in terms of absolute positions?

I need the following criteria to be met:

  • Does not use the exam class
  • Puts the box inside of the margin (i.e. Does not move the title down/get in the way)
share|improve this question
an example here texample.net/tikz/examples/exam-sheet – rpapa Jun 26 '12 at 21:54
up vote 4 down vote accepted

Thanks to @DavidCarlisle for the link in the original comments which led me to his answer here, where I found the following trick:



\title{Quiz Two}

Name: & \hspace{5cm} \\
Student Number: & ~ \\


The position of the box is controlled by changing the numbers in the \put command.

share|improve this answer

A complete example:

\begin{tikzpicture}[remember picture, overlay]
    \node[below left] (coin)  at (current page.north east)
        {\begin{tabular}{l p{3cm}}
 Last Name: & \hrule \\ 
 First Name: &\hrule  \\
 Date:& \hrule \\

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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