home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 31
/
CDASC_31_1996_juillet_aout.iso
/
vrac
/
txform12.zip
/
TXFORM12.EXE
/
rar
/
DEMO.TXT
< prev
next >
Wrap
Text File
|
1996-03-19
|
5KB
|
167 lines
% This is the input file for the demonstration of the
% main features of the TXFORM software.
%
% Use the command:
% TXFORM DEMO.TXT DEMO.OUT
% to produce the output file corresponding to this file,
% so that you can compare both listings.
%
% The text itself has no importance. Read the comments
% and the commands to have a quick idea of how TXFORM works.
%
% Lines begining with a "%" character are comment lines
%====================================================================
% Set Left Page Margin to column 5
\PML:5
% Set Right Page Margin to column 70
\PMR:70
% Set Page Length to 62
\PLE:62
%====================================================================
% Set number of blank lines after paragraph to 1
\ASL:1
% Full Justify the text
\AJF
% Set the date format
\DFR:nnn DD YY
%====================================================================
% Turn the page footer On
\FO+
% Set left text to "TXFORM Shareware"
\FTL:TXFORM Shareware
% Set right text to page number
\FTR:Page _#p
%use single line for separator
\FLC:-
%====================================================================
% Turn the page Header On
\HE+
% Set Left Text to "TXFORM DEMO FILE"
\HTL:TXFORM DEMO FILE
% Set right Text to Current date
\HTR:_#d
% Do not draw line after header
\HL-
% Skip three lines after Header
\HLA:3
%====================================================================
% Skip 10 lines
\LSK:10
% Let us draw a title in a frame centered in space
\AM+
% Let us turn filling mode off, so that each line is written
% indendantly
\AF-
TXFORM DEMO
% Let us draw an horizontal line
-
This is the input file for the demonstration of the
main features of the TXFORM software.
% Let us draw an horizontal line
-
The text itself has no importance. Read the comments
and the commands to have a quick idea of how TXFORM works.
% Let us draw an horizontal line
-
DEMO TEXT
% terminate Frame Mode, and draw the frame and inside text
\AM-
% Reset filling mode on
\AF+
%====================================================================
% Let us create a first chapter called "OVERVIEW"
\SLV:1:OVERVIEW
This text is directly under the heading of the chapter. Note that
creating a new heading at level 1 is automatically preceeded by a page jump.
% we use two macros to refer to an other section and page.
This is a macro to refer to a page of section _ssss (page _pppp).
We will hereby create two subsections.
\SLV:2:Overview, Step 1
This is the text of the first subsection.
\SLV:2:Overview, Step 2
This is the text of the second subsection. Will will create here two
sub/sub sections:
\SLV:3:Sub/Sub N° 1
And the text for this sub-sub section ...
\SLV:3:Sub/Sub N° 2
And the text for this sub-sub section ...
%====================================================================
% Let us create a new chapter
\SLV:1:The second and last chapter
To begin with, let me show you how to create an enumerated list of
text with bullets:
\ITZ:■
\ITT
The list begins with that item. The text can be several lines longs,
and does not need to be properly aligned.
Note that paragraphs are not automatically itemized.
\ITT
Here we will create a sub list, with two items and a different bullet.
\ITZ:*
\ITT
This is the first item of the sub list.
\ITT
This is the last item of the sub list. We need the command '\ITS' at the
end of each list.
\ITS
\ITT
This is the third and last text of the main list. It is followed
by the '\ITS' command
\ITS
% here we define the dynamic macros: _pppp contains the current page,
% and _ssss the current section. There are used in chapter 1 (look for
% _ssss and _pppp in this file).
This is the page and section to which we refer in chapter 1
\MAP:_pppp
\MAS:_ssss
%====================================================================
Now, we will draw a separator line over the whole of page width:
\LFI:=
Let us now skip five lines
\LSK:5
It is done. Now, something else ...
\AC+
Let us write some text centered.
Each line remain separated of the other ones,
because centering disabled the filling.
\AC-
%====================================================================
\AIL:10
\AIR:-10
But this text is in the center and is properly aligned because it has
been justified using the margins. The left margin has been move of
10 characters to the right, and the right margin has been moved of 10
characters to the left. The margins are reset after this paragraph, by
moving them again of the opposite values.
\AIL:-10
\AIR:+10
%====================================================================
% turn appendix mode on
\SAP
% the next section will be the first appendix
\SLV:1:FIRST APPENDIX
% we can have sub sections in appendix too:
\SLV:2:General
This is just any text that will be used for the APPENDIX A, called the
"FIRST APPENDIX".
\SLV:2:Remark
Once you are in appendix mode, you may not return
to normal mode.
%====================================================================
% This is the end of the input file.
\ZZZ