[texhax] Wilson's Title PM Won't Compile

Lars Madsen daleif at imf.au.dk
Thu Feb 27 10:19:54 CET 2014


First of all titlepages are build for the memoir class you in order to use it with book (I tend to preper memoir as it is more flexible), then there are a few differences.
As for \titlePM, all the stuff needed is already in titlepages.tex (I downloaded it from http://mirrors.ctan.org/info/latex-samples/TitlePages/titlepages.tex, it compiles fine, and does not have the problems mentioned earlier in this thread, as far as I can see)

This leaves \HUGE, this is a memoir specific command that is not supported by book.

This compiles just fine for me

\documentclass[a4paper]{book}

\newlength{\tpheight}\setlength{\tpheight}{0.9\textheight}
\newlength{\txtheight}\setlength{\txtheight}{0.9\tpheight}
\newlength{\tpwidth}\setlength{\tpwidth}{0.9\textwidth}
\newlength{\txtwidth}\setlength{\txtwidth}{0.9\tpwidth}
\newlength{\drop}

\usepackage[svgnames]{xcolor}

%%% for the Web-O-Mints fonts
\newcommand*{\wb}[2]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}}


\definecolor{Dark}{gray}{.2}
\definecolor{MedDark}{gray}{.4}
\definecolor{Medium}{gray}{.6}
\definecolor{Light}{gray}{.8}

\let\HUGE\Huge

\newcommand*{\titlePM}{\begingroup% Gentle Madness with Printers' Ornaments
\drop = 0.1\txtheight
\vspace*{\baselineskip}
\vfill
  \hbox{%
  \hspace*{0.1\txtwidth}%
  {\wb{18pt}{18pt}
   \begin{picture}(0,0)
     \multiput(0,0)(0,20){22}{\textcolor{Medium}{Q}}
   \end{picture}
  }
%  \rule{1pt}{\txtheight}
  \hspace*{0.15\txtwidth}%
\parbox[b]{0.75\txtwidth}{
  \vbox{%
    \vspace{\drop}
    {\noindent\HUGE\bfseries Some\\[0.5\baselineskip] Conundrums}\\[2\baselineskip]
    {\Large\itshape Puzzles for the Mind}\\[4\baselineskip]
    {\Large THE AUTHOR}\par
    \vspace{0.5\txtheight}
    {\noindent The Publisher}\\[\baselineskip]
    }% end of vbox
}% end of parbox
  }% end of hbox
\vfill
\null
\endgroup}

\begin{document}


\titlePM

\end{document}




/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf


________________________________________
From: Lars Madsen
Sent: 27 February 2014 10:14
To: Alessandro Ceschini; William F Hammond
Cc: texhax at tug.org
Subject: RE: [texhax] Wilson's Title PM Won't Compile

Since titlepages.tex compiles just fine, why don't you have a look at what you are missing from the preamble in titlepages.tex, for example

\usepackage[svgnames]{xcolor}


/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf


________________________________________
From: texhax [texhax-bounces at tug.org] on behalf of Alessandro Ceschini [alescesc1986 at yahoo.it]
Sent: 27 February 2014 10:03
To: William F Hammond
Cc: texhax at tug.org
Subject: Re: [texhax] Wilson's Title PM Won't Compile

Le 27/02/2014 00:19, William F Hammond a écrit :
> Alessandro Ceschini <alescesc1986 at yahoo.it> writes:
>
>> Oops... doesn't work with me
>>
>> ! Illegal parameter number in definition of \wb.
>> <to be read again>
>>                     2
>> l.25 ...\fontsize{#2}{#2}\usefont{U}{webo}{xl}{n}}
> No!
>
> The erroneous definition was:
>
> \newcommand*{\wb}[1]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}}
>
> It should be:
>
> \newcommand*{\wb}[2]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}}
>
> (The "#2" reference to a second argument won't be allowed if
> the \newcommand is specified, via the first option, to take only
> one argument.)
>
>                                -- Bill
>
> Email: hmwlfsr at yahoo.com
>         gellmu at gmail.com
> https://www.facebook.com/william.f.hammond
> http://www.albany.edu/~hammond/
>
>
The steady stream of error goes on unabated:

! Undefined control sequence.
l.35 \defincolor
                 {Dark}{gray}{0.2}
?

--
/Alessandro Ceschini/


_______________________________________________
TeX FAQ: http://www.tex.ac.uk/faq
Mailing list archives: http://tug.org/pipermail/texhax/
More links: http://tug.org/begin.html

Automated subscription management: http://tug.org/mailman/listinfo/texhax
Human mailing list managers: postmaster at tug.org




More information about the texhax mailing list