diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/novel/novel.cls')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/novel/novel.cls | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/lualatex/novel/novel.cls b/Master/texmf-dist/tex/lualatex/novel/novel.cls index bcdc6cef3bb..c3bb3d806e4 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel.cls +++ b/Master/texmf-dist/tex/lualatex/novel/novel.cls @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1995/12/01] % Actually needs LuaLaTeX, at least version 0.95 from TeXLive 2016. -\ProvidesClass{novel}[2017/04/12 v1.1 LaTeX document class] +\ProvidesClass{novel}[2017/05/04 v1.2 LaTeX document class] %% @@ -96,6 +96,7 @@ % xcolor -- lower in this page % adjustbox -- lower on this page % eso-pic -- lower on this page +% lipsum -- later on this page %% @@ -103,6 +104,7 @@ %% ----------------------------------------------------------------------------- % Allowed option list: % draft xml shademargins graytext greytext cropmarks cropview closecrop +% New in version 1.2: coverart % Yes, I realize that this could have been done another way: \gdef\@mycol{\@classoptionslist} \StrDel{\@mycol}{ }[\@mycola] @@ -115,8 +117,9 @@ \StrDel{\@mycolg}{cropmarks}[\@mycolh] \StrDel{\@mycolh}{cropview}[\@mycoli] \StrDel{\@mycoli}{closecrop}[\@mycolj] +\StrDel{\@mycolj}{coverart}[\@mycolk] % -\gdef\@mycolzzz{\@mycolj} % modify if others added +\gdef\@mycolzzz{\@mycolk} % modify if others added \ifthenelse{\equal{\@mycolzzz}{}}{}{ \ClassWarning{novel}{Unrecognized class option: \@mycolzzz\space^^J% The unrecognized option was ignored!^^J}% @@ -179,11 +182,18 @@ \DeclareOption{closecrop}{ \@cropviewtrue\@closecroptrue } +% New in version 1.2: coverart option. +% This is used to create a 1-page file with no text, just an image. +% Intended purpose is PDF/X for novel cover. See docs page 10. +\newif \if@coverart +\DeclareOption{coverart}{ + \@coverarttrue +} %% Note that document size and normal font size are not class options. %% They are set by commands in the Preamble, and have default values. % \ProcessOptions\relax -% Disable some options, unless in draft mode: +% Disable some options, depending on compatibilities: \if@useDraftMode\else \global\@shademarginsfalse \global\@cropviewfalse @@ -200,6 +210,13 @@ \global\@cropmarksfalse \fi % +\if@coverart + \global\@useDraftModefalse + \global\@shademarginsfalse + \global\@cropviewfalse + \global\@closecropfalse + \global\@graytextfalse +\fi %% end class options @@ -244,6 +261,8 @@ } \normalsize % +\RequirePackage{lipsum} % for examples +% %% end temporary normal point size and baselineskip @@ -377,6 +396,18 @@ } %% +%% New in version 1.2, coverart option. See docs page 10. +\if@coverart + \AfterEndPreamble{ + \AddToShipoutPictureBG{% + \AtPageUpperLeft{% + \InlineImage*{\novelcoverimage}% + }% + } + \null% without this, page has no "content" + } +\else\fi +%% %% |