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.

Here is the skeleton of my LaTeX markup:

\documentclass[11pt]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[margin=1.25cm, bottom=2cm]{geometry}
\newcommand{\name}{Name}
\newcommand{\hw}{1}

\title{\vspace{-50pt}
\Huge \name
\\\vspace{20pt}
\huge Class name\hfill Assignment \hw}
\author{}
\date{}
\pagestyle{myheadings}
\markright{\textnormal{\name\hfill Assignment \hw\qquad\hfill}}

\begin{document}
\maketitle

blah blah

\end{document}

which looks like this: pdf

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

share|improve this question

1 Answer 1

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

 
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.