![](https://secure.gravatar.com/avatar/4d93e6d89c1355aade84cc5c1d6a2065.jpg?s=120&d=mm&r=g)
Dear crew,
Ok, I've got things working so far on the upgrade; the engine path works and I
can use one command for both aleph and pdfetex; hooray!
but...
Default dvipdfmx configuration is not right. Consider the following three
scenarios:
1.
==============test-upgrade.tex================
% output=dvipdfmx
\starttext
Test
\stoptext
==============================================
gives
==============================================
texexec test-upgrade
TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
fixing engine variable : pdfetex
executable : pdfetex
format : cont-en
inputfile : test-upgrade
output : dvipdfmx
interface : en
current mode : none
TeX run : 1
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2c 7.5.3)
:
test-upgrade.dvi -> test-upgrade.pdf
[1
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: rsfs7 rsfs5
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Idris Samawi Hamid wrote:
Dear crew, Ok, I've got things working so far on the upgrade; the engine path works and I can use one command for both aleph and pdfetex; hooray!
but...
Default dvipdfmx configuration is not right. Consider the following three scenarios:
ctxtools --dpxmapfiles --force texmf ctxtools --dpxmapfiles --force texmf-local ctxtools --dpxmapfiles --force texmf-fonts will generate them, don't forget to mktexlsr btw, (new)texexec will automatically run dvipdfmx Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/516973c78d7ff05105bd89fa0bc1d57d.jpg?s=120&d=mm&r=g)
On Aug 19, 2005, at 7:19 AM, Hans Hagen wrote:
ctxtools --dpxmapfiles --force texmf ctxtools --dpxmapfiles --force texmf-local ctxtools --dpxmapfiles --force texmf-fonts will generate them, don't forget to mktexlsr btw, (new)texexec will automatically run dvipdfmx
ctxtools does not make right font mapping files. Especially for slanted fonts, it ignores "-s" slant option. For example, in texnansi-urw-palatino.map, texnansi-raw-uplr8a-slanted-167 URWPalladioL-Roma "0.167 SlantFont" 4 < uplr8a.pfb texnansi.enc is converted to texnansi-raw-uplr8a-slanted-167 texnansi uplr8a But the right one is texnansi-raw-uplr8a-slanted-167 texnansi uplr8a -s .167 Does ctxtool use the same technique as updmap? Or, my teTeX (fink version) is old? Best, ChoF.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Jin-Hwan Cho wrote:
On Aug 19, 2005, at 7:19 AM, Hans Hagen wrote:
ctxtools --dpxmapfiles --force texmf ctxtools --dpxmapfiles --force texmf-local ctxtools --dpxmapfiles --force texmf-fonts will generate them, don't forget to mktexlsr btw, (new)texexec will automatically run dvipdfmx
ctxtools does not make right font mapping files. Especially for slanted fonts, it ignores "-s" slant option. For example, in texnansi-urw-palatino.map,
texnansi-raw-uplr8a-slanted-167 URWPalladioL-Roma "0.167 SlantFont" 4 < uplr8a.pfb texnansi.enc
is converted to
texnansi-raw-uplr8a-slanted-167 texnansi uplr8a
But the right one is
texnansi-raw-uplr8a-slanted-167 texnansi uplr8a -s .167
Does ctxtool use the same technique as updmap? Or, my teTeX (fink version) is old?
i dunno about updmap, never used it; currently i load map files automatically in dvipdfmx (i could get the mapline special working) i didn't know the exact dvipdfmx mapfile syntax -) we can add a slant as follows: encoding = if line =~ /([a-z0-9\-]+)\.enc/io then $1 else '' end fontfile = if line =~ /([a-z0-9\-]+)\.(pfb|ttf)/io then $1 else nil end metrics = if line =~ /^([a-z0-9\-]+)[\s\<]+/io then $1 else nil end slant = if line =~ /\"([\d\.]+)\s+SlantFont\"/io then "-s "#{$1}" else '' end if metrics && encoding && fontfile then n += 1 "#{metrics} #{encoding} #{fontfile} #{slant}" else '' end Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/516973c78d7ff05105bd89fa0bc1d57d.jpg?s=120&d=mm&r=g)
On Aug 19, 2005, at 4:14 PM, Hans Hagen wrote:
i dunno about updmap, never used it; currently i load map files automatically in dvipdfmx (i could get the mapline special working)
i didn't know the exact dvipdfmx mapfile syntax -)
we can add a slant as follows:
encoding = if line =~ /([a-z0-9\-]+)\.enc/io then $1 else '' end fontfile = if line =~ /([a-z0-9\-]+)\.(pfb|ttf)/io then $1 else nil end metrics = if line =~ /^([a-z0-9\-]+)[\s\<]+/io then $1 else nil end slant = if line =~ /\"([\d\.]+)\s+SlantFont\"/io then "-s "# {$1}" else '' end
if metrics && encoding && fontfile then n += 1 "#{metrics} #{encoding} #{fontfile} #{slant}" else '' end
My ctxtools.rb does not have the line for slant. Just three lines for encoding, fontfile, and metrics. The version is 1.2.2. (Jul 29) Have you updated ctxtools.rb recently? Best, ChoF.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Jin-Hwan Cho wrote:
On Aug 19, 2005, at 4:14 PM, Hans Hagen wrote:
i dunno about updmap, never used it; currently i load map files automatically in dvipdfmx (i could get the mapline special working)
i didn't know the exact dvipdfmx mapfile syntax -)
we can add a slant as follows:
encoding = if line =~ /([a-z0-9\-]+)\.enc/io then $1 else '' end fontfile = if line =~ /([a-z0-9\-]+)\.(pfb|ttf)/io then $1 else nil end metrics = if line =~ /^([a-z0-9\-]+)[\s\<]+/io then $1 else nil end slant = if line =~ /\"([\d\.]+)\s+SlantFont\"/io then "-s "# {$1}" else '' end
if metrics && encoding && fontfile then n += 1 "#{metrics} #{encoding} #{fontfile} #{slant}" else '' end
My ctxtools.rb does not have the line for slant. Just three lines for
indeed, to consider it a patch
encoding, fontfile, and metrics. The version is 1.2.2. (Jul 29)
Have you updated ctxtools.rb recently?
a few days ago, (i hope i did it right) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Idris Samawi Hamid
-
Jin-Hwan Cho