summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/plain/gustlib/rbox-ex.tex
blob: 913f2a51b6eecdff10c6b261f82e6393e4aa42dd (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%% przyk/lad u/zycia ramek zaokr/aglonych | rounded frames example
%%  (opr. St. Wawrykiewicz)
\input roundbox
\def\bsl{{\tt\char'134}}
\setcorners 2 %
\roundbox width 9cm height 9cm {Some text}
    % ramka o gr. linii 0.4pt            | frame of 0.4pt thickness
    % parametry: szer. i wys. {tekst}    | parameters: width height {contents}
    % tre/s/c umieszczona centralnie     | the contents is centered in the frame
    % w ramce                            |

\def\\{\par}
   % w parametrze makra nie mo/ze        | in macro parameter \par or newline
   % by/c \par b/ad/x wolnej linii!!!    | is not allowed
\Roundbox width 9cm {%ramka o gr. 0.8pt  | 0.8pt thickness of the frame
\vbox{\hsize=0.45\hsize \bf
\parindent=0pt
Some text in rounded frame, in the column of
0.45 ({\tt \bsl hsize}).
\\ \bigskip
Next paragraph after {\tt\bsl bigskip}.
All typeset in boldface.
}}

\vfill\eject
\message{Next page}
\roundbox width 9cm height 9cm {%    %% wymiary ramki   | frame dimensions
\vbox to9cm{\hsize=9cm\parindent=0pt %% wymiary pude/lka| box dimensions
                                     %% w ramce         |
\vss                  %  \vss rozmieszcza tre/s/c
\leftline{left}       %  r/ownomiernie
\rightline{right}     %
\vss                  %
\centerline{center}   %
\vss
\leftline{left}
\rightline{right}
\vss}}

\medskip

\roundbox width 9cm height 9cm {     % wymiary ramki     | frame dimentions
\vbox to9cm{\hsize=9cm\parindent=0pt % wymiary pude/lka  | box dimentions
\parskip=0pt
Test of text. Test of text. Test of text. Test of text. Test of text.
Test of text.\\
\vbox to 3cm{%
\vss
\centerline{centered in 3cm height of space}
\vss}
Test of text. Test of text. Test of text. Test of text.
Test of text. Test of text. Test of text. Test of text.
Everything flushed from bottom.
\vss}}         % to w/la/snie dopych od do/lu!!          |\vss flush from bottom

\bye