summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-28 20:38:16 +0000
committerKarl Berry <karl@freefriends.org>2017-03-28 20:38:16 +0000
commit190b2375d2855a8380b8b941af2903967858bc5f (patch)
tree8622a91c7987a0c82922132f5544193178f84921 /Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty
parente5dac69408e1ddde72d24d8f0c96cdd6240cb672 (diff)
novel (28mar17)
git-svn-id: svn://tug.org/texlive/trunk@43632 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty20
1 files changed, 14 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty b/Master/texmf-dist/tex/lualatex/novel/novel-ChapterScene.sty
index 5b1be49ca42..01e7491bf84 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/03/21 v1.0.9 LaTeX file (chapter and scene macros)]
+[2017/03/27 v1.0.10 LaTeX file (chapter and scene macros)]
%%
@@ -80,10 +80,15 @@
\newif \if@addCTline \@addCTlinetrue
\newcounter{@linequarter}
\newif \if@csalignok \@csalignokfalse
+\newlength\@oldparindent
%
% The argument is the number of normal baselineskips high:
\newenvironment{ChapterStart}[1][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%
@@ -107,6 +112,8 @@
\end{textblock*}%
\vspace{\@fixlines\nbs}%
\if@addCTline\null\fi%
+ \setlength\parindent{\@oldparindent}%
+ \global\parindent=\parindent%
\nov@AfterGroup\NoIndentAfterThis% etextools and noindentafter
}
%%
@@ -115,17 +122,18 @@
%
\newcommand\ChapterTitle[2][c]{% optional alignment l, c, r
- \vspace{0.5\nbs}\addtocounter{@linequarter}{2}
+ \ignorespaces%
+ \vspace{0.5\nbs}\addtocounter{@linequarter}{2}%
\@csalignokfalse%
- \ifthenelse{\equal{#1}{l}}{\let\@csalign\relax\@csalignoktrue}{}
- \ifthenelse{\equal{#1}{c}}{\let\@csalign\centering\relax\@csalignoktrue}{}
- \ifthenelse{\equal{#1}{r}}{\let\@csalign\hfill\relax\@csalignoktrue}{}
+ \ifthenelse{\equal{#1}{l}}{\let\@csalign\relax\@csalignoktrue}{}%
+ \ifthenelse{\equal{#1}{c}}{\let\@csalign\centering\relax\@csalignoktrue}{}%
+ \ifthenelse{\equal{#1}{r}}{\let\@csalign\hfill\relax\@csalignoktrue}{}%
\if@csalignok\else%
\ClassError{novel}{Chapter Title, Deco, Subtitle align must be l, c, or r}%
{On page \thepage you wrote a Chapter command with alignment^^J%
other than the allowed l, c, or r.}%
\fi%
- {\@csalign\stake\smash{{\chapterfont #2}}\par}%
+ {\@csalign\stake\smash{{\chapterfont{}#2}}\par}%
}
%
\newcommand\ChapterSubtitle[2][c]{% optional alignment l, c, r