Subject: Bug#3323: MakeTeXPK mis-invokes ps2pk

From: Mark Eichin <[email-masked]>
Date: 18 Jun 1996 22:08:18 -0400

package: mflib
Version: 1.0-5
Maintainer: Nils Rennebarth <[email-masked]>

possibly also:
Package: xdvik
Version: 18f-5

The remaining possibly related items are:
ii  dvipsk          5.58f-5        TeX DVI-driver for Postscript
ii  ps2pk           1.4-4          Create pk fonts from type1 fonts
ii  psnfss          5.2-1          Support for Postscript fonts with LaTeX
ii  texpsfnt        1.0-1          Virtual fonts and TFM's to use Postscript fo
ii  latex           2e-4           Write structured documents with TeX
ii  latex2e-doc     1.6-0          LaTeX2e documentation in info format
ii  latex2rtf       1.1-3          LaTeX text to RTF format translator.
ii  texbin          3.1415-5       TeX - The typesetting system
ii  texlib          1.0-4          Auxiliary Files to run TeX
ii  mfbasfnt        1.0-3          TeX's default fonts.
ii  mfbin           2.71-4         Metafont - TeX's font engine
ii  mflib           1.0-5          Auxiliary files to run Metafont
ii  mfnfss          2.1g-1         Use additional Metafont fonts with LaTeX

xdvi runs 
	MakeTeXPK ptmb8r 432 300 'magstep(2.0)' deskjet
which ends up running
	ps2pk -X432 -e8r.enc   -a  ptmb8r.432pk

which gives a usage message and fails, because -a should be followed
by an AFMname. Dropping the -a causes ps2pk to complain that the name
couldn't be found.

The first iteration of errors from xdvi looks like this:
% xdvi autopaper
kpathsea: Running MakeTeXPK ptmb8r 432 300 magstep\(2.0\) deskjet
Running MakeTeXPK ptmb8r 432 300 magstep(2.0) deskjet
mv: ptmb8r.432pk: No such file or directory
/usr/bin/MakeTeXPK: Could not mv ptmb8r.432pk /var/spool/texmf/fonts/pk/ps2pk/pktmp.6552.
mv: pktmp.6552: No such file or directory
chmod: ptmb8r.432pk: No such file or directory
kpathsea: Appending font creation commands to missfont.log.
xdvi: Can't find font ptmb8r; using cmr10 instead at 432 dpi.

A full run of the document produces:
% cat missfont.log 
MakeTeXPK ptmb8r 432 300 magstep\(2.0\) deskjet
MakeTeXPK ptmr8r 360 300 magstep\(1.0\) deskjet
MakeTeXPK ptmri8r 360 300 magstep\(1.0\) deskjet
MakeTeXPK pcrr8r 270 300 0+270/300 deskjet
MakeTeXPK ptmb8r 360 300 magstep\(1.0\) deskjet
MakeTeXPK ptmr8r 300 300 1+0/300 deskjet
MakeTeXPK pcrr8r 300 300 1+0/300 deskjet

The style in question is the usenix-2e style, most of which is:
\if@twocolumn\else\input twocolumn.sty\fi
\usepackage{times}

plus some hacking for section and paper titles; I'll append that in
case it might help.
					_Mark_ <[email-masked]>
					Cygnus Support, Eastern USA

% usenix-2e.sty - to be used with latex2e (the new one) for USENIX.
% To use this style file, do this:
%
%    \documentclass[twocolumn]{article}
%    \usepackage{usenix-2e}
% and put {\rm ....} around the author names.
%
% $Id: usenix-2e.sty,v 1.1 1996/05/29 18:56:03 jtk Exp $
%
% The following definitions are modifications of standard article.sty
% definitions, arranged to do a better job of matching the USENIX
% guidelines.
% It will automatically select two-column mode and the Times-Roman
% font.

%
% USENIX papers are two-column.
% Times-Roman font is nice if you can get it (requires NFSS,
% which is in latex2e.

\if@twocolumn\else\input twocolumn.sty\fi
\usepackage{times}

%
% USENIX wants margins of: 7/8" side, 1" bottom, and 3/4" top.
% 0.25" gutter between columns.
% Gives active areas of 6.75" x 9.25"
%
\setlength{\textheight}{9.25in}
\setlength{\columnsep}{0.25in}
\setlength{\textwidth}{6.75in}
%\setlength{\footheight}{0.0in}
\setlength{\topmargin}{-0.25in}
\setlength{\headheight}{0.0in}
\setlength{\headsep}{0.0in}
\setlength{\evensidemargin}{-0.125in}
\setlength{\oddsidemargin}{-0.125in}

%
% Usenix wants no page numbers for submitted papers, so that they can
% number them themselves.
%
\pagestyle{empty}

%
% Usenix titles are in 14-point bold type, with no date, and with no
% change in the empty page headers.  The whol author section is 12 point
% italic--- you must use {\rm } around the actual author names to get
% them in roman.
%
\def\maketitle{\par
 \begingroup
   \renewcommand\thefootnote{\fnsymbol{footnote}}%
   \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
   \if@twocolumn
     \twocolumn[\@maketitle]%
     \else \newpage
     \global\@topnum\z@
     \@maketitle \fi\@thanks
 \endgroup
 \setcounter{footnote}{0}%
 \let\maketitle\relax
 \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}

\def\@maketitle{\newpage
 \vbox to 2.5in{
 \vspace*{\fill}
 \vskip 2em
 \begin{center}%
  {\Large\bf \@title \par}%
  \vskip 0.375in minus 0.300in
  {\large\it
   \lineskip .5em
   \begin{tabular}[t]{c}\@author
   \end{tabular}\par}%
 \end{center}%
 \par
 \vspace*{\fill}
% \vskip 1.5em
 }
}

%
% The abstract is preceded by a 12-pt bold centered heading
\def\abstract{\begin{center}%
{\large\bf \abstractname\vspace{-.5em}\vspace{\z@}}%
\end{center}}
\def\endabstract{}

%
% Main section titles are 12-pt bold.  Others can be same or smaller.
%
\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus-1ex minus
    -.2ex}{2.3ex plus.2ex}{\reset@font\large\bf}}