Y&Y and MiKTeX installation of MTPro
Posted: Mon Mar 20, 2006 12:58 pm
I just downloaded mtpro2 and tested it with MiKTeX and YandY TeX.
Below is a description of my installation procedure and some
comments. I use WindoXP Pro SP2, Y&Y TeX 2.2.4, DVIWindo 2.2.8,
MikTeX 2.4.1461
<localtexmf> for MiKTeX is E:\localtexmf on my system. I also
keep all additional and modified files for YandY TeX there for
easier maintenance of both systems.
I unpacked the mtpro2 ZIP file in <localtexmf>.
A) MikTeX installation:
-----------------------
1. edited <localtexmf>/miktex/config/updmap.cfg: added the line
Map mtpro2.map
in the "Map files" section.
2. ran
initexmf --update-fndb
initexmf --mkmaps
3. compiled a 50-page document with about 250 equations with
MiKTeX using
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{times}
\usepackage[subscriptcorrection,slantedGreek,nofontinfo,boldalphabet]{mtpro2}
\usepackage{bm}
and a number of other packages.
Received an error:
! LaTeX Error: Command \Bbbk already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation. Type H
<return> for immediate help.
...
l.1512 \newcommand{\Bbbk}{\mathbb{k}}
After commenting out \usepackage{amssymb} the document compiled
without errors. Yap created the PK fonts properly and displayed the
DVI. pdflatex worked. dvips worked. Some Math symbols were missing, see below under B.5.
B) Y&Y installation:
--------------------
1. Same as step A.1
2. edited dviwindo.ini (in C:\windows):
- added
E:\localtexmf\fonts\\
to the definition of the variable TEXNANSI
- added
E:\localtexmf\tex\latex\\
to the definition of the variable LATEX
3. Installed the fonts. In contrast to instructions that I have seen elsewhere, on my system it is necessary to install the fonts by opening
c:\windows\fonts in an explorer window and choosing File ->
Install New Font ... Needless to say that this should be done while
being logged on as a system administrator.
If I just copy the pfm and pfb files to c:\windows\fonts
DVIWindo is not able to use them and it is difficult to uninstall
the fonts. I had the same issues when I installed Y&Y TeX.
- copied <localtexmf>/fonts/type1/pctex/mtpro2/*.pfb to c:\temp
- copied <localtexmf>/fonts/pfm/pctex/mtpro2/*.pfm to c:\temp
- rebooted the system (otherwise, strange things can happen. Today,
I was not able to install the fonts without the reboot because
WINDOWS insisted that the files were in use. Must be some file-
indexing process or something similar.)
- Opened an Explorer window, went to c:\windows\fonts, chose menu
item
File -> Install New Font ...,
chose c:\temp as the location, selected all fonts,
selected "Copy Fonts to Font Folder", clicked OK.
4. Compiled the same file as under A.3 with Y&Y latex. The text font
that showed up in the DVI file was computer modern. I had to add
\usepackage[LY1]{fontenc}
before loading the times and mtpro2 packages.
Then I got same result as with MiKTeX. Using LY1 encoding works fine
with MiKTeX, too, so I can use the same latex files with both Y&Y and
MiKTeX. DVIPSONE worked fine.
5. Differences, warnings, etc.
- I use the commands
\newcommand{\mat}[1]{\bm{\mathsf{#1}}}
\newcommand{\matomega}{\mat{\Omega}}
in the document. This dates back to the old days when I was still using CM in order
to typeset all matrices in boldface sans serif CM. With Y&Y MathTime as well
as MTPro (MiKTeX) I get a boldface Omega. from \matomega. With MTProII, I don't get
anything if I use the "slantedGreek" option. The log file shows warnings such as
! Missing character: There is no
(10) in font hvb!
\bm@mchoice ...}}{\hbox {#1$\scriptstyle \m@th #4$
}}{\hbox {#1$\scriptscript...
tddft.tex(1410) : ~~~~}
If I don't use "slantedGreek" I don't get the warnings but I get quotation
marks instead of a boldface Omega.
- This was already noted by someone else, I believe: Without using
the subscriptcorrection option for MTProII (also MTPro), the spacing between
a character and following sub/superscripts seems to be excessively large.
Jochen
Below is a description of my installation procedure and some
comments. I use WindoXP Pro SP2, Y&Y TeX 2.2.4, DVIWindo 2.2.8,
MikTeX 2.4.1461
<localtexmf> for MiKTeX is E:\localtexmf on my system. I also
keep all additional and modified files for YandY TeX there for
easier maintenance of both systems.
I unpacked the mtpro2 ZIP file in <localtexmf>.
A) MikTeX installation:
-----------------------
1. edited <localtexmf>/miktex/config/updmap.cfg: added the line
Map mtpro2.map
in the "Map files" section.
2. ran
initexmf --update-fndb
initexmf --mkmaps
3. compiled a 50-page document with about 250 equations with
MiKTeX using
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{times}
\usepackage[subscriptcorrection,slantedGreek,nofontinfo,boldalphabet]{mtpro2}
\usepackage{bm}
and a number of other packages.
Received an error:
! LaTeX Error: Command \Bbbk already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation. Type H
<return> for immediate help.
...
l.1512 \newcommand{\Bbbk}{\mathbb{k}}
After commenting out \usepackage{amssymb} the document compiled
without errors. Yap created the PK fonts properly and displayed the
DVI. pdflatex worked. dvips worked. Some Math symbols were missing, see below under B.5.
B) Y&Y installation:
--------------------
1. Same as step A.1
2. edited dviwindo.ini (in C:\windows):
- added
E:\localtexmf\fonts\\
to the definition of the variable TEXNANSI
- added
E:\localtexmf\tex\latex\\
to the definition of the variable LATEX
3. Installed the fonts. In contrast to instructions that I have seen elsewhere, on my system it is necessary to install the fonts by opening
c:\windows\fonts in an explorer window and choosing File ->
Install New Font ... Needless to say that this should be done while
being logged on as a system administrator.
If I just copy the pfm and pfb files to c:\windows\fonts
DVIWindo is not able to use them and it is difficult to uninstall
the fonts. I had the same issues when I installed Y&Y TeX.
- copied <localtexmf>/fonts/type1/pctex/mtpro2/*.pfb to c:\temp
- copied <localtexmf>/fonts/pfm/pctex/mtpro2/*.pfm to c:\temp
- rebooted the system (otherwise, strange things can happen. Today,
I was not able to install the fonts without the reboot because
WINDOWS insisted that the files were in use. Must be some file-
indexing process or something similar.)
- Opened an Explorer window, went to c:\windows\fonts, chose menu
item
File -> Install New Font ...,
chose c:\temp as the location, selected all fonts,
selected "Copy Fonts to Font Folder", clicked OK.
4. Compiled the same file as under A.3 with Y&Y latex. The text font
that showed up in the DVI file was computer modern. I had to add
\usepackage[LY1]{fontenc}
before loading the times and mtpro2 packages.
Then I got same result as with MiKTeX. Using LY1 encoding works fine
with MiKTeX, too, so I can use the same latex files with both Y&Y and
MiKTeX. DVIPSONE worked fine.
5. Differences, warnings, etc.
- I use the commands
\newcommand{\mat}[1]{\bm{\mathsf{#1}}}
\newcommand{\matomega}{\mat{\Omega}}
in the document. This dates back to the old days when I was still using CM in order
to typeset all matrices in boldface sans serif CM. With Y&Y MathTime as well
as MTPro (MiKTeX) I get a boldface Omega. from \matomega. With MTProII, I don't get
anything if I use the "slantedGreek" option. The log file shows warnings such as
! Missing character: There is no
(10) in font hvb!
\bm@mchoice ...}}{\hbox {#1$\scriptstyle \m@th #4$
}}{\hbox {#1$\scriptscript...
tddft.tex(1410) : ~~~~}
If I don't use "slantedGreek" I don't get the warnings but I get quotation
marks instead of a boldface Omega.
- This was already noted by someone else, I believe: Without using
the subscriptcorrection option for MTProII (also MTPro), the spacing between
a character and following sub/superscripts seems to be excessively large.
Jochen