On Mon, 15 Feb 2010 08:14:27 +0800
"Louis A. Turk" <l...@dayspringpublisher.com> wrote:

> Hi fellow lyx users,
> 
> I have the body of a book formatted beautifully with lyx using the
> Memoir Class, but I'm having many problems formatting the front
> matter. The first page is blank (is this normal?), the even numbered
> folios are missing, and there is one too many pages between the front
> matter and main body.
> 
> http://wiki.lyx.org/LyX/UsingMemoirInLyX links to the following two
> documents that are supposed to help, but for some reason I can't get
> them to download. And I haven't been able to find them anywhere else.
> 
> http://www.unet.univie.ac.at/~a0303098/public/lyx/memoir-titlepages.lyx
> http://www.unet.univie.ac.at/~a0303098/public/lyx/memoir-titlepages.pdf
> 
> Does anyone know of a different source for these documents?
> 
> Are there other sample documents or instructions available that show
> how to format the front matter when using Memoir?

Hi Louis,
There are discussions in the archives about this. Two schools of
thought, but mine is to completely "handcraft" the front pages of a
book whether using the Memoir class or the book class (never used Koma).

I'm attaching a template that I have worked on. It's not perfect, but
the intention is that you replace a few variables in the front (like
surname, etc) and it should build you a fairly nice frontmatter. 

The "adjustable" \newcommands are all at the top. (you
will need to cut the \documentclass definition from the top for use with
LyX.

As I say, it isn't completely finished, so you will want to check
carefully if you decide to use it.

Again, there are two schools of though on this, and I haven't used a
"pure" LyX approach to building the frontmatter in any recent version
of LyX, so things might have improved.

Cheers,
Alan

> 
> Louis
> 
> 
> 


-- 
Alan L Tyree                    http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


\documentclass[a4paper]{memoir}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%
%%%%%% this template builds the frontmatter of a book
%%%%%%
%%%%%% It should work with any class, but was intended
%%%%%% to be used with the memoir class.
%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Define book details in the following
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\booktitle}{Test Front Matter}
\newcommand{\surname}{Tyree}
\newcommand{\middlename}{L}
\newcommand{\firstname}{Alan}
\newcommand{\isbn}{1234567890}

\title{Test front matter}

\author{Alan L Tyree}

\date{\today}

\newcommand{\publisherinfo}{%%
Sage Tutorial Systems Pty Ltd\\
Katoomba, NSW Australia\\
\copyright 2007 Sage Tutorial Systems Pty Ltd. All rights reserved.
}

\newcommand{\productioninfo}{%%
This book was produced using Open Source software. The Emacs
text editor was used for writing and editing. \TeX/\LaTeX\ provided
typesetting and layout. All work was done on a Debian GNU/Linux
system. My sincere thanks to all who work in the Open Source movement.
}


\newcommand{\shorttitlepage}[1][\booktitle]%%
{\vspace*{5cm}\begin{center} \Huge%%
  \textbf{#1}\end{center}}

\newcommand{\longtitlepage}{\begin{flushright}\rule{15cm}{.07cm}\\\HUGE%%
    \bfseries \booktitle \end{flushright}\vskip 0.5em%%
\begin{flushright}\LARGE%%
\firstname\ \middlename\ \surname%%
\\\rule{15cm}{.07cm} \end{flushright}%%
\normalsize%%
\vfill%%
\begin{center}%%
\vspace{2ex}%%
\textsc{Sage Tutorial Systems Pty Ltd\\Sydney 2007}%%
\end{center}%%
\newpage%%
}


\newcommand{\cataloginfo}{%%
National Library of Australia Cataloguing-in-Publication entry
\vspace{2ex}
\hrule
\vspace{2ex}
\surname, \firstname\ \middlename\\
\thetitle\\
\vspace{2ex}
Bibliography\\
Includes index\\
ISBN: \isbn
\vspace{2ex}
\hrule
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% No preamble changes needed after this line
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newcommand{\copyrightpage}{%%
\begin{flushleft}
\publisherinfo
\vfill\productioninfo
\vfill
\cataloginfo
\end{flushleft}}

\newcommand{\tocpage}{%%
\setlength{\parskip}{0ex}
\setlength{\cftpartnumwidth}{5em}
\setcounter{page}{5}
\tableofcontents*
}

\newcommand{\statutetablepage}{%%
\renewcommand{\indexname}{Table of statutes}
\printindex[sdx] % table of statutes
}

\newcommand{\casetablepage}{%
\onecolindextrue
\renewcommand{\indexname}{Table of cases}
\printindex[cdx]% table of cases
\onecolindexfalse
}

\newcommand{\makefrontmatter}{%%
\frontmatter\pagestyle{empty}
\shorttitlepage
\cleardoublepage
\longtitlepage
\copyrightpage
\cleartorecto
\pagestyle{plain}
\tocpage
%\include{preface}
\statutetablepage
\casetablepage
\setlength{\parskip}{1ex}
\pagestyle{plain}
}

\begin{document}

\makefrontmatter
\mainmatter
\chapter{Test section}
\label{sec:test-section}



This is a paragraph. This is a paragraph. This is a paragraph. This is
a paragraph. This is a paragraph. This is a paragraph. This is a
paragraph. This is a paragraph. This is a paragraph. This is a
paragraph. This is a paragraph. This is a paragraph. This is a
paragraph. This is a paragraph. This is a paragraph. This is a
paragraph.

\chapter{More test section}
\label{sec:more-test-section}

Blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah,
blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah,
blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah,
blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah,
blah, blah, blah, blah, blah, blah, blah, blah, blah, blah, blah,
blah, blah, blah, blah, blah, blah, blah, blah.


\end{document}


%%% Local Variables: 
%%% mode: latex
%%% mode: outline-minor
%%% TeX-master: t
%%% End: 

Reply via email to