3

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)
4

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

\documentclass[letterpaper]{article}

\begin{document}

\title{Quiz Two}
\author{Batman}
\date{}
\maketitle

\begin{picture}(0,0)
\put(200,200){
\begin{tabular}{|r|c|}
\hline
Name: & \hspace{5cm} \\
\hline
Student Number: & ~ \\
\hline
\end{tabular}
}
\end{picture}


\end{document}

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

3

A complete example:

\documentclass{article}
\usepackage{tikz}
\begin{document}
 \thispagestyle{empty}
\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 \\
\end{tabular}
        };
\end{tikzpicture}
\end{document}

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.