[Tex/LaTex] A generic but ready-to-use book template

book-designbookstemplates

Previous materials and purpose of a book template

Let's assume for a second: I already have all the text (content) done for a book. Now, I want to set it ready for auto-publishing, in the best punk-rock Do It Yourself [DIY] style. What can I do with LaTeX?

Let's get a bit more specific. Many questions on this site ask for templates in several fields:

  • Math for example, and yes, as an answer there suggests memoir is generally a very good class for this purpose. In fact, that post informs of another post with a very functional painless template. One of the few and best book templates in fact that I could find: code appears clearly and not too long, compiles well. Just that when I try to add more text it just doesn't work…

  • Another post asks for a class to write novels. And of course comes the comment: what features are you looking for?. I'll be back on this point.

  • Another post looks to use LaTeX for writing a fiction book. Here appears a good requirement that is quite simple and deserves some attention: a ready-to-go template…for a book . The above painless template more or less can serve this purpose of mwe as template. However I'd like some specifications that I mention as follows.

Sidenote: another cool template is the tufte-book, but it's not prepared for changes of page-size with geometry package… Hence some requirements…


Ideas for a book template

Most books, as far as I check my bookshelf, are not made in a4 paper. So here a list of desirable basic possibilties for a book template.

Inside the book

  • First foursih pages could have:

    1) title page with the title alone

    2) blank page

    3) title page with title and author name

    4) copyright, and other front matter info on the book/publisher

  • Then: main matter/contents …yada yada

  • Others/index/bib/etc.

  • Maybe date/place of publication at the end, and perhaps some other information.

Configuration

  • Fit por papers of sizes other than a4. Could be different shape, or bigger or smaller than a4. I like a5, and a6.

  • Set some kind of typography.

  • As for style: this template for a speech, even if subjective, seems nice.


Subjective scope and possible answers

Yes, all these pointers are somewhat arbitrary, but a template book shall come very handy and it's a good place to start at for those who have a ready text and want to format it for print. And I haven't seen this solidly responded elsewhere. I've browsed around and page title alone requires a whole series of consideration, same with typography, page size and so on.

This question aims not only for a variety of answers but also to achieving a code that could be not too long and somewhat clean with those basic points inside the book and maybe an additional tweak or so of configuring a style.

Granted that this is not very close to getting a minimal example. But I still feel that just these few requirements could be usefull for people planning to do a book. My pointers intend to go in the same direction as a comment-link suggested:

we can work together to establish some common standards of best practice (What does that even mean?) to improve the initial state of future templates and improve the current situation

That post has very good points. And references too (tl,dr). However, even if this question may be improved I still see some valid points and that it could be a good starting point.

Best Answer

I recently posted a new document class, specifically for the purpose of a novel. It is not just a template, but a complete method for created a file in PDF/X for print-on-demand (paper, not e-book). You can find it on CTAN:

https://ctan.org/pkg/novel

It comes with elaborate documentation, directed toward writers rather than programmers. You may need to start from scratch, but that should not be difficult, as the document class is pre-configured for the most likely needs of book publishing.

You can also see a demonstration novel (from public domain) both in the LaTeX code and finished PDF.