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.

This is what I have at the head of my tex document (article):

\title{Some Article}
\author{John Doe}

\date{\today}

\documentclass[pdftex,12pt,a4paper]{article}
\usepackage{setspace}
\usepackage[textwidth=16cm,textheight=24cm]{geometry}
\begin{document}
\maketitle
. . .

I want to add a subtext below the title. As shown in the practical example given here I want to have the author's name on the left side, and supervisor's name on the right side. How can I do it? I tried the example from the above link, but, while compiling, it shows the error: document begin is not specified.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

You can create your own title page using the titlepage environment (as shown by the linked page you posted). One important thing to note is that it replaces the \maketitle command, i.e. it has to be placed after the \begin{document} not before. I think this is your problem.

Also for articles you would need to disable the page break at the end of the titlepage environment (See also Preventing page break after title page).

Here some working example:

\documentclass[12pt,a4paper]{article}
\usepackage{setspace}
\usepackage[textwidth=16cm,textheight=24cm]{geometry}

\begin{document}
\begin{titlepage}
    \begin{center}
        \vspace*{5cm}%
        {\huge The Title}\\[1cm]
        {\Large The SubTitle}\\[1cm]
        %...
    \end{center}
    \let\newpage\relax% Avoid following page break
\end{titlepage}

\end{document}
share|improve this answer

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.