Books/2026.08-PrayersForDailyLife/latex/main.tex
2026-09-09 19:59:36 -07:00

132 lines
4.4 KiB
TeX

\documentclass[10pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ebgaramond}
\usepackage[paperwidth=6in,paperheight=9in,margin=0.8in]{geometry}
\usepackage{makeidx}
\usepackage{fancyhdr}
\makeindex
\renewcommand{\indexname}{Index of Psalm References}
\title{Prayer 101: Prayers for Daily Life \\[0.5em]
\large 101 Devotional Prayers for Every Occasion}
\author{George Marin}
\date{}
% Each prayer's entry: heading on its own page, plus a nested TOC line
% under its chapter (category), formatted "NUM. TITLE (Ps. REF)" to
% match the reference style used in the verse quote itself.
\newcommand{\psalmentry}[3]{%
\clearpage%
\section*{#1.\ #2}%
\addcontentsline{toc}{section}{#1.\ #2\ (Ps.~#3)}%
\vspace{0.5em}%
}
\newenvironment{versequote}{\begin{quote}\itshape}{\end{quote}}
% Chapter title + page number in the footer, header left empty. Regular
% content pages: chapter name on the left, page number on the right.
% "plain"-style pages (every chapter-opening page, automatically, plus
% the TOC/index first page) show just a centered page number, matching
% normal book convention of not repeating a chapter name on the page
% that already prominently displays it. These are style DEFINITIONS
% only -- \pagestyle{fancy} itself is activated at \mainmatter below, so
% it doesn't touch the front matter's own (already-correct) page styles.
\fancyhf{}
\fancyfoot[L]{\leftmark}
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyfoot[C]{\thepage}%
\renewcommand{\headrulewidth}{0pt}%
}
% Table of contents doesn't set a running head the way \chapter does (it's
% typeset as a starred heading), so it gets its own named style rather than
% relying on \leftmark -- applies to every page the TOC spans, not just
% the first, since \pagestyle{} (not \thispagestyle{}) persists.
\fancypagestyle{toc}{%
\fancyhf{}%
\fancyfoot[L]{\contentsname}%
\fancyfoot[R]{\thepage}%
\renewcommand{\headrulewidth}{0pt}%
}
% \cleardoublepage (called internally by \frontmatter/\mainmatter/\backmatter
% in this two-sided book) inserts a blank filler page when needed so the
% next part starts on a recto page -- but by default it does NOT suppress
% the page style on that filler page, so our footer would otherwise show up
% on an otherwise-blank page. Force that filler page to plain/empty.
\let\origcleardoublepage\cleardoublepage
\renewcommand{\cleardoublepage}{%
\clearpage
{\pagestyle{empty}\origcleardoublepage}%
}
\begin{document}
\frontmatter
\maketitle
% \maketitle sets thispagestyle{empty} on the title page automatically,
% so no folio prints there even though the (hidden) roman-numeral
% counter is running underneath.
\thispagestyle{empty}
\vspace*{\fill}
\noindent Prayers for Daily Life
\medskip
\noindent Copyright \textcopyright\ 2026 by George Marin
\noindent All rights reserved.
\medskip
\noindent No part of this publication may be reproduced, distributed,
or transmitted in any form or by any means, including photocopying,
recording, or other electronic or mechanical methods, without the
prior written permission of the publisher, except in the case of
brief quotations embodied in critical reviews and certain other
noncommercial uses permitted by copyright law.
\medskip
\noindent Scripture quotations are taken from the \textit{World English Bible}, British Edition (WEBBE),
a modern English translation dedicated to the public domain by its translators.
No permission is required for its use.
\medskip
\noindent Published by Zebedee Press
\noindent ISBN: 000-0-000000-00-0 % TODO: replace with the assigned ISBN before publication
\noindent First Edition
\vspace*{\fill}
\clearpage
% Title and copyright pages carry no visible folio, but the page counter
% still silently advances through them (thispagestyle{empty} only hides
% the PRINTED number, it doesn't stop the counter) -- reset it here so
% the table of contents itself starts at "i", not "iii".
\setcounter{page}{1}
\pagestyle{toc}
\tableofcontents
% \tableofcontents calls \thispagestyle{plain} internally on its own
% first page (same mechanism \chapter uses) -- override that back to
% our footer style for this specific page; any overflow page benefits
% from \pagestyle{toc} above without needing this.
\thispagestyle{toc}
\input{template-foreward}
\mainmatter
\pagestyle{fancy}
\input{inputs}
\backmatter
\clearpage
\addcontentsline{toc}{chapter}{\indexname}
\printindex
\end{document}