home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
winutil
/
dvimswin
/
dvimswin.doc
next >
Wrap
Text File
|
1989-11-21
|
5KB
|
95 lines
This is release 1.01 of my TeX previewer for Microsoft
Windows, dvimswin. You need the file dvimswin.exe and the Windows library
win87em.exe, which you may already have (it uses the 80x87 if you have it,
otherwise it does emulation), the file texfonts.sub, and fonts in
the .pk format. The fonts must be stored in subdirectories of
one directory, all the fonts at 100 d.p.i. being in a directory
like c:\texfonts\100, the ones for 110 being in c:\texfonts\110, etc.
The program will ask for the name of this font directory. In this case
you would answer "c:\texfonts\". The fonts are the same as those used
by my previewer dvivga, and are available from wsmr-simtel20.army.mil
by anonymous ftp. They are in the files dvivga2 through 8 (unless simtel
has renamed them to something obvious like dvivgafonts1, dvivgafonts2, etc.,
as per a recent request.) The program simply appends the d.p.i. value
to the string you gave it. Win87em.exe goes in your windows directory.
Dvimswin.exe goes anywhere you wish, though most people will put it in
the Windows directory.
If you put a line such as
dvi=dvimswin.exe ^.dvi
in the [extensions] section of your win.ini file, you can start up
dvimswin by double clicking on a .dvi file. You can also start up
dvimswin by typing to the ordinary MS-DOS prompt
win dvimswin filename.dvi
(or win386 instead of just win if you use Windows 386.)
Dvimswin allows you to use either a mouse or the keyboard to move
around in your dvi file. Most commands are obvious, except for the
Options. Resetmargins makes the current position of the text on the
current screen permanent, so future pages or dvi files will be placed the
same way. You **should always** get the first part of your first page
positioned properly then use this command. SaveParameters saves the current
margins and d.p.i. value in your win.ini file, so that the next time you
start dvimswin, they will be the same. The other three options
cause various warning messages to appear on the screen and are
helpful for debugging your file layouts. If your first try at viewing
a page fails, try turning on all of these. (Warnings about
checksum errors are almost always harmless.) The first thing dvimswin
does when opening a .dvi file is to get info on all the fonts used
in a document, and this is sluggish. If you want to stop it, you
can't use the mouse, as it is disabled by the presence of the hourglass
icon. But the keyboard still works, so you can stop it by typing
<alt-f> then c (for Close).
The only thing non-obvious about the mouse interface is that the
scroll bar thumb only moves about on the current, normal size, page.
The actual range of the controls is greater. The thumb never reaches
the end of its travel to allow you to double-click on the bar part at
all positions. To move to a different page you double-click above or
below the thumb. Either in the gray area or the arrow area will work.
Making the code for this work delays moving up or down on the page by the
double-click time - so don't set it too long. This doesn't affect
the keyboard interface.
Please note that 100 d.p.i. is only the default text size. If you have a
high res screen you should go to a bigger size before you open a file.
At sizes below 92 d.p.i. most fonts are not really present in the
distributed ones, and are substituted for. This results in slightly
ragged margins and sometimes overlapping letters. If you use a smaller
size often, be sure to put a full set of the fonts you use for it
in the font substitution file.
There exist displays for the PC that actually have 300 dots per inch,
and are big enough to display a whole page. If they come with Windows
drivers, the 300 d.p.i. option appears on the size menu for your
edification. In any case, it can be useful even on ordinary displays.
If you have the memory, you should try using a disk cache program
like smartdrive or a ram-disk for your fonts. These utilities can
dramatically speed up many programs, including this one.
You can view more than one .dvi file at once by starting more than
one copy of dvimswin, if you have the memory.
The font substitution file is useful for using small d.p.i. values.
You can peruse the provided one to see how it uses cmr8 at a larger
d.p.i. value for cmr10 at a larger one, for example. You can
also put lines like
cmssbx10 cmr10
to substitute whole font families. The size specific ones should
be put first in the file, as the first match is used.
This program is limited to fonts containing 128 characters. Going to
256 character fonts eats up lots of very valuable memory. If there
is a need the change is trivial (a single #define) and if somebody
needs it I will make such a version. It would be called dvims256.
Doug McDonald (mcdonald@uxe.cso.uiuc.edu)