mirror of
https://git.fifo-f.eu/tex-projects/books/The-Invisible-Man-LaTeX.git
synced 2025-04-11 21:08:18 +02:00
26 lines
663 B
TeX
26 lines
663 B
TeX
%\usepackage{chickenize}
|
|
%\colorstretch
|
|
|
|
% Show the last row of paragraphs in red when \looseness=-1 would work
|
|
\newcommand{\ShowLoosenessHelp}{
|
|
\usepackage{luatexbase}
|
|
\directlua{dofile("widow-assist.lua")}
|
|
}
|
|
|
|
% Show grid lines in red, for grid typesetting checks
|
|
\newcommand{\ShowGrid}{
|
|
\usepackage{atbegshi,picture,xcolor}
|
|
\AtBeginShipout{%
|
|
\AtBeginShipoutUpperLeft{%
|
|
\color{red}%
|
|
\put(\dimexpr 1in+\oddsidemargin,
|
|
-\dimexpr 1in+\topmargin+\headheight+\headsep+\topskip)%
|
|
{%
|
|
\vtop to\dimexpr\vsize+\baselineskip{
|
|
\hrule
|
|
\leaders\vbox to\baselineskip{\hrule width\hsize\vfill}\vfill
|
|
}%
|
|
}%
|
|
}%
|
|
}
|
|
}
|