Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

An example of a novel?

42 views
Skip to first unread message

Salim Fadhley

unread,
Dec 9, 2006, 6:46:39 AM12/9/06
to
Dear Texperts,

Is there an example of a novel sized book anywhere on the internet? It
would need to have the dimensions of a typical novel - the sort of
thing we would find in any bookshop? I'm looking for something with
classic book typography.

sal

William F. Adams

unread,
Dec 9, 2006, 10:35:26 AM12/9/06
to

I did one of a similar size, Mike Brotherton's _Star Dragon_ which is
on his site as a .pdf.

Here's the preamble and the first part of it. One of the commented out
sizes should work for you if you're in the US. The hyperref commands
should be adjusted, but otherwise should work for you.

William

\documentclass{memoir}

\usepackage[pdftex]{graphicx}
\usepackage{t1enc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{url}
\usepackage{fixltx2e}
\usepackage[osf]{mathpazo}
\usepackage[protrusion=true]{microtype}%,expansion=true
\usepackage[%
pdftex,%
colorlinks,%
hyperindex,%
plainpages=false,%
pdfpagemode=None,%
bookmarksnumbered,%
pdfpagelayout=TwoColumnRight%
]{hyperref}
\usepackage{memhfixc}

\setstocksize{168mm}{125mm}
%\setstocksize{7in}{4.25in}
%\setstocksize{6.5in}{4.25in}
\settrimmedsize{\stockheight}{\stockwidth}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\linespread{1.1}
\tolerance 1414
\hbadness 1414
\emergencystretch 1.5em
\hfuzz 0.3pt
\widowpenalty=10000
\clubpenalty=10000
%\finalhyphendemerits=10000
\setlength{\parskip}{0pt}
\normalfont
\setlxvchars\setxlvchars
\settypeblocksize{*}{.95\lxvchars}{1.32}
\setlrmargins{*}{*}{1.618} % golden ratio again for left/right margins
\setheaderspaces{*}{*}{.125}
\setulmargins{*}{*}{1.618}
\checkandfixthelayout
\newlength{\AfterFancyBreakMin}
\setlength{\AfterFancyBreakMin}{3\baselineskip}
\newcommand{\interlude}[1]{\plainfancybreak{\AfterFancyBreakMin}{1}{#1}}
\setlength{\cftbeforechapterskip}{0pt}
\makeatletter\renewcommand{\printchapternum}{\chapnumfont
\numtoName{\c@chapter}}
\makeatother
\setlength{\cftbeforepartskip}{\baselineskip}
\setlength{\cftchapternumwidth}{.5\textwidth}
\frenchspacing
\makepagestyle{ebook}
\makeevenhead{ebook}%
{\normalfont\thepage%\ \thepart
}{\normalfont\scshape\thetitle}{}
\makeoddhead{ebook}%
{}{\normalfont\scshape\theauthor}{%\numtoName{\thechapter}\
\normalfont\thepage}
\pagestyle{ebook}
\setlength{\parindent}{1.5 em}
\aliaspagestyle{title}{empty}
\newcommand{\emphqitem}[2]{\qitem{\textit{#1}}{#2}}
\makeatletter\renewcommand{\@maketitle}{%
\let\footnote\@mem@titlefootkill
\newpage
\null
\vskip 2em%
\vspace*{\droptitle}
\maketitlehooka
{\@bspretitle \HUGE\scshape\@title \@bsposttitle}
\maketitlehookb
{\@bspreauthor \normalfont\scshape\@author \@bspostauthor}
\maketitlehookc
{\@bspredate \@date \@bspostdate}
\maketitlehookd
\par
\vskip 1.5em}
\makeatother

\title{Star Dragon}
%by
\author{Mike Brotherton}
\date{}

\begin{document}
\frontmatter
\maketitle
\clearpage

\thispagestyle{empty}
\strut\vfill\begin{tiny}\begin{flushleft}\noindent
This work is licensed under the Creative Commons \\
Attribution-NonCommercial-NoDerivs License.
\\
To view a copy of this license, visit \\
\url{http://creativecommons.org/licenses/by-nc-nd/2.0/}\\
or send a letter to \\
Creative Commons, \\
559 Nathan Abbott Way, \\
Stanford, California 94305, \\
USA.
\end{flushleft}\end{tiny}\clearpage

\chapter*{Acknowledgments}
I'd like to thank several critique groups that significantly aided my
development as a writer: the Slugtribe in Austin, Texas, and the
Whensday People and SFX groups in California. I also received
good, constructive criticism of this novel from my Clarion West
classmates, particularly Ojvind Bernander, Syne Mitchell, and
Byron Tetrick. I'd especially like to thank my Hemingway expert,
Bill Burkett, and my cataclysmic variable experts, Dr. Tod Ramseyer
and Dr. Chris Mauche. Wolf Read provided not only commentary
on the manuscript but also the great interior illustration
of SS Cygni. My editor Beth Meacham provided encouragement
and excellent direction with the finishing polish. Finally I'd like to
thank my wife, Leah Cutter. She read and critiqued this novel
more times than I read and critiqued her first novel and always told
me what I needed to hear when I needed to hear it.
\cleardoublepage

\tableofcontents*

\mainmatter

%Part One:
\part{Five-hundred-year Mission}
\chapter{ }
\begin{epigraphs}
\emphqitem{A journey of a thousand miles \\
must begin with a single step.}
{Chinese proverb}\end{epigraphs}

Gordon

unread,
Dec 9, 2006, 6:33:19 PM12/9/06
to
William F. Adams wrote:
> Salim Fadhley wrote:
>> Is there an example of a novel sized book anywhere on the internet?
>> It would need to have the dimensions of a typical novel - the sort of
>> thing we would find in any bookshop? I'm looking for something with
>> classic book typography.
>
> I did one of a similar size, Mike Brotherton's _Star Dragon_ which is
> on his site as a .pdf.

This is an attractive book. Two minor observations: the even/odd page
margins are shifted in the wrong directions, and the pdf page numbers do not
correspond to the actual page numbers (because of the six roman-numbered
pages in front). The latter issue would probably be fixed by \pagenumbering
commands at the beginning of Page i and Page 1.


Robin Fairbairns

unread,
Dec 10, 2006, 6:12:42 AM12/10/06
to
"Gordon" <gordo43...@comcast.net> writes:
>William F. Adams wrote:
>> Salim Fadhley wrote:
>>> Is there an example of a novel sized book anywhere on the internet?
>>> It would need to have the dimensions of a typical novel - the sort of
>>> thing we would find in any bookshop? I'm looking for something with
>>> classic book typography.
>>
>> I did one of a similar size, Mike Brotherton's _Star Dragon_ which is
>> on his site as a .pdf.
>
>This is an attractive book. Two minor observations: the even/odd page
>margins are shifted in the wrong directions,

no they're not: the combined gutter margins are the same as the outer
margins.

>and the pdf page numbers do not
>correspond to the actual page numbers (because of the six roman-numbered
>pages in front). The latter issue would probably be fixed by \pagenumbering
>commands at the beginning of Page i and Page 1.

does he use a tex-based system? gosh -- i must have missed something.
--
Robin Fairbairns, Cambridge

Salim Fadhley

unread,
Dec 11, 2006, 4:52:15 PM12/11/06
to
Using William's formula i get the following compile-time error with
PDFLatex:

Transcript written on mfput.log.
grep: pzdr.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
input pzdr' failed to make pzdr.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font U/pzd/m/n/10=pzdr at 10.0pt not loadable: Metric (TFM) file not
found.
<to be read again>
relax
l.63 {\Pifont{pzd}
}
? X
No pages of output.
Transcript written on 52stories.log.

Can anybody explain what this means?

William F. Adams

unread,
Dec 11, 2006, 9:36:46 PM12/11/06
to
Salim Fadhley wrote:
> Using William's formula i get the following compile-time error with
<snip error message>

> Can anybody explain what this means?

Something's not right with your mathpazo font setup or it's not working
w/ your TeX --- which version of TeX are you using, from what
distribution on which platform?

In the meanwhile comment out the \usepackage[...]{mathpazo} line or
replace it w/ \usepackage{mathptmx}.

William

Ralf Stubner

unread,
Dec 12, 2006, 4:56:25 AM12/12/06
to
"Salim Fadhley" <salimf...@gmail.com> writes:

> Transcript written on mfput.log.
> grep: pzdr.log: No such file or directory
> mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
> input pzdr' failed to make pzdr.tfm.

You are missing the TeX metric file for ZapfDingbats. Since this file is
part of PSNFSS, which in turn is a required part of LaTeX, this should
not happen. Which TeX system are you using?

cheerio
ralf

Salim Fadhley

unread,
Dec 12, 2006, 5:47:54 AM12/12/06
to
> not happen. Which TeX system are you using?

PDFLatex on ubuntu 6.10 (Edgey).

I installed everything from Synaptic.

Sal

Ralf Stubner

unread,
Dec 12, 2006, 7:53:46 AM12/12/06
to
"Salim Fadhley" <salimf...@gmail.com> writes:

Edgy has both tetex and texlive packages. Which packages do you have
installed? In case you are using the tetex packages, you have to install
tetex-extra (known bug).

cheerio
ralf

Salim Fadhley

unread,
Dec 12, 2006, 8:58:30 AM12/12/06
to
Got it!

You were right. There was a missing font package. It turns out I was
using texlive and I had not installed the fonts packages. I guess there
is just a missing dependancy somewhere.

More oddities with the novel format: When I try to view the PDF in
Adobe Acrobat I get the following output:

expr: syntax error
expr: syntax error
expr: syntax error
[repeated hundreds of times]

It seems as if pdflatex is producing some bogus output. Th program
keeps printing this error message untill I give it a ^C to interrupt
it.

When I view the document in evince it loads fine, however certain pages
have an odd character sequence on them: "". In case that gets
munged via NNTP, it is three chars. The first is a letter i with an
umlaut. The second is a chevron pointing right and the third is an
upside-down "?".

Salim Fadhley

unread,
Dec 12, 2006, 9:03:26 AM12/12/06
to
I should also point out that the entire project is hosted on a public
SVN site. You can see the work and the bizarre effect here:

http://suxtools.googlecode.com/svn/hootinganthology/trunk/

Just look on page 1 of "52stories.tex" (thats the page that is numbered
one, and not the 1st page in the pdf).

Sal

On Dec 12, 1:58 pm, "Salim Fadhley" <salimfadh...@gmail.com> wrote:
> Got it!
>
> You were right. There was a missing font package. It turns out I was
> using texlive and I had not installed the fonts packages. I guess there
> is just a missing dependancy somewhere.
>
> More oddities with the novel format: When I try to view the PDF in
> Adobe Acrobat I get the following output:
>
> expr: syntax error
> expr: syntax error
> expr: syntax error
> [repeated hundreds of times]
>
> It seems as if pdflatex is producing some bogus output. Th program
> keeps printing this error message untill I give it a ^C to interrupt
> it.
>
> When I view the document in evince it loads fine, however certain pages

> have an odd character sequence on them: "". In case that gets


> munged via NNTP, it is three chars. The first is a letter i with an
> umlaut. The second is a chevron pointing right and the third is an
> upside-down "?".
>
> Ralf Stubner wrote:

Ralf Stubner

unread,
Dec 12, 2006, 9:22:04 AM12/12/06
to
"Salim Fadhley" <salimf...@gmail.com> writes:

> I should also point out that the entire project is hosted on a public
> SVN site. You can see the work and the bizarre effect here:
>
> http://suxtools.googlecode.com/svn/hootinganthology/trunk/
>
> Just look on page 1 of "52stories.tex" (thats the page that is numbered
> one, and not the 1st page in the pdf).

This looks as if you save your docuemnt in UTF-8 encoding and your
editor includes a byte-order mark in the beginning. Try to get rid of
that.

cheerio
ralf

PS: Please don't top-post. Please trim your quotes. Thank you.

Ralf Stubner

unread,
Dec 12, 2006, 9:26:13 AM12/12/06
to
"Salim Fadhley" <salimf...@gmail.com> writes:

> Got it!
>
> You were right. There was a missing font package. It turns out I was
> using texlive and I had not installed the fonts packages. I guess there
> is just a missing dependancy somewhere.

Could you be more explicit? Which packages did you install initially?
Which package was missing? At least in Debian, pzdr.tfm is in
'texlive-fonts-recommended'. You can install a LaTeX system without this
package (the same holds for the TeX Live CD/DVD), but if you install,
eg, the 'texlive' package, which is the recommended way of installing a
reasonable sub set of the texlive-* packages, then
'texlive-fonts-recommended' is one of the packages that is installed.

cheerio
ralf

Salim Fadhley

unread,
Dec 12, 2006, 12:20:06 PM12/12/06
to
No, it was my fault. I installed the individual texlive components
(missing some) rather than installing the top-level texlive object.

Salim Fadhley

unread,
Dec 12, 2006, 12:37:13 PM12/12/06
to
It seems that all of my .tex files are actually UTF-8Y files and not
plain ASCII files. Can anybody suggest a convenient way to bulk-convert
them all to ASCII? There should be no special characters in them which
would require fancy conversion? I was wondering if there was a standard
tool that will do the job for me.

Alternativly, I was wondering if there was a way to make Latex use UTF
files and just ignore that leading byte?

Sal

Robert Heller

unread,
Dec 12, 2006, 1:19:20 PM12/12/06
to
At 12 Dec 2006 09:37:13 -0800 "Salim Fadhley" <salimf...@gmail.com> wrote:

>
> It seems that all of my .tex files are actually UTF-8Y files and not
> plain ASCII files. Can anybody suggest a convenient way to bulk-convert
> them all to ASCII? There should be no special characters in them which
> would require fancy conversion? I was wondering if there was a standard
> tool that will do the job for me.

recode

>
> Alternativly, I was wondering if there was a way to make Latex use UTF
> files and just ignore that leading byte?
>
> Sal
>
>

--
Robert Heller -- 978-544-6933
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
hel...@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk

Michal Jaegermann

unread,
Dec 12, 2006, 3:20:26 PM12/12/06
to
Salim Fadhley <salimf...@gmail.com> wrote:
>
> More oddities with the novel format: When I try to view the PDF in
> Adobe Acrobat I get the following output:
>
> expr: syntax error
> expr: syntax error
> expr: syntax error
> [repeated hundreds of times]
>
> It seems as if pdflatex is producing some bogus output.

No, that shell script which is called 'acroread' in the current
Linux/Unix version is buggy and not written to be even somewhat robust.
Most likely if you comment out lines which say

if [ "`uname -s`" = "Linux" ]; then
MIN_GTK_VERSION="240"
check_gtk_ver_and_set_lib_path "$MIN_GTK_VERSION" ### returns 0 if found gtk >= 2.4
fi

(or something close) then this will start working for you. Otherwise
fix 'sed' in 'get_gtk_file_ver()' function.

A simpler way is to use some other PDF viewer - like 'xpdf' or
'evince'.

Michal

Alan Ristow

unread,
Dec 14, 2006, 10:11:19 PM12/14/06
to

Try \usepackage[utf8]{inputenc}.

Alan

nicol...@gmail.com

unread,
Jan 10, 2007, 6:02:38 AM1/10/07
to
recode seems not to recognize UTF-8Y is it possible to add encodings to
recode?

Thanks

Robert Heller ha scritto:

Jean-Côme Charpentier

unread,
Jan 10, 2007, 8:07:21 AM1/10/07
to
nicol...@gmail.com a écrit :

> recode seems not to recognize UTF-8Y

Indeed. At least, my version (Free recode 3.6) doesn't recognize this
encoding.

> is it possible to add encodings to recode?

Whew! Maybe... I never tried that!
For UTF-8Y, it's just a classical UTF-8 whith the following 3-bytes header:

"EF "BB "BF

It will be easier to add this header than to add a feature to recode.
Isn't it?

Jean-Côme Charpentier

0 new messages