Discussion:
problem with MathTime Pro 2 fonts and MikTeX
Stan
2012-01-14 17:23:34 UTC
Permalink
I'm trying to install MathTime Pro 2 fonts to use with MikTeX 2.9 (using
WinEDT 6 under Windows 7). I used the instructions at
http://www.pctex.com/kb/56.html, but this didn't work. I tried to typeset
this with Plain TeX:

\input mtp2

text.

\bye


but got an error. The log file's empty, but I copied/pasted the text that
shows up at the bottom of the screen in WinEDT at the bottom of this
message. Has anybody had the same problem, or can anyone make sense of
the errors? I checked, and the tfm files are in my root directory. I
also checked another installation of MikTeX on a Windows XP computer, and
everything works fine there even though there's no file named "mt2m.cfg"
there, either.

Thanks,


Stan





Command Line: pdftex.exe "MTP2test.tex"
Startup Folder: C:\Users\Stan\Documents

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
(C:\Users\Stan\Documents\MTP2test.tex
(C:\TeX\tex\texmf\tex\plain\mtpro2\mtp2.texRunning miktex-makemf.exe...
miktex-makemf: The mt2mit source file could not be found.

Running hbf2gf.exe...


hbf2gf (CJK ver. 4.8.0)



Couldn't find `mt2m.cfg'

miktex-maketfm: No creation rule for font mt2mit.

! Font \mt2mit at 10.0pt=mt2mit at 10.0pt not loadable: Metric (TFM) file
not f
ound.
<to be read again>
\def
\FONT@ ...nt \csname #1#2\endcsname =#1#2\fi \def
\next@ {\let \next@
}\expa...

\MTPMI@ ...1\relax \PSZ@ \FONT@ {mt2mit}\nextiii@
\textfont \@ne \next@
\ske...

\MTP ...#2}\def \fMTPsize {#3}\MTPMI@ {#1}{#2}{#3}
\MTPSY@
{#1}{#2}{#3}\MTPEX...
l.2847 \MTP{10pt}{7pt}{5.5pt}

?
Vladimir Lomov
2012-01-15 04:22:28 UTC
Permalink
Hello,
Post by Stan
I'm trying to install MathTime Pro 2 fonts to use with MikTeX 2.9
(using WinEDT 6 under Windows 7). I used the instructions at
http://www.pctex.com/kb/56.html, but this didn't work. I tried to
\input mtp2
text.
\bye
but got an error. The log file's empty, but I copied/pasted the
text that shows up at the bottom of the screen in WinEDT at the
bottom of this message. Has anybody had the same problem, or can
anyone make sense of the errors? I checked, and the tfm files are
in my root directory. I also checked another installation of MikTeX
on a Windows XP computer, and everything works fine there even
though there's no file named "mt2m.cfg" there, either.
Thanks,
Stan
Use search engines, Stan. For example, google gives me these:
http://sourceforge.net/projects/miktex/forums/forum/33790/topic/4387778
http://forums.pctex.com/viewtopic.php?t=12&sid=6c02e77729f71d0a027fcb20bad31428

P.S. Did you try MT Pro 2 with LaTeX?

---
WBR, Vladimir Lomov
--
"That boy's about as sharp as a pound of wet liver"
-- Foghorn Leghorn
Stan
2012-01-15 05:51:44 UTC
Permalink
Post by Vladimir Lomov
Post by Stan
I'm trying to install MathTime Pro 2 fonts to use with MikTeX 2.9
(using WinEDT 6 under Windows 7). I used the instructions at
http://www.pctex.com/kb/56.html, but this didn't work. I tried to
\input mtp2
text.
\bye
but got an error. The log file's empty, but I copied/pasted the
text that shows up at the bottom of the screen in WinEDT at the
bottom of this message. Has anybody had the same problem, or can
anyone make sense of the errors? I checked, and the tfm files are
in my root directory. I also checked another installation of MikTeX
on a Windows XP computer, and everything works fine there even
though there's no file named "mt2m.cfg" there, either.
Thanks,
Stan
http://sourceforge.net/projects/miktex/forums/forum/33790/topic/4387778
http://forums.pctex.com/viewtopic.php?t=12&sid=6c02e77729f71d0a027fcb20bad31428
I found those pages too. Reinstalling as suggested in the first page
didn't fix the error I'm getting. (Mine's similar but not identical to
the one on the sourceforge page.)
Post by Vladimir Lomov
P.S. Did you try MT Pro 2 with LaTeX?
Yes, with no luck.

I might have found the problem, but I still don't know how to solve it. I
decided to open "updmap.cfg" in a text editor, and saw that it doesn't
have the lines from step 5 in http://www.pctex.com/kb/56.html. I searched
for other files with the same name, and found one in my "roaming" folder
under "appdata". It was created when I did step 4. It contains only the
following lines:

%% T1 font configuration settings. See the MiKTeX manual for help.
# MathTimePro II
Map mtpro2.map

It doesn't seem to matter what directory I'm in when I run the initexmf
line and the updmap line in steps 4 and 7. It's not modifying the right
copy of updmap.cfg. (Or what I think it the right copy, the one under
C:\Program Files (x86)\MikTeX\....) I can't modify that file directly in
a text editor, since I don't have permission to save to its location.
Making a copy of it in My Documents, modifying it in a text editor, and
then replacing the original with that copy didn't work. Do you know if
that's the copy that needs to be changed? I couldn't find anything in the
MikTeX manual about it.

Thanks,


Stan
Vladimir Lomov
2012-01-15 13:39:09 UTC
Permalink
Hello,
** Stan [2012-01-14 23:51:44 -0600]:
[Sorry, I don't have any copy of MT Pro 2 to give more helpful advice]
Post by Stan
Post by Vladimir Lomov
Post by Stan
I'm trying to install MathTime Pro 2 fonts to use with MikTeX 2.9
(using WinEDT 6 under Windows 7). I used the instructions at
http://www.pctex.com/kb/56.html, but this didn't work. I tried to
\input mtp2
text.
\bye
but got an error. The log file's empty, but I copied/pasted the
text that shows up at the bottom of the screen in WinEDT at the
bottom of this message. Has anybody had the same problem, or can
anyone make sense of the errors? I checked, and the tfm files are
in my root directory. I also checked another installation of MikTeX
on a Windows XP computer, and everything works fine there even
though there's no file named "mt2m.cfg" there, either.
Thanks,
Stan
http://sourceforge.net/projects/miktex/forums/forum/33790/topic/4387778
http://forums.pctex.com/viewtopic.php?t=12&sid=6c02e77729f71d0a027fcb20bad31428
I found those pages too. Reinstalling as suggested in the first
page didn't fix the error I'm getting. (Mine's similar but not
identical to the one on the sourceforge page.)
W/o minimal example (LaTeX one would be perfect) and its log generated
by pdf[la]tex it is difficult to find the source of the problem.
Post by Stan
Post by Vladimir Lomov
P.S. Did you try MT Pro 2 with LaTeX?
Yes, with no luck.
I might have found the problem, but I still don't know how to solve
it. I decided to open "updmap.cfg" in a text editor, and saw that
it doesn't have the lines from step 5 in
http://www.pctex.com/kb/56.html. I searched for other files with
the same name, and found one in my "roaming" folder under "appdata".
It was created when I did step 4. It contains only the following
%% T1 font configuration settings. See the MiKTeX manual for help.
# MathTimePro II
Map mtpro2.map
I don't have Windows machine and MiKTeX right now at hand to check but
"roaming" directory seems ok.
Post by Stan
It doesn't seem to matter what directory I'm in when I run the
initexmf line and the updmap line in steps 4 and 7. It's not
modifying the right copy of updmap.cfg. (Or what I think it the
right copy, the one under C:\Program Files (x86)\MikTeX\....) I
can't modify that file directly in a text editor, since I don't have
permission to save to its location. Making a copy of it in My
Documents, modifying it in a text editor, and then replacing the
original with that copy didn't work. Do you know if that's the copy
that needs to be changed? I couldn't find anything in the MikTeX
manual about it.
Try to run
C:\> initexmf --mkmaps
C:\> updmap

The first command should merge all updmap.cfg files into one, the second
command should generate file that pdflatex of dvips uses to produce pdf
or ps file.

---
WBR, Vladimir Lomov
--
There never was a good war or a bad peace.
-- B. Franklin
Stan
2012-01-16 02:14:24 UTC
Permalink
Post by Vladimir Lomov
Hello,
[Sorry, I don't have any copy of MT Pro 2 to give more helpful advice]
Post by Stan
Post by Vladimir Lomov
Post by Stan
I'm trying to install MathTime Pro 2 fonts to use with MikTeX 2.9
(using WinEDT 6 under Windows 7). I used the instructions at
http://www.pctex.com/kb/56.html, but this didn't work. I tried to
\input mtp2
text.
\bye
but got an error. The log file's empty, but I copied/pasted the
text that shows up at the bottom of the screen in WinEDT at the
bottom of this message. Has anybody had the same problem, or can
anyone make sense of the errors? I checked, and the tfm files are
in my root directory. I also checked another installation of MikTeX
on a Windows XP computer, and everything works fine there even
though there's no file named "mt2m.cfg" there, either.
Thanks,
Stan
http://sourceforge.net/projects/miktex/forums/forum/33790/topic/4387778
http://forums.pctex.com/viewtopic.php?t=12&sid=6c02e77729f71d0a027fcb20bad31428
I found those pages too. Reinstalling as suggested in the first
page didn't fix the error I'm getting. (Mine's similar but not
identical to the one on the sourceforge page.)
W/o minimal example (LaTeX one would be perfect) and its log generated
by pdf[la]tex it is difficult to find the source of the problem.
The example from my original email is the smallest I used, but it doesn't
even get far enough to put anything in the log file. A log file is
created, but it's empty.
Post by Vladimir Lomov
Post by Stan
Post by Vladimir Lomov
P.S. Did you try MT Pro 2 with LaTeX?
Yes, with no luck.
I might have found the problem, but I still don't know how to solve
it. I decided to open "updmap.cfg" in a text editor, and saw that
it doesn't have the lines from step 5 in
http://www.pctex.com/kb/56.html. I searched for other files with
the same name, and found one in my "roaming" folder under "appdata".
It was created when I did step 4. It contains only the following
%% T1 font configuration settings. See the MiKTeX manual for help.
# MathTimePro II
Map mtpro2.map
I don't have Windows machine and MiKTeX right now at hand to check but
"roaming" directory seems ok.
Post by Stan
It doesn't seem to matter what directory I'm in when I run the
initexmf line and the updmap line in steps 4 and 7. It's not
modifying the right copy of updmap.cfg. (Or what I think it the
right copy, the one under C:\Program Files (x86)\MikTeX\....) I
can't modify that file directly in a text editor, since I don't have
permission to save to its location. Making a copy of it in My
Documents, modifying it in a text editor, and then replacing the
original with that copy didn't work. Do you know if that's the copy
that needs to be changed? I couldn't find anything in the MikTeX
manual about it.
Try to run
C:\> initexmf --mkmaps
C:\> updmap
The first command should merge all updmap.cfg files into one, the second
command should generate file that pdflatex of dvips uses to produce pdf
or ps file.
No luck. Could there be some necessary step that the instructions take
for granted? I've been refreshing the File Name Database, for example,
each time I try this, which is not stated anywhere in the steps. (I'm not
actually sure that's required after doing it once after moving the mtp2
files into my local directory, but I've been doing it each time just in
case.) I wonder whether omitting something like that is stopping the
"real" copy of updmap.cfg from being modified.


Thanks,

Stan
Vladimir Lomov
2012-01-16 09:18:18 UTC
Permalink
Hello,
On Sun, 15 Jan 2012 07:39:09 -0600, Vladimir Lomov
Post by Vladimir Lomov
Post by Stan
I'm trying to install MathTime Pro 2 fonts to use with MikTeX 2.9
(using WinEDT 6 under Windows 7). I used the instructions at
http://www.pctex.com/kb/56.html, but this didn't work. I tried to
\input mtp2
text.
\bye
but got an error. The log file's empty, but I copied/pasted the
text that shows up at the bottom of the screen in WinEDT at the
bottom of this message. Has anybody had the same problem, or can
anyone make sense of the errors? I checked, and the tfm files are
in my root directory. I also checked another installation of MikTeX
on a Windows XP computer, and everything works fine there even
though there's no file named "mt2m.cfg" there, either.
Post by Vladimir Lomov
http://sourceforge.net/projects/miktex/forums/forum/33790/topic/4387778
http://forums.pctex.com/viewtopic.php?t=12&sid=6c02e77729f71d0a027fcb20bad31428
I found those pages too. Reinstalling as suggested in the first
page didn't fix the error I'm getting. (Mine's similar but not
identical to the one on the sourceforge page.)
W/o minimal example (LaTeX one would be perfect) and its log generated
by pdf[la]tex it is difficult to find the source of the problem.
The example from my original email is the smallest I used, but it
doesn't even get far enough to put anything in the log file. A log
file is created, but it's empty.
I meant LaTeX one.
Post by Vladimir Lomov
Post by Stan
Post by Vladimir Lomov
P.S. Did you try MT Pro 2 with LaTeX?
Yes, with no luck.
I might have found the problem, but I still don't know how to solve
it. I decided to open "updmap.cfg" in a text editor, and saw that
it doesn't have the lines from step 5 in
http://www.pctex.com/kb/56.html. I searched for other files with
the same name, and found one in my "roaming" folder under "appdata".
It was created when I did step 4. It contains only the following
%% T1 font configuration settings. See the MiKTeX manual for help.
# MathTimePro II
Map mtpro2.map
I don't have Windows machine and MiKTeX right now at hand to check but
"roaming" directory seems ok.
Post by Stan
It doesn't seem to matter what directory I'm in when I run the
initexmf line and the updmap line in steps 4 and 7. It's not
modifying the right copy of updmap.cfg. (Or what I think it the
right copy, the one under C:\Program Files (x86)\MikTeX\....) I
can't modify that file directly in a text editor, since I don't have
permission to save to its location. Making a copy of it in My
Documents, modifying it in a text editor, and then replacing the
original with that copy didn't work. Do you know if that's the copy
that needs to be changed? I couldn't find anything in the MikTeX
manual about it.
Try to run
C:\> initexmf --mkmaps
C:\> updmap
The first command should merge all updmap.cfg files into one, the second
command should generate file that pdflatex of dvips uses to produce pdf
or ps file.
No luck. Could there be some necessary step that the instructions
take for granted? I've been refreshing the File Name Database, for
example, each time I try this, which is not stated anywhere in the
steps. (I'm not actually sure that's required after doing it once
after moving the mtp2 files into my local directory, but I've been
doing it each time just in case.) I wonder whether omitting
something like that is stopping the "real" copy of updmap.cfg from
being modified.
I should asked you eariler: what TeX distribution do you use? MiKTeX?
TeX Live?

Could you LIST the content of the archive with MT Pro 2? For example, if
'mtpro2.zip' is archive with MT Pro 2 files unzip them and run in
command line
C:\Temp\mtpro2> dir

Where do you unpack the archive, does your TeX distribution knows where
to search for that files? Run
C:\> kpsewhich [sty file from archive]
according to some PDFs this is 'mtpro2.sty', kpsewhich command provided
by both MiKTeX and TeX Live.

Minimal LaTeX example:

<example file="ex.ltx">
\documentclass{article}
\usepackage{mtpro2}

\begin{document}
This is example.

The great formula $\exp^{\imath x}=\cos{x}+\imath\sin{x}$.

\end{document}
</example>

Run:
C:\Temp\test>latex -interaction=nonstopmode ex.ltx

P.S. I suspect that this LaTeX file could fail with 'File .. not found' or
similar message. This would mean that tex don't find needed file and MT
Pro 2 is installed incorrectly.

---
WBR, Vladimir Lomov
--
The meta-Turing test counts a thing as intelligent if it seeks to
devise and apply Turing tests to objects of its own creation.
-- Lew Mammel, Jr.
Stan
2012-01-16 19:13:13 UTC
Permalink
Post by Vladimir Lomov
Hello,
On Sun, 15 Jan 2012 07:39:09 -0600, Vladimir Lomov
Post by Vladimir Lomov
Post by Stan
I'm trying to install MathTime Pro 2 fonts to use with MikTeX 2.9
(using WinEDT 6 under Windows 7). I used the instructions at
http://www.pctex.com/kb/56.html, but this didn't work. I tried to
\input mtp2
text.
\bye
but got an error. The log file's empty, but I copied/pasted the
text that shows up at the bottom of the screen in WinEDT at the
bottom of this message. Has anybody had the same problem, or can
anyone make sense of the errors? I checked, and the tfm files are
in my root directory. I also checked another installation of MikTeX
on a Windows XP computer, and everything works fine there even
though there's no file named "mt2m.cfg" there, either.
Try to run
C:\> initexmf --mkmaps
C:\> updmap
The first command should merge all updmap.cfg files into one, the second
command should generate file that pdflatex of dvips uses to produce pdf
or ps file.
No luck. Could there be some necessary step that the instructions
take for granted? I've been refreshing the File Name Database, for
example, each time I try this, which is not stated anywhere in the
steps. (I'm not actually sure that's required after doing it once
after moving the mtp2 files into my local directory, but I've been
doing it each time just in case.) I wonder whether omitting
something like that is stopping the "real" copy of updmap.cfg from
being modified.
I should asked you eariler: what TeX distribution do you use? MiKTeX?
TeX Live?
I'm using MikTeX 2.9.
Post by Vladimir Lomov
Could you LIST the content of the archive with MT Pro 2? For example, if
'mtpro2.zip' is archive with MT Pro 2 files unzip them and run in
command line
C:\Temp\mtpro2> dir
I found "dir /s /b > print.txt" online as a way to print the file names to
a file. (attached)
Post by Vladimir Lomov
Where do you unpack the archive, does your TeX distribution knows where
to search for that files? Run
C:\> kpsewhich [sty file from archive]
according to some PDFs this is 'mtpro2.sty', kpsewhich command provided
by both MiKTeX and TeX Live.
I ran this, and the line

C:/TeX/tex/texmf/tex/latex/mtpro2/mtpro2.sty

appeared. That's probably good?
Post by Vladimir Lomov
<example file="ex.ltx">
\documentclass{article}
\usepackage{mtpro2}
\begin{document}
This is example.
The great formula $\exp^{\imath x}=\cos{x}+\imath\sin{x}$.
\end{document}
</example>
C:\Temp\test>latex -interaction=nonstopmode ex.ltx
P.S. I suspect that this LaTeX file could fail with 'File .. not found' or
similar message. This would mean that tex don't find needed file and MT
Pro 2 is installed incorrectly.
I ran your example, and got a log file (attached). The stuff that
appeared in the terminal window while it was running looks like what
appeared in the window at the bottom of WinEDT when I ran my original
Plain TeX file. One of the lines in the terminal output was "Couldn't
find `mt2e.cfg'". I searched myself for that file in my local folder and
the MikTeX folder, and the local and roaming appdata folders, and didn't
find it. Is this something that's supposed to be created when running
updmap?


Thanks,


Stan
Vladimir Lomov
2012-01-17 01:28:17 UTC
Permalink
Hello,
** Stan [2012-01-16 13:13:13 -0600]:
[...]
Post by Stan
Post by Vladimir Lomov
I should asked you eariler: what TeX distribution do you use? MiKTeX?
TeX Live?
I'm using MikTeX 2.9.
Good.
Post by Stan
Post by Vladimir Lomov
Could you LIST the content of the archive with MT Pro 2? For example, if
'mtpro2.zip' is archive with MT Pro 2 files unzip them and run in
command line
C:\Temp\mtpro2> dir
I found "dir /s /b > print.txt" online as a way to print the file
names to a file. (attached)
Thanks.
Post by Stan
Post by Vladimir Lomov
Where do you unpack the archive, does your TeX distribution knows where
to search for that files? Run
C:\> kpsewhich [sty file from archive]
according to some PDFs this is 'mtpro2.sty', kpsewhich command provided
by both MiKTeX and TeX Live.
I ran this, and the line
C:/TeX/tex/texmf/tex/latex/mtpro2/mtpro2.sty
appeared. That's probably good?
Yes, this means that latex finds the file.
Post by Stan
Post by Vladimir Lomov
<example file="ex.ltx">
\documentclass{article}
\usepackage{mtpro2}
\begin{document}
This is example.
The great formula $\exp^{\imath x}=\cos{x}+\imath\sin{x}$.
\end{document}
</example>
C:\Temp\test>latex -interaction=nonstopmode ex.ltx
P.S. I suspect that this LaTeX file could fail with 'File .. not found' or
similar message. This would mean that tex don't find needed file and MT
Pro 2 is installed incorrectly.
I ran your example, and got a log file (attached).
I looked into it.
Now strange thing: latex finds style file but it can't
find font files (TFM). According to 'print.txt' they in distribution,
could you check the following:
1. make sure that you copied distribution files in proper place;
the above 'kpsewhich' command shows that 'mtpro2.sty' file in
'C:/TeX/tex/texmf/tex/latex/mtpro2'
Is 'C:/TeX/tex/texmf' (exactly this directory!) in MiKTeX search path
(listed under tab 'Roots' in settings app)?
2. make sure that there are TFM files in 'C:/TeX/tex/texmf/fonts/tfm/pctex/mtpro2'

In any case try the following:
1. Remove 'C:/TeX...' directory from 'Roots' (if it doesn't contain
other essential TeX/LaTeX files), remove only from the LIST!, not from
DISK!
2.
a) Extract distribution archive to C:\Temp\mtp2 as you do eariler.
b) Add directory 'C:\Temp\mtp2\texmf' to the list of 'Roots'.
c) Refresh file name database (FNDB),
d) add 'map' file to 'updmap.cfg': run
initexmf --edit-config-file updmap
and add line 'Map mtpro2.map' to it,
e) run
initexmf --mkmaps
3. Run latex on example file. Now it should find TFM files (font files).

If this would work then you improperly installed MT Pro 2 (I suspect that
latex from MiKTeX finds sty file even in wrong place but font
files must be in proper place).
Post by Stan
The stuff that
appeared in the terminal window while it was running looks like what
appeared in the window at the bottom of WinEDT when I ran my
original Plain TeX file. One of the lines in the terminal output
was "Couldn't find `mt2e.cfg'". I searched myself for that file in
my local folder and the MikTeX folder, and the local and roaming
appdata folders, and didn't find it. Is this something that's
supposed to be created when running updmap?
[...print.txt...]

---
WBR, Vladimir Lomov
--
Alcoholics Anonymous is when you get to drink under someone else's name.
Stan
2012-01-20 04:53:29 UTC
Permalink
Post by Vladimir Lomov
Hello,
[...]
Post by Stan
Post by Vladimir Lomov
I should asked you eariler: what TeX distribution do you use? MiKTeX?
TeX Live?
I'm using MikTeX 2.9.
Good.
[...]
Post by Vladimir Lomov
Post by Stan
I ran your example, and got a log file (attached).
I looked into it.
Now strange thing: latex finds style file but it can't
find font files (TFM). According to 'print.txt' they in distribution,
1. make sure that you copied distribution files in proper place;
the above 'kpsewhich' command shows that 'mtpro2.sty' file in
'C:/TeX/tex/texmf/tex/latex/mtpro2'
Is 'C:/TeX/tex/texmf' (exactly this directory!) in MiKTeX search path
(listed under tab 'Roots' in settings app)?
I've got "C:\TeX" listed there. I'm assuming that's okay since that
should include all the directories under it.
Post by Vladimir Lomov
2. make sure that there are TFM files in
'C:/TeX/tex/texmf/fonts/tfm/pctex/mtpro2'
They're there.
Post by Vladimir Lomov
1. Remove 'C:/TeX...' directory from 'Roots' (if it doesn't contain
other essential TeX/LaTeX files), remove only from the LIST!, not from
DISK!
2.
a) Extract distribution archive to C:\Temp\mtp2 as you do eariler.
b) Add directory 'C:\Temp\mtp2\texmf' to the list of 'Roots'.
c) Refresh file name database (FNDB),
d) add 'map' file to 'updmap.cfg': run
initexmf --edit-config-file updmap
and add line 'Map mtpro2.map' to it,
e) run
initexmf --mkmaps
3. Run latex on example file. Now it should find TFM files (font files).
If this would work then you improperly installed MT Pro 2 (I suspect that
latex from MiKTeX finds sty file even in wrong place but font
files must be in proper place).
It worked, but not entirely as I thought it would. I attached the TeX
file, and the log and pdf. The \exp, \cos, and \sin are all in Computer
Modern, but the x and dotless i are in mtp2. I haven't set up mtp2 in a
while - obviously - but I don't remember any special commands needed for
making stuff like \sin typeset in mtp2. Does the log file indicate why
that's happening?



Thanks,

Stan
Vladimir Lomov
2012-01-20 09:02:52 UTC
Permalink
Hello,
** Stan [2012-01-19 22:53:29 -0600]:

[...]
Post by Stan
Post by Vladimir Lomov
Post by Stan
I ran your example, and got a log file (attached).
I looked into it.
Now strange thing: latex finds style file but it can't
find font files (TFM). According to 'print.txt' they in distribution,
1. make sure that you copied distribution files in proper place;
the above 'kpsewhich' command shows that 'mtpro2.sty' file in
'C:/TeX/tex/texmf/tex/latex/mtpro2'
Is 'C:/TeX/tex/texmf' (exactly this directory!) in MiKTeX search path
(listed under tab 'Roots' in settings app)?
I've got "C:\TeX" listed there. I'm assuming that's okay since that
should include all the directories under it.
As I said, a LaTeX engine will find sty file even if its location is wrong
(somewhere under 'C:\TeX' if the path is listed under 'Roots'). This is not a
bug, it is a feature. Font files are another beasts, dvips or font part
of pdflatex engine will search them only in specific directories.
Post by Stan
Post by Vladimir Lomov
2. make sure that there are TFM files in
'C:/TeX/tex/texmf/fonts/tfm/pctex/mtpro2'
They're there.
Post by Vladimir Lomov
1. Remove 'C:/TeX...' directory from 'Roots' (if it doesn't contain
other essential TeX/LaTeX files), remove only from the LIST!, not from
DISK!
2.
a) Extract distribution archive to C:\Temp\mtp2 as you do eariler.
b) Add directory 'C:\Temp\mtp2\texmf' to the list of 'Roots'.
c) Refresh file name database (FNDB),
d) add 'map' file to 'updmap.cfg': run
initexmf --edit-config-file updmap
and add line 'Map mtpro2.map' to it,
e) run
initexmf --mkmaps
3. Run latex on example file. Now it should find TFM files (font files).
If this would work then you improperly installed MT Pro 2 (I suspect that
latex from MiKTeX finds sty file even in wrong place but font
files must be in proper place).
It worked,
and as I said that means you have improperly installed MT Pro 2 distribution.
Now you have to install them correctly but afraid it could be painful.

If you wish to continue you have to be careful.

1. As you have installed MT Pro 2 manually you have to manually remove it.
Accoring to print.txt (archive listing) there are two directories in distribution:
templates/
and
texmf/
and file 'EULA*.txt'.

AFAIU, you extract content of the archive into
C:/TeX/tex
so there are
C:/TeX/tex/templates
and
C:/TeX/tex/texmf
directories.

If before installation there were no such directories under 'C:/TeX/tex' simply
remove them.

2. Extract context of the archive into some temporary place, for example
in
C:/Temp/mtp2
Then copy all directories under
C:/Temp/mtp2/texmf
directly into[1]
C:/TeX
For example, file 'mtpro2.sty' (package 'mtpro2') must have the following path:
C:/TeX/tex/latex/mtpro2/mtpro2.sty
and TFM fonts must be in directory
C:/TeX/fonts/tfm/pctex/mtpro2/

[1] May be you already notice that 'C:/TeX' has special structure, there
are directories 'doc', 'fonts', 'tex' and etc. If not, take a look into
directory in which MiKTeX was installed (usually 'C:/Program Files/MiKTeX')
to get idea.

Now do steps c), d) and e).

The only left directory is 'templates'. You can copy it to
C:/TeX/doc/latex/mtpro2
(you have to create this directory of course).
Post by Stan
but not entirely as I thought it would. I attached the
TeX file, and the log and pdf. The \exp, \cos, and \sin are all in
Computer Modern, but the x and dotless i are in mtp2. I haven't set
up mtp2 in a while - obviously - but I don't remember any special
commands needed for making stuff like \sin typeset in mtp2. Does
the log file indicate why that's happening?
Do you see 'testMTP2LaTeX.pdf' file from distribution? It is in
'texmf/doc/fonts/mtpro2'. I think you find answer on your issue.

---
WBR, Vladimir Lomov
--
May you do Good Magic with Perl.
-- Larry Wall's blessing
Stan
2012-01-21 19:33:23 UTC
Permalink
On Fri, 20 Jan 2012 03:02:52 -0600, Vladimir Lomov <***@gmail.com>
wrote:

[...]
Post by Vladimir Lomov
Post by Stan
Post by Vladimir Lomov
1. Remove 'C:/TeX...' directory from 'Roots' (if it doesn't contain
other essential TeX/LaTeX files), remove only from the LIST!, not from
DISK!
2.
a) Extract distribution archive to C:\Temp\mtp2 as you do eariler.
b) Add directory 'C:\Temp\mtp2\texmf' to the list of 'Roots'.
c) Refresh file name database (FNDB),
d) add 'map' file to 'updmap.cfg': run
initexmf --edit-config-file updmap
and add line 'Map mtpro2.map' to it,
e) run
initexmf --mkmaps
3. Run latex on example file. Now it should find TFM files (font files).
[...]
Post by Vladimir Lomov
Now you have to install them correctly but afraid it could be painful.
If you wish to continue you have to be careful.
1. As you have installed MT Pro 2 manually you have to manually remove it.
templates/
and
texmf/
and file 'EULA*.txt'.
AFAIU, you extract content of the archive into
C:/TeX/tex
so there are
C:/TeX/tex/templates
and
C:/TeX/tex/texmf
directories.
If before installation there were no such directories under 'C:/TeX/tex' simply
remove them.
2. Extract context of the archive into some temporary place, for example
in
C:/Temp/mtp2
Then copy all directories under
C:/Temp/mtp2/texmf
directly into[1]
C:/TeX
C:/TeX/tex/latex/mtpro2/mtpro2.sty
and TFM fonts must be in directory
C:/TeX/fonts/tfm/pctex/mtpro2/
[1] May be you already notice that 'C:/TeX' has special structure, there
are directories 'doc', 'fonts', 'tex' and etc. If not, take a look into
directory in which MiKTeX was installed (usually 'C:/Program
Files/MiKTeX')
to get idea.
Now do steps c), d) and e).
The only left directory is 'templates'. You can copy it to
C:/TeX/doc/latex/mtpro2
(you have to create this directory of course).
This worked perfectly as far as I can see.
Post by Vladimir Lomov
Post by Stan
but not entirely as I thought it would. I attached the
TeX file, and the log and pdf. The \exp, \cos, and \sin are all in
Computer Modern, but the x and dotless i are in mtp2. I haven't set
up mtp2 in a while - obviously - but I don't remember any special
commands needed for making stuff like \sin typeset in mtp2. Does
the log file indicate why that's happening?
Do you see 'testMTP2LaTeX.pdf' file from distribution? It is in
'texmf/doc/fonts/mtpro2'. I think you find answer on your issue.
This was just a careless mistake of mine. (Why did I think that \rm would
redefine itself?)


Thanks greatly for all the help,



Stan

Reinhard Kotucha
2012-01-16 23:46:34 UTC
Permalink
Post by Vladimir Lomov
Post by Stan
The example from my original email is the smallest I used, but it
doesn't even get far enough to put anything in the log file. A log
file is created, but it's empty.
I meant LaTeX one.
To be a little bit more verbose than Vladimir: If you run

latex foo.tex

you get a file called "foo.log" in the current working directory.
This is the file we need. You can also inspect it yourself. Maybe
you find something suspicious. If not, don't hesitate to send us the
file.

Regards,
Reinhard
--
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:***@web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------
Loading...