GeneralMemoir titlepage errors

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Mitzu
Posts: 5
Joined: Sun Mar 13, 2011 11:17 pm

Memoir titlepage errors

Post by Mitzu »

Hey,

I'm hoping you guys can help me, as I haven't found any topics about this while searching these forums.

I'm working on a project, and as I'm really new to LaTeX, I'm wanting to use one of the examples of a title page from Wilson 2010: Some Examples of Title Pages (http://mirrors.dotsrc.org/ctan/info/lat ... epages.pdf)

I've copied it exactly as he's written it, but I get 6 errors, and I don't know how to fix them, so I'm hoping you might. I'm attaching the LaTeX file and the log with the error notes.

Thanks
Mitzu
Attachments
titlepage2 logfil.log
Log file
(2.22 KiB) Downloaded 266 times
titlepage2.tex
LaTeX doc
(804 Bytes) Downloaded 313 times
Last edited by Mitzu on Mon Mar 14, 2011 4:13 pm, edited 1 time in total.

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Memoir titlepage errors

Post by gmedina »

Hi,

the problem comes from the \drop length that it's being used but hasn't been created. A simple \newlength\drop line will fix the errors; on the other hand I modified a little your \newcommand declaration of the titlepage to make it a real command in the reamble that can then be used in the document body (see my code below); I also suppressed some space that was causing an overfull vertical box:

Code: Select all

\documentclass[a4paper,article,oneside]{memoir}
\usepackage[danish]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}

\newlength\drop
\newcommand*{\titleGM}{\begingroup
\drop = 0.1 \textheight
\vspace*{\baselineskip}
\vfill
\hbox{%
\hspace*{0.2\textwidth}%
\rule{1pt}{.9\textheight}
\hspace*{0.05\textwidth}%
\parbox[b]{0.75\textwidth}{
\vbox{%
\vspace{\drop}
{\noindent\HUGE\bfseries MM502\\[0.5\baselineskip]
Projekt}\\[2\baselineskip]
{\Large\itshape 3.kvartal 2011}\\[4\baselineskip]
{\Large Mette Stig, S3 \\ 011288} \\ \par 
\vspace{0.5\textheight}
{\noindent Institut for Matematik og Datalogi \\ Syddansk Universitet, Odense}
}% end of vbox
}% end of parbox
}% end of hbox
\vfill
\null
\endgroup}

\pagestyle{plain}

\begin{document}

\titleGM

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Mitzu
Posts: 5
Joined: Sun Mar 13, 2011 11:17 pm

Re: Memoir titlepage errors

Post by Mitzu »

This worked perfectly, thank you so much for your help :D
Post Reply