# Add line “Draft: Please do not quote or cite” to the maketitle

I'd like to add a \fbox with "Draft: Please Do Not Quote or Cite" at the top right of my title page which I generate with maketitle.

Does somebody know how to elegantly add the line \fbox{\small Draft: Please Do Not Quote or Cite} to the title?

\documentclass[twoside,a4paper]{article}
\title{
\vspace{-15mm}
\fontsize{24pt}{10pt}\selectfont
\textbf{\ttitle} % title defined above
}
\author{
\large
\textsc{...}\\[2mm]
\vspace{-5mm}
}
\date{\normalsize \today}
\begin{document}

\maketitle

\end{document}


Use the »titling« package to customize the title according to your ideas.

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{titling}

\setlength{\droptitle}{-15mm}
\pretitle{\begin{center}\Huge\bfseries}
\posttitle{\par\end{center}\vskip 0.5em}
\preauthor{%
\begin{center}
\large \lineskip 0.5em%
\scshape
\begin{tabular}[t]{c}%
}
\postauthor{\end{tabular}\par\vspace{-3mm}\end{center}}
\predate{\begin{center}\normalsize}
\postdate{\par\end{center}}

\renewcommand{\maketitlehooka}{
\vspace{-60pt}
\raggedleft
\small
\fbox{Draft: Please Do Not Quote or Cite}%
\vspace{60pt}%
}

\title{Title}
\author{Author}
\date{\today}

\begin{document}
\maketitle
\end{document}


• I've tried all three options (thank you, guys!). At the end, this one turned out to be the only functioning for me, since I was heavily modifying maketitle myself. – Til Hund Nov 14 '13 at 10:08

Does the following rather simple solution suit you? Specify your title using the \mydrafttitle command. The rest is like your everyday use. No extra package needed.

\documentclass[twoside,a4paper]{article}

\newlength\titlepageskip\setlength{\titlepageskip}{50.0mm}

\long\def\mydrafttitle#1{\title{\vspace*{-\titlepageskip}\hfill\fbox{\small Draft: Please Do Not Quote or Cite}\\[\titlepageskip]#1}}

\mydrafttitle{Paper Title}

\author{Author Name}

\date{Paper Date}

\usepackage{lipsum}

\begin{document}

\maketitle

\lipsum[1]

\end{document}


And here is the output.

I'm a fan of the titling package, but Thorsten was quicker than me. :) Here's a third approach with patching \maketitle and adding a boolean flag:

\documentclass{article}

\usepackage{xpatch}
\usepackage{xifthen}

\newboolean{draftmode}

\newcommand{\enabledraft}{\setboolean{draftmode}{true}}

\newcommand{\draftnote}{%
\ifthenelse{\boolean{draftmode}}{%
\vspace{-3em}%
\begin{flushright}
\framebox{\small Draft: please do not quote or cite}
\end{flushright}}{}}

\makeatletter
\patchcmd{\@maketitle}{2em}{2em \draftnote}{}{}
\makeatother

\title{Foo}
\author{Bar}
\enabledraft

\begin{document}

\maketitle

\end{document}


The output: