diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty | 53 |
1 files changed, 39 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty b/Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty index e43cb14445e..cd2cdc4ff35 100644 --- a/Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty +++ b/Master/texmf-dist/tex/lualatex/novel/novel-CalculateLayout.sty @@ -12,15 +12,17 @@ %% %% \ProvidesFile{novel-CalculateLayout.sty}% -[2017/07/26 v1.32 LaTeX file (layout calculations)] +[2017/07/31 v1.34 LaTeX file (layout calculations)] %% - %% %% This file is loaded \AtEndPreamble, which precedes \AtBeginDocument. %% -\newlength\normalFontSize % becomes 1em in normal text, after \AtBeginDocument +%% Novel Tracking messages in this file begin with 9. +\NDB{9.0 in novel-CalculateLayout.sty.} + +\newlength\normalFontSize % becomes 1em in normal text. \newlength\normalBaselineSkip % also abbreviated as \nbs @@ -35,6 +37,7 @@ \SetMediaSize{5.5in}{8.5in} \fi \fi +\NDB{9.1 in novel-CalculateLayout.sty.} % Default margins are based on Trim Height, if user does not set margins. % Works for standard w/h aspect ratios, but not for exotically narrow. \if@MarginsSet\else @@ -69,6 +72,7 @@ } % end internal dimtest } % end dimtest for margins. \fi % end default margins +\NDB{9.2 in novel-CalculateLayout.sty.} % % Choose default font size based on Trim Width, unless font size set by user: \if@FontSizeSet\else @@ -82,6 +86,7 @@ } % end internal dimtest } % end dimtest for font size. \fi +\NDB{9.3 in novel-CalculateLayout.sty.} % % Default lines/page based on Trim Height, font size, unless LPP set by user: \if@LinesPerPageSet\else @@ -97,6 +102,7 @@ \FPclip{\@tempLPP}{\@tempLPP} % remove excess trailing 0. \gdef\my@LinesPerPage{\@tempLPP} \fi +\NDB{9.4 in novel-CalculateLayout.sty.} % % Correct bottom margin for descenders, assumed to be 0.3em: \addtolength\Old@BottomMargin{0.3\Old@FontSize} @@ -114,6 +120,7 @@ % %% end set default sizes and initial corrections +\NDB{9.5 in novel-CalculateLayout.sty.} %% OLD, NEW, CURRENT, LIVE, TEXT MACRO DEFINITIONS @@ -173,7 +180,7 @@ % %% End old, new... macro definitions. - +\NDB{9.6 in novel-CalculateLayout.sty.} %% PRELIMINARY CALCULATION OF BASELINESKIP %% ----------------------------------------------------------------------------- @@ -192,6 +199,7 @@ \if@gotFooter % allow for footer jump \FPadd{\adj@LinesPerPage}{\adj@LinesPerPage}{\@footjump} \fi +\NDB{9.7 in novel-CalculateLayout.sty.} % % Baseline Skip is Live Height divided by adjusted number of lines. % Thus initially, Text (with header/footer) occupies full Live Height. @@ -213,6 +221,7 @@ % %% End preliminary calculation of baselineskip. +\NDB{9.8 in novel-CalculateLayout.sty.} %% FIT CurrentTextWidth TO NewLiveWidth @@ -226,7 +235,7 @@ % %% end fit CurrentTextWidth to NewLiveWidth - +\NDB{9.9 in novel-CalculateLayout.sty.} %% ADJUST CurrentBaselineSkip TO FIT NewLiveHeight %% ----------------------------------------------------------------------------- @@ -238,6 +247,7 @@ \setlength\Current@BaselineSkip{\Current@BaselineSkipNum pt} \FPmul{\Current@TextHeightNum}{\Current@BaselineSkipNum}{\adj@LinesPerPage} \fi +\NDB{9.10 in novel-CalculateLayout.sty.} % Check if the revised skip is too small: \FPdiv{\@ratioBLtoFS}{\Current@BaselineSkipNum}{\Current@FontSizeNum} \FPiflt{\@ratioBLtoFS}{1.2} % Too small. Re-tweak font, text width, skip. @@ -256,6 +266,7 @@ % %% end adjust CurrentBaselineSkip to fit NewLiveHeight. +\NDB{9.11 in novel-CalculateLayout.sty.} %% DISTRIBUTE SIDE EXCESS @@ -269,6 +280,7 @@ % %% end distribute side excess. +\NDB{9.12 in novel-CalculateLayout.sty.} %% SET TEXTWIDTH, FONT SIZE, BASELINESKIP @@ -278,18 +290,18 @@ % \setlength\normalFontSize{\Current@FontSizeNum pt} \setlength\normalBaselineSkip{\Current@BaselineSkipNum pt} - +% \@setfontsize\normalsize\normalFontSize{\normalBaselineSkip}% - - \normalsize % Defined in `novel.cls'. Uses numbers, not lengths. % +\NDB{9.13 in novel-CalculateLayout.sty.} \newlength\nfs % abbreviation for normal fontsize \setlength\nfs{\normalFontSize} \gdef\nfsnum{\strip@pt\nfs} \newlength\nbs % abbreviation for normal baselineskip \setlength\nbs{\normalBaselineSkip} \gdef\nbsnum{\strip@pt\nbs} % just the numerical part +\NDB{9.14 in novel-CalculateLayout.sty.} % % This document class limits range of normal point size: \FPiflt{\Current@FontSizeNum}{8}% @@ -315,6 +327,7 @@ \typeout{^^JClass `novel' Alert: Line spacing is allowable, but wide.^^J% Consider more lines per page, or add header or footer.^^J}% \fi +\NDB{9.15 in novel-CalculateLayout.sty.} % \FPdiv{\Ratio@BaselineSkip}{\Current@BaselineSkipNum}{\Old@BaselineSkipNum} \FPround{\Ratio@BaselineSkip}{\Ratio@BaselineSkip}{3} @@ -323,6 +336,7 @@ \FPdiv{\Ratio@EM}{\Current@FontSizeNum}{\Old@FontSizeNum} \FPround{\Ratio@EM}{\Ratio@EM}{3} \FPclip{\Ratio@EM}{\Ratio@EM} +\NDB{9.16 in novel-CalculateLayout.sty.} % Alert if images scaled by \Rework: \ifthenelse{\equal{\Ratio@EM}{1} \AND \equal{\Ratio@BaselineSkip}{1}}{}{% \typeout{^^JClass `novel' Alert: Due to \string\Rework\space there may be^^J% @@ -348,7 +362,7 @@ % %% end set textwidth, font size, baselineskip - +\NDB{9.17 in novel-CalculateLayout.sty.} @@ -364,6 +378,7 @@ \setlength\headheight{0pt} \setlength\headsep{0pt} \fi +\NDB{9.18 in novel-CalculateLayout.sty.} % % Prior to this, the following were set by user or calculated: % \textwidth \headsep \headheight @@ -381,6 +396,8 @@ \fi %% +\NDB{9.19 in novel-CalculateLayout.sty.} + % % Standard TeX \hoffset and \voffset is not relative to the MediaBox, but is @@ -422,6 +439,8 @@ \fi %% +\NDB{9.20 in novel-CalculateLayout.sty.} + % % \evensidemargin is at the left (outside edge) of verso pages. % Calculation as above, but using \New@OutsideMargin @@ -438,6 +457,8 @@ \fi %% +\NDB{9.21 in novel-CalculateLayout.sty.} + % @@ -463,7 +484,7 @@ \fi %% - +\NDB{9.22 in novel-CalculateLayout.sty.} % Vertical position of the textblock is measured to the "top" of the first line % of text. But that could be an X height, or an accented character height, @@ -498,7 +519,7 @@ \fi %% - +\NDB{9.23 in novel-CalculateLayout.sty.} %% End layout calculations. @@ -528,7 +549,7 @@ \fi % End when Media Size exceeds Trim Size. - +\NDB{9.24 in novel-CalculateLayout.sty.} % When Media Size = Trim Size, cropmarks are disabled. % Too late for \@cropviewfalse; OK since CropBox already calculated properly. @@ -548,6 +569,7 @@ \newlength\adj@NewLiveHeight \setlength\adj@NewLiveHeight{\New@LiveHeight+0.3\normalFontSize} % +\NDB{9.25 in novel-CalculateLayout.sty.} \gdef\@getPageXY{ \check@IsVerso % defined in novel-HeadFootStyles.sty \if@isVerso @@ -569,7 +591,7 @@ \setlength\Live@By{\Trim@By+\New@BottomMargin-0.3\normalFontSize} } % - +\NDB{9.26 in novel-CalculateLayout.sty.} %% With class option `shademargins' (only effective in draft mode): @@ -603,6 +625,7 @@ \fi% \fi % end \if@shademargins % +\NDB{9.27 in novel-CalculateLayout.sty.} % Labels each page with DRAFT at upper left, if in draft mode: \if@useDraftMode @@ -611,7 +634,7 @@ }% \fi % - +\NDB{9.28 in novel-CalculateLayout.sty.} % Cropmarks (trim marks, really) are not important in this document class. % That's because the targeted printing services generally do not want them. @@ -671,6 +694,8 @@ % %% end cropmarks +\NDB{9.29 in novel-CalculateLayout.sty.} + %% %% End of file `novel-CalculateLayout.sty'. |