 |
PCTeX Talk Discussions on TeX, LaTeX, fonts, and typesetting
|
View previous topic :: View next topic |
Author |
Message |
gvokalek
Joined: 09 Mar 2006 Posts: 3 Location: Australia
|
Posted: Tue Mar 14, 2006 10:14 pm Post subject: MTPRO2 with Y&Y - a draft installation guide |
|
|
I've drafted installation instructions for MTPRO2 when used with
Y&Y tex.
I'm not sure if this BB will bugger-up the format, and I don't see a button for file attachments, so please download it from:
http://www.causalproductions.com/JOBS/MTPRO2/mtpro2_yy_install.txt
I will now try to insert it here, so let's see what happens!
Please feel free to improve it.
george.
Code: |
Installation notes for MTPRO2 fonts on Y&Y-tex systems
DRAFT 1 date 20060315
by George Vokalek, george.vokalek@causalproductions.com
These notes were written based on the installation of the MathTimes
Pro II fonts on a PC so that they can be used by Y&Y Tex.
The installation is mostly done using the command line. I assume that
you already have a working Y&Y Tex installation.
The platform used for my installation is as follows:
Y&Y TeX 2.2.3 2001 May 22 (yandytex.exe)
DVIWindo (32) Previewer 2.2.6 (dviwindo.exe)
DVIPSONE 2.2.6 2001 Jun 23 (dvipsone.exe)
Adobe Type Manager Light 4.1
Platform: Win2k SP4 on P4 with 512MB
-----------------
STEP 1: unpack the MTP2FONTS.ZIP file to preserve the directory structure.
You should unpack them in a temporary directory.
eg:
mkdir c:\junk
pkzipc -ext -dir MTP2FONTS.ZIP c:\junk
under c:\junk you will now see the following directories:
templates
texmf\doc\fonts\mtpro2
texmf\dvips\mtpro2
texmf\fonts\map\dvips\mtpro2
texmf\fonts\pfm\pctex\mtpro2
texmf\fonts\tfm\pctex\mtpro2
texmf\fonts\type1\pctex\mtpro2
texmf\source\latex\mtpro2
texmf\tex\latex\mtpro2
texmf\tex\plain\mtpro2
texmf\tpm\package
-----------------
STEP 2: run the Y&Y dvi previewer, called DVIWindo.
Using DVIWindo, you will check the paths in your yytex
environment variables, to work out where font files must be copied.
-----------------
STEP 3: install TFM files.
the TFM files are the tex font metric files which are used
when you run the yandytex.exe program.
select DVIWindo menu item PREFERENCES->ENVIRONMENT->TEXFONTS
You will see a dialog which shows your current paths for TFM
files.
mine says "C:\BIN\YANDYTEX\FONTS\TFM\NONTEXT\;C:\BIN\YANDYTEX\FONTS\TFM\TEXNANSI\"
The 2nd item in the string is path under which we want to install
the TFM files.
eg on my PC it is "C:\BIN\YANDYTEX\FONTS\TFM\TEXNANSI\".
You need to use this path in the following commands.
I typed:
mkdir <texfonts>\MTPRO2
copy c:\junk\texmf\fonts\tfm\pctex\mtpro2\*.tfm <texfonts>\MTPRO2\
(replace <texfonts> with the path you identified above.)
-----------------
STEP 4: install PFB files.
(Note: I use ADOBE TYPE MANAGER to manage my type1 fonts)
the PFB files are the type1 font binary data files. These files
are used by dvipsone.exe and dviwindo.exe. Note that
dvipsone.exe does NOT need the *.pfm files (see next step)
but dviwindo.exe does need the *.pfm files.
select DVIWindo menu item PREFERENCES->ENVIRONMENT->PSFONTS
You will see a dialog which shows your current paths for TFM
files.
mine says "C:\PSFONTS"
You need to use this path in the following command.
I typed:
copy c:\junk\texmf\fonts\type1\pctex\mtpro2\*.pfb <psfonts>\
(replace <psfonts> with the path you identified above.)
-----------------
STEP 5: install PFM files.
These files are the adobe font metric files, and along with
the *.pfb files are essential if you want to display the MTPRO2
fonts in windows applications such as dviwindo.exe
On systems using Adobe Type Manager, the .pfm files are kept
in subdirectory C:\PSFONTS\PFM.
You need to use this path in the following commands.
You may need to adjust the path name depending on your findings
in STEP 4 above.
I typed:
copy c:\junk\texmf\fonts\pfm\pctex\mtpro2\* <psfonts>\pfm\
(replace <psfonts> with the path you identified in STEP 4.)
-----------------
STEP 6: make the fonts known to windows
Installing the .pfb (and .pfm) files in c:\psfonts is sufficient
if you only want to print your documents using dvipsone.exe, but
if you want to preview them onscreen then you need to make the
fonts known to windows.
I use Adobe Type Manager Light which can be freely downloaded from the
Adobe WWW Site at:
http://www.adobe.com/support/downloads/product.jsp?product=15&platform=Windows
Windows 2000 apparently can use Type1 fonts without Adobe Type Manager,
but I have not tried it.
Open the ATM application and point it at directory
C:\PSFONTS\PFM
or your equivalent path. Highlight all MT2* files and hit the ADD
button. The MTPRO2 fonts should now be visible to Windows.
The MTPRO2 fonts should also now be available in all applications,
such as wordprocessors and DVIWindo. Close DVIWindo.exe and run it again,
to ensure it is aware of all fonts on the system.
-----------------
STEP 7: install style files
select DVIWindo menu item PREFERENCES->ENVIRONMENT->LATEX
You will see a dialog which shows your current paths for tex style
files.
mine says
"C:\BIN\YANDYTEX\TEXINPUT;C:\BIN\YANDYTEX\TEX\BASE\\;C:\BIN\YANDYTEX\TEX\LATEX\\"
I chose to place the style files in a subdirectory of the last entry in
the above path list. Various latex styles are stored in subdirectories
under the path:
"C:\BIN\YANDYTEX\TEX\LATEX\CONTRIB\SUPPORTED"
so I made a new subdirectory for MTPRO2 as follows:
mkdir <latex>\contrib\supported\mtpro2
copy c:\junk\texmf\tex\latex\mtpro2\* <latex>\contrib\supported\mtpro2\
(replace <latex> with your path equivalent to my "c:\bin\yandytex\tex\latex",
as displayed in the DVIWindo.exe dialog, explained above)
-----------------
STEP 8: test
I prepared a temporary test directory and copied the test document:
mkdir c:\junk\test
copy c:\junk\texmf\doc\fonts\mtpro2\test_latex.tex c:\junk\test\
then I latex'd the file:
latex2e test_latex
(note that on my PC I have aliased the command latex2e to:
latex2e=yandytex.exe +latex -v -L )
If all goes well, you should see the usual latex status text and
a dvi file will be created. Check the status text for any warnings
about missing fonts. If there are such warnings, then you have not
installed the .tfm files correctly. Check your work in STEP 3.
You should be able to preview the test_latex.dvi file as follows:
dviwindo test_latex.dvi
If the characters display correctly, good.
If the characters display as garbage, then there is a problem with
your .pfb/.pfm installation. On my PC the characters in a .dvi file
are corrupt when I forget to tell Adobe Type Manager about new fonts.
Check your work in Step 4 and 5 and 6.
You can hit CTRL-K in dviwindo to display a dialog which shows the
names of the fonts in your document. When you click on a font in
the dialog, all characters of that font in the document will be
highlighted. Useful.
Next you can generate a postscript file and test it either by
printing on your postscript printer, or by distilling it to PDF.
dvipsone -l=letter test_latex
should generate a file test_latex.ps without warnings.
If you see warnings about missing fonts, then check your work
in Step 4. Note that dvipsone.exe does not use the PFM files
so Step 5 is not critical to dvipsone.exe.
If you see warnings such as "** No /.notdef line*" then you
need to get an updated version of MTPRO2 files.
If you have successfully reached this point without errors
then your MTPRO2 fonts have been correctly installed.
|
|
|
Back to top |
|
 |
murray
Joined: 07 Feb 2006 Posts: 47 Location: Amherst, MA, USA
|
Posted: Wed Mar 15, 2006 10:59 pm Post subject: Re: MTPRO2 with Y&Y - a draft installation guide |
|
|
gvokalek wrote: | I've drafted installation instructions for MTPRO2 when used with
Y&Y tex.
STEP 7: install style files
select DVIWindo menu item PREFERENCES->ENVIRONMENT->LATEX
You will see a dialog which shows your current paths for tex style
files.
mine says
"C:\BIN\YANDYTEX\TEXINPUT;C:\BIN\YANDYTEX\TEX\BASE\\;C:\BIN\YANDYTEX\TEX\LATEX\\"
I chose to place the style files in a subdirectory of the last entry in
the above path list. Various latex styles are stored in subdirectories
under the path:
"C:\BIN\YANDYTEX\TEX\LATEX\CONTRIB\SUPPORTED"
so I made a new subdirectory for MTPRO2 as follows:
mkdir <latex>\contrib\supported\mtpro2
copy c:\junk\texmf\tex\latex\mtpro2\* <latex>\contrib\supported\mtpro2\
|
Is it a good idea to place the style files into a subdirectory of "supported"? For some reason I thought that directory was, by convention, for stuff that's part of the CTAN distribution falling in that category.
Is it the intention for the support files, including mtpro2.sty to be distributed via CTAN? |
|
Back to top |
|
 |
murray
Joined: 07 Feb 2006 Posts: 47 Location: Amherst, MA, USA
|
Posted: Wed Mar 15, 2006 11:06 pm Post subject: comments on George's draft Y&Y installation instructions |
|
|
Some comments on George's very useful detailed installation instructions:
0. I see no reason to specify only command-line methods for making directories within the Y&Y directory tree, or for copying or moving files from the extracted archive into such directories. Surely Windows Explorer's usual functionality (navigating to directories, right-clicking to make a new folder there, copying/moving files) suffices. Of course there's no harm in giving the command-line directions as an alternative to the Explorer mousing.
1. One thing I had not had time to include in my original draft installation instructions is what George's do include -- the parts about checking Y&Y's search paths for the various types of files by using the DVIWindo menu item PREFERENCES ->ENVIRONMENTS and then ->TEXFONTS or ->PSFONTS or ->LATEX, depending on which type of file is at issue.
However, it's also worth saying that one can also, instead find these values by opening dviwindo.ini (from c:\windows).
2. In George's STEP 3 (installing TFM files) I disagree about using the location
YANDY\FONTS\TFM\TEXNANSI\
(I'm giving paths just starting in the main YANDY directory). That directory ought, in principle, be reserved for tfm's of fonts that actually use Y&Y's TeXnAnsi encoding. However, the MathTimePro2 fonts do NOT use that encoding. So it would be much more logical to put the tmf's in:
YANDY\FONTS\TFM\NONTEXT
In fact, it's much neater in any event to put them in a subdirectory of NONTEXT (or of TEXNANSI, if one insists on putting them there): If a path is specified in Y&Y's environment with a terminal \, then this means to search not just that directory, but all first-order subdirectories of it. So my strong recommendation is to use something like:
YANDYTEX\FONTS\TFM\NONTEXT\tfm-mt2
This not only makes clear that the TeXnAnsi encoding is NOT involved, but also readily isolates these tfm's from others, should the need arise to update them at any time. [In fact, the Y&Y-supplied structure of the NONTEXT directory in fact includes a bunch of such subdirectories: tfm-ams, tfm-cm, tfm-ltx, tfm-mt (for Y&Y systems that came with the old MathTime fonts as distributed by Y&Y), etc.]
3. It may be confusing to refer to the main Y&Y directory as YANDYTEX, since at least in the distribution I'm using, the main Y&Y directory has a subdirectory tree with top named YANDYTEX (this directory includes the Y&Y binaries). That's why I used "YANDY" in my detailed version of the instructions. (But perhaps in some versions of Y&Y, the top-level directory was really "YANDYTEX"??? I do recall that in very early versions it was "Y&Y" but that was later changed to "yandy".) |
|
Back to top |
|
 |
murray
Joined: 07 Feb 2006 Posts: 47 Location: Amherst, MA, USA
|
Posted: Wed Mar 15, 2006 11:22 pm Post subject: Re: MTPRO2 with Y&Y - a draft installation guide |
|
|
gvokalek wrote: | I've drafted installation instructions for MTPRO2 when used with
Y&Y tex. |
Somebody, probably in some private or semi-private e-mail message circulating off-forum, pointed out the following. I apologize for stealing his thunder here, but I wanted to be sure this got posted in this thread:
The installation instructions should explain that the distributed package mtp2fonts.zip.tpm is essentially (if that's the right word) just a zip archive file. To unzip it, one can either directly drag it into WinZip (which will immediately recognize it as a zip archive), and possibly other unzipping utilities; or one can rename it to mtp2fonts.zip and then unzip it in the usual way one handles such files. |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|