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.

My lecturer insists on extreme space-rules, max 2 pages, with quite advanced simulation problem (with all codes required to include). So I have to change my personal info to as small space as possible. I want to reuse the de facto things such as \author{...}...\title{...}...\date{...}. How can I do it?

\documentclass{article}
\usepackage{verbatim}

\maketitle
\title{Simulation Assignment 3. XYZ}
\date{\today}
\author{Student Number XYZY, XYZ University}

\begin{document}


\input{Documents/h3}
\verbatiminput{Codes/h3.r}

\end{document}
share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

If you're still interested in using the traditional "personal info" commands (like \author, \title and \date), you only need to modify \@maketitle. \@maketitle takes information that is stored after calling the "personal info" commands and assembles them with specific header spacing and font selections. Here's the original definition:

\def\@maketitle{%
  \newpage
  \null
  \vskip 2em%
  \begin{center}%
  \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
    \vskip 1em%
    {\large \@date}%
  \end{center}%
  \par
  \vskip 1.5em}

Note all the \vskips. Here's the output with your MWE (with the addition of showframe to identify the page boundaries):

enter image description here

\documentclass{article}
\usepackage{showframe}% http://ctan.org/pkg/showframe
\title{Simulation Assignment 3. XYZ}
\date{\today}
\author{Student Number XYZY, XYZ University}
\begin{document}
\maketitle
​\end{document}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

Here's a modified version with a shorter/smaller \@maketitle:

enter image description here

\documentclass{article}
\usepackage{showframe}% http://ctan.org/pkg/showframe
\title{Simulation Assignment 3. XYZ}
\date{\today}
\author{Student Number XYZY, XYZ University}

\makeatletter
\renewcommand{\@maketitle}{%
  \centering
  \let \footnote \thanks%
    {\normalsize \@title \par}
    {\small%
        \@author%
        \par
    {\small \@date}\par%
  }
}
\makeatother
\begin{document}
\maketitle
​\end{document}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

The main difference is the removal of \vskips and larger font sizes (reduced to \normalsize and \small). Of course, you can modify this to suit your requirements.

share|improve this answer
add comment

You need \title etc to be before \maketitle so the information is stored up when the title is set, article then uses

\def\@maketitle{%
  \newpage
  \null
  \vskip 2em%
  \begin{center}%
  \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
    \vskip 1em%
    {\large \@date}%
  \end{center}%
  \par
  \vskip 1.5em}

so you can redefine that reducing the skips and replacing \large and etc by smaller fonts, or changing the layout altogether, depending on your requirements.

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.