r3tex

custom LuaTeX format
git clone git://git.rr3.xyz/r3tex
Log | Files | Refs | README | LICENSE

commit 05f09546037bc5746b1524414cd5597c122a7650
parent 68b823326e4fc3d32c9f1083b1227484f2175cd6
Author: robert <robertrussell.72001@gmail.com>
Date:   Wed,  8 Sep 2021 11:54:35 -0700

Add more debug macros

Diffstat:
Mdebug.tex | 20+++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/debug.tex b/debug.tex @@ -15,6 +15,24 @@ } \def\tracingall{\tracingonline=1 \loggingall} -% TODO: showhyphens, rule testers +% TODO: is \tenrm defined? +\def\showhyphens#1{% + \setbox0=\vbox{% + \parfillskip=0pt \hsize=\maxdimen \pretolerance=-1 \tolerance=-1 + \hbadness=0 \showboxdepth=0 \tenrm \ #1% + }% +} + +\def\supershowlists{{% + \showboxdepth=\maxcount \showboxbreadth=\maxcount \showlists +}} + +% TODO: write more general XXXlap macros (e.g., \ulap, \dlap) and use them here +\newdimen\testthickness \testthickness=.2pt +\def\testcolor{\Cred} +\def\vrtest{\rlap{\testcolor\smash{\vrule width\testthickness height\maxdimen depth\maxdimen}}} +\def\vltest{\llap{\testcolor\smash{\vrule width\testthickness height\maxdimen depth\maxdimen}}} +\def\hutest{\clap{\vbox to0pt{\testcolor\vss\hrule width\maxdimen height\testthickness}}} +\def\hbtest{\clap{\vbox to0pt{\testcolor\hrule width\maxdimen height\testthickness\vss}}} \endinput