From: schaers@ubaclu.unibas.ch
Subject: Re: How can I use DVIWIN to print w/ MikTeX?
Newsgroups: comp.text.tex
Date: 14 Aug 97 16:31:53 MET
Organization: University of Basel, Switzerland
Path: unlisys!news-hh.maz.net!newsfeed.de.ibm.net!ibm.net!Cabal.CESspool!bofh.vszbr.cz!nntprelay.mathworks.com!howland.erols.net!blackbush.xlink.net!news-ge.switch.ch!news-zh.switch.ch!ubaclu.unibas.ch!schaers
Message-ID: <1997Aug14.163153.47586@yogi.urz.unibas.ch>
References: <33E91A13.11FC@ocslink.com> <1997Aug12.193035.47583@yogi.urz.unibas.ch>
Lines: 65
Xref: unlisys comp.text.tex:81762

In article <1997Aug12.193035.47583@yogi.urz.unibas.ch>, schaers@ubaclu.unibas.ch writes:
> In article <33E91A13.11FC@ocslink.com>, Andy Gherna <cuarg@ocslink.com> writes:
>> Since I've started using MikTeX, DVIWIN isn't being very cooperative
>> anymore.  I followed the recommendations in the HTML document that came
>> with the distribution as far as setting up DVIWIN29, however now it
>> won't even show the fonts on screen.  I suspect it has to do with my
>> genpak.bat file which looks like this:
>> 
>> [snip]
> 
> I have to add some lines, to set magstep (%4) accordingly. I will post
> my genpk.bat tomorow.
> 
> -sacha
here it is:

@echo off
rem goto exit
if %3==300 set mode=cx
if %3==600 set mode=ljfive
if %3==110 set mode=ibmvga
set base=%3
if not +%mode%==+ goto special_res
if %2==58	set PK_MAG=-9
if %2==64	set PK_MAG=-8.5
if %2==70	set PK_MAG=-8
if %2==76	set PK_MAG=-7.5
if %2==84	set PK_MAG=-7
if %2==92	set PK_MAG=-6.5
if %2==100	set PK_MAG=-6
if %2==110	set PK_MAG=-5.5
if %2==121	set PK_MAG=-5
if %2==132	set PK_MAG=-4.5
if %2==145	set PK_MAG=-4
if %2==158	set PK_MAG=-3.5
if %2==174	set PK_MAG=-3
if %2==190	set PK_MAG=-2.5
if %2==208	set PK_MAG=-2
if %2==228	set PK_MAG=-1.5
if %2==250	set PK_MAG=-1
if %2==274	set PK_MAG=-0.5
if %2==300	set PK_MAG=0
if %2==329	set PK_MAG=0.5
if %2==360	set PK_MAG=1
if %2==394	set PK_MAG=1.5
if %2==432	set PK_MAG=2
if %2==473	set PK_MAG=2.5
if %2==518	set PK_MAG=3
if %2==568	set PK_MAG=3.5
if %2==622	set PK_MAG=4
if %2==681	set PK_MAG=4.5
if %2==746	set PK_MAG=5
if %2==818	set PK_MAG=5.5
if %2==896	set PK_MAG=6
if %2==981	set PK_MAG=6.5
if %2==1075	set PK_MAG=7
if %2==1178	set PK_MAG=7.5
if %2==1290	set PK_MAG=8
set mode=cx
set base=300
:special_res
if +%PK_MAG%==+ set PK_MAG=%4
c:\texmf\miktex\bin\maketexpk.exe %1 %2 %base% magstep(%PK_MAG%) %mode%
:exit

