Re: [NTG-context] Using Postscript Type 1 fonts in ConTeXt/XeTeX?
Hi Mojca,
Thanks for your two answers. I guess updating my distribution is the
first priority--perhaps that is causing all the errors I just posted
in answer to Wolfgang's suggestion.
I'll try your suggestion and then see if it works, will confirm to the
mailing list once I know.
Thanks
Roland
PS Is it always necessary to upgrade a fresh distribution immediately?
I am a bit surprised that a fresh MacTex from December would already
be so outdated...
On 20/01/2008, Mojca Miklavec
Roland,
I forgot two things so I should better mention some before you ask.
First: welcome to the ConTeXt community. Second: you need a *recent enough* ConTeXt (anything between october 07-january 08), but if you take the latest one, then you also need the future version of LM :) And you need a recent version of XeTeX & xdvipdfmx.
If you're using TeX Live's version, then:
a) update XeTeX binaries
compile it from sources or take it from here (you can download it manually from http or using rsync) and replace the old binaries with these ones:
http://minimals.contextgarden.net/current/bin/xetex/osx-intel/bin/ or rsync -av rsync://contextgarden.net/minimals/current/bin/xetex/osx-intel/bin/ path-to-bins
b) update ConTeXt
many other ways to do it as well (you can take a zip from pragma)
For example: rsync -av rsync://contextgarden.net/minimals/current/context/2008.01.16/ path-to-texmf-tree-with-context you may replace 2008.01.16 with any version that you find here: http://minimals.contextgarden.net/current/context/
2008.01.16 requres new LM fonts already, older versions do not.
c) update LM if you take too recent ConTeXt (otherwise, leave the fonts alone) - these fonts are still a pre-release version, so you should better take an older version of ConTeXt
rsync -av rsync://contextgarden.net/minimals/current/fonts/new/fonts/opentype/public/lm/ path-to-LM
Mojca
On Jan 20, 2008 9:55 PM, Roland wrote:
Hi Mojca,
Thanks for your two answers. I guess updating my distribution is the first priority--perhaps that is causing all the errors I just posted in answer to Wolfgang's suggestion.
I'll try your suggestion and then see if it works, will confirm to the mailing list once I know.
Thanks Roland
PS Is it always necessary to upgrade a fresh distribution immediately? I am a bit surprised that a fresh MacTex from December would already be so outdated...
It might be that MacTeX has fixed its own bugs recently, but it is still based on TeXLive and that one has been released in January 2007 (with basically no updates since then). You can use the old ConTeXt & XeTeX as well, but you will have problems later (nobody says that you won't have problems anyway :). An alternative in to use the standalone ConTeXt. For example by downloading and running http://minimals.contextgarden.net/setup/osx-intel/first-setup.sh and then putting something like . context/tex/setuptex context/tex to .bash_profile (or executing it each time when you need it) or to the place where TextMate can "find it" (~/context/ is where I have saved the "first-setup.sh") The advantage of the standalone ConTeXt is that you can also use LuaTeX (Hans's and Taco's baby, so you have higher chances that it will work properly in ConTeXt - XeTeX is often a bit broken, but neither is really stable yet :).
Thanks, I tried this. Getting loads of error messages though, see below. They are repeated multiple times in Textmate, just once when I try to issue the command "mktextfm Eco101Roman" from the command line.
mxtextfm is the wrong command to use (that is an ancient TeX warning), intended for something else. Mojca
Hi Mojca, thanks for the quick answer.
On 20/01/2008, Mojca Miklavec
An alternative in to use the standalone ConTeXt. For example by downloading and running http://minimals.contextgarden.net/setup/osx-intel/first-setup.sh and then putting something like . context/tex/setuptex context/tex to .bash_profile (or executing it each time when you need it) or to the place where TextMate can "find it" (~/context/ is where I have saved the "first-setup.sh")
I am trying this now, with first-setup.sh stored in a new /usr/local/context directory. However, when I execute the script, I get the following error:
./first-setup.sh: line 18: platform: command not found
Afterwards it does install loads of stuff, but when I take the following steps as suggested and run a context file, I get another error:
This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6) \write18 enabled. file:line:error style messages enabled. kpathsea: Running mktexfmt cont-en.fmt
/usr/texbin/mktexfmt: line 336: /usr/local/context/tex/texmf/texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `cont-en.fmt'!
Sorry to keep bugging you about these errors all the time! Thanks for any help you might have ;-) Roland
On Jan 21, 2008 8:22 AM, Roland wrote:
Hi Mojca, thanks for the quick answer.
On 20/01/2008, Mojca Miklavec wrote:
An alternative in to use the standalone ConTeXt. For example by downloading and running http://minimals.contextgarden.net/setup/osx-intel/first-setup.sh and then putting something like . context/tex/setuptex context/tex to .bash_profile (or executing it each time when you need it) or to the place where TextMate can "find it" (~/context/ is where I have saved the "first-setup.sh")
I am trying this now, with first-setup.sh stored in a new /usr/local/context directory.
However, when I execute the script, I get the following error:
./first-setup.sh: line 18: platform: command not found
Sorry ... please change platform = "osx-ppc" into platform="osx-ppc" in line 18 and try to run again. Thanks a lot for reporting the problem. (I really wonder how you managed to procced so far that downloading went fine after that :)
Afterwards it does install loads of stuff, but when I take the following steps as suggested and run a context file, I get another error:
This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6) \write18 enabled. file:line:error style messages enabled. kpathsea: Running mktexfmt cont-en.fmt
"mktexlsr" and "texexec --make --xtx --all" might be needed, but they should be generated during "first-install.sh" I hope that this will be resolved once you fix that minor (our) mistake mentioned above. Mojca
Hi Mojca, Not quite there yet. I did manage to install the standalone ConTeXt without problems after changing the line 18 of that file. I also found the same error in setuptex, which of course prevented me from getting the right new mktexlsr and texexec onto the path... Anyway that's solved now and Textmate and the shell are calling the right distribution. Guess what -- I'm still at the original problem now: ** ERROR ** Invalid font: -1 (0) (though still using Wolfgang's suggested script). See output below. I'm getting desperate now... Thanks Roland TeXExec | processing document 'hello.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file hello.top TeXExec | using randomseed 759 TeXExec | tex engine: xetex TeXExec | tex format: cont-en This is XeTeXk, Version 3.141592-2.2-0.997 (Web2C 7.5.6) \write18 enabled. file:line:error style messages enabled. entering extended mode (./hello.tex ConTeXt ver: 2008.01.16 13:49 MKII fmt: 2008.1.21 int: english/english language : language en is active system : cont-new loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkii) (/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)) bodyfont : 12pt rm is loaded language : patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3 de->ec:ec->3->2: 3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3 pl->ec:ec->7->2:3 cz->e c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3 en->ec:ec-
13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3 da->ec:ec->1 7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3 deo->ec:ec->21- 2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3 ro->ec:ec->28->2: 3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded specials : tex,postscript,rokicki loaded system : hello.top loaded (./hello.top specials : loading definition file dpx (/usr/local/context/tex/texmf-context/tex/context/base/spec-dpx.tex specials : loading definition file fdf (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.tex (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.mkii)) specials : fdf loaded ) specials : fdf,dpx loaded specials : loading definition file xet (/usr/local/context/tex/texmf-context/tex/context/base/spec-xet.tex) specials : fdf,dpx loaded ) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) systems : begin file hello at line 33 fonts : resetting map file list fonts : using map file: original-base fonts : using map file: lm-math fonts : using map file: lm-rm fonts : using map file: texnansi-base fonts : using map file: ec-base fonts : using map file: qx-base fonts : using map file: t5-base fonts : using map file: 8r-base fonts : using map file: original-ams-base fonts : using map file: original-ams-euler fonts : using map file: original-public-lm (/usr/local/context/tex/texmf-context/tex/context/base/sort-def.tex (/usr/local/context/tex/texmf-context/tex/context/base/sort-def.mkii)) (/usr/local/context/tex/texmf-context/tex/context/base/sort-lan.tex loading : Context Sorting Macros (languages) (/usr/local/context/tex/texmf-context/tex/context/base/sort-lan.mkii)) [1.1] systems : end file hello at line 35 system : cont-err loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead stdin -> hello.pdf
[1 ** ERROR ** Invalid font: -1 (0) Output file removed. ) ) Output written on hello.pdf (1 page). Transcript written on hello.log. TeXUtil | parsing file hello.tui TeXUtil | shortcuts : 169 TeXUtil | expansions: 308 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 21 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 3.39437
On Jan 22, 2008 12:00 AM, Roland wrote:
Hi Mojca,
Not quite there yet. I did manage to install the standalone ConTeXt without problems after changing the line 18 of that file. I also found the same error in setuptex, which of course prevented me from getting the right new mktexlsr and texexec onto the path...
Thanks for the reminder, fixed now (it has been copy-pasted of course).
Anyway that's solved now and Textmate and the shell are calling the right distribution. Guess what -- I'm still at the original problem now:
** ERROR ** Invalid font: -1 (0)
OK, but wait - that either a) seems to be a XeTeX problem now. b) ConTeXt asks XeTeX to use Eco101Roman.pfb, which might be found, but doesn't work Can you try to use just \starttext \font\a="Eco101Roman" {\a test a} \definefontsynonym[b][name:Eco101Roman][features=default] {\definedfont[b] test b} \stoptext Try to use \definefontsynonym[name:Eco-Regular] [Eco101Roman][features=default] \definefontsynonym[name:Eco-Bold] [Eco301Bold][features=default] \definefontsynonym[name:Eco-Italic] [Eco102Italic][features=default] \definefontsynonym[name:Eco-BoldItalic][...][features=default] instead of the four Wolfgang's suggestions.
(though still using Wolfgang's suggested script). See output below. I'm getting desperate now...
There is no need to :) ConTeXt community is really a friendly one, and sooner or later you will find the answers. Mojca
Oh well let's try again in that case ;-) I ran the first test script and it gives the same error (see log 1). Then I went back to Wolfgang's recommended script and replaced the second typescript block with your suggested lines (the bolditalic font is called Eco302BoldItalic, by the way). This produced the errors as enclosed in log 2... Thanks again Roland ====== LOG 1 ========= TeXExec | processing document 'hello.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file hello.top TeXExec | using randomseed 166 TeXExec | tex engine: xetex TeXExec | tex format: cont-en This is XeTeXk, Version 3.141592-2.2-0.997 (Web2C 7.5.6) \write18 enabled. file:line:error style messages enabled. entering extended mode (./hello.tex ConTeXt ver: 2008.01.16 13:49 MKII fmt: 2008.1.21 int: english/english language : language en is active system : cont-new loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkii) (/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)) bodyfont : 12pt rm is loaded language : patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3 de->ec:ec->3->2: 3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3 pl->ec:ec->7->2:3 cz->e c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3 en->ec:ec-
13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3 da->ec:ec->1 7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3 deo->ec:ec->21- 2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3 ro->ec:ec->28->2: 3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded specials : tex,postscript,rokicki loaded system : hello.top loaded (./hello.top specials : loading definition file dpx (/usr/local/context/tex/texmf-context/tex/context/base/spec-dpx.tex specials : loading definition file fdf (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.tex (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.mkii)) specials : fdf loaded ) specials : fdf,dpx loaded specials : loading definition file xet (/usr/local/context/tex/texmf-context/tex/context/base/spec-xet.tex) specials : fdf,dpx loaded ) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) systems : begin file hello at line 12 fonts : resetting map file list fonts : using map file: original-base fonts : using map file: lm-math fonts : using map file: lm-rm fonts : using map file: texnansi-base fonts : using map file: ec-base fonts : using map file: qx-base fonts : using map file: t5-base fonts : using map file: 8r-base fonts : using map file: original-ams-base fonts : using map file: original-ams-euler fonts : using map file: original-public-lm (/usr/local/context/tex/texmf-context/tex/context/base/sort-def.tex (/usr/local/context/tex/texmf-context/tex/context/base/sort-def.mkii)) (/usr/local/context/tex/texmf-context/tex/context/base/sort-lan.tex loading : Context Sorting Macros (languages) (/usr/local/context/tex/texmf-context/tex/context/base/sort-lan.mkii)) [1.1] systems : end file hello at line 18 system : cont-err loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead stdin -> hello.pdf
[1 ** ERROR ** Invalid font: -1 (1) Output file removed. ) ) (see the transcript file for additional information) Output written on hello.pdf (1 page). Transcript written on hello.log. TeXUtil | parsing file hello.tui TeXUtil | shortcuts : 169 TeXUtil | expansions: 308 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 21 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 5.324055 ===== END OF LOG 1 ===== ===== LOG 2 ===== TeXExec | processing document 'hello-r642.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file hello-r642.top TeXExec | using randomseed 718 TeXExec | tex engine: xetex TeXExec | tex format: cont-en This is XeTeXk, Version 3.141592-2.2-0.997 (Web2C 7.5.6) \write18 enabled. file:line:error style messages enabled. entering extended mode (./hello-r642.tex ConTeXt ver: 2008.01.16 13:49 MKII fmt: 2008.1.21 int: english/english language : language en is active system : cont-new loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkii) (/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)) bodyfont : 12pt rm is loaded language : patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3 de->ec:ec->3->2: 3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3 pl->ec:ec->7->2:3 cz->e c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3 en->ec:ec-
13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3 da->ec:ec->1 7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3 deo->ec:ec->21- 2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3 ro->ec:ec->28->2: 3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded specials : tex,postscript,rokicki loaded system : hello-r642.top loaded (./hello-r642.top specials : loading definition file dpx (/usr/local/context/tex/texmf-context/tex/context/base/spec-dpx.tex specials : loading definition file fdf (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.tex (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.mkii)) specials : fdf loaded ) specials : fdf,dpx loaded specials : loading definition file xet (/usr/local/context/tex/texmf-context/tex/context/base/spec-xet.tex) specials : fdf,dpx loaded ) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) ./hello-r642.tex:31: Font \*eco12ptrmtfrm*:=Eco-Regular at 12.0pt not loadable: Metric (TFM) file or installed font not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.31 \setupbodyfont[eco] No pages of output. Transcript written on hello-r642.log. TeXUtil | parsing file hello-r642.tui TeXUtil | shortcuts : 0 TeXUtil | expansions: 0 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 0 TeXUtil | temporary files: 0 TeXUtil | commands: 3 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | TeX run 2 TeXExec | writing option file hello-r642.top TeXExec | using randomseed 718 TeXExec | tex engine: xetex TeXExec | tex format: cont-en This is XeTeXk, Version 3.141592-2.2-0.997 (Web2C 7.5.6) \write18 enabled. file:line:error style messages enabled. entering extended mode (./hello-r642.tex ConTeXt ver: 2008.01.16 13:49 MKII fmt: 2008.1.21 int: english/english language : language en is active system : cont-new loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkii) (/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)) bodyfont : 12pt rm is loaded language : patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3 de->ec:ec->3->2: 3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3 pl->ec:ec->7->2:3 cz->e c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3 en->ec:ec-
13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3 da->ec:ec->1 7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3 deo->ec:ec->21- 2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3 ro->ec:ec->28->2: 3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded specials : tex,postscript,rokicki loaded system : hello-r642.top loaded (./hello-r642.top specials : loading definition file dpx (/usr/local/context/tex/texmf-context/tex/context/base/spec-dpx.tex specials : loading definition file fdf (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.tex (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.mkii)) specials : fdf loaded ) specials : fdf,dpx loaded specials : loading definition file xet (/usr/local/context/tex/texmf-context/tex/context/base/spec-xet.tex) specials : fdf,dpx loaded ) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) ./hello-r642.tex:31: Font \*eco12ptrmtfrm*:=Eco-Regular at 12.0pt not loadable: Metric (TFM) file or installed font not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.31 \setupbodyfont[eco] No pages of output. Transcript written on hello-r642.log. TeXUtil | parsing file hello-r642.tui TeXUtil | shortcuts : 0 TeXUtil | expansions: 0 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 0 TeXUtil | temporary files: 0 TeXUtil | commands: 3 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 28.552661 ===== END OF LOG 2 =====
On Jan 22, 2008 7:44 AM, Roland wrote:
Oh well let's try again in that case ;-)
I ran the first test script and it gives the same error (see log 1). Then I went back to Wolfgang's recommended script and replaced the second typescript block with your suggested lines (the bolditalic font is called Eco302BoldItalic, by the way). This produced the errors as enclosed in log 2...
Sorry, I was a bit confused when writing. In the second example it should have been: \definefontsynonym[Eco-Regular] [name:Eco101Roman][features=default] \definefontsynonym[Eco-Bold] [name:Eco301Bold][features=default] \definefontsynonym[Eco-Italic] [name:Eco102Italic][features=default] \definefontsynonym[Eco-BoldItalic][name:Eco302BoldItalic][features=default] Mojca
Hi Mojca, Sorry for the late reply. I was travelling extensively. Now I am trying to pick up this thread again -- here's the text source I used (with your latest suggestion) and the error produced (see line 100) -- still the same problem I think :-( 1 \starttypescript[serif][eco] 2 \definefontsynonym[Serif] [Eco-Regular] 3 \definefontsynonym[SerifBold] [Eco-Bold] 4 \definefontsynonym[SerifItalic] [Eco-Italic] 5 \definefontsynonym[SerifBoldItalic][Eco-BoldItalic] 6 \stoptypescript 7 8 \starttypescript[serif][eco] 9 \definefontsynonym[Eco-Regular] [name:Eco101Roman][features=default] 10 \definefontsynonym[Eco-Bold] [name:Eco301Bold][features=default] 11 \definefontsynonym[Eco-Italic] [name:Eco102Italic][features=default] 12 \definefontsynonym[Eco-BoldItalic][name:Eco302BoldItalic][features=default] 13 \stoptypescript 14 15 \starttypescript[eco] 16 \definetypeface[\typescriptone][rm][serif][eco][default] 17 \stoptypescript 18 19 \usetypescript[eco] 20 \setupbodyfont[eco] 21 22 \starttext 23 normal text, {\bf bold text}, {\em italic text} and {\bi bolditalic text}. 24 \stoptext 1 TeXExec | processing document 'hello.tex' 2 TeXExec | no ctx file found 3 TeXExec | tex processing method: context 4 TeXExec | TeX run 1 5 TeXExec | writing option file hello.top 6 TeXExec | using randomseed 13 7 TeXExec | tex engine: xetex 8 TeXExec | tex format: cont-en 9 This is XeTeXk, Version 3.141592-2.2-0.997 (Web2C 7.5.6) 10 \write18 enabled. 11 file:line:error style messages enabled. 12 entering extended mode 13 (./hello.tex 14 15 ConTeXt ver: 2008.01.16 13:49 MKII fmt: 2008.1.21 int: english/english 16 17 language : language en is active 18 system : cont-new loaded 19 (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex 20 systems : beware: some patches loaded from cont-new.tex 21 (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkii) 22 (/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) 23 system : cont-old loaded 24 (/usr/local/context/tex/texmf-context/tex/context/base/cont-old.tex 25 loading : Context Old Macros 26 ) 27 system : cont-fil loaded 28 (/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex 29 loading : Context File Synonyms 30 ) 31 system : cont-sys.rme loaded 32 (/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme 33 (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) 34 (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) 35 (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) 36 (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex)) 37 bodyfont : 12pt rm is loaded 38 language : patterns nl->ec:ec->1->2:3 fr->ec:ec->2->2:3 de->ec:ec->3->2: 39 3 it->ec:ec->4->2:3 pt->ec:ec->5->2:3 hr->ec:ec->6->2:3 pl->ec:ec->7->2:3 cz->e 40 c:ec->8->2:3 sk->ec:ec->9->2:3 sl->ec:ec->10->2:3 ru->ec:ec->12->2:3 en->ec:ec- 41 >13->2:3 uk->ec:ec->14->2:3 us->ec:ec->15->2:3 agr->ec:ec->16->2:3 da->ec:ec->1 42 7->2:3 sv->ec:ec->18->2:3 af->ec:ec->19->2:3 no->ec:ec->20->2:3 deo->ec:ec->21- 43 >2:3 es->ec:ec->25->2:3 ca->ec:ec->26->2:3 la->ec:ec->27->2:3 ro->ec:ec->28->2: 44 3 tr->ec:ec->29->2:3 fi->ec:ec->31->2:3 hu->ec:ec->32->2:3 loaded 45 specials : tex,postscript,rokicki loaded 46 system : hello.top loaded 47 (./hello.top 48 specials : loading definition file dpx 49 (/usr/local/context/tex/texmf-context/tex/context/base/spec-dpx.tex 50 specials : loading definition file fdf 51 (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.tex 52 (/usr/local/context/tex/texmf-context/tex/context/base/spec-fdf.mkii)) 53 specials : fdf loaded 54 ) 55 specials : fdf,dpx loaded 56 specials : loading definition file xet 57 (/usr/local/context/tex/texmf-context/tex/context/base/spec-xet.tex) 58 specials : fdf,dpx loaded 59 ) (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) 60 (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) 61 (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) 62 (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) 63 (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) 64 (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) 65 (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) 66 (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) 67 (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) 68 (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex) 69 (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex) 70 (/usr/local/context/tex/texmf-context/tex/context/base/type-xtx.tex) 71 (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) 72 (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) (./hello.tuo) 73 (./hello.tuo) (./hello.tuo) 74 systems : begin file hello at line 22 75 fonts : resetting map file list 76 fonts : using map file: original-base 77 fonts : using map file: lm-math 78 fonts : using map file: lm-rm 79 fonts : using map file: texnansi-base 80 fonts : using map file: ec-base 81 fonts : using map file: qx-base 82 fonts : using map file: t5-base 83 fonts : using map file: 8r-base 84 fonts : using map file: original-ams-base 85 fonts : using map file: original-ams-euler 86 fonts : using map file: original-public-lm 87 (/usr/local/context/tex/texmf-context/tex/context/base/sort-def.tex 88 (/usr/local/context/tex/texmf-context/tex/context/base/sort-def.mkii)) 89 (/usr/local/context/tex/texmf-context/tex/context/base/sort-lan.tex 90 loading : Context Sorting Macros (languages) 91 (/usr/local/context/tex/texmf-context/tex/context/base/sort-lan.mkii)) [1.1] 92 systems : end file hello at line 24 93 system : cont-err loaded 94 (/usr/local/context/tex/texmf-context/tex/context/base/cont-err.tex 95 systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead 96 stdin -> hello.pdf 97 98 [1 99 100 ** ERROR ** Invalid font: -1 (0) 101 102 103 104 Output file removed. 105 106 ) ) 107 (see the transcript file for additional information) 108 Output written on hello.pdf (1 page). 109 Transcript written on hello.log. 110 TeXUtil | parsing file hello.tui 111 TeXUtil | shortcuts : 169 112 TeXUtil | expansions: 308 113 TeXUtil | reductions: 0 114 TeXUtil | divisions : 0 115 TeXUtil | loaded files: 1 116 TeXUtil | temporary files: 0 117 TeXUtil | commands: 21 118 TeXUtil | programs: 0 119 TeXUtil | tuo file saved 120 TeXExec | runtime: 2.352912
participants (2)
-
Mojca Miklavec
-
Roland