DVIWin+MikTeX

SEP Home

About SEP
People
Research
Courses
Software
TeX Software
DVIWin+MikTeX
SEP TeX FAQ
SEG-99 class
SEPlib
Internal Info




X-Andrew-WideReply: netnews.comp.text.tex
X-Andrew-Authenticated-as: 0;andrew.cmu.edu;Network-Mail
Received: via nntpserv with nntp; Wed, 23 Oct 1996 06:37:29 -0400 (EDT)
Path: andrew.cmu.edu!bb3.andrew.cmu.edu!cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!portc01.blue.aol.com!news-peer.gsl.net!news.gsl.net!howland.erols.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!uknet!lyra.csx.cam.ac.uk!jsy1001
From: jsy1001@mrao.cam.ac.uk (John Young)
Newsgroups: comp.text.tex
Subject: Re: Win95 (MikTeX) Font Problems ?
Date: 23 Oct 1996 09:55:36 GMT
Organization: Mullard Radio Astronomy Observatory, Cambridge
Lines: 78
Message-ID: <54kq2o$mvl@lyra.csx.cam.ac.uk>
References: <326D53AA.3CF@lifesci.lscf.ucsb.edu>
NNTP-Posting-Host: mraos.ra.phy.cam.ac.uk

Make sure that you've done the following...


How to get dviwin to work properly with MiKTeX
----------------------------------------------

i.e. use the screen fonts which come with MiKTeX, use MiKTeX's MakeTeXPK and
METAFONT to generate missing fonts, and print to any printer.


I have assumed that your TeX base directory is c:\texmf. If it isn't just
substitute the correct directory in everything below.


1. Start dviwin without loading a .dvi file. Set both Options|Custom
Resolutions... X Resolution 1 and Y Resolution 1 to 110. Set Resolution 2 to
that of your printer, if you want to print from dviwin.

2. Select Resolution|110 at the end of the rightmost column of the menu, i.e.
the custom resolution you just defined.

The point of this is that the resolutions listed in the Resolution menu
are not
exactly what dviwin says they are, but are (de)magnifications of 300 dpi (see
helpme.wri which comes with dviwin). The original dviwin 110 dpi is in fact
110.06 dpi. You may think this doesn't matter, but if you use this dviwin
will
end up looking for e.g. cmr10.pk in the dpi133 directory, whereas it
should be
looking in the dpi132 directory.

3. Set Options|Font Directory... to
c:\texmf\fonts\pk\ibmvga\public\cm\dpi$r;
c:\texmf\fonts\pk\ibmvga\public\latex\dpi$r;
c:\texmf\fonts\pk\ibmvga\public\misc\dpi$r;
c:\texmf\fonts\pk\ibmvga\tmp\dpi$r
[I have broken the line after each semicolon. You shouldn't - its all one
line]

[Note: change "ibmvga" to "cx" above to get prettier (but slower) screen
output, as well as the ability to print from dviwin to 300dpi laser
printers --BJ]

If you want to print from dviwin, append the printer font directories to the
above, e.g. for 360 dpi Epson LQ and compatibles, using the lqhires
METAFONT mode
c:\texmf\fonts\pk\lqhires\tmp\dpi$r
(Note that MiKTeX doesn't come with any lqhires pk fonts, they will all be
generated on demand)

To find a suitable METAFONT mode for your printer, look in
c:\texmf\metafont\misc\modes.mf. Substitute the mode name for lqhires.

If you have a 300dpi non-PostScript laser, you may want to print from dviwin
using the supplied (optional) cx fonts. In this case the path to add is the
same as that for the screen (ibmvga) fonts above with cx substituted for
ibmvga. The result may be too long for dviwin - I haven't tried it.

[Note: this *does* create a string that's too long for dviwin; however as
noted above, you can simply change all the instances of "ibmvga" to "cx"
and you get a very nice looking screen output at font resolution 300dpi 
and a magnification of about 5 --BJ]

4. Set Options|Missing Fonts... to Execute Command:
c:\texmf\dviwin\genpk.bat $f $r $X $m
(substitute the directory dviwin is in on your system for c:\texmf\dviwin)

5. Create the batch file referred to above. It should contain
@echo off
if %3==110 set MODE=ibmvga
if %3==300 set MODE=cx
if %3==360 set MODE=lqhires
if %3==180 set MODE=lqlores
MakeTeXPK.exe %1 %2 %3 magstep(%4) %MODE%
set MODE=

You may need to add or change a line to set the mode correctly for your
printer.

6. Try it out!

---------------------------------------------------------------------------
John Young,                                Tel.  : 01223 337344 (lab)
Research Student, MRAO, Cambridge.         E-mail: jsy1001@mrao.cam.ac.uk




 


© 2003 , Stanford Exploration Project
Department of Geophysics
Stanford University

Modified: 04/09/03, 15:54:22 PDT , by morgan
Page Maintainer: sergey `AT' sep.stanford.edu