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/boxit.tex |
Initial commit
Diffstat (limited to 'macros/plain/contrib/samples/boxit.tex')
-rw-r--r-- | macros/plain/contrib/samples/boxit.tex | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/plain/contrib/samples/boxit.tex b/macros/plain/contrib/samples/boxit.tex new file mode 100644 index 0000000000..57956219c1 --- /dev/null +++ b/macros/plain/contrib/samples/boxit.tex @@ -0,0 +1,13 @@ +% +% BOXIT +% +% Use \boxit{ text } to surround text / paragraphs / anything in a +% box. For example, typing \boxit{the} would produce +% +---+ +% |the| +% +---+ +% (you may want to use \strut inside the argument if the +% boxit is on a line by itself). +% +\def\boxit#1{\leavevmode\hbox{\vrule\vtop{\vbox{\kern.33333pt\hrule + \kern1pt\hbox{\kern1pt\vbox{#1}\kern1pt}}\kern1pt\hrule}\vrule}} |