You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.8 KiB
56 lines
1.8 KiB
%% 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
|
|
|