diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty | 63 |
1 files changed, 15 insertions, 48 deletions
diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty b/Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty index 9a4b197f2aa..4f5531b7b49 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/10/04 v1.42 LaTeX file (chapter and scene macros)] +[2017/10/19 v1.43 LaTeX file (chapter and scene macros)] %% @@ -22,7 +22,7 @@ \gdef\maketitle{% \ClassError{novel}{\string\maketitle does not exist in this class}% {Sorry, but there is no \string\maketitle command in `novel' class.^^J% - You must make your own title pages!^^J}% + You must make your own title pages! See documentation.^^J}% } % @@ -37,7 +37,7 @@ % \scenestars centers three widely-spaced asterisks. % Default behavior is \noindent for following paragraph. % Use \SetScenebreakIndent{true or false} in Preamble to change this globally. -% Either way, the local behavior can be changed using \indent or \noindent. +% Either way, local behavior can be changed using \forceindent or \backindent. \newcommand\scenebreak{\null} % \newcommand\sceneline{% @@ -69,10 +69,18 @@ %% +%% Chapter number count. New in version 1.44. See documentation. +%% Do NOT use for "chapter-like" sections, only numbered chapters. +\newcounter{novelcn} +\setcounter{novelcn}{1} +%% + %% ChapterStart environment. % The most useful way to start a new chapter. Occupies a fixed amount of % vertical space. Also self-adjust when used with dropfolio. Automatically % calls \thispagestyle if set for all chapter displays. +% This environment is not restricted to chapters. It is also used for chapter-like +% sections in front matter or main matter, as long as they are styled like a chapter. \newif \if@addCTline \@addCTlinetrue \newcounter{@linequarter} \newif \if@csalignok \@csalignokfalse @@ -129,48 +137,6 @@ \ExplSyntaxOff % end ChapterStart environment - -%%%%% -\newenvironment{OldChapterStart}[1][\@setchapterstartheight] % default 10 -{% - \setlength\@oldparindent{\parindent}% - \global\@oldparindent=\@oldparindent% - \setlength\parindent{0pt}% - \global\parindent=\parindent% - \FPsub{\@fixlines}{#1}{2}% - \FPsub{\@fixlines}{\@fixlines}{0.001}% fudge to avoid rounding problems - \if@thispagestyleset\else\thispagestyle{\@setchapterstart}\fi% - \ResetFootnoteSymbol% resets symbolic markers, but not numerical markers - \null% - \setcounter{@linequarter}{0}% - \begin{textblock*}{\textwidth}[0,0](0pt,0pt)% -}{% close the environment: - \ifthenelse{% - \equal{\value{@linequarter}}{1} \OR \equal{\value{@linequarter}}{5}% - \OR \equal{\value{@linequarter}}{9} \OR \equal{\value{@linequarter}}{13}% - }{\vspace{0.75\nbs}}{}% - \ifthenelse{% - \equal{\value{@linequarter}}{2} \OR \equal{\value{@linequarter}}{6}% - \OR \equal{\value{@linequarter}}{10} \OR \equal{\value{@linequarter}}{14}% - }{\vspace{0.5\nbs}}{}% - \ifthenelse{% - \equal{\value{@linequarter}}{3} \OR \equal{\value{@linequarter}}{7}% - \OR \equal{\value{@linequarter}}{11} \OR \equal{\value{@linequarter}}{15}% - }{\vspace{0.25\nbs}}{}% - \end{textblock*}% - \vspace{\@fixlines\nbs}% - \if@addCTline\null\fi% - \setlength\parindent{\@oldparindent}% - \global\parindent=\parindent% - \nov@AfterGroup\NoIndentAfterThis% etextools and noindentafter -} -%%%%% - - - - - - %% \LetLtxMacro\ChapterDisplay\ChapterStart\relax % deprecated \LetLtxMacro\endChapterDisplay\endChapterStart\relax % deprecated @@ -211,21 +177,22 @@ \newcommand\ChapterDeco[2][c1]{% optional alignment and scale, either order \StrDel{#1}{ }[\temp@cds]% may use space separator \StrDel{\temp@cds}{,}[\temp@cd]% may use comma separator - \IfSubStr{#1}{l}{% + \IfSubStr{#1}{l}{% left align \let\@csalign\relax\@csalignoktrue% \StrDel{\temp@cd}{l}[\temp@cd]% }{}% - \IfSubStr{#1}{c}{% + \IfSubStr{#1}{c}{% centered \let\@csalign\centering\relax\@csalignoktrue% \StrDel{\temp@cd}{c}[\temp@cd]% }{}% - \IfSubStr{#1}{r}{% + \IfSubStr{#1}{r}{% right align \let\@csalign\hfill\relax\@csalignoktrue% \StrDel{\temp@cd}{r}[\temp@cd]% }{}% \if@csalignok\else% \let\@csalign\centering\relax\@csalignoktrue% \fi% + % Now for scaling, with adjusted vertical position: \IfEndWith{\temp@cd}{.}{\StrSubstitute{\temp@cd}{.}{.0}[\temp@cd]}{}% \IfBeginWith{\temp@cd}{.}{\StrSubstitute{\temp@cd}{.}{1.}[\temp@cd]}{}% \IfDecimal{\temp@cd}{\def\@thisScale{\temp@cd}}{\def\@thisScale{1}}% |