[tex-live] XeTeX and ConTeXt

John Hughes jkhughes2 at googlemail.com
Wed Mar 11 20:13:14 CET 2009


2009/3/11 Yue Wang <yuleopen at gmail.com>:
>> I installed Ruby and can now use ConTeXt in TeX Live 2008. I am not
>> quite sure what the advantages of the "new stuff" in Mark IV are for
>> my relatively simple documents at the moment.
>
> If you want to use MKIV, don't use TL08, try minimals instead.
>
>>
>> I also discovered that I was accidently using fc-config from Cygwin
>> rather than the one supplied with TeX Live. However, having removed
>> Cygwin from the system path and making sure that I using the right
>> fc-cache, I am still having problems. When I run fc-cache, it seems to
>
> you can use the portable script, and it will automatically set the
> local environment.
> else, you should place texlive before the cygwin's path.
>
>
>> find the fonts in c:/windows/fonts. The problem is that when I run
>> xelatex or texexec --xtx, I get an error:
>>
>> Metric (TFM) or installed font not found
>>
>
> sample files please.
>
>> Any idea what the problem might be?
>>
>> John
>>
>

Sample files, as requested:

Firstly, using xelatex:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{article}

\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{xunicode}
\setmainfont{Times New Roman}

\begin{document}
Hello World
\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

This is XeTeXk, Version 3.1415926-2.2-0.999.7 (Web2C 7.5.7)
 %&-line parsing enabled.
entering extended mode
(./ltest.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, la
tin, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, r
omanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turki
sh, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/base/size10.clo))
(c:/Program Files/texlive/2008/texmf-dist/tex/xelatex/fontspec/fontspec.sty
(c:/Program Files/texlive/2008/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/tools/calc.sty)
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(c:/Program Files/texlive/2008/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(c:/Program Files/texlive/2008/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/base/fontenc.sty
(c:/Program Files/texlive/2008/texmf-dist/tex/xelatex/euenc/eu1enc.def)
(c:/Program Files/texlive/2008/texmf-dist/tex/xelatex/euenc/eu1lmr.fd))
fontspec.cfg loaded.
(c:/Program Files/texlive/2008/texmf-dist/tex/xelatex/fontspec/fontspec.cfg))
(c:/Program Files/texlive/2008/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/graphics/graphics.sty
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/graphics/trig.sty)
(c:/Program Files/texlive/2008/texmf/tex/latex/config/graphics.cfg)
(c:/Program Files/texlive/2008/texmf-dist/tex/xelatex/xetex-def/xetex.def)))
(c:/Program Files/texlive/2008/texmf-dist/tex/xelatex/xunicode/xunicode.sty)
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/etex-pkg/etex.sty)
(c:/Program Files/texlive/2008/texmf-dist/tex/latex/base/fixltx2e.sty))
! Font \zf at basefont="Times New Roman" at 10.0pt not loadable: Metric (TFM) file
 or installed font not found.
\zf at fontspec ...ntname \zf at suffix " at \f at size pt
                                                  \unless \ifzf at icu \zf at set@...
l.7 \setmainfont{Times New Roman}

?

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Secondly, using texexec:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\definetypeface[myfont][rm][Xserif][Times New Roman]
\setupbodyfont[myfont, 12pt]
\starttext
Hello World
\stoptext

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

TeXExec | processing document 'ctest.tex'
TeXExec | no ctx file found
TeXExec | utf mode forced (bom found)
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file ctest.top
TeXExec | using randomseed 878
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeXk, Version 3.1415926-2.2-0.999.7 (Web2C 7.5.7)
 %&-line parsing enabled.
entering extended mode
(./ctest.tex

ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2009.3.10  int: english/english

language        : language en is active
system          : cont-new loaded
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/cont-new.mkii)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/cont-mtx.tex))
system          : cont-old loaded
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(c:/Program Files/texlive/2008/texmf-dist/tex/context/user/cont-sys.rme
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-tmf.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-siz.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-otf.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-xtx.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->ec:ec->3->2:
3 fr->ec:ec->4->2:3 es->ec:ec->5->2:3 pt->ec:ec->6->2:3 it->ec:ec->7->2:3 nl->e
c:ec->8->2:3 cz->ec:ec->9->2:3 sk->ec:ec->10->2:3 pl->ec:ec->11->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : ctest.top loaded
(./ctest.top
regimes         : mapping utf to utf-8
specials        : loading definition file dpx
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/spec-dpx.tex
specials        : loading definition file fdf
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/spec-fdf.tex
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
)
specials        : fdf,dpx loaded
specials        : loading definition file xet
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/spec-xet.tex)
specials        : fdf,dpx loaded
) (c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-tmf.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-siz.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-otf.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-xtx.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-tmf.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-siz.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-otf.tex)
(c:/Program Files/texlive/2008/texmf-dist/tex/context/base/type-xtx.tex)
! Font \*myfont12ptrmtfrm*:="Times New Roman:+liga;+kern;mapping=tlig;+trep;" a
t 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.2 \setupbodyfont[myfont, 12pt]

?

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Any suggestions?

John


More information about the tex-live mailing list