diff options
author | Karl Berry <karl@freefriends.org> | 2017-05-05 22:49:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-05-05 22:49:55 +0000 |
commit | 8f155cad2caac2649a6e16f1e2944998bced1975 (patch) | |
tree | e009e2d8937744a472a774aeba8873aae5549ff7 /Master/texmf-dist/tex | |
parent | 2ef74d43ee72c4fe09b32f8c44e3a12841de13c9 (diff) |
novel (5may17)
git-svn-id: svn://tug.org/texlive/trunk@44215 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
17 files changed, 106 insertions, 133 deletions
diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-CGATSTR001.clo b/Master/texmf-dist/tex/lualatex/novel/novel-CGATSTR001.clo index e0c3e241d12..2679b21e657 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-CGATSTR001.clo +++ b/Master/texmf-dist/tex/lualatex/novel/novel-CGATSTR001.clo @@ -1,4 +1,4 @@ -% Typically used in the USA. Novel file version 1.1 +% Typically used in the USA. Novel file version 1.2 % The values of the arguments are public industry standards. diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty b/Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty index c2e482876b2..24ae4606b95 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty @@ -12,7 +12,7 @@ %% %% \ProvidesFile{novel-CalculateLayout.sty}% -[2017/04/12 v1.1 LaTeX file (layout calculations)] +[2017/05/04 v1.2 LaTeX file (layout calculations)] %% @@ -672,7 +672,6 @@ %% end cropmarks - %% %% End of file `novel-CalculateLayout.sty'. diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty b/Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty index 2b902215ef1..d3ee9028bda 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty @@ -13,7 +13,7 @@ %% %% \ProvidesFile{novel-ChapterScene.sty}% -[2017/04/12 v1.1 LaTeX file (chapter and scene macros)] +[2017/05/04 v1.2 LaTeX file (chapter and scene macros)] %% @@ -181,112 +181,7 @@ %% -%% \Epigraph[align,scale,width]{text} -%% Not to be confused with lowercase \epigraph from package of same name. -%% -% \Epigraph takes one optional argument, which will be parsed for -% comma-separated values. You may use one, two, or all three values. -% First value is l, c, or r. Position of Epigraph in the textblock. Default c. -% If l or c, the text within the Epigraph is either left-aligned or justified, -% depending on whether the third value is given. Note that value c does not -% center each line of the Epigraph; if that is what you want, then simply -% use the centering command. If first value is r, text is right-aligned. -% Second value, if given, changes the text size and internal baseline skip. -% Thus, the text will go off-grid, but that's OK for the purpose. -% The second value is a number, being scale relative to normal font size. -% Default is 1. A good value for chapter displays might be around 0.92, -% equivalent to about 1pt smaller text size (and skip) than normal. -% A front page, near the book title, might use a value greater than 1. -% If no third value is given, the macro uses the tabular environment to set -% ragged text at its natural width. Good for verse in particular. -% If a third value is given, it must be a number that does not exceed 1. -% This is the portion of textwidth that will be used. Within the Epigraph, -% text will be justified to the specified width. So, for example, using 0.5 -% creates a justified Epigraph as half the textwidth. Its position will be -% determined by the first value, l, c, or r. -% The mandatory text argument is the Epigraph, as well as its attribution. -% More than one paragraph is permitted. -% Use ordinary \\ and \par for breaks. You will need to use either \par -% or \\\par before the attribution. Use \hfill to shift the attribution to -% the right edge of the Epigraph. -% The text may be styled with the usual simple commands such as \emph{}. -% There is no provision for a horizontal line. -% If used on a stand-alone page, or in the ChapterStart environment, -% then the vertical extent of the Epigraph does not much matter. -% If mingled with main text (not recommended) you may have to correct -% the line grid using some amount of \vspace{}. That's your problem. -% -\newcommand\Epigraph[2][c]{% note capital E - \vspace{-\nbs} - \StrDel{#1}{ }[\@onens] - \StrCut{\@onens}{,}{\@onealigna}{\@onemore} - \StrCut{\@onemore}{,}{\@onefsa}{\@onewsa} - \ifthenelse{\equal{\@onealigna}{c}\OR\equal{\@onealigna}{}}{\def\@onealign{c}}{\def\@onealign{\@onealigna}} - \ifthenelse{\equal{\@onealign}{c}\OR\equal{\@onealign}{l}\OR\equal{\@onealign}{r}}{}{% - \ClassError{novel}{Wrong syntax in \string\epigraph\space on page \string\thepage}% - {Optional argument of \string\epigraph\space must begin with l, c, or r.}% - } - \IfEndWith{\@onefsa}{.}{\StrGobbleRight{\@onefsa}{1}[\@onefsb]}{\def\@onefsb{\@onefsa}} - \IfEndWith{\@onewsa}{.}{\StrGobbleRight{\@onewsa}{1}[\@onewsb]}{\def\@onewsb{\@onewsa}} - \ifthenelse{\equal{\@onefsb}{}}{\def\@onefs{1}}{\def\@onefs{\@onefsb}} - \IfDecimal{\@onefs}{}{% - \ClassError{novel}{Wrong syntax in \string\epigraph\space on page \string\thepage}% - {Optional argument of \string\epigraph\space cannot be parsed for number(s).}% - } - \ifthenelse{\equal{\@onewsb}{}}{\def\@onews{-1}}{\def\@onews{\@onewsb}} - \IfDecimal{\@onews}{}{% - \ClassError{novel}{Wrong syntax in \string\epigraph\space on page \string\thepage}% - {Optional argument of \string\epigraph\space cannot be parsed for number(s).}% - } - % - \ifthenelse{\equal{\@onews}{-1}}{% ragged text, no particular width - \begin{parascale}[\@onefs] - \ifthenelse{\equal{\@onealign}{c}}{\begin{center}\begin{tabular}{l}}{}% - \ifthenelse{\equal{\@onealign}{l}}{\begin{tabular}{l}}{}% - \ifthenelse{\equal{\@onealign}{r}}{\hfill\begin{tabular}{r}}{}% - \ifvmode\else\unskip\fi#2\par - \ifthenelse{\equal{\@onealign}{r}}{\end{tabular}}{}% - \ifthenelse{\equal{\@onealign}{l}}{\end{tabular}}{}% - \ifthenelse{\equal{\@onealign}{c}}{\end{tabular}\end{center}}{}% - \end{parascale}\par - }{% justified text at specified width fraction - % - \newlength\@thistw - \setlength\@thistw{\@onews\textwidth} - \newlength\@exctw - \setlength\@exctw{\textwidth} - \addtolength\@exctw{-\@thistw} - % - \ifthenelse{\equal{\@onealign}{l}}{% - \begin{adjustwidth}{0pt}{\@exctw} - \setlength\parindent{0pt} - \ifvmode\else\unskip\fi#2\par - \end{adjustwidth}\par - }{} - % - \ifthenelse{\equal{\@onealign}{r}}{% - \begin{adjustwidth}{\@exctw}{0pt} - \setlength\parindent{0pt} - \ifvmode\else\unskip\fi#2\par - \end{adjustwidth}\par - }{} - % - \ifthenelse{\equal{\@onealign}{c}}{% - \begin{adjustwidth}{0.5\@exctw}{0.5\@exctw} - \setlength\parindent{0pt} - \ifvmode\else\unskip\fi#2\par - \end{adjustwidth}\par - }{} - % - }% end ifthenelse - % -} % end \Epigraph -%% -\providecommand\epigraph{% to avoid confusion with epigraph package - \ClassError{novel}{No command \string\epigraph. Try \string\Epigraph}% - {The `novel' built-in \string\Epigraph\space command uses capital E.}% -} -%% +%% \Epigraph[align,scale,width]{text} OBSOLETE IN CODE VERSION 1.2 %% \QuickChapter[line style]{text} intended for a story consisting of numerous diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-FOGRA39.clo b/Master/texmf-dist/tex/lualatex/novel/novel-FOGRA39.clo index 524c3462a36..74e73e3d8d0 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-FOGRA39.clo +++ b/Master/texmf-dist/tex/lualatex/novel/novel-FOGRA39.clo @@ -1,4 +1,4 @@ -% Typically used in Europe. Novel file version 1.1 +% Typically used in Europe. Novel file version 1.2 % The values of the arguments are public industry standards. diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-FileData.sty b/Master/texmf-dist/tex/lualatex/novel/novel-FileData.sty index 46459cfa833..cfaccab9c9c 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-FileData.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-FileData.sty @@ -13,7 +13,7 @@ %% %% \ProvidesFile{novel-FileData.sty}% -[2017/04/12 v1.1 LaTeX file (File Data settings)] +[2017/05/04 v1.2 LaTeX file (File Data settings)] %% diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-FontDefaults.sty b/Master/texmf-dist/tex/lualatex/novel/novel-FontDefaults.sty index 0b2d007a04a..ed565164c68 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-FontDefaults.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-FontDefaults.sty @@ -13,7 +13,7 @@ %% %% \ProvidesFile{novel-FontDefaults.sty}% -[2017/04/12 v1.1 LaTeX file (default fonts)] +[2017/05/04 v1.2 LaTeX file (default fonts)] %% @@ -74,7 +74,7 @@ % that the user attempted to set the main font using ordinary TeX commands, % or via fontspec's \setmainfont. But those are ineffective in this class, % because without \SetParentFont the prior command will be over-written. -\ifthenelse{\equal{\rmdefault}{lmr}}{}{% +\ifthenelse{\equal{\rmdefault}{\@noveloldrmdefault}}{}{% \ClassWarning{novel}{^^JBIG BAD WARNING:^^J% You attempted to define the main document font using a command such as^^J% \string\renewcommand\string\rmdefault\space or \string\usepackage{font}^^J% @@ -105,6 +105,8 @@ \fi % Now we are ready to set the main font: \setmainfont[\@parentfontfeatures]{\@parentfontname} +\let\textfont\rmfamily\relax % compatibility +\let\mainfont\rmfamily\relax % compatibility % %% \defaultfontfeatures{} % reset @@ -194,7 +196,8 @@ % The novel-specific display fonts use these defaults: \defaultfontfeatures{% SmallCapsFeatures={Renderer=Basic},% - Ligatures=TeX,% + Ligatures=TeX, + Kerning=On,% }% % %% diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-Footnotes.sty b/Master/texmf-dist/tex/lualatex/novel/novel-Footnotes.sty index e7499c77308..75a8102d15e 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-Footnotes.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-Footnotes.sty @@ -13,7 +13,7 @@ %% %% \ProvidesFile{novel-Footnotes.sty}% -[2017/04/12 v1.1 LaTeX file (commands for footnotes and endnotes)] +[2017/05/04 v1.2 LaTeX file (commands for footnotes and endnotes)] %% diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty b/Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty index 6f6c9e47d15..9bffbcc1179 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty @@ -13,7 +13,7 @@ %% %% \ProvidesFile{novel-HeadFootStyles.sty}% -[2017/04/12 v1.1 LaTeX file (header and footer styles)] +[2017/05/04 v1.2 LaTeX file (header and footer styles)] %% diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-Images.sty b/Master/texmf-dist/tex/lualatex/novel/novel-Images.sty index 7054d3c31b5..0455b1fe3e8 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-Images.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-Images.sty @@ -13,7 +13,7 @@ %% %% \ProvidesFile{novel-Images.sty}% -[2017/04/12 v1.1 LaTeX file (image placement)] +[2017/05/04 v1.2 LaTeX file (image placement)] %% diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-JC200103.clo b/Master/texmf-dist/tex/lualatex/novel/novel-JC200103.clo index 3c3e7597d7f..4117bf9e502 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-JC200103.clo +++ b/Master/texmf-dist/tex/lualatex/novel/novel-JC200103.clo @@ -1,4 +1,4 @@ -% Typically used in Japan. Novel file version 1.1 +% Typically used in Japan. Novel file version 1.2 % The values of the arguments are public industry standards. diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-LayoutSettings.sty b/Master/texmf-dist/tex/lualatex/novel/novel-LayoutSettings.sty index e10c1cada65..35ef9c1a526 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/04/12 v1.1 LaTeX file (layout settings)] +[2017/05/04 v1.2 LaTeX file (layout settings)] %% @@ -101,6 +101,10 @@ % % Retroactively change Trim Size after layout. See documentation: \newcommand\ReworkTrimSize[2]{% + \if@coverart % New in version 1.2 + \ClassError{novel}{Rework command cannot be used with coverart option}% + {Instead of reworking document size, you must re-do the artwork.} + \else \global\@ReworkTrimSettrue \setlength\New@TrimWidth{#1}% \setlength\New@TrimHeight{#2}% @@ -110,6 +114,7 @@ Used \string\ReworkTrimSize{}{} command.^^J% Carefully review your PDF to ensure that line breaks, paragraphs,^^J% and page breaks are where you expect them to be.^^J}% + \fi } % Margins at top and bottom are relative to: % top of header, or top of textblock if no header; @@ -133,6 +138,10 @@ } % Retroactively change margins after layout. See documentation: \newcommand\ReworkMargins[4]{ + \if@coverart % New in version 1.2 + \ClassError{novel}{Rework command cannot be used with coverart option}% + {Instead of reworking document size, you must re-do the artwork.} + \else \global\@ReworkMarginsSettrue \setlength\New@TopMargin{#1} \setlength\New@OutsideMargin{#2} @@ -142,6 +151,7 @@ Used \string\ReworkMargins{}{} command.^^J% Carefully review your PDF to ensure that line breaks, paragraphs,^^J% and page breaks are where you expect them to be.^^J}% + \fi } % \SetMediaSize[]{}{} such as {8.5in}{11in}. % This command is only used when the Trim Size must be placed in a larger @@ -164,7 +174,9 @@ \ClassError{novel}{Bad optional argument for \string\SetMediaSize}% {\string\SetMediaSize\space optional argument must be `center' or `edge'.}% } - \ifthenelse{\equal{#1}{edge}}{\@offcenterTrimtrue}{} + \if@coverart\else % new in version 1.2 + \ifthenelse{\equal{#1}{edge}}{\global\@offcenterTrimtrue}{} + \fi } % \SetLinesPerPage{} limited due to fontsize and Trim Size constraints. % There is no `rework' command, because as long as the number of lines fit, @@ -216,9 +228,16 @@ \SetHeadJump{1.5} % default \gdef\SetFootJump#1{\gdef\@footjump{#1}} \SetFootJump{1.5} % default -% See docs part 7 for available style choices: -\gdef\SetHeadFootStyle#1{\gdef\my@HeadFootStyle{#1}} -\gdef\SetHeadStyle#1{\gdef\my@HeadFootStyle{#1}} % deprecated +% New in version 1.2, coverart. +\if@coverart % cover art has no header or footer + \gdef\SetHeadFootStyle#1{\gdef\my@HeadFootStyle{0}} + \gdef\SetHeadStyle#1{\gdef\my@HeadFootStyle{0}} % deprecated + \SetHeadFootStyle{0} +\else + % See docs part 7 for available style choices: + \gdef\SetHeadFootStyle#1{\gdef\my@HeadFootStyle{#1}} + \gdef\SetHeadStyle#1{\gdef\my@HeadFootStyle{#1}} % deprecated +\fi % See docs part 7 for what these emblems do, if used: \newcommand\SetEmblems[2]{ % verso, recto \gdef\my@VersoEmblem{{\headfont #1}} @@ -310,6 +329,23 @@ %% End reserve space for header/footer and set default ChapterStart +%% New in version 1.2: cover image. +\newcommand\SetCoverImage[1]{ + \def\coverimageok{false} + \IfSubStr{#1}{jpg}{\def\coverimageok{true}}{} + \IfSubStr{#1}{jpeg}{\def\coverimageok{true}}{} + \IfSubStr{#1}{JPG}{\def\coverimageok{true}}{} + \IfSubStr{#1}{JPEG}{\def\coverimageok{true}}{} + \ifthenelse{\equal{\coverimageok}{true}}{% + \gdef\novelcoverimage{#1} + }{% + \ClassError{novel}{Cover image has wrong file extension}% + {Cover image must be jpg, JPG, jpeg, or JPEG.} + }% +} +%% + + %% \newtoggle{@usesymbolmark} % true when footnote markers are symbolic \newtoggle{@realmarker} % true when OT features sups, sinf, subs requested @@ -459,6 +495,7 @@ %% Prior to v. 1.1, parentfont was known as masterfont. Backwards compatible. % \providecommand\rmdefault{lmr} % should be lmr anyway, at this point. +\let\@noveloldrmdefault\rmdefault % stored for later comparison. % The `no-math' option prevents fontspec from tracking certain font changes. % This is probably necessary, since novel does some of its own font tracking: \RequirePackage[no-math]{fontspec} % For LuaLaTeX. NOT package `fontenc'. @@ -666,6 +703,7 @@ but you do not need all of them.^^J}% \fi \WithinFrontmattertrue\WithinMainmatterfalse\WithinBackmatterfalse + \clearpage \pagenumbering{roman} \setcounter{page}{1} \setcounter{frontmatterpages}{1} diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty b/Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty index 309f2249990..b9a5f85fdcb 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-TextMacros.sty @@ -13,7 +13,7 @@ %% %% \ProvidesFile{novel-TextMacros.sty}% -[2017/04/12 v1.1 LaTeX file (text macros usable within document body)] +[2017/05/04 v1.2 LaTeX file (text macros usable within document body)] %% diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-glyphtounicode.tex b/Master/texmf-dist/tex/lualatex/novel/novel-glyphtounicode.tex index ff26b82150a..73df4a30a39 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-glyphtounicode.tex +++ b/Master/texmf-dist/tex/lualatex/novel/novel-glyphtounicode.tex @@ -14,7 +14,7 @@ %% %% \ProvidesFile{novel-gyphtounicode.tex}% -[2017/04/12 v1.1 LaTeX file (additional glyph to unicode)] +[2017/05/04 v1.2 LaTeX file (additional glyph to unicode)] %% diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-microtype.cfg b/Master/texmf-dist/tex/lualatex/novel/novel-microtype.cfg index 3cda2d724ea..a72c102acc6 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-microtype.cfg +++ b/Master/texmf-dist/tex/lualatex/novel/novel-microtype.cfg @@ -19,7 +19,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesFile{novel-microtype.cfg} - [2017/04/212 v1.1 LaTeX file (microtype configuration file for novel class)] + [2017/05/04 v1.2 LaTeX file (microtype configuration file for novel class)] %%% ----------------------------------------------------------------------- %%% FONT SETS diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty b/Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty index fb965571488..bf68f00c61e 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty @@ -24,7 +24,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesFile{novel-pdfx.sty} - [2017/04/12 v1.1 LaTeX file (PDF/X support for novel class)] + [2017/05/04 v1.2 LaTeX file (PDF/X support for novel class)] % This package supports, and is part of, class `novel'. % No support for anything but LuaLaTeX. @@ -133,8 +133,15 @@ /TrimBox[\my@TWorigin\space\my@THorigin\space\my@TWcorner\space\my@THcorner]% } % +% New in version 1.2: BleedBox, only for cover art. Same size as MediaBox. +\newcommand\novel@BleedBox{% + \if@coverart% + /BleedBox[0\space0\space\my@MWnum\space\my@MHnum]% + \else\fi% +} +% \begingroup\edef\next{% -\endgroup\pdfpageattr{\novel@CropBox^^J\novel@TrimBox}}\next +\endgroup\pdfpageattr{\novel@CropBox^^J\novel@BleedBox^^J\novel@TrimBox}}\next % %% End calculate and specify TrimBox. diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-xmppacket.sty b/Master/texmf-dist/tex/lualatex/novel/novel-xmppacket.sty index ebe462d2668..e2cab92ccd8 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-xmppacket.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-xmppacket.sty @@ -22,7 +22,7 @@ %% %% \ProvidesFile{novel-xmppacket.sty}% -[2017/04/12 v1.1 LaTeX file (novel XMP packet template)] +[2017/05/04 v1.2 LaTeX file (novel XMP packet template)] %% 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 +%% %% |