I'd like to use LaTeX to typeset a novel. Could you recommend me any template?
What I mean is a template (some .tex file) where I can include my chapterN.tex files (mainly plain text) and get a pretty good design with zero work :)
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI'd like to use LaTeX to typeset a novel. Could you recommend me any template?
What I mean is a template (some .tex file) where I can include my chapterN.tex files (mainly plain text) and get a pretty good design with zero work :)
Try the memoir
class. Give the comprehensive manual a close review.
memoir
a fantastic tool, well worth your investment in learning.
Aug 13, 2012 at 7:53
This LaTeX template is for typesetting a novel or narrative. It will be most useful to folks new to LaTeX, not the regular academics or scientists who already use it regularly. Notice the overall structure and the input statements that direct LaTeX to associated chapter files, which can be typed up separately. (It's best to pay special attention to organization with long novels)
Until you're ready to actually use the template, Add this to the preamble for testing purposes, to generate dummy text rather than empty chapter.tex files: \usepackage{babel,blindtext}
and then comment out the \input
statements and replacing with \blindtext
for a short dummy text, or \Blindtext
for longer dummy text.
In addition to \input
statements for chapters, it also has inputs for dedication page, a copyright page, a foreward, a prologue (just add others you may need) and it includes a table of contents, any of which can be easily commented out with a %
when unnecessary.
%
%
% SIMPLE NOVEL TEMPLATE for LaTeX
%
%
%
\documentclass{book}
%
\author{Your Name} \title{Your Novel} \date{YourDate}
%
%
%
%
%
% % end preamble
\begin{document} % start document
%
%
%
\frontmatter % the front of the book has roman numerals
%
\input{copyright}\clearpage % type up a copyright.tex file if necessary
%
\input{dedication}\clearpage % type up a .tex file if necessary
%
\chapter*{Foreword} % \chapter* (* excludes from Contents)
\input{Foreword}\clearpage % type a Foreward.tex file if necessary
%
\chapter*{Prologe}
\input{Prologe}\clearpage % type a Prologe.tex file if you like
%
\maketitle\tableofcontents % generates a titlepage and Contents
%
%
%
\mainmatter % the main part of the book will have standard pages
%
%
\part{Book One etc.} % comment this out as necessary
%
\chapter{Hello}
\input{chapter01} % type a chapter01.tex etc.
%
\chapter{Hello}
\input{chapter02} % type a chapter01.tex etc.
%
\chapter{Hello}
\input{chapter03} % type a chapter01.tex etc.
%
%
\part{Book Two etc.} % comment this out as necessary
%
\chapter{Hello}
\input{chapter04} % type a chapter01.tex etc.
%
\chapter{Hello}
\input{chapter05} % type a chapter01.tex etc.
%
\chapter{Hello}
\input{chapter06} % type a chapter01.tex etc.
%
%
%
%
\end{document}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% options: move these to the preamble if desired %
%
\usepackage{microtype} % use this to improve typography
\usepackage[T1]{fontenc} \usepackage{XCharter} % fully featured font set
\usepackage[utf8]{inputenc} % enable unicode quotation marks for dialog
\usepackage{hyphenat}\hyphenation{my-word, hyphen-ate, never, hyphen}
\usepackage{setspace}\onehalfspacing\frenchspacing\flushbottom\sloppy
\includeonly{file,file,etc}% \input can be replaced with \include.
% % However it adds a page break. \include adds
% % to the useful ability of \includeonly, which
% % if placed in the preamble will generate a
% % correctly page numbered pdf, but with only
% % the files listed in \includeonly. That may
% % useful for testing only specific files.
%
% google ``ctan novel'' for more packages that might add flare
\input
instead of \include
as to avoid unwanted page breaks.
memoir
class. It includes many built-in features that might be helpful: e.g., various ways to put 'breaks' in the text besides the typical sectioning commands; better support for headers and footers; etc.
You can redefine any macro any way you want after reading some basic material. The template needs LaTeX (or TeX). The end user does not. But that is a matter of parsing text, a converter or a template generator.
\documentclass{book}
\renewcommand{\chapter}[1]{\clearpage\begin{quote}\centering\fontsize{17}{20}\bfseries#1\end{quote}\vspace{3\baselineskip}}
\usepackage{blindtext}
\begin{document}
\chapter{Walter Wombat's morning}
\blindtext[10]
\end{document}
There aren't any popular templates circulating around for writing a novel in LaTeX. I wish there was one for say CreateSpace submittal 8" x 5" and 9" x 6" formats. And similar ones for Lulu, for self-publishers.
But, I'm still using LaTeX (LyX) for composing my first novel, because I agree with your points.
Basically, to adjust your default settings in LyX so that it's tuned for a Novel output. Do the following...
Before anything else, go to the main menu DOCUMENT > SETTINGS > [Document Class] and apply one of three Book Classes, either BOOK, BOOK KOMA-SCRIPT or BOOK MEMOIR
DOCUMENT > SETTINGS > [page layout] and select CUSTOM, then 8 x 5 (or whatever your page dimension is) Also, adjust the Heading Style to FANCY from the dropdown. This provides page numbering at the bottom and Chapter headers at the top of every page.
DOCUMENT > SETTINGS > [page margins] these settings looks great: TOP[0.75] / BOTTOM[0.6] / INNER[0.75] / OUTER[0.3] / HEAD SEP[0.25] / HEAD HEIGHT[0.25] / FOOT SKIP[0.4] you should know that INNER is the margin of the page where the book is bound to the book binding, and OUTER is the margin on the outside of a books page, where you pick the page to turn it.
DOCUMENT > SETTINGS > [Numbering and TOC] Make adjustments to the numbering of Parts, Chapters and Sections, or lack of them, in the Table of Contents (LaTeX does not have "Scenes or Clips that novel writers may be use to)
DOCUMENT > SETTINGS > [PDF Properties] [x] Use Hyperref Support (check this box so that your LaTeX generated TOC has hyperlinks to the chapters, if you choose to have a TOC. [ This is useful to export you novel into HTML format for quick and painless ebook (ePub) conversion, which can be submitted for Amazon Kindle submittals, for instance. ] ALSO, though they disappear in print, you aren't going to want the default red boxes around your hyperlinked Table of contents in your eBook, so remove those and add a nice blue text hyperlinks as follows: DOCUMENT> SETTINGS>[PDF Properties] go to the [Hyperlinks] tab and check these boxes: [x] No Frames around Links / [x] Color Links / Then finally under "Additional Options" type in this command "linkcolor=blue" (the default will come out as Red Text unless you change it here)
DOCUMENT > SETTINGS > [LaTeX Preamble] and add the following LaTeX code.
\pdfminorversion=4 %This adjusts pdfTeX output to pdf v1.4, for CreateSpace
\usepackage{microtype} %This vastly improves right justification
\usepackage{garamondx} %Garamond has become a novel writing font standard
Note, you will have to google and download the GetNoneFreeFonts linux command program to download and install the Garamond font. Otherwise, adjust your font to one you like, other than Computer Modern, under DOCUMENT > SETTINGS > [fonts] Make sure you don't leave it at [default] font, because that's usually Computer Modern. Also, you should know that if you want to use a Garamond font, that LaTeX Preamble command to load Garamondx will override your font selection under the other settings.
\usepackage{hyperref}
than 'DOCUMENT> SETTINGS>[PDF Properties] [x]Use Hyperref Support'
Feb 10, 2015 at 3:30
\usepackage{garamondx}
before \usepackage{microtype}
? Because that way when microtype is loaded it knowns about what fonts look like? I know for my current project in Lualatex, with times it has to be in the order: \usepackage{fontspec} \usepackage{times} \usepackage{microtype}
or lines will over protrude
Mar 2, 2016 at 4:16
microtype
now uses hooks to postpone code to the beginning of the document. However the order of fontspec
and times
would make a difference. times
is, however, deprecated and ought not be used. (And why load fontspec
in this case?)
In this case, LyX/LaTeX seems to me an overkill. I'd rather use Plain PDFTeX with the following “preamble”, for example:
\input plnfss % using Plain NFSS
\usefont{LY1}{ppl}{m}{n} % and setting Palatino in texnansi encoding as the main font
\pdfpagewidth=5.5 true in \pdfpageheight=8.5 true in % adjust as necessary
\textwidth=3.5 true in \textheight=6.5 true in % idem: 1 in margins everywhere
\hoffset=0 true in \voffset=0 true in % adjust to make margins
\uselanguage{spanish} % assuming your format includes etex.src and language.def
% with spanish hyphenation patterns preloaded
\textbf{Capítulo 1} % plnfss commands are now available
En un lugar de la Mancha, de cuyo nombre no me puedo acordar...
\bye
Make sure to set your source file encoding to Win1252/ISOLatin1, to make the text and font encoding coincide.
microtype
requires latex
, doesn't it? Surely that is reason enough not to use plain
, especially with a narrow text block of the kind usually found in novels.
latex
to plain
for a novel. I am suggesting that's not the case if you use a microtype
-compatible engine. Of course, this isn't the only reason, but I would consider it an extremely important one. It is not overkill if you want the result to look as good as possible because that requires microtypography which, as far as I know, is not readily accessible in plain
.
microtype
as yet another overkill. But I'll add that package to the LaTeX answer, per your suggestion.
plain
. You may not care about the difference or may think it not worth the overhead or something, but I don't see how it can be 'overkill'.
Try the following template for your draft, if you insist in using LaTeX:
\documentclass[twoside,openright]{report}
\usepackage[margin=1in]{geometry}
\pagestyle{myheadings}
\markboth{A. N. Author}{My Novella}
\usepackage{setspace}\onehalfspacing
\usepackage{texilikechaps}
\begin{document}
\part{First Part}
\chapter{Here we go}
\part*{Second Part}
\chapter*{Once again}
\end{document}
You should season this template with calls to inputenc
, fontenc
(pdfLaTeX) or fontspec
(XeLaTeX or LuaLaTeX) as needed, depending on your input and font encodings and your typesetting engine; and you may probably need to adjust the paper size in geometry
by stating, e.g. \usepackage{margin=1cm, papersize={12cm,19cm}]{geometry}
.
Remember to use the starred versions \part*
and \chapter*
if you don't want numbers in your draft.
You may need another class and/or more packages (microtype
, for instance) if you want to typeset the draft into its final form. But that's book design, not literature.
book
if you need \frontmatter
and \backmatter
. The rest is roughly the same as report
.