2
0
Fork 0
mirror of https://git.fifo-f.eu/tex-projects/books/The-Invisible-Man-LaTeX.git synced 2025-04-11 21:08:18 +02:00
The-Invisible-Man-LaTeX/hand-tuning.tex
2022-12-12 17:44:44 +01:00

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
}%
}%
}%
}
}