diff options
author | Karl Berry <karl@freefriends.org> | 2007-01-19 01:29:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-01-19 01:29:20 +0000 |
commit | d9e64dec352117001c8b9f4db05c49063cc516dd (patch) | |
tree | 0a351ca975236aef5b92d28fe808d6e1aa5ae439 /Master/texmf-dist/doc/latex/geometry/test/gcheck.sty | |
parent | ff8a033161beeb55064a5f932710fa481b979a73 (diff) |
geometry update for test files, plus leave geometry.cfg in doc
git-svn-id: svn://tug.org/texlive/trunk@3584 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/geometry/test/gcheck.sty')
-rw-r--r-- | Master/texmf-dist/doc/latex/geometry/test/gcheck.sty | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/geometry/test/gcheck.sty b/Master/texmf-dist/doc/latex/geometry/test/gcheck.sty new file mode 100644 index 00000000000..787e5e5b7c5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/geometry/test/gcheck.sty @@ -0,0 +1,49 @@ +\usepackage{calc} + +\newif\ifcheckpass +\checkpasstrue + +\def\checkresults{% + \ifcheckpass + \typeout{---^^JTest (\jobname): success.^^J---} + \else + \typeout{---^^JTest (\jobname): FAILED.\@spaces Check \jobname.log.^^J---} + \fi +} + +\def\dcheck#1#2{% + \setlength\@tempdima{#2}% + \setlength\@tempdimb{#2}% + \addtolength\@tempdimb{-#1}% + \@tempcnta=\z@ + \ifdim\@tempdimb > -0.01pt + \ifdim\@tempdimb < 0.01pt + \@tempcnta=\@ne + \wlog{OK: #1= \the#1 (diff=\the\@tempdimb).} + \fi + \fi + \ifnum\@tempcnta=\z@ + \checkpassfalse + \immediate\typeout{NG: #1= \the#1 (expected=\the\@tempdima).} + \fi} + +\def\ccheck#1#2{% + \edef\@@tempa{#2} + \@tempcnta=\@@tempa + \advance\@tempcnta-#1\relax + \ifnum\@tempcnta=\z@ + \wlog{OK: #1= \the#1 (diff=\the\@tempcnta).} + \else + \checkpassfalse + \immediate\typeout{NG: #1= \the#1 (expected=\@@tempa).} + \fi} + +\def\nompstring{\renewcommand\mynote\relax} + +\newcommand\mynote{\marginpar% +[\raggedright\rule{\marginparwidth}{.7pt}\\A left side note.]% +{\raggedright\rule{\marginparwidth}{.7pt}\\A side note.}}% +\def\fox{A quick brown fox jumps over the lazy dog. } +\def\fivefoxes{\fox\fox\fox\fox\fox} +\def\manyfoxes{\fivefoxes\mynote\fivefoxes\par\fivefoxes\fivefoxes\par} +% \let\mynote\relax % removes marginal notes. |