From: keni Date: Sat, 23 Apr 2011 20:27:05 +0000 (+0000) Subject: number_pad formatting fix for Guidebook.tex X-Git-Tag: MOVE2GIT~211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72b40100ee014f4c155b8aae9e8eb2cf6af49de6;p=nethack number_pad formatting fix for Guidebook.tex Fix the alignment issue Pat noted (this is different than the suggestion I mailed out - installing latex so I could test it proved it was wrong). --- diff --git a/doc/Guidebook.tex b/doc/Guidebook.tex index 888858161..4019d4b8e 100644 --- a/doc/Guidebook.tex +++ b/doc/Guidebook.tex @@ -33,7 +33,7 @@ \begin{document} % % input file: guidebook.mn -% $Revision: 1.112 $ $Date: 2011/03/09 02:30:24 $ +% $Revision: 1.113 $ $Date: 2011/04/19 02:02:04 $ % %.ds h0 " %.ds h1 %.ds h2 \% @@ -2566,12 +2566,15 @@ Valid settings are: %.sd %.si -{\tt ~0} --- move by letters; `{\tt yuhjklbn}'\\ -{\tt ~1} --- move by numbers; digit `{\tt 5}' acts as `{\tt G}' movement prefix\\ -{\tt ~2} --- like {\tt 1} but `{\tt 5}' works as `{\tt g}' prefix instead of as `{\tt G}'\\ -{\tt ~3} --- by numbers using phone key layout; {\tt 123} above, {\tt 789} below\\ -{\tt ~4} --- combines {\tt 3} with {\tt 2}; phone layout plus MSDOS compatibility\\ -{\tt -1} --- by letters but use `{\tt z}' to go northwest, `{\tt y}' to zap wands +\newlength{\mwidth} +\settowidth{\mwidth}{\tt -0} +\newcommand{\numbox}[1]{\makebox[\mwidth][r]{{\tt #1}}} +\numbox{0} --- move by letters; `{\tt yuhjklbn}'\\ +\numbox{1} --- move by numbers; digit `{\tt 5}' acts as `{\tt G}' movement prefix\\ +\numbox{2} --- like {\tt 1} but `{\tt 5}' works as `{\tt g}' prefix instead of as `{\tt G}'\\ +\numbox{3} --- by numbers using phone key layout; {\tt 123} above, {\tt 789} below\\ +\numbox{4} --- combines {\tt 3} with {\tt 2}; phone layout plus MSDOS compatibility\\ +\numbox{-1} --- by letters but use `{\tt z}' to go northwest, `{\tt y}' to zap wands %.ei %.ed