summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/novel/novel-LayoutSettings.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/novel/novel-LayoutSettings.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/novel/novel-LayoutSettings.sty10
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-LayoutSettings.sty b/Master/texmf-dist/tex/lualatex/novel/novel-LayoutSettings.sty
index 1de97130d1d..2b8cd8af45f 100644
--- a/Master/texmf-dist/tex/lualatex/novel/novel-LayoutSettings.sty
+++ b/Master/texmf-dist/tex/lualatex/novel/novel-LayoutSettings.sty
@@ -13,7 +13,7 @@
%%
%%
\ProvidesFile{novel-LayoutSettings.sty}%
-[2017/03/01 v1.0.6 LaTeX file (layout settings)]
+[2017/03/05 v1.0.6a LaTeX file (layout settings)]
%%
@@ -472,10 +472,16 @@
%% This could have been easier, but fontspec allows mandatory and optional
% arguments to appear in either order. We wish to store the fontnames
% and arguments, but need Expl syntax to tell which is which.
+\let\@setmainfont\setmainfont\relax
+\def\setmainfont{%
+ \ClassError{novel}{Use \string\SetMasterFont\space not \string\setmainfont}%
+ {The \string\setmainfont\space command is not in this document class.^^J%
+ Use \string\SetMasterFont\space to get what you need.}%
+}
\ExplSyntaxOn
%% Store settings for the master font:
% The master font will become the main font AtEndPreamble. It will also become
-% the default ancestor of all novel-defined fonts, except the deco font.
+% the default ancestor of all novel-defined fonts, except the deco font.
\newif \if@masterfontset
\gdef\@masterfontfeatures{}
\gdef\@masterfontname{}