texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by ivowe » Wed, 08 Oct 2008 22:36:35



dear texperts---

I am still working on learning how to install adobe postscript fonts
under texlive 2008.

First, I am trying to find out where pdftex.cfg sits (or is supposed
to sit). I cannot find it in my texlive tree.

Second, may I ask why there are multiple updmap.cfg files in the
texlive 2008 distro? I see three:
texmf-config/web2c/, texmf/web2c/ and texmf-var/web2c/

Related updmap Questions: would it not make sense to never have to
write into these files (or enable them), but to have an equivalent
texmf-local file that should be consulted? Preferably, this would be
an empty file, so one would know what file one should change.


help appreciated.

regards,

/iaw
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by Ulrike Fis » Wed, 08 Oct 2008 22:54:50

Am Tue, 7 Oct 2008 06:36:35 -0700 (PDT) schrieb XXXX@XXXXX.COM :



pdftex.cfg is no longer used by pdftex. From the texlive-guide
( http://www.yqcomputer.com/ ):

"All parameters previously set through the special configuration file
pdftex.cfg must now be set through primitives, typically in
pdftexconfig.tex; pdftex.cfg is no longer supported. Any extant .fmt
files must be redumped when pdftexconfig.tex is changed.
See the pdfTEX manual for more:
texmf-dist/doc/pdftex/manual/pdftex-a.pdf."

(Miktex has still a pdftex.cfg but it is not used by pdftex directly.
Miktex copies its content during format generation to pdftexconfig.tex).



I don't know how texlive handles it, but in miktex you can put a
updmap.cfg in every root you want and miktex uses all one after the
other. Why don't you try to put one in texmf-local, do texhash and then
use updmap-sys --verbose to check if it is seen?

--
Ulrike Fischer

 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by rf10 » Wed, 08 Oct 2008 23:59:32


" XXXX@XXXXX.COM " < XXXX@XXXXX.COM > writes:

i think you'll find that only one comes from the distribution itself;
only one is written by updmap.


texmf-local need not necessarily be writeable by the user. (it isn't
here -- holds local classes, site-licensed fonts, etc.). texmf-var is
writeable, and updmap writes to that when you say "-add Map" (or
whatever it is -- i always have to check before doing it...)
--
Robin Fairbairns, Cambridge
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by ivowe » Thu, 09 Oct 2008 03:17:45


thanks, everyone. what is the definitive manual for a postscript font
installation by hand? Philipp Lehman's document is from 2004, and no
longer works. Peter Flynn's writeup is from March 2005, and also no
longer works. If someone can send me to a definitive install
document, I can probably figure out myself how to get this to work.
if not, I would appreciate any help to make it work.

right now, I think I have a large part of the installation right
(cobbled together, and thus possibly totally mangled). I am trying
my installation on one copperplate font (cp30a). I looked up the karl
berry name ('zpcp30ab'). I created and placed the .tfm and .vf files
(and .afm and pfb and .vf files, e.g., texmf-local/fonts/zpc30ab/
zpc30ab.tfm.) I created texmf-local/fonts/map/zpcp30ab/zpc.map,
which contains
rzpcp30ably Copperplate-ThirtyAB " TeXnANSIEncoding ReEncodeFont "
<texnansi.enc
I ran a 'updmap' and it tells me that it knows about my zpc.map file.
'updmap --listmaps | grep zpc.map' actually shows me that updmap knows
about my map. All good.

however, I am still stuck at trying to tell pdftex to use my font.

\font\testme = zpcp30ably at 12 pt
\testme
The font is working.
\bye

is not working. (Also, I tried a few variations on the TeX file.)

help appreciated. this is not a fun process...

/iaw
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by Dan » Thu, 09 Oct 2008 05:40:59


Is it zpcp30ab or zpc30ab?
>> (and .afm and pfb and .vf files, e.g., texmf-local/fonts/zpc30ab/ >> zpc30ab.tfm.) I created texmf-local/fonts/map/zpcp30ab/zpc.map,> > which contains> > zpcp30ably Copperplate-ThirtyAB " TeXnANSIEncoding ReEncodeFont > <>
This map line is missing the name of the .pfb file. Also, the name of
the .tfm file seems to be wrong. I would have expected (from your
description of filenames)

zpc30ab Copperplate-ThirtyAB "TeXnANSIEncoding ReEncodeFont <

(all on one line, of course). The first word should be the tfm file
name
(without the extension) and the last should be the pfb or pfa file
name.

The TFM file name is pretty much anything one wants unless one needs
certain automatic scripts to work, however it must match the actual
name
of the tfm file and the name used in the tex file. >
> is not working. Also, I tried a few variations on the TeX file.)

There is quite a lot that "is not working" could mean.

1) tfm not found: Should be a fairly clear error message about TFM
2) pfb not found.
3) map file not found.
4) confusing error messages from pdflatex
5) invalid pdf produced, no pdf produce, or missing characters in
pdf

Typically the end of the screen output of pdflatex is a list
of pfb fonts included, or errors in finding them. TFM error
messages happen at the time of the \font command. The
default map file is pdftex.map and updmap should produce
it, but if search paths are wrongly set, there should be a
pretty clear message about the failure to find it.

Problem 4 is generally just one of 1-3, but with a user unable to
figure out which. And problem 5 would be essentially obvious
(file missing, or the pdf viewer failing to load it or displaying
incorrect output).


Dan
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by ivowe » Thu, 09 Oct 2008 11:16:41


Thanks a lot, Dan, for the great directions. sorry for imposing, but
I really don't have a definitive guide elsewhere that I know to
follow.


my P.Lehman font guide calls the karl berry name for this one
zpcp30ab , so I am following it, too. (I wonder whether this means my
map file should use 4 rather than 3 characters zpcp.map instead of
zpc.map for good form.)


First part is easy. is zpc30ab.pdf at the end a mistake? did you
mean the pfb file,
which is CP30A___.PFB, and sits in texmf-local/fonts/type1/zpcp30ab/ ?



ok, I had the tfm file name also end in 'ly' to indicate encoding. It
is easy to delete it from the tfm file and the map file.



This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
%&-line parsing enabled.
entering extended mode
(./testzpcp30ab.tex [1
! TeX capacity exceeded, sorry [max level recursion of virtual
fonts=10].
\plainoutput ...headline \pagebody \makefootline }
\advancepageno
\ifnum \out...
<output> {\plainoutput
}
\supereject ->\par \penalty -\@MM

\bye ->\par \vfill \supereject
\end
l.6 \bye

! ==> Fatal error occurred, no output PDF file produced!
Transcript written on testzpcp30ab.log.

For clarity, I have a file

/home/local/texmf-local.2008/fonts/vf/zpcp30ab/zpcp30ab.vf: TeX
virtual font data

which was created by

afm2tfm CP*.afm -v zpcp30AB.vpl -p texnansi.enc zpcp30AB.tfm >
zpcp30AB.id
vptovf zpcp30AB.vpl zpcp30AB.vf zpcp30AB.tfm

(Another item I do not grasp is whether afm2tfm or vptovf is supposed
to create the .tfm file for my use.)

Sorry to bug everyone. Again apologies. I don't know where to look.

regards,

/iaw
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by Dan » Fri, 10 Oct 2008 01:31:18


But in your post you said
>> berry name ('zpcp30ab'). I created and placed the .tfm and .vf files >> (and .afm and pfb and .vf files, e.g., texmf-local/fonts/zpc30ab/ >> zpc30ab.tfm

Note the two different names: "berry name zpcp30ab" and
"zpc30ab.tfm". To give a correct answer we need to know which.
Note you also imply that the .pfb file was given (one of) those
name(s).
>> >>>>>>I created texmf-local/fonts/map/zpcp30ab/zpc.map,> > > > which contains> > > > zpcp30ably Copperplate-ThirtyAB " TeXnANSIEncoding ReEncodeFont > >>>><> > First part is easy. s zpc30ab.pdf at the end a mistake? id yo>
> mean the pfb file>
> which is CP30A___.PFB, and sits in texmf-local/fonts/type1/zpcp30ab/ ?

As mentioned above you implied that the pfb file was renamed, if
that was untrue, use the actual name.
>
> (./testzpcp30ab.tex [>
> ! TeX capacity exceeded, sorry [max level recursion of virtua>
> fonts=10].

Your tfm filename is first searched against .vf filenames, then
against names in the .map file. If it matches a .vf filename,
that .vf
file should refer to another .tfm file which either matches another
..vf file or the .map file. This must end before 10 steps with a map
file
entry. I sustect you have a naming problem where th .vf file has the
same name as the .tfm file it points to, giving infinite recursion.


Dan
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by ivowe » Fri, 10 Oct 2008 03:21:05


Hi Dan: Thanks again. Yikes, this is tough to describe accurately. I
probably made everything much harder than it needed to be.

Let me try to make it as straightforward as I can:

Start with:
CP30A.AFM, CP30A___.PFB
Step 1:
look up karl berry name, here zpcp30ab
call it $KB for clarity
Step 2:
afm2tfm CP30A.AFM -v $KB.vpl -p texnansi.enc $KB.tfm > $KB.id

--- now omitted Step 3 due to recursion in virtual font
--- not executed vptovf $KB.vpl $KB.vf $KB.tfm

Step 4:
place CP30A.AFM into (new directory) texmf-local/fonts/afm/$KB/
place CP30A___.PFB into (new directory) texmf-local/fonts/type1/$KB/
place $KB.tfm into (new directory) texmf-local/fonts/tfm/$KB/
--- now omitted: place $KB.vf into (new directory) texmf-local/fonts/
vf/$KB/
Step 5:
create directory texmf-local/fonts/map/$KB/
Step 6:
(henceforth, also work with first three letters of karlberry name,
zpc)
create new file texmf-local/fonts/map/$KB/zpc.map
with one line $KB.id from Step 2 plus '<CP30A___.PFB' at the end
Step 7:
add to texlive/2008/texmf-config/web2c/updmap.cfg the following line:
'Map zpc'
Step 8:
texhash
Step 9:
updmap --enable Map zpc
Step 10:
write a short tex testzpcp30ab.tex file:
\font\testme = $KB at 12 pt
\testme Hello, your font is working.
\bye
----------------------------------------------------------------
Resulting Files (`locate zpc30ab`):

...texmf-local/fonts/tfm/zpcp30ab
...texmf-local/fonts/tfm/zpcp30ab/zpcp30ab.tfm
...texmf-local/fonts/afm/zpcp30ab
...texmf-local/fonts/afm/zpcp30ab/CP30A.afm
...texmf-local/fonts/map/zpcp30ab
...texmf-local/fonts/map/zpcp30ab/zpc.map
...texmf-local/fonts/type1/zpcp30ab
...texmf-local/fonts/type1/zpcp30ab/CP30A___.PFB

zpc.map contains one line:

zpcp30ab Copperplate-ThirtyAB " TeXnANSIEncoding ReEncodeFont "
<texnansi.enc <CP30A___.PFB

$ updmap --listmaps | grep zpc
updmap: This is updmap, version 1211742332
updmap: using transcript file `~/.texlive2008/texmf-var/web2c/
updmap.log'
Map zpc

----------------------------------------------------------------

$ pdftex testzpcp30ab.tex
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
%&-line parsing enabled.
entering extended mode
(./testzpcp30ab.tex [1{/home/ivo/.texlive2008/texmf-var/fonts/map/
pdftex/updmap
/pdftex.map}]
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+120/600 --dpi
720 zpcp30ab
mktexpk: don't know how to create bitmap font for zpcp30ab.
kpathsea: Appending font creation commands to missfont.log.
)
!pdfTeX error: pdftex (file zpcp30ab): Font zpcp30ab at 720 not found
==> Fatal error occurred, no output PDF file produced!

----------------------------------------------------------------

I hope you are now laughing about some stupid mistake I am making---
except
that I hope it is not loud enough to prevent you from writing to ctt
what it
is that I am still doing wrong.

Regards,

/iaw
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by Dan » Fri, 10 Oct 2008 04:26:07

n Oct 8, 1:21m, " XXXX@XXXXX.COM " < XXXX@XXXXX.COM > wrote:
> Step >:
> look up karl berry name, here zp>p30ab
> call it $KB for clarity

If you are not going to create different variants of the font (e.g.,
different encodings, there is no need for vf files or Karl Berry
names. The KB names are needed for certain scripts that
construct the filenames from the only two required parts (initial
letter for the foundry and typeface abbreviation). I see that the
initial z indcates non-standard naming, and that cp30a
presumably stands for Copperplate-ThirtyAB, but there
seems a stray "p" in >etween.
>> Step 2:
> afm2tfm CP30A.AFM -v $KB.vpl -p texna>si.enc $KB.tfm > $KB.id

I'm pretty sure -p refers to the encoding of the AFM file if it is
not
adobe standard. I _think_ -t should be used unstead. This should
not be the cause of the problems you describe below,but could
possibly result in wrong character> i> output.

>
> --- now omitted Step 3 due to recursi>n in virtual font
> --- not executed vptovf $KB.vpl $KB.vf $KB.tfm

The usual need for .vf files is to have several variants (say
different encodings) one would then have several different tfm files,
one in each encoding, then several correspondingly named vf files
that implement the rencoding, then a final tfm file in some basic
standard encoding that each .vf points to, and that last one is
in the map file. If there is only one variant, typicall> n> .vf is
n>eded.

>
> Step 4:
> place CP30A.AFM into (new directory) >exmf-local/fonts/afm/$KB/
> place CP30A___.PFB into (new directory> texmf-local/fonts/type1/$KB/
> place $KB.tfm into (new directory) texmf-local/fonts/tfm/$KB/

AFM file is no longer needed except if one might wish to create
a variant font later. These paths seem OK, but one usually sees
another
directory layer to keep things organized:
tfm/foundry/typeface/$KB.tfm
for examp>e
tfm/adobe/times/ptmr8r.tfm

> --- now omitted: place $KB.vf i>to (new di>ectory) te>mf-local/fonts/
> vf/$KB/
> Step 5:
> create directory texmf-local/fonts/map/$KB/

Most existing map files are in map/dvips/typeface/, so I foll>w
that sc>eme. But thiis should be OK.

> Step 6:
> (henceforth, also wo>k with >irst three letters of karlberry name,
> zpc)
> >reate new file exmf-local/fonts/map/$KB/zpc.map <> with one l>ne $KB.id >rom Step 2 plus ' > Step 7:
> add to texl>ve/2008/texmf-config/web2c/updmap.cfg the following line:
> 'Map zpc'

This operation (adding Map zpc.map) is part of what updmap --enable
does. Note: all the lines in my updmap.cfg contain filename
+extension,
so this should probably>be zpc.map> but I don't r>ally know >f that
is
necessary.

> Step 8:
> texhash
> Step 9:
> updmap --enable Map zpc

This should be updmap --enable Map=zpc.map

What is the screen output of this step? On my system it gives a
syntax error message unless I include the = sign. The output
should mention what map files are being generated. Of importance
to your example is those lines mentioning pdftex. In particular, the
path
below should be ment>oned:
/home/ivo/.texlive2008/texmf-var/fonts/map/pdftex/updmap
> (./testzpcp30>b.tex [1{/home/ivo/.texlive>008/texmf-var/fonts/map/
> pdftex/updmap
> /pdftex.map}]

[...]

> mktexpk: don't know how to create bitmap font for zpcp30ab.

This
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by ivowe » Fri, 10 Oct 2008 05:49:18


Thanks, Dan.

Untangling now. Now "updmap --disable zpc.map", "rm /home/
ivo/.texlive2008*", and deleted Map from texlive/2008/texmf-config/
web2c/updmap.cfg . Ran updmap. Made sure there was no zpc.map in the
long list of maps. Confirmed. Good.

Now, restarting. the texlive 2008 version of updmap has no problems
with omitting the '='.

# updmap --enable Map zpc.map
updmap: This is updmap, version 1211742332
updmap: using transcript file `/home/ivo/.texlive2008/texmf-var/web2c/
updmap.log'
updmap: initial config file is `/home/local/texlive.2008/2008/texmf-
config/web2c/updmap.cfg'
updmap: configuration file updated: `/home/ivo/.texlive2008/texmf-
config/web2c/updmap.cfg'
updmap is creating new map files using the following configuration:

config file: `/home/ivo/.texlive2008/texmf-config/web2c/updmap.cfg'
dvips output directory: `/home/ivo/.texlive2008/texmf-var/fonts/map/
dvips/updmap'
pdftex output directory: `/home/ivo/.texlive2008/texmf-var/fonts/map/
pdftex/updmap'
dvipdfm output directory: `/home/ivo/.texlive2008/texmf-var/fonts/
map/dvipdfm/updmap'

prefer outlines: `true'
texhash enabled: `false'
download standard fonts (dvips): `false'
download standard fonts (pdftex): `true'
download standard fonts (dvipdfm): `true'
...
updmap: using map file `/usr/local/texlive.2008/2008/texmf-dist/fonts/
map/dvips/gothic/yfrak.map'
updmap: using map file `/usr/local/texmf-local/fonts/map/zpcp30ab/
zpc.map'
updmap: using map file `/usr/local/texlive.2008/2008/texmf-dist/fonts/
map/dvips/eurofont/zpeu.map'
...
#

... and now it is working. (Maybe there was something left over from
my previous runs, that 'rm -rf ~/.texlive2008*' eliminated.)

Hooray! This is good news.

The (minor) bad news is my trying to write a script that does all of
this for others. I would like it to be robust, but I am not sure how
to make sure that they don't run into my problems, given that I do not
know what the problem really was.

Another minor bad news---I want to get the font encoding straight.
would you know [a] where I find encoding information from postscript
fonts ; [b] what kind of characters would likely show up wrong (so
that I can have my TeX file check that I had it straight).


bitstream, and monotype have nice filenames for their fonts. Thus,
when I see CP30A___.PFB, I know what I have to look up. dtc, itc,
linotype fonts do not have these in my guide. would anyone know how
their fonts arrive? if so, I can prepare my script to deal with them,
too.

I will spend a few days to make my script more robust, partly
following your suggestions, adding more errors checks, and then post
it here. Yes, I know it won't be perfect, but it should make future
user experiences a lot more simple.

Thanks a lot, Dan.

/iaw
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by Ulrike Fis » Fri, 10 Oct 2008 16:54:26

Am Wed, 8 Oct 2008 12:26:07 -0700 (PDT) schrieb Dan:


If pdftex find a entry for a font in the map-file but not the .pfb it
complains "couldn't find pfb". If it is trying to make a bitmap this
always means that the map entry has not make its way in the pdftex.map
pdftex is actually using.

The cause is in generally that the user called sometimes updmap and
sometimes updmap-sys. This can lead to two versions of pdftex.map.

--
Ulrike Fischer
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by rf10 » Fri, 10 Oct 2008 21:28:24


" XXXX@XXXXX.COM " < XXXX@XXXXX.COM > writes:


the copperplate fonts are from linotype; cp30a is listed in
linotype-cd.map in the fontname distribution on ctan (at least). so
you should be able to work out what to call it for berry purposes from
there.
--
Robin Fairbairns, Cambridge
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by ivowe » Fri, 10 Oct 2008 21:48:42


hi robin---I am still on my quixotic quest to script fontname
installation, even though you warned me that it is too difficult.

I can do Copperplate-ThirtyAB (CP30A_PFB), because in Philip Lehman's
document it was listed under adobe. The kind of fonts that I cannot
identify from the filenames are the likes of: [dtc] dhv8rc
(SansBlackCondensed-DTC), [itc] zieuk (EuroSerifITC-Book) and i_____
Aachen-Medium, and [linotype] l_____ Aachen-Bold .

I may be looking at the wrong font list source file. If Philip's
document is not authoritative, is there an authoritative one? or, do
I have to try to piece it together from multiple vendor files?

regards,

/iaw
 
 
 

texlive2008: multiple updmap.cfg files but no pdftex.cfg file?

Post by rf10 » Sun, 12 Oct 2008 05:55:55


" XXXX@XXXXX.COM " < XXXX@XXXXX.COM > writes:

ctan:info/fontname (what i was quoting from).

download the whole directory and prod around in it (i ran grep over
every file in the directory for what i already said).
--
Robin Fairbairns, Cambridge