summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/novel/lualatex/novel.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/latex/novel/lualatex/novel.cls')
-rw-r--r--macros/luatex/latex/novel/lualatex/novel.cls23
1 files changed, 16 insertions, 7 deletions
diff --git a/macros/luatex/latex/novel/lualatex/novel.cls b/macros/luatex/latex/novel/lualatex/novel.cls
index 5faf86342a..4f860e0f75 100644
--- a/macros/luatex/latex/novel/lualatex/novel.cls
+++ b/macros/luatex/latex/novel/lualatex/novel.cls
@@ -8,14 +8,21 @@
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
% Actually needs LuaLaTeX, at least version 0.95 from TeXLive 2016.
-\ProvidesClass{novel}[2023/11/09 v1.83 LaTeX document class]
+\ProvidesClass{novel}[2024/01/31 v1.86 LaTeX document class]
%%
-%% Version 1.83: Minor typo corrected.
+
+%% During the years since `novel' was introduced, there have been
+%% many changes in print-on-demand. Also, `novel` offers some
+%% features that are rarely used, bloating the code and documentation.
+%% Although `novel` still works (as of late 2023), it is more complicated
+%% than necessary for ordinary popular fiction. Unless you really need `novel',
+%% try `novelette' instead. Available early 2024. Easier to use.
+
%% In addition to a minimal LaTeX setup, with luatex, you will need these:
%% textpos magaz xcolor adjustbox eso-pic pdfpages unicode-math fp iftex
%% libertinus-fonts makecmds xkeyval lm-math xstring xifthen silence
-%% collectbox pgf lipsum wrapfig pdflscape polyglossia microtype hyperref
+%% collectbox pgf lipsum wrapfig pdflscape microtype hyperref polyglossia
%% You will need language support, for your language(s).
%% If using lipsum, you will need hyphen-latin.
@@ -26,6 +33,8 @@
%% It cannot be used for e-books or for journal publication.
%% It is not suitable for most non-fiction, because routine academic features
%% such as bibiography and automatic sectioning are defeated.
+%% Only use it for ORIGINAL works, where you can edit your text. If your
+%% purpose is a reprint of someone else's work, then `novel' is not for you.
%%
%% There are pre-configured layouts for the most commonly used choices of
%% trim size (finished book width and height), and internal layout consistent
@@ -100,7 +109,7 @@
\newlength\@tempLength % scratch length for local calculations
\newif \if@tempTF % scratch boolean for local tests
-
+\newif \ifnocle@rtoend % Only developer uses true.
%% Global lengths are often passed around in `novel'.
%% But \setlength is not always global in effect.
@@ -327,11 +336,11 @@
%% Physical Layout Commands and Settings.
%% ----------------------------------------------------------------------------
%% Define user commands that over-ride class option pre-configured settings.
-%% Also sets a variety of miscellaneous lengths:s \parsep, \parindent, etc.
+%% Also sets a variety of miscellaneous lengths: \parsep, \parindent, etc.
\RequirePackage{novel-LayoutSettings}
-%% Language support.
+%% Use polyglossia:
%% ----------------------------------------------------------------------------
\RequirePackage{polyglossia}
\setdefaultlanguage[variant=american]{english} % may be changed by user
@@ -621,7 +630,7 @@
\string\xdef\string\@AllGoodImages{\@AllGoodImages}^^J%
\string\xdef\string\@UnknownImages{\@UnknownImages}^^J%
}%
- \cleartoend% adds 1 or 2 blanks, for final verso blank
+ \ifnocle@rtoend\else\cleartoend\fi%
\fi%
\fi%
}