[OS X TeX] Mysterious behavior of Preview.app
Bruno Voisin
bvoisin at mac.com
Thu May 15 04:24:56 EDT 2008
Le 15 mai 08 à 08:55, Jin-Hwan Cho a écrit :
> If you use MacTeX in the intel machine, you can generate the PDF
> file above as follows:
>
> (1) Download the current CVS version of DVIPDFMx from
>
> http://project.ktug.or.kr/dvipdfmx/contrib/bin/dvipdfmx-20080515-i386-darwin
>
> (2) Replace /usr/texbin/dvipdfmx to the downloaded binary.
>
> (3) Run "latex nfssfont" and then give two commands: pplr8r and then
> \table\bye
>
> (4) Make "cid-x.map" in the working directory with the one line
> "pplr8r 8r :0:Palatino"
>
> (5) Link the Palatino font to the working directory. In the case of
> Leopard, "ln -s /Library/Fonts/Palatino ."
>
> (6) Run "dvipdfmx nfssfont" to get the PDF result.
>
> (7) Check the contents with two PDF viewers, Previewer.app and Adobe
> Reader 8.app.
Doing the above, with dvipdfmx from current MacTeX namely
-rwxr-xr-x 1 bvoisin staff 708092 23 jan 2007 dvipdfmx
I get, before creating the file cid-x.map
$ dvipdfmx nfssfont
nfssfont.dvi -> nfssfont.pdf
[1]
36527 bytes written
and after
$ dvipdfmx nfssfont
nfssfont.dvi -> nfssfont.pdf
[1
** WARNING ** Found file "./Palatino" for PFB font but it doesn't
look like a PFB...
** WARNING ** Found file "./Palatino" for TrueType font but it
doesn't look like a TrueType...
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi
600 Palatino
mktexpk: don't know how to create bitmap font for Palatino.
kpathsea: Appending font creation commands to missfont.log.
** WARNING ** Could not locate a virtual/physical font for TFM
"pplr8r".
** WARNING ** >> This font is mapped to a physical font "Palatino".
** WARNING ** >> Please check if kpathsea library can find this font:
Palatino
** ERROR ** Cannot proceed without .vf or "physical" font for PDF
output...
Output file removed.
After downloading the CVS version you mention, setting the executable
bit of the download and putting it inside /usr/texbin
$ chmod a+x ~/Downloads/dvipdfmx-20080515-i386-darwin
$ sudo cp ~/Downloads/dvipdfmx-20080515-i386-darwin /usr/texbin/
dvipdfmx
so as to get
-rwxr-xr-x@ 1 root wheel 904744 15 mai 09:59 dvipdfmx
here's what I obtain with nfssfont.dvi, without cid-x.map in the
current directory
$ dvipdfmx nfssfont
nfssfont.dvi -> nfssfont.pdf
** WARNING ** Failed to load AGL file "pdfglyphlist.txt"...
[1]
36752 bytes written
and with cid-x.map in the current directory
$ dvipdfmx nfssfont
nfssfont.dvi -> nfssfont.pdf
** WARNING ** Failed to load AGL file "pdfglyphlist.txt"...
[1]
63268 bytes written
Attached are the 3 PDF files so produced:
- nfssfont-old.pdf produced by dvipfmx from MacTeX, without cid-x.map
- nfssfont-new-wo-cidmap.pdf produced by dvipdfmx from CVS, without
cid-x.map
- nfssfont-new-w-cidmap.pdf produced by dvipdfmx from CVS, with cid-
x.map
All three files display correctly in Adobe Acrobat. First two display
correctly in Preview while third displays incorrectly.
Bruno Voisin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfssfont-new-w-cidmap.pdf
Type: application/pdf
Size: 63268 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20080515/e68d3756/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfssfont-new-wo-cidmap.pdf
Type: application/pdf
Size: 36752 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20080515/e68d3756/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nfssfont-old.pdf
Type: application/pdf
Size: 36527 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20080515/e68d3756/attachment-0002.pdf>
More information about the MacOSX-TeX
mailing list