File: rotsample.tex

package info (click to toggle)
tetex-bin 2.0.2-30sarge5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 50,108 kB
  • ctags: 38,418
  • sloc: ansic: 295,045; cpp: 54,320; sh: 25,684; perl: 8,806; makefile: 3,892; yacc: 2,235; pascal: 1,381; awk: 1,103; asm: 851; lex: 833; lisp: 527; sed: 518; csh: 47
file content (32 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (33)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\input rotate
\newbox\rotbox
\newbox\rottwo
%
\font\big=cmr17 scaled\magstep4
This is a \setbox\rotbox=\hbox{simple}\rotl\rotbox\ test of
\setbox\rotbox=\hbox{some}\rotu\rotbox\ rotation primitives that
\setbox\rotbox=\hbox{\big work}\rotr\rotbox.
Or maybe \setbox\rotbox=\hbox{\vrule height .2in width .2in}\rotl\rotbox\
not.
\bigskip
\centerline{\vbox{\offinterlineskip
\def\tablerule{\noalign{\hrule}}
\def\breather{height 2pt&&&&&&&&&&\cr}
\def\allfive#1{\breather
&\global\setbox\rottwo=\hbox{#1}\copy\rottwo&&%
\setbox\rotbox=\copy\rottwo\rotl\rotbox&&%
\setbox\rotbox=\copy\rottwo\rotu\rotbox&&%
\setbox\rotbox=\copy\rottwo\rotr\rotbox&&%
\rotf\rottwo&\cr
\breather\tablerule}
\offinterlineskip
\halign{\vrule#&\hfil\ #\ \hfil&\vrule#&\hfil\ #\ \hfil&\vrule#&%
   \hfil\ #\ \hfil&\vrule#&\hfil\ #\ \hfil&\vrule#&\hfil\ #\ \hfil&\vrule#\cr
\tablerule
\breather
&\strut Upside&&Leftside&&Downside&&Rightside&&Flipside&\cr
\breather\tablerule
\allfive{gnus}
\allfive{$-b\pm\sqrt{b^2-4ac}\over2a$}
\allfive{{\big A}}}}}%
\bye