summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty42
1 files changed, 34 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty b/Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty
index 19492dc93fc..851efc97ce6 100644
--- a/Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty
+++ b/Master/texmf-dist/tex/lualatex/novel/novel-HeadFootStyles.sty
@@ -13,9 +13,12 @@
%%
%%
\ProvidesFile{novel-HeadFootStyles.sty}%
-[2017/07/26 v1.32 LaTeX file (header and footer styles)]
+[2017/07/31 v1.34 LaTeX file (header and footer styles)]
%%
+%% Novel Tracking messages in this file begin with 5.
+\NDB{5.0 in novel-HeadFootStyles.sty.}
+
%% File `novel-LayoutSettings.sty' reserved space for header/footer,
%% but did not place anything there. In this file, `fancyhdr' syntax
@@ -39,6 +42,7 @@
%
\newtoggle{@inheadfoot} % true in header or footer
%%
+\NDB{5.1 in novel-HeadFootStyles.sty.}
%% INITIALIZE FANCYHDR
@@ -50,14 +54,15 @@
\renewcommand\footrulewidth{0pt}
\fancyhead[LO,RE,LE,RO,CE,CO]{}
\fancyfoot[LO,RE,LE,RO,CE,CO]{}
-% \SetLooseHead looseness factor (microtype) 0=tight, 50=default
+% \SetLooseHead looseness factor (fontspec LetterSpace) 0=tight, 50=default
\gdef\SetLooseHead#1{
\gdef\@@loosehead{#1}
\FPdiv{\@loosehead}{\@@loosehead}{10} % change in method of using fontspec with microtype
\FPmin{\@looseheadnum}{\@loosehead}{50} % Don't want numbers too loose.
}
+\NDB{5.2 in novel-HeadFootStyles.sty.}
\SetLooseHead{50}
-
+\NDB{5.3 in novel-HeadFootStyles.sty.}
% Create flags to know if \fancyhead and \fancyfoot have been defined by user,
% somewhere in the Preamble. If not, then pre-defined styles based on trimsize
% will be applied \AtEndPreamble.
@@ -67,6 +72,7 @@
\@tempFancyhead[#1]{\toggletrue{@inheadfoot}{\normalsize#2}}%
}
%
+\NDB{5.4 in novel-HeadFootStyles.sty.}
\LetLtxMacro{\@tempFancyfoot}{\fancyfoot}
\renewcommand\fancyfoot[2][]{%
\@styledFootertrue%
@@ -78,12 +84,15 @@
}%
}
%
+\NDB{5.5 in novel-HeadFootStyles.sty.}
\LetLtxMacro{\@myTempTPS}{\thispagestyle}
% Re-define \thispagestyle based on layout. When style requests only the page
% number, decide what to do based on this command and whether footer is used:
\newif \if@thispagestyleset \@thispagestylesetfalse
-\AtBeginShipout{\global\@thispagestylesetfalse}
%
+%% See AtBeginShipout routine in novel.cls.
+%
+\NDB{5.6 in novel-HeadFootStyles.sty.}
\gdef\thispagestyle#1{%
\global\@thispagestylesettrue%
\gdef\@pagestyleOK{false}%
@@ -101,6 +110,7 @@
\else \@myTempTPS{empty}%
\fi%
}{}%
+ \NDB{5.6.1 in novel-HeadFootStyles.sty.}%
\ifthenelse{\equal{#1}{forcenumber}}{%
\gdef\@pagestyleOK{true}%
\if@gotFooter \@myTempTPS{fancyplain}%
@@ -108,6 +118,7 @@
\fi%
}{}%
%
+ \NDB{5.6.2 in novel-HeadFootStyles.sty.}%
\ifthenelse{\equal{#1}{dropfolioinside}% after \clearpage
\OR \equal{#1}{dropfolio} \OR \equal{#1}{dropfoliolater}}{% compatibility
\gdef\@pagestyleOK{true}%
@@ -119,6 +130,7 @@
\@dropfolioinside
\fi%
}{}%
+ \NDB{5.6.3 in novel-HeadFootStyles.sty.}%
% With `dropfoliobeneath` only a footer is used, if present. If no footer,
% then the styled page number is centered at one baselineskip beneath the
% ordinary bottom of the textblock. Thus, the number intrudes into the
@@ -134,30 +146,34 @@
\@dropfoliobeneath
\fi%
}{}%
+ \NDB{5.6.4 in novel-HeadFootStyles.sty.}%
%%
\ifthenelse{\equal{\@pagestyleOK}{true}}{}{%
\ClassWarning{novel}{^^JPage \pagenumberstyle\space has %
\string\thispagestyle{}^^J%
but its argument is not defined. Default substituted. Better fix that.^^J}%
}%
+ \NDB{5.6.5 in novel-HeadFootStyles.sty.}%
}
%
%% End initialize fancyhdr.
-%% ACTIVATE HEADER/FOOTER STYLES AT BEGIN DOCUMENT
+%% See AtBeginDocument routine in novel.cls:
%% -----------------------------------------------------------------------------
-%
-\gdef\@activateHeadFootStyles{ % called \AtBeginDocument by novel.cls
+\NDB{5.7 in novel-HeadFootStyles.sty.}
+\gdef\@activateHeadFootStyles{ % called AtBeginDocument by novel.cls
% Pre-configured header/footer styles, unless user over-rode them:
% \versoheadtext is initialized to \theauthor
% \rectoheadtext is initialized to \thetitle
+ \NDB{5.7.1 in novel-HeadFootStyles.sty.}%
\@ifundefined{versoheadtext}{
\NewVersoHeadText{\smcp{\StrSubstitute{\theauthor}{\space}{ \,}}}
}{}
\@ifundefined{rectoheadtext}{
\NewRectoHeadText{\smcp{\StrSubstitute{\thetitle}{\space}{ \,}}}
}{}
+ \NDB{5.7.2 in novel-HeadFootStyles.sty.}%
%
% ----------------------------------------------------------------------------
% IF YOU ARE WRITING YOUR OWN HEADER/FOOTER STYLE:
@@ -235,7 +251,7 @@
\fi
}{}
%
-
+ \NDB{5.7.1 in novel-HeadFootStyles.sty.}%
%
% END PRE-DEFINED STYLES.
% ----------------------------------------------------------------------------
@@ -268,6 +284,7 @@
%
%% end initialize fancyhdr
+\NDB{5.8 in novel-HeadFootStyles.sty.}
%% DROPFOLIO
%% -----------------------------------------------------------------------------
@@ -287,12 +304,14 @@
\setlength\temp@pgnumraise{%
\New@BottomMargin+0.5\New@MediaHeight-0.5\New@TrimHeight}%
\fi%
+ \NDB{5.8.1 in novel-HeadFootStyles.sty.}%
\check@IsVerso%
\if@isVerso%
\AddToShipoutPicture*{\@getPageXY\AtPageLowerLeft{%
\hspace{\dimexpr\Trim@Lx+\New@OutsideMargin+0.5\textwidth-0.5\temp@pgnumwidth}\raisebox{%
\temp@pgnumraise}{{\headfont{\addfontfeature{LetterSpace=\@looseheadnum}\pagenumberstyle}}}}}%
\else%
+ \NDB{5.8.2 in novel-HeadFootStyles.sty.}%
\AddToShipoutPicture*{\@getPageXY\AtPageLowerLeft{%
\hspace{\dimexpr\Trim@Lx+\New@InsideMargin-0.5\temp@pgnumwidth}%
\charscale[1,0.5\textwidth,\temp@pgnumraise]{%
@@ -302,6 +321,7 @@
%
\let\dropfolionow\relax % compatibility with earlier version.
%
+\NDB{5.9 in novel-HeadFootStyles.sty.}
% \@dropfoliobeneath does not change the textblock height. The styled page
% number is centered where an extra line would be, within the bottom margin.
@@ -315,12 +335,14 @@
\setlength\temp@pgnumraise{%
\New@BottomMargin-\nbs+0.5\New@MediaHeight-0.5\New@TrimHeight}%
\fi%
+ \NDB{5.9.1 in novel-HeadFootStyles.sty.}%
\check@IsVerso%
\if@isVerso%
\AddToShipoutPicture*{\@getPageXY\AtPageLowerLeft{%
\hspace{\dimexpr\Trim@Lx+\New@OutsideMargin-0.5\temp@pgnumwidth}\raisebox{%
\temp@pgnumraise}{{\headfont{\addfontfeature{LetterSpace=\@looseheadnum}\pagenumberstyle}}}}}%
\else%
+ \NDB{5.9.2 in novel-HeadFootStyles.sty.}%
\AddToShipoutPicture*{\@getPageXY\AtPageLowerLeft{%
\hspace{\dimexpr\Trim@Lx+\New@InsideMargin-0.5\temp@pgnumwidth}%
\charscale[1,0.5\textwidth,\temp@pgnumraise]{%
@@ -330,6 +352,8 @@
%%
%
+\NDB{5.10 in novel-HeadFootStyles.sty.}
+
% Content of header text (if present) can be changed at any time within
% the body, using the following commands. If not used, then
% Verso is initialized to \theauthor and Recto is initialized to \thetitle
@@ -347,6 +371,7 @@
\let\SetVersoHeadText\NewVersoHeadText\relax % for convenience
\let\RenewVersoHeadText\NewVersoHeadText\relax % for convenience
%
+\NDB{5.11 in novel-HeadFootStyles.sty.}
\gdef\NewRectoHeadText#1{
\FPdiv{\@myk}{\@loosehead}{500}
\setlength\@mykem{\@myk em}
@@ -354,6 +379,7 @@
}
\let\SetRectoHeadText\NewRectoHeadText\relax % for convenience
\let\RenewRectoHeadText\NewRectoHeadText\relax % for convenience
+\NDB{5.12 in novel-HeadFootStyles.sty.}
%
%%