Take the 2-minute tour ×
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.

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
2  
1  
an example here texample.net/tikz/examples/exam-sheet –  rpapa Jun 26 '12 at 21:54
add comment

2 Answers

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:

\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.

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.