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

Here is the skeleton of my LaTeX markup:

\usepackage[margin=1.25cm, bottom=2cm]{geometry}

\Huge \name
\huge Class name\hfill Assignment \hw}
\markright{\textnormal{\name\hfill Assignment \hw\qquad\hfill}}


blah blah


which looks like this: pdf

I want to add the due date right under "Assignment 1", in the indicated location.

share|improve this question
up vote 2 down vote accepted

Replace the \huge Class... line with:

\huge Class name\hfill \begin{tabular}{l}Assignment \hw\\Due date\end{tabular}}

Blah blah

If you would prefer to keep the baseline of "Class name" aligned to "Assignment" then use this instead

 \huge Class name\hfill \begin{tabular}[t]{l}Assignment \hw\\Due date\end{tabular}}

(Note the extra [t] option...)

share|improve this answer
+1 you might like to use \begin{tabular}[t].... (or just mention it) – cmhughes Aug 30 '13 at 0:05
@cmhughes that's a good idea – Thruston Aug 30 '13 at 0:07
Also, suppressing the space: \begin{tabular}[t]{@{}l@{}}... might be a good idea – Gonzalo Medina Aug 30 '13 at 0:10

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.