home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Club Elmshorn Atari PD
/
CCE_PD.iso
/
pc
/
0400
/
CCE_0417.ZIP
/
CCE_0417.PD
/
ASCREEN.ZOO
/
readme
< prev
Wrap
Text File
|
1992-03-14
|
11KB
|
261 lines
README for ASCREEN 3.1 --- 14th March 1992
==========================================
Installation
------------
Copy the files ASCREEN.PRG, ASCREEN.RSC and ASCREEN.SET to a suitable
folder on the hard disk, for instance near your other previewer.
Use a text editor to correct the path names in ASCREEN.SET. There are
various templates given for font names; uncomment the one that fits your
TeX and comment out the others. Same for the resolution.
Or start ASCREEN without specifying a DVI file, change the setup in the
option dialogs and save your settings under the name of ASCREEN.SET.
Environment
-----------
ASCREEN 3.1 honors two environment variables:
ASCREENSET Full path name of the setup file (ASCREEN.SET)
ASCREENRSC Full path name of the resource file (ASCREEN.RSC)
ASCRNENG.RSC contains English resources. To use these, either rename the
file to ASCREEN.RSC or set ASCREENRSC to point at this file.
Usage
-----
Invoke by
ascreen [ &setup ] [ Options ] File
or from a TeX shell. There are the following options:
-A Toggle cache-ahead (default is ON)
-c <Color> Set colors for display (see below)
-D <Directory> Directory for DVI files
-d Use desktop background
-e <extension> Set extension for `%e' in PK names
-F <extension> Font directory
-f <2 or 3> Shrinking factor (default is 2)
-G <extension> IMG file directory
-H <dimension> Left margin (default is 0pt)
-I Toggle display of IMG files (default is ON)
-J no-op (for TeXshell compatibility)
-l Log to file (default is OFF)
-M <Number> Magnification (in 1/1000 or `magstep')
-m magical ENTER (default is ON)
-p <Number> Maximum number of pages cached
-V <dimension> Top margin (default is 0pt)
-v Toggle verbosity (default is OFF)
-w <geometry> Size and position of message window
-x <dimension> Page width (default from DVI file)
-y <dimension> Page height (default from DVI file)
-Z <Number> Maximum number of fonts (default is 32)
-z <String> Template for PK file names
A <dimension> is a floating point number followed by one of the TeX
units of measure mm, cm, in, pt, sp, cc, dd or bp. A <geometry> is a
string of the form `wxh' or `wxh+x+y', where w and h are the width and
height of the window. x and y give the distance from the left or upper
edge of the work area, respectively (not counting the menu bar). You may
use `-x' or `-y' instead of `+x' or `+y', in which case the offsets are
between the right or lower edge of the window and the right or lower
edge of the work area. For instance, `100x100-0-0' would be a 100 by 100
window in the bottom right corner of the screen. (This is from X11.)
The <color> controls the appearance of formatted pages on the screen.
This is a 16-bit number whose upper and lower byte give the color of the
background and the `ink', respectively, namely as an index into the
current pallette. All numbers may be given in decimal (123), octal
(0173) or hexadecimal (0x7b), which is probably most useful when
specifying colors. The default is color 0 for the background and color
15 for the text.
Just like TeX ASCREEN lets you enter the name of the setup file as the
first argument, preceded by an ampersand. This makes it convenient to
use several setup files in parallel. Those folks who always want to know
everything in the most minute detail can, for instance, make a setup
file that specifies printer fonts instead of screen fonts. So one can
say `ascreen &huge.set foo' instead of `ascreen foo' for a giant
display. Alias definitions in shells like Mupfel come in quite useful
here.
Key Assignments
---------------
The accelerators for menu entries are given in the menu (and may be
customized with a resource editor). Besides, there are the following
assignments:
Cursor keys move the document inside the current window
(large steps)
Keypad-1,2,3,5 ditto
Keypad-7,8,9,) movement by small steps
Clr/Home go to upper left corner of page
Keypad - go to previous page
Keypad + go to next page
Enter either like `Keypad +' or magical
Keypad . magical backwards
`Magical Enter' works like this: usually the magical Enter key functions
the same as the down-arrow key (or Keypad-2). But when the current
position is at the bottom of the page, the top of the next page will be
displayed. Thus you can page through an entire document just by
repeatedly hitting the Enter key. The decimal point key on the keypad
works similarly but backwards.
Related to this is `smart paging': when turning over the page backwards
while being positioned at the top of the page, you end up at the bottom
of the previous page.
In a window (or a page on the desktop) the left mouse button will pop up
a menu containing the options, `Next Page', `Previous Page', `Go to
page', `Reduce' and `Lock' or `Unlock'. You can't reduce two adjacent
pages yet.
FLIB files
----------
ASCREEN supports FLIB files, i. e. packed `libraries' of PK fonts. The
format is that of emTeX (thanks to Eberhard Mattes for the description).
FLIB files are accessed by listing their names in `fontpath', for
instance
fontpath d:\fonts\fdori101.fli,d:\fonts
(Everything that ends with `.fli' is considered a FLIB file.) As you
see, FLIB files and paths may occur in whatever order and will be
searched in sequence, allowing fine control over where particular fonts
will be fetched from. Unfortunately there's no program yet that will let
you manage FLIB files; however, the ASCREEN distribution contains a Perl
script that lets you pack a number of PK files into a FLIB file. (I've
only tried it on a UNIX workstation yet, and I don't know whether it
actually works on the Atari.) Some FLIB files with the most important
fonts are available by FTP.
GEM message pipe
----------------
You can send messages to ASCREEN 3.1 via the AES function appl_write(),
thus triggering various functions of the program. Messages have the
general format
word 0: message type (for ASCREEN, always MSG_ASCREEN = 8196)
word 1: AES application ID of the sending process
word 2: Oversize of message (for ASCREEN, mostly 0)
word 3: message subtype
word 4: more parameters
:
ASCREEN ignores all messages but those of type MSG_ASCREEN. It
recognizes three different subtypes, namely
MSG_REREAD (1) the current DVI file will be read again and
redisplayed. This message is of interest to users of
PAM's MultiGEM; they can write a program that sends this
message to ASCREEN after a TeX run so that ASCREEN will
automatically read the newest DVI file. (But see `Known
Bugs' below for a caveat.)
MSG_NEWPAGE (2) ASCREEN sends this message to itself to trigger
`cache-ahead' of the next page. Other programs may send
the message, too. Word 4 is the absolute page number of
the page to be formatted. (The page will not be displayed
on screen but deposited in cache memory.)
MSG_NEWWIN (3) This message causes ASCREEN to open a new window.
Word 4 is 1 for a normal-sized window, 2 for a window that's
been reduced by a factor of 2, and 4 for a thrice-reduced
window; word 5 is the absolute page number of the page to
be displayed in the window. Words 6-9 (yes, the message is
oversized) contain the coordinates of the window, frame,
sliders etc. included.
HyperTeX
--------
HyperTeX is an experimental setup for `linked documents', e. g., online
documentation, in LaTeX. Files HYPTEST.TEX, HYPTEST.DVI and HYPERTEX.STY
sketch the LaTeX part of the business (German only, sorry). Essentially,
words that are to be linked are marked up in the source document, and
appropriate \special commands are written to the DVI file. There's also
a HYP file for the document which may be processed by the Perl script,
HYP.PL.
+---------+
| foo.tex |
+---------+
|
LaTeX
| +---------+ +---------+
+--------->| foo.hyp |-- hyp.pl -->| foo.hl |
| +---------+ +---------+
| |
| +---------+ V
+--------->| foo.dvi |------------> ASCREEN
+---------+
The HL file is sorted by `links' and allows efficient location of all
references to a key. ASCREEN reads the DVI and HL files and draws a
frame around any link it displays. If you click inside such a frame, a
popup menu appears which will let you jump to the definition, the
previous or the next reference of the link. `Back' lets you roll back
the chain of links followed in the current window, eventually returning
you to the original page. Standard printer drivers shouldn't be bothered
by the \special commands, there might be warnings which can be safely
ignored.
Various hints
-------------
64000 Bytes for unpacked glyphs should be ample.
You can page `reduced' windows as well, lock them etc. You can't reduce
them any further, though :-(
Known bugs
----------
Double pages can't be reduced yet (not too bad, just put two windows
next to each other).
Continuously pressing one of a window's arrow icons may cause ASCREEN to
hang if the TOS version used supports icon auto-repeat.
ASCREEN 3.1 keeps the DVI file open during all of the run. This limits the
possibilities of MultiGEM (since TeX can't write on the file while
ASCREEN is using it). An elegant and efficient solution is still
lacking; in the meantime one should enlarge the DVI buffer such that the
file in question fits completely. In this case the DVI file will be read
into memory and then closed immediately afterwards, and TeX can access it.
Sad Facts
---------
ASCREEN contains various unresolved references into code-to-be, e. g.,
menu items and setup parameters for virtual fonts, etc., etc. You may
still hope for all these features, but don't hold your breath waiting
for them; there are other important things for me to do (diploma thesis,
...)
Copying
-------
You may use and copy ASCREEN freely as long as you don't make any money
off it or pretend that you wrote it. If you like the program I'd
appreciate a picture postcard of where you live.
Up-to-date Versions
-------------------
ASCREEN's `home site' is ftp.math.uni-frankfurt.de [141.2.90.2]; the
current version is available there as well as FLIB files and other
stuff. Since ASCREEN is freely redistributable, it is likely that it
will turn up at other sites, too.
There is a mailing list for ASCREEN announcements, discussions etc.;
send mail to ascreen-request@math.uni-frankfurt.de to find out more.
I will snail-mail you the current version of the program if you send me
a formatted 720KB disk together with a self-addressed envelope and
appropriate return postage.
Comments, bug reports, proposals, criticism etc.
------------------------------------------------
are, of course, always welcomed. Please send them to...
Anselm Lingnau
Buchenweg 1
6239 Eppstein i. Ts.
Germany
phone: ++49-6198-8555
E-Mail: lingnau@math.uni-frankfurt.de