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)

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.


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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