ConTeXt with XeTeX (beginner question)
Hello, I am using MikTeX 2.7 with XeTeX 0.997 and ConTeXt version 2008.01.28 21:28. Working off of this wiki page, http://wiki.contextgarden.net/XeTeX I am trying to load system fonts in a ConTeXt document. When I run the file (below), I get an error (further below). One thing I suspect may be part of the problem is cont-en.fmt. In the MikTeX bin directory, I run texexec --make --xtx en This creates cont-en.fmt in the bin directory, but I don't know that that's where ConTeXt expects it to be. Searching the rest of the MikTeX directory structure, I can't find another file with that name. Any help appreciated, Adam Baker ====begin file==== \enableregime[utf] % not necessary since it is default regime, but can remind you that you must provide UTF-8�Ccoded text \definetypeface[myface][ss][Xsans][Arial] % or any else font in your /windows/fonts folder; run "fc-list
namelist.txt" to get them all \setupbodyfont[myface, 12pt]
\starttext Hello World! ����ڧӧ֧�! \stoptext ====end file==== C:\Documents and Settings\Adam Baker\My Documents\Booklet>texmfstart texexec --x tx test.tex TeXExec | processing document 'test.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 test.top TeXExec | using randomseed 1402 TeXExec | tex engine: xetex TeXExec | tex format: cont-en This is XeTeX, Version 3.141592-2.2-0.997 (MiKTeX 2.7) entering extended mode (test.tex ConTeXt ver: 2008.01.28 21:28 MKII fmt: 2008.3.3 int: english/english language : language en is active system : cont-new loaded ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-new.tex" systems : beware: some patches loaded from cont-new.tex ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-new.mkii") ("C:\Program File s\MiKTeX 2.7\tex\context\base\cont-mtx.tex")) system : cont-old loaded ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-old.tex" loading : Context Old Macros ) system : cont-fil loaded ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-fil.tex" loading : Context File Synonyms ) system : cont-sys.rme loaded ("C:\Program Files\MiKTeX 2.7\tex\context\user\cont-sys.rme" ("C:\Program Files\ MiKTeX 2.7\tex\context\base\type-tmf.tex") ("C:\Program Files\MiKTeX 2.7\tex\con text\base\type-siz.tex") ("C:\Program Files\MiKTeX 2.7\tex\context\base\type-otf .tex") ("C:\Program Files\MiKTeX 2.7\tex\context\base\type-xtx.tex")) bodyfont : 12pt rm is loaded Running makemf... makemf: The [lmromanslant10-regular]:+liga;+kern;mapping=tlig;+trep; source file could not be found. Running hbf2gf... hbf2gf (CJK ver. 4.7.0) Couldn't find `[lmromanslant10-regular]:+liga;+kern;mapping=tlig;+tre.cfg' maketfm: No creation rule for font [lmromanslant10-regular]:+liga;+kern;mapping= tlig;+trep;. Running makemf... makemf: The lmromanslant10-regular:+liga;+kern;mapping=tlig;+trep; source file c ould not be found. Running hbf2gf... hbf2gf (CJK ver. 4.7.0) Couldn't find `lmromanslant10-regular:+liga;+kern;mapping=tlig;+tre.cfg' maketfm: No creation rule for font lmromanslant10-regular:+liga;+kern;mapping=tl ig;+trep;. Running makemf... makemf: The lmromanslant10-regular source file could not be found. Running hbf2gf... hbf2gf (CJK ver. 4.7.0) Couldn't find `lmromanslant10-regul.cfg' maketfm: No creation rule for font lmromanslant10-regular. ! Font \*7ptrmslrm*:=lmromanslant10-regular at 7.0pt not loadable: Metric (TFM) file or installed font not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \dodosettextfamilyA ...amily \fontsize \endcsname \else \ifcsname \fontbody ... \dosettextfamily ...ttextfamily \scriptscriptfont \let \fontbody \scriptface... <inserted text> ...y \c!bf \dosettextfamily \c!sl \dosettextfamily \c!it \do... \synchronizetext ...athfonts \the \textstrategies \fi ... l.1 \enableregime[utf] ?
Have a look at this thread: http://archive.contextgarden.net/message/20080119.170549.5a52968f.en.html This may be the same problem. Thomas On Mar 4, 2008, at 5:45 PM, Adam Baker wrote:
Hello, I am using MikTeX 2.7 with XeTeX 0.997 and ConTeXt version 2008.01.28 21:28. Working off of this wiki page,
http://wiki.contextgarden.net/XeTeX
I am trying to load system fonts in a ConTeXt document. When I run the file (below), I get an error (further below). One thing I suspect may be part of the problem is cont-en.fmt. In the MikTeX bin directory, I run
texexec --make --xtx en
This creates cont-en.fmt in the bin directory, but I don't know that that's where ConTeXt expects it to be. Searching the rest of the MikTeX directory structure, I can't find another file with that name.
Any help appreciated, Adam Baker
====begin file==== \enableregime[utf] % not necessary since it is default regime, but can remind you that you must provide UTF-8–coded text \definetypeface[myface][ss][Xsans][Arial] % or any else font in your /windows/fonts folder; run "fc-list
namelist.txt" to get them all \setupbodyfont[myface, 12pt]
\starttext Hello World! Привет! \stoptext ====end file====
C:\Documents and Settings\Adam Baker\My Documents\Booklet>texmfstart texexec --x tx test.tex TeXExec | processing document 'test.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 test.top TeXExec | using randomseed 1402 TeXExec | tex engine: xetex TeXExec | tex format: cont-en This is XeTeX, Version 3.141592-2.2-0.997 (MiKTeX 2.7) entering extended mode (test.tex
ConTeXt ver: 2008.01.28 21:28 MKII fmt: 2008.3.3 int: english/ english
language : language en is active system : cont-new loaded ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-new.tex" systems : beware: some patches loaded from cont-new.tex ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-new.mkii") ("C: \Program File s\MiKTeX 2.7\tex\context\base\cont-mtx.tex")) system : cont-old loaded ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-old.tex" loading : Context Old Macros ) system : cont-fil loaded ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-fil.tex" loading : Context File Synonyms ) system : cont-sys.rme loaded ("C:\Program Files\MiKTeX 2.7\tex\context\user\cont-sys.rme" ("C: \Program Files\ MiKTeX 2.7\tex\context\base\type-tmf.tex") ("C:\Program Files\MiKTeX 2.7\tex\con text\base\type-siz.tex") ("C:\Program Files\MiKTeX 2.7\tex\context \base\type-otf .tex") ("C:\Program Files\MiKTeX 2.7\tex\context\base\type-xtx.tex")) bodyfont : 12pt rm is loaded Running makemf... makemf: The [lmromanslant10-regular]:+liga;+kern;mapping=tlig;+trep; source file could not be found. Running hbf2gf...
hbf2gf (CJK ver. 4.7.0)
Couldn't find `[lmromanslant10-regular]:+liga;+kern;mapping=tlig; +tre.cfg' maketfm: No creation rule for font [lmromanslant10-regular]:+liga; +kern;mapping= tlig;+trep;. Running makemf... makemf: The lmromanslant10-regular:+liga;+kern;mapping=tlig;+trep; source file c ould not be found. Running hbf2gf...
hbf2gf (CJK ver. 4.7.0)
Couldn't find `lmromanslant10-regular:+liga;+kern;mapping=tlig; +tre.cfg' maketfm: No creation rule for font lmromanslant10-regular:+liga; +kern;mapping=tl ig;+trep;. Running makemf... makemf: The lmromanslant10-regular source file could not be found. Running hbf2gf...
hbf2gf (CJK ver. 4.7.0)
Couldn't find `lmromanslant10-regul.cfg' maketfm: No creation rule for font lmromanslant10-regular. ! Font \*7ptrmslrm*:=lmromanslant10-regular at 7.0pt not loadable: Metric (TFM) file or installed font not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \dodosettextfamilyA ...amily \fontsize \endcsname \else \ifcsname \fontbody ... \dosettextfamily ...ttextfamily \scriptscriptfont \let \fontbody \scriptface... <inserted text> ...y \c!bf \dosettextfamily \c!sl \dosettextfamily \c! it \do... \synchronizetext ...athfonts \the \textstrategies \fi ... l.1 \enableregime[utf] ? ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Tue, Mar 4, 2008 at 6:07 PM, Thomas A. Schmitz wrote:
Have a look at this thread:
http://archive.contextgarden.net/message/20080119.170549.5a52968f.en.html
This may be the same problem.
True, but in MikTeX that should not happen since both ConTeXt and LM were supposed to be updated simultaneously. TeX Live has no auto-update mechanisms and at the time when the problem arised LM has not even been released yet. For a MikTeX user, following the suggestions from that old thread is probably a bad idea. Mojca
On Mar 4, 2008, at 5:45 PM, Adam Baker wrote:
Hello, I am using MikTeX 2.7 with XeTeX 0.997 and ConTeXt version 2008.01.28 21:28. Working off of this wiki page,
http://wiki.contextgarden.net/XeTeX
I am trying to load system fonts in a ConTeXt document. When I run the file (below), I get an error (further below). One thing I suspect may be part of the problem is cont-en.fmt. In the MikTeX bin directory, I run
texexec --make --xtx en
This creates cont-en.fmt in the bin directory, but I don't know that that's where ConTeXt expects it to be. Searching the rest of the MikTeX directory structure, I can't find another file with that name.
Any help appreciated, Adam Baker
====begin file==== \enableregime[utf] % not necessary since it is default regime, but can remind you that you must provide UTF-8–coded text \definetypeface[myface][ss][Xsans][Arial] % or any else font in your /windows/fonts folder; run "fc-list
namelist.txt" to get them all \setupbodyfont[myface, 12pt]
\starttext Hello World! Привет! \stoptext ====end file====
C:\Documents and Settings\Adam Baker\My Documents\Booklet>texmfstart texexec --x tx test.tex TeXExec | processing document 'test.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 test.top TeXExec | using randomseed 1402 TeXExec | tex engine: xetex TeXExec | tex format: cont-en This is XeTeX, Version 3.141592-2.2-0.997 (MiKTeX 2.7) entering extended mode (test.tex
ConTeXt ver: 2008.01.28 21:28 MKII fmt: 2008.3.3 int: english/ english
language : language en is active system : cont-new loaded ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-new.tex" systems : beware: some patches loaded from cont-new.tex ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-new.mkii") ("C: \Program File s\MiKTeX 2.7\tex\context\base\cont-mtx.tex")) system : cont-old loaded ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-old.tex" loading : Context Old Macros ) system : cont-fil loaded ("C:\Program Files\MiKTeX 2.7\tex\context\base\cont-fil.tex" loading : Context File Synonyms ) system : cont-sys.rme loaded ("C:\Program Files\MiKTeX 2.7\tex\context\user\cont-sys.rme" ("C: \Program Files\ MiKTeX 2.7\tex\context\base\type-tmf.tex") ("C:\Program Files\MiKTeX 2.7\tex\con text\base\type-siz.tex") ("C:\Program Files\MiKTeX 2.7\tex\context \base\type-otf .tex") ("C:\Program Files\MiKTeX 2.7\tex\context\base\type-xtx.tex")) bodyfont : 12pt rm is loaded Running makemf... makemf: The [lmromanslant10-regular]:+liga;+kern;mapping=tlig;+trep; source file could not be found. Running hbf2gf...
hbf2gf (CJK ver. 4.7.0)
Couldn't find `[lmromanslant10-regular]:+liga;+kern;mapping=tlig; +tre.cfg' maketfm: No creation rule for font [lmromanslant10-regular]:+liga; +kern;mapping= tlig;+trep;. Running makemf... makemf: The lmromanslant10-regular:+liga;+kern;mapping=tlig;+trep; source file c ould not be found. Running hbf2gf...
hbf2gf (CJK ver. 4.7.0)
Couldn't find `lmromanslant10-regular:+liga;+kern;mapping=tlig; +tre.cfg' maketfm: No creation rule for font lmromanslant10-regular:+liga; +kern;mapping=tl ig;+trep;. Running makemf... makemf: The lmromanslant10-regular source file could not be found. Running hbf2gf...
hbf2gf (CJK ver. 4.7.0)
Couldn't find `lmromanslant10-regul.cfg' maketfm: No creation rule for font lmromanslant10-regular. ! Font \*7ptrmslrm*:=lmromanslant10-regular at 7.0pt not loadable: Metric (TFM) file or installed font not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \dodosettextfamilyA ...amily \fontsize \endcsname \else \ifcsname \fontbody ... \dosettextfamily ...ttextfamily \scriptscriptfont \let \fontbody \scriptface... <inserted text> ...y \c!bf \dosettextfamily \c!sl \dosettextfamily \c! it \do... \synchronizetext ...athfonts \the \textstrategies \fi ... l.1 \enableregime[utf] ? ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Tue, Mar 4, 2008 at 5:45 PM, Adam Baker wrote:
Hello, I am using MikTeX 2.7 with XeTeX 0.997 and ConTeXt version 2008.01.28 21:28. Working off of this wiki page,
http://wiki.contextgarden.net/XeTeX
I am trying to load system fonts in a ConTeXt document. When I run the file (below), I get an error (further below). One thing I suspect may be part of the problem is cont-en.fmt. In the MikTeX bin directory, I run
texexec --make --xtx en
You don't need to run that. MikTeX should already generate the format for you (and it did, otherwise you would not be able to run "texexec --xtx" at all). In particular, "texexec --make --xtx en" probably behaves badly on MikTeX since: - there is no real need for it (you can use miktex's tools to generate format) - difficult to guess the most appropriate location where the format should go - Hans doesn't use MikTeX, other users do not care too much, mostly because of the first reason (there is gui to generate formats)
This creates cont-en.fmt in the bin directory, but I don't know that that's where ConTeXt expects it to be. Searching the rest of the MikTeX directory structure, I can't find another file with that name.
It's probably somewhere in "Documents and Settings". Try to look for kpsewhich cont-en.fmt
====begin file==== \enableregime[utf] % not necessary since it is default regime, but can remind you that you must provide UTF-8–coded text \definetypeface[myface][ss][Xsans][Arial] % or any else font in your /windows/fonts folder; run "fc-list
namelist.txt" to get them all \setupbodyfont[myface, 12pt]
\starttext Hello World! Привет! \stoptext ====end file====
You can also test with the simplest \starttext abc \stoptext file - I guess that it should result in the same problem. Just to make sure: have you updated the MikTeX packages recently? It looks like you have "new" ConTeXt and old Latin Modern fonts to me, but I might be wrong. Mojca
Just to make sure: have you updated the MikTeX packages recently? It looks like you have "new" ConTeXt and old Latin Modern fonts to me, but I might be wrong.
I believe this was the problem. I recently upgraded to MikTeX 2.7, but I also moved my packages with: mpm [snip] --import-all. I guess that imported old files. (Ironic step to include in an upgrade, eh?) I am now able to compile the above example with: texexec --xtx test Thanks to everyone for responding. Adam
participants (3)
-
Adam Baker
-
Mojca Miklavec
-
Thomas A. Schmitz