\thispagestyle{empty}
. The rest of my pages have fancy headers. The weird thing is that indeed the headers and page numbers are not showing up, but there is still a blank vertical space. I know how to change the text height on the fly (just for the title page), but how do I resize the top margin? I searched everywhere, but I still don't have an answer. How do I change the top margin of just one page?General ⇒ Change top margin on just the title page
Change top margin on just the title page
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Top Margin
B.A.
Change top margin on just the title page
balfonsi wrote: Use the 'geometry' package. The different lengths used in a layout are interdependent and you can't usually modify one of them without having to modify others. 'Geometry' computes everything for you.
B.A.
How does this work for just a single page of my document (title page)? The geometry package sets margins in the preamble of my document in the form of \usepackage[options]{geometry}.
Re: Top Margin
If it's the first page of a chapter (in the book class), use titlesec. It has a \titleformat and a \titlespacing command to redefine the appearance and spacing of \chapter, \section, etc.
Regards,
B.A.
Change top margin on just the title page
Framework page:
Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage[dutch]{babel}
\usepackage{fancyhdr}
\usepackage[pdftex]{color,graphicx}
\usepackage{setspace}
\onehalfspacing
\newcommand{\pretitle{\vspace*{-2\baselineskip}}}
\usepackage{anysize}
\marginsize{3cm}{2.5cm}{2.5cm}{2.5cm}
\def\quote{\list{}{\rightmargin\leftmargin\topmargin}\item[]}
\let\endquote=\endlist
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\scshape Title}
\lfoot{\scshape Author}
\cfoot{}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\begin{document}
\include{titlepage}
\include{body}
\end{document}
Code: Select all
\begin{titlepage}
\thispagestyle{empty}
\pretitle
\begin{changemargin}{-1cm}{-1cm}
%\enlargethispage{2.5cm}
\noindent
\begin{minipage}{3cm}
\raggedright
\includegraphics*{images/logo}
\end{minipage}
\begin{minipage}{14cm}
\raggedleft
\vspace{0.1cm}
\Large\textsc{School}\\
\large\textsc{Department number\\
Department name}
\end{minipage}
\vfill
\bigskip
\begin{center}
\Huge \textsc{Title}\\
\end{center}
\bigskip
\vfill
\noindent
\begin{minipage}{17cm}
\raggedleft
\large \textsc{Author} \\
$3^{\textrm{de}}$ \textsc{Year}
\end{minipage}
\end{changemargin}
\end{titlepage}
Re: Top Margin
Suppress it and write \vspace*{...} just after \begin{titlepage}: everything works as you wish.
It also works with
\def\pretitle{\vspace*{-2\baselineskip} in the preamble, instead of \newcommand{...}, and the command \pretitle just after \begin{titlepage}.
Btw, \thispagestyle{empty} after \begin{titlepage} is useless: it is implicit in a titlepage environment.
Best regards,
B.A.