Generaltitle pages: undefined control sequence

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Mixhael
Posts: 26
Joined: Sun Oct 05, 2008 12:56 pm

title pages: undefined control sequence

Post by Mixhael »

I'm trying to implement title pages from Wilson

titlepages.tex:

Code: Select all

\newcommand*{\titleGM}{\begingroup% Gentle Madness 
\drop{0.1\textheight}
\vspace*{\baselineskip} 
\vfill 
	\hbox{% 
	\hspace*{0.2\textwidth}% 
	\rule{1pt}{\textheight} 
	\hspace*{0.05\textwidth}% 
	\parbox[b]{0.75\textwidth}{ 
	\vbox{% 
		\vspace{\drop} 
		{\noindent\HUGE\bfseries title}\\[2\baselineskip] 
		{\Large\itshape subtitle}\\[4\baselineskip] 
		{\Large Authorname}\par 
		\vspace{0.5\textheight} 
		{\noindent University}\\[\baselineskip] 
		}% end of vbox 
		}% end of parbox 
	}% end of hbox 
\vfill 
\null 
\endgroup}
document.tex:

Code: Select all

\documentclass[11pt, twoside, titlepage]{article}
\usepackage{palatino}
\usepackage{paralist}
\usepackage{natbib}
\usepackage[margin=3cm]{geometry}
\citestyle{chicago}
\usepackage{palatcm}
\usepackage{fancyhdr}
\usepackage[Lenny]{fncychap}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{url}
\pagestyle{fancy}
\newlength{\drop}
\input{titlepage}

\begin{document}

\pagestyle{empty} 
\titleGM
\clearpage 

\end{document}
But it gives me the following error in Texshop:
! Missing number, treated as zero.
<to be read again>
{
I.37 \titleGM

?
Any clue?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

title pages: undefined control sequence

Post by Stefan Kottwitz »

Hi Mixhael,

instead of \drop{0.1\textheight} write

Code: Select all

\setlength{\drop}{0.1\textheight}
or

Code: Select all

\drop0.1\textheight
Stefan
LaTeX.org admin
Mixhael
Posts: 26
Joined: Sun Oct 05, 2008 12:56 pm

title pages: undefined control sequence

Post by Mixhael »

Did that, now I get the following error:
! Undefined control sequence.
<argument> ... {\vspace {\drop } {\noindent \HUGE
\bfseries Title...
I.37 \titleGM
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Re: title pages: undefined control sequence

Post by Stefan Kottwitz »

\HUGE is undefined, use \Huge instead, or if you really need bigger fonts size you could use \fontsize.

Stefan
LaTeX.org admin
Mixhael
Posts: 26
Joined: Sun Oct 05, 2008 12:56 pm

Re: title pages: undefined control sequence

Post by Mixhael »

Thanks alot! Just copied the code from the examples, didn't think it would contain any errors....

Still one problem: before the titlepage now a blank page is printed?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

title pages: undefined control sequence

Post by Stefan Kottwitz »

It's caused by

Code: Select all

\rule{1pt}{\textheight}
that's too long, make it shorter or remove \vspace*{\baselineskip} before.

Stefan
LaTeX.org admin
Mixhael
Posts: 26
Joined: Sun Oct 05, 2008 12:56 pm

Re: title pages: undefined control sequence

Post by Mixhael »

Many thanks!
Post Reply