%%%%% The File tx.tex contains equivalences of old macros definitions \input{tw.def} \def\symbol{This is just the symbol} \def\Symbol{\_\symbol\_} \def\colrule{\crule{}} \def\EndOfText{\CheckLines{12}} %%%%%%%%%%%%%%%%%%%%%%--------- 1 ------------------------------------ %%%%%%%%%%%%%%%%%%%%%%--------- 1 ------------------------------------ \rightline{\now} \vfill \frametext{{\bf W E L C O M E}} \vfill \EndOfText %%%%%%%%%%%%%%%%%%%%%%--------- 1 ------------------------------------ This first example is a simple text, which should be left and right justified. Note the possibility of comments written with the \% sign%----------------------------------------- which destroys the end-of-line. Escape characters may be written as \{\b\_\^\$\~\#\&\}. The `\~' character is used for non-breakable~blanks. As in {\bf TeX}, you may use different `fonts': here is an example of a {\sl slanted~text} or \ul{underlined} text, and an {\em emphasized~text}; however, {\Vb blinking~text} cannot be used on a sheet of paper! Also, it is possible to superpose the `fonts', e.g. {\sl\em Emphasized Slanted}. Also, use the \b bell \bell \bell and \b fbox for \fbox{very~important~things}... \EndOfText %%%%%%%%%%%%%%%% Issuing Blanks %%%%%%%%%%%%%%%%%%%%%%%% \centerline{\bf Issuing Blanks} Several macros cans be used to insert blanks: \LeftLine{A \b quad\quad is inserted} \LeftLine{A \b qquad\qquad is inserted} and any amount of spaces with the \b Hspace\{{\sl n}\} macro. For instance, the next paragraph starts with an indentation. \indent Doesn't it look better if paragraphs are indented ? But spaces\Hspace{3}inserted\Hspace{3}in\Hspace{3}the\Hspace{3}text\Hspace{3} look\Hspace{3}strange... {\obeylines It's possible to force the line breaks as they are in the input ...} {\obeyspaces and even the input spaces}. Here the obey should have disappeared... \EndOfText %%%%%%%%%%%%%%%% vfill %%%%%%%%%%%%%%%%%%%%%%%% \centerline{\bf Vertical Fill} Some stretchability in lines is available with the \ul{\b vfill} macro. Let's assume that the text is made of 2 paragraphs, like: \vfill This could be the first paragraph, well separated from the rest. \vfill This could be the second paragraph. \vfill \EndOfText %%%%%%%%%%%%%%%% Indent %%%%%%%%%%%%%%%%%%%%%%%% \centerline{\bf Indent Environment} It's possible, anywhere in a text, to indent the text, with use of the {\em BeginIndent} Environment. \begin{indent} The text is now indented, but still with justification; the left margin is pushed by 1/10 of the window width. You may get more indentation with a repetition of the {\sl \b begin\{indent\}}. \begin{indent} The text is now indented, but still with justification; the left margin is pushed by 1/10 of the window width. You may get more indentation with a repetition of the {\sl \b begin\{indent\}}. \begin{indent} The text is now indented, but still with justification; the left margin is pushed by 1/10 of the window width. You may get more indentation with a repetition of the {\sl \b begin\{indent\}}. \begin{indent} \end{indent}\end{indent}\end{indent} \EndOfText %%%%%%%%%%%%%%%% Quote %%%%%%%%%%%%%%%%%%%%%%%% \centerline{\bf Quoting Environment} It's possible, in order to emphasize some portion of a text, to use the {\em Quoting} Environment. \begin{quote} This is a text in a quoted environment (left and right margins pushed 1/10 of the window width) \begin{quote} This is a text in a quoted environment (left and right margins pushed 1/10 of the window width) \begin{quote} This is a text in a quoted environment (left and right margins pushed 1/10 of the window width) \end{quote} \end{quote} \end{quote} \EndOfText %%%%%%%%%%%%%%%% Itemize %%%%%%%%%%%%%%%%%%%%%%%% \centerline{\bf Items Environment} It's possible to edit a list in the {\em Items} Environment. Each item is preceded by a `=>' symbol. \begin{itemize} \item This is the {\bf first} item of the list. \item This is the {\bf second} item of the list. It includes subitems like: \begin{itemize} \item This subitem could be named {\bf 2a}, and should be indented to the left \item This subitem could be named {\bf 2b}. Is not interesting... \end{itemize} \end{itemize} \EndOfText %%%%%%%%%%%%%%%% Enumerate %%%%%%%%%%%%%%%%%%%%%%%% \centerline{\bf Enumerate Environment} It's possible to edit an enumerated list, either with numbers or letters. \begin{Alphaenumerate} \item {\bf A} item of the list. \begin{enumerate} \item This is the {\bf A.1.} item of the list. \item This is the {\bf A.2.} item of the list. \begin{alphaenumerate} \item Subsubitem \item Subsubitem \end{alphaenumerate} \end{enumerate} \item {\bf B} item of the list. \end{Alphaenumerate} \EndOfText %%%%%%%%%%%%%%%%% Table Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{\bf Table Environment} \begin{table}{|l|r|c|p{12em}|}{5,6,9,} \Rule left & right & centre & \Centre{\bf Explanation} \\ \Rule -1-& -2-& -3- & The last column is justified, and may lay over several lines until the end is reached. It's nice to finish with graphic lines.\\ \LastRule \end{table} \begin{table}{|c|l|}{5} \Rule X & In this example, the last column is only left justified.\\ \LastRule \end{table} \EndOfText %%%%%%%%%%%%%%%%% Table Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf Table Environment} (continued)} The following table should be centered: \vfill \begin{table}{|r|c|}{5,22} \Rule No& Comment \\ \Rule 1 & \Left{\ Left } \\ 2 & {\bf Center} \\ 3 & \Right{Right\ } \\ \Rule \end{table} \vfill \EndOfText %%%%%%%%%%%%%%%%% Table Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf Table Environment} (Keypad)} \vfill \centerline{{\em \ KeyPad\ }} \vfill \begin{table}{|c|c|c|c|}{5,5,5,5} \Rule PF1 & PF2 & PF3 & PF4 \\ \Rule 7 & 8 & 9 & - \\ \Rule 4 & 5 & 6 & , \\ \Rule 1 & 2 & 3 & \\ \crule{1-3} \CentreColumns{2}{0} & . & {\bf E} \\ \Rule \end{table} \vfill \EndOfText %%%%%%%%%%%%%%%%% Table Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf Table Environment} (Keypad)} \vfill \centerline{{\em\ More Sophisticated Keypad\ }} \vfill \begin{table}{|c|c|c|c|}{8,8,8,8} \Rule & Help & Next & Del L \\ {\bf Gold} & {\bf Help} & {\bf Find} & {\bf Und L} \\ \Rule Page & Section & Append & Del W \\ {\bf Command} & {\bf Fill} & {\bf Replace} & {\bf Und W} \\ \Rule Forw & Backw & Cut & Del C \\ {\bf Bottom} & {\bf Top} & {\bf Paste} & {\bf Und C} \\ \Rule Word & EOL & Char & \\ {\bf Chg Case} & {\bf Del EOL} & {\bf Specins} & Enter \\ \crule{1-3} \CentreColumns{2}{Line} & Select & {\bf Subst} \\ \CentreColumns{2}{{\bf Open Line}} & {\bf Reset}& \\ \Rule \end{table} \EndOfText %%%%%%%%%%%%%%%%% Table Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf Table Environment} (columns)} \begin{table}{|c|c|c|c|c|}{5,5,5,5,5} \Rule 00 & 01 & 02 & 03 & 04 \\ 10 & 11 & 12 & 13 & 14 \\ 20 & 21 & 22 & 23 & 24 \\ 30 & 31 & 32 & 33 & 34 \\ 40 & 41 & 42 & 43 & 44 \\ \Rule \columns{|c|c|c|c|}{5,5,5,5} 50 & 51 & 52 & 53 \\ 60 & 61 & 62 & 63 \\ \Rule\end{table} \begin{table}{|c|c|c|c|}{5,5,5,5}\Rule 50 & 51 & 52 & 53 \\ 60 & 61 & 62 & 63 \\ \Rule \columns{|c|c|c|c|c|}{5,5,5,5,5} 00 & 01 & 02 & 03 & 04 \\ 10 & 11 & 12 & 13 & 14 \\ 20 & 21 & 22 & 23 & 24 \\ 30 & 31 & 32 & 33 & 34 \\ 40 & 41 & 42 & 43 & 44 \\ \Rule \end{table} \EndOfText %%%%%%%%%%%%%%%%% Table Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf Enumerate in Table Environment}} The following table should be centered: \vfill \begin{table}{|r |p|}{3,} \Rule \# & \Centre{Comment} \\ \Rule A & Following Items: \begin{enumerate} \item This is the first alternative \item This is the second alternative \end{enumerate} \\ \Rule B & \Right{Right\ } \\ \Rule \end{table} \vfill \EndOfText %%%%%%%%%%%%%%%%% Table Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf Table within Table}} The following table should be centered: \vfill \begin{table}{|r | c |}{5,} \Rule No& Comment \\ \Rule 1 & Possibilities \\ & \begin{table}{|c|p|}{3,} \Rule a & Sub-a \\ b & Sub-b \\ \Rule \end{table} \\ 2 & \Right{Right\ } \\ \Rule \end{table} \vfill \EndOfText %%%%%%%%%%%%%%%%% Table Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf Table within Table}} The following table should be centered: \vfill \begin{table}{| c | l |}{17,} \Rule No& Comment \\ \Rule \begin{table}{|r|l|}{3,} \Rule a1 & In First Column \\ a2 & Also In First Column \\ \Rule \end{table} & \begin{table}{|c|p|}{3,} \Rule a & Sub-a \\ b & Sub-b \\ \Rule \end{table} \\ ===> & \Right{Right\ } \\ \Rule \end{table} \vfill \EndOfText \centerline{\bf Table 2} \begin{table}{cc}{20,20} \begin{table}{|c|c|}{8,8} % Left Part (L keys) \Rule PAGE & NEXT \\ (L1) & (L2) \\ {\em COMMAND} & {\em FIND}\\ \Rule ADVANCE & BACKUP \\ (L3) & (L4) \\ {\em BOTTOM} & {\em TOP} \\ \Rule RIGHT P & CREA COL \\ (L5) & (L6) \\ {\em LEFT P} & {\em DEL COL} \\ \Rule WORD & CHANGE \\ (L7) & (L8) \\ {\em SHOW} & {\em SORT} \\ \Rule LINE & ROW \\ (L9) & (L10) \\ {\em SCREEN} & {\em STATUS} \\ \Rule \end{table} % End of Left Part & % Right Column (Function Keys) \begin{table}{|c|c|}{8,8} \Rule (F1) & (F2) \\ {\em GOLD}& HELP \\ ~ & ~ \\ \Rule \end{table} \\ % End of Right Part \end{table} % End of Table \EndOfText %%%%%%%%%%%%%%%%% \centerline{{\bf Table within Table}} The following table should be centered: \vfill \begin{table}{| c | l |}{17,} \Rule No& Comment \\ \Rule \begin{table}{|r|l|}{3,} \Rule a1 & In First Column \\ a2 & Also In First Column \\ \Rule \end{table} & \begin{table}{|c|p|}{3,} \Rule a & Sub-a \\ b & Sub-b \\ \Rule \end{table} \\ ===> & \Right{Right\ } \\ \Rule \end{table} \vfill \EndOfText %%%%%%%%%%%%%%%%% Alignement %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf Alignement }} It is possible to align items (at 4 characters) with the use of the \b tab macro: \vfill First\_Item \tab Second \tab Third \tab 4 \tab 5 \tab 6 \tab 7 \tab 8 \tab 9 \tab 10 \tab 11 \vfill \EndOfText %%%%%%%%%%%%%%%%% Alignement %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf Alignement }} It is possible to align items at the {\bf right} of tabs with the use of the \b tabright macro: \vfill \tabright{First\_Item} \tabright{Second} \tabright{Third} \tabright{1233} \tabright{5} \tabright{66666} \tabright{7777777} \tabright{8} \tabright{999999999} \tabright{10} \tabright{333} \vfill \EndOfText %%%%%%%%%%%%%%%%% Marking Fields %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf \b Field}} This macro may be used to easily define {\sl Forms}. Use it as {\bf \b Field\{\Field{Name}{Name}\}% \{\Field{Text}{{\em...~Text~...}}}\}. Such marked fields may be retrieved from the calling program, for modifications, edition, etc.... Reserving 20 blanks is as easy to write as \b Field\{Here\}% \{\{\b sl\b Hspace\{20\}\}\}: \begin{left} Here : \Field{Here}{{\sl\Hspace{20}}} \end{left} \EndOfText %%%%%%%%%%%%%%%%% Marking Fields %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \centerline{{\bf \b Field as Several Lines}} Here is an example of a multiline fields: \begin{table}{| c | p |}{5,20} \Rule Item & Explanation \\ \Rule \Field{item}{{\sl ~~~~~}} & \Field{sol}{{\em\Hspace{80}}} \\ \Rule \multicolumn{2}{c}{%---------- Another way \Field{item_2}{{\em Text over the 2 columns}} } \\ \Rule \end{table} \vfill \EndOfText %%%%%%%%%%%%%%%%% More %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\word{Forms} \centerline{{\bf \b More environment}} It's possible to associate any piece of text to a window, without having to display it. The {\bf Ccode} is an example, which is used in {\sl \word} to derive computed fields. The macros substitutions is performed... \begin{more}{Ccode} \begin{verbatim} /* Just a Ccode ............. */ \end{verbatim} prt("\word"); \end{more}