diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/plain/contrib/samples/grafix.tex |
Initial commit
Diffstat (limited to 'macros/plain/contrib/samples/grafix.tex')
-rw-r--r-- | macros/plain/contrib/samples/grafix.tex | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/plain/contrib/samples/grafix.tex b/macros/plain/contrib/samples/grafix.tex new file mode 100644 index 0000000000..4e115fa2e5 --- /dev/null +++ b/macros/plain/contrib/samples/grafix.tex @@ -0,0 +1,21 @@ +\def\grafix#1,#2,#3,#4{ + \setbox1\vbox{\centerline{\vbox to#1{ + \hbox to#2{\special{position,include #3}\hss}\vss} + }} + {\vbox{\ifnum#4>0\hrule\fi + \hbox{\ifnum#4>0\vrule\fi\hskip 1pt + \vbox{\vskip 1pt + \box1 + \vskip 1pt} + \hskip 1pt + \ifnum#4>0\vrule\fi} + \ifnum#4>0\hrule\fi}}} + +This is a test of how some graphics might be centered in the file itself. +It may not work, but it is worth a try. + +\grafix 2.3truein,2.3truein,{pseal.tex},0 + +Then again, it might. We shall see, we shall see. This is Tomas Rokicki, +signing off. +\bye |