# Painless Memoir Class Book Template

I would like to find a memoir class book template that has the basic features of a book already configured (with dummy type, dummy figures, etc.) that compiles properly, so I can just start writing without having to read any long and tedious manuals.

Where can I find such a thing?

-
After you ask a question here, if you get an acceptable answer, you should accept it by clicking the check mark next to the answer. It scores points for you and the author of the answer. – Sergio Parreiras Aug 7 '14 at 16:23

Seems like a legitimate question to me, though granted that customization creates an infinity of choices. Here's book template that's worked for me:

\documentclass[10pt,twoside,openright]{memoir}
%\usepackage{createspace}
%\usepackage[size=pocket,noicc]{createspace}
\usepackage[paperwidth=4.25in, paperheight=6.875in,bindingoffset=.75in]{geometry}
%\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[spanish]{babel}
\usepackage{tgtermes}

%\usepackage{mathpazo}
\usepackage[protrusion=true,expansion=true]{microtype}
%\usepackage{type1cm}
%\usepackage{lettrine}

%\checkandfixthelayout

% See the Memoir customise'' template for some common customisations
% Don't forget to read the Memoir manual: memman.pdf

%\title{TITLE OF BOOK}
%\author{NAME OF AUTHOR}
%\date{} % Delete this line to display the current date

%% BEGIN TITLE

\makeatletter
\def\maketitle{%
\null
\thispagestyle{empty}%
\vfill
\begin{center}\leavevmode
\normalfont
{\LARGE\raggedleft \@author\par}%
\hrulefill\par
{\huge\raggedright \@title\par}%
\vskip 1cm
%    {\Large \@date\par}%
\end{center}%
\vfill
\null
\cleardoublepage
}
\makeatother
\author{NAME OF AUTHOR}
\author{NAME OF AUTHOR}
\title{TITLE OF BOOK}
\date{}

%%% BEGIN DOCUMENT

\begin{document}

\let\cleardoublepage\clearpage

\maketitle

\frontmatter

\null\vfill

\begin{flushleft}
\textit{NAME OF BOOK}

ISBN--INFO

ISBN--13:
\bigskip

\end{flushleft}
\let\cleardoublepage\clearpage

\mainmatter
\sloppy

BOOK TEXT GOES HERE

\end{document}


A lot of mass market paperbacks are printed with Nimbus 9, tgtermes is derived from (or shares a similar parentage with) this font.

createspace package is for printing with Amazon.

-
Please note that the package createspace has an error in it regarding margins (if used with memoir). I am not sure if this package still exists but it did about three weeks ago and the maintainer has been notified of the issue. – Jeel Shah Apr 24 '13 at 20:50
Why would anyone typeset their book content using \sloppy? – Henri Menke Jan 2 '14 at 13:25
I've taken out the \usepackage[spanish]{babel} and also tried replacing it with \usepackage[english]{babel} and I either get the word "Chapter" in Spanish or it says "spanish" isn't recognized. Using MikTex / TexWorks for Windows. – Rick Henderson Jul 5 at 15:09

It is not a direct answer to your question, because it is not build on memoir, but tufte-latex is a framework for a book, build on the theories of the famous typographic designer, Edward Tufte. Using that class, you can be sure to produce a document that is pleasant and nice.

The package has its own web page, too.

-
The sample-book file from the site you've linked to is exactly what I've been looking for. Does that mean eierlegende Wollmilchsaus exist after all? Or just that we each have our unique ways of understanding the world and the people in it? Thank you Sveinung very much. – Benish Sep 10 '12 at 2:36
@Benish My pleasure. If it was an acceptable answer, feel free to accept and up-vote it. – Sveinung Sep 10 '12 at 7:41

Here is another example as an alternative to the one given by Michael OKane:

%%% DOCUMENTCLASS
%%%-------------------------------------------------------------------------------

\documentclass[
a4paper, % Stock and paper size.
11pt, % Type size.
% article,
% oneside,
onecolumn, % Only one column of text on a page.
% openright, % Each chapter will start on a recto page.
% openleft, % Each chapter will start on a verso page.
openany, % A chapter may start on either a recto or verso page.
]{memoir}

%%% PACKAGES
%%%------------------------------------------------------------------------------

\usepackage[utf8]{inputenc} % If utf8 encoding
% \usepackage[lantin1]{inputenc} % If not utf8 encoding, then this is probably the way to go
\usepackage[T1]{fontenc}    %

% \usepackage{kpfonts} %Font

\usepackage{amsmath,amssymb,mathtools} % Math

% \usepackage{tikz} % Figures
\usepackage{graphicx} % Include figures

%%% PAGE LAYOUT
%%%------------------------------------------------------------------------------

\setlrmarginsandblock{0.15\paperwidth}{*}{1} % Left and right margin
\setulmarginsandblock{0.2\paperwidth}{*}{1}  % Upper and lower margin
\checkandfixthelayout

%%% SECTIONAL DIVISIONS
%%%------------------------------------------------------------------------------

\maxsecnumdepth{subsection} % Subsections (and higher) are numbered
\setsecnumdepth{subsection}

\makeatletter %
\makechapterstyle{standard}{
\setlength{\beforechapskip}{0\baselineskip}
\setlength{\midchapskip}{1\baselineskip}
\setlength{\afterchapskip}{8\baselineskip}
\renewcommand{\chapnamefont}{\centering\normalfont\Large}
\renewcommand{\printchaptername}{\chapnamefont \@chapapp}
\renewcommand{\chapnumfont}{\normalfont\Large}
\renewcommand{\printchapternum}{\chapnumfont \thechapter}
\renewcommand{\afterchapternum}{\par\nobreak\vskip \midchapskip}
\renewcommand{\printchapternonum}{\vspace*{\midchapskip}\vspace*{5mm}}
\renewcommand{\chaptitlefont}{\centering\bfseries\LARGE}
\renewcommand{\printchaptertitle}[1]{\chaptitlefont ##1}
\renewcommand{\afterchaptertitle}{\par\nobreak\vskip \afterchapskip}
}
\makeatother

\chapterstyle{standard}

%%% FLOATS AND CAPTIONS
%%%------------------------------------------------------------------------------

\makeatletter                  % You do not need to write [htpb] all the time
\renewcommand\fps@figure{htbp} %
\renewcommand\fps@table{htbp}  %
\makeatother                   %

\captiondelim{\space } % A space between caption name and text
\captionnamefont{\small\bfseries} % Font of the caption name
\captiontitlefont{\small\normalfont} % Font of the caption text

\changecaptionwidth          % Change the width of the caption
\captionwidth{1\textwidth} %

%%% ABSTRACT
%%%------------------------------------------------------------------------------

\renewcommand{\abstractnamefont}{\normalfont\small\bfseries} % Font of abstract title
\setlength{\absleftindent}{0.1\textwidth} % Width of abstract
\setlength{\absrightindent}{\absleftindent}

%%%------------------------------------------------------------------------------

\makepagestyle{standard} % Make standard pagestyle

\makeatletter                 % Define standard pagestyle
\makeevenfoot{standard}{}{}{} %
\makeoddfoot{standard}{}{}{}  %
\makeatother                  %

\makeatletter
\makepsmarks{standard}{
\createplainmark{toc}{both}{\contentsname}
\createplainmark{lof}{both}{\listfigurename}
\createplainmark{lot}{both}{\listtablename}
\createplainmark{bib}{both}{\bibname}
\createplainmark{index}{both}{\indexname}
\createplainmark{glossary}{both}{\glossaryname}
}
\makeatother                               %

\makepagestyle{chap} % Make new chapter pagestyle

\makeatletter
\makeevenfoot{chap}{}{\small\bfseries\thepage}{} % Define new chapter pagestyle
\makeoddfoot{chap}{}{\small\bfseries\thepage}{}  %
\makeatother

\pagestyle{standard}               % Choosing pagestyle and chapter pagestyle
\aliaspagestyle{chapter}{chap} %

%%% NEW COMMANDS
%%%------------------------------------------------------------------------------

\newcommand{\p}{\partial} %Partial
% Or what ever you want

%%%------------------------------------------------------------------------------

\settocdepth{subsection}

%%%-------------------------------------------------------------------------------

\hypersetup{
pdfborder={0 0 0},      % No borders around internal hyperlinks
pdfauthor={I am the Author} % author
}
\usepackage{memhfixc}   %

%%% THE DOCUMENT
%%% Where all the important stuff is included!
%%%-------------------------------------------------------------------------------

\author{A. Author}

\usepackage{lipsum} % Just to put in some text

\begin{document}

\frontmatter

\maketitle

\begin{abstract}
\lipsum[1-2]
\end{abstract}
\clearpage

\tableofcontents*
\clearpage

\chapter{Introduction}

\lipsum[1-12]

\mainmatter

\chapter{How to Build a Timemachine}

\lipsum[1-13]

\chapter{How to Destroy a Timemachine}

\lipsum[1-14]

\appendix

\chapter{Causality}

\lipsum[1-15]

\backmatter

%%% BIBLIOGRAPHY
%%% -------------------------------------------------------------

% \bibliographystyle{utphysics}
% \bibliography{ref}

\end{document}


In order to make nice titlepages see e.g. ti­tlepages – Sam­ple ti­tlepages, and how to code them

-
Thank you for your answer. I enjoyed how easy it works and it is quite suitable for my purpose explained in here. – Vahid Shirbisheh Mar 25 '13 at 19:44

For me it seems you ask for the "Eier legende Wollmilchsau" (a german word I can't translate to english, literally "egg-laying wool-milk-sow". Thanks to @episanty for the link in the comment!), a thing that is not possible, because:

1. Which preferences are given (margins, fonts, content of the titlepage, ...)? You have to realise them by your own.
2. Which LaTeX system should be used? pdftex, pdflatex, lua(la)tex, context, ...
3. Which kind of grafics do you have to use? jpg, eps, png, ...
4. ...

Start with the design guide of your institution, ask for examples of thesises written in LaTeX and ask, if there are templates you can use as a start. Then build your own template to realise your thesis or book.

Most painless will be to use only that things from the templates you have understood. If you didn't understand them do not use it or ask on this webpage what it does.

-
I think the picture at wiktionary does eierlegende Wollmilchsau some fair justice. – E.P. Sep 9 '12 at 21:32
What a wonderful word. English really doesn't have such an evocative equivalent. – Alan Munn Sep 9 '12 at 23:11
The Wiktionary entry mentions it representing an item with many uses, but doesn't seem to represent "a thing that is not possible" so which is a more correct meaning? – Rick Henderson Jul 5 at 14:29