home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
pmcstex.zip
/
install
/
cmd.CS
/
MAKETEXP.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-04-24
|
3KB
|
89 lines
@echo off
REM This script files has been modified by Guido Sawade basing
REM upon suggestions of lots of dvips users.
REM
REM This script file makes a new TeX PK font, because one wasn't
REM found. Parameters are:
REM
REM name dpi bdpi magnification [mode]
REM
REM `name' is the name of the font, such as `cmr10'. `dpi' is
REM the resolution the font is needed at. `bdpi' is the base
REM resolution, useful for figuring out the mode to make the font
REM in. `magnification' is a string to pass to MF as the
REM magnification. `mode', if supplied, is the mode to use.
REM
REM When you want to get tfm or log files of the fonts generated,
REM see section 'donemode:'
REM
REM Because of MSDOS memory constraints, this batch file just
REM creates a mfjob file, so that the fonts can be created later.
REM Under OS/2, change at the bootom of file to create fonts immediately
REM
REM NAME=%1 DPI=%2 BDPI=%3 MAG=%4 MODE=%5
if NOT '%4%' == '' goto nousage
echo USAGE: maketexp NAME DPI BDPI MAG [MODE]
echo ! see comments in /emtex/bin/maketexp.bat/.cmd !
goto exit
:nousage
if exist dvips.mfj goto :second
echo %% dvips.mfj - created by dvips > dvips.mfj
echo input [dvidrv]; >> dvips.mfj
echo Created dvips.mfj
:second
echo { >> dvips.mfj
echo base=plain; >> dvips.mfj
echo font=%1; >> dvips.mfj
echo mag=%4; >> dvips.mfj
if "%5" == "" goto :nomode
if "%5" == "imagen" goto :hpmode
if "%5" == "laserjet" goto :hpmode
if "%5" == "laserjetIV" goto :hpIVmode
if "%5" == "deskjet" goto :hpdjmode
:goodmode
echo mode=%5[%3]; >> dvips.mfj
echo output=pk[%DVIDRVFONTS%\%5\@Rrdpi\@f]; >> dvips.mfj
goto :donemode
:hpmode
echo mode=laserjet[%3]; >> dvips.mfj
echo output=pk[%DVIDRVFONTS%\lj\dpi@Rr\@f]; >> dvips.mfj
goto :donemode
:hpIVmode
echo mode=laserjetIV[%3]; >> dvips.mfj
echo output=pk[%DVIDRVFONTS%\ljh\dpi@Rr\@f]; >> dvips.mfj
goto :donemode
:hpdjmode
echo mode=deskjet[%3]; >> dvips.mfj
echo output=pk[%DVIDRVFONTS%\dj\dpi@Rr\@f]; >> dvips.mfj
goto :donemode
:nomode
echo m; >> dvips.mfj
:donemode
REM Uncomment one or both of the following if you want
REM to get additional files from the METAFONT run.
REM echo output=tfm[%DVIDRVFONTS%\tfm\@f]; >> dvips.mfj
REM echo output=log[%DVIDRVFONTS%\log\@f]; >> dvips.mfj
echo } >> dvips.mfj
REM Yes, this is really the bottom :) *************************************
REM
REM Uncomment the following lines and comment out the echo instruction to
REM make operation automatic:
mfjob dvips
del dvips.mfj
rem echo Run "mfjob dvips"
:exit