Re: [NTG-context] [OS X TeX] formats for ConTeXt-XeTeX
Am 12.02.2006 um 18:54 schrieb Jonathan Kew:
On 12 Feb 2006, at 5:33 pm, Steffen Wolfrum wrote:
Hi,
again, after an i-installer update, my ConTeXt-XeTeX typesetting failed. Probably I'd never understood how to make the required formats (what command, what order) properly...
Did you reinstall XeTeX after updating the TeX package? I assume so, just checking....
Yes, this was the order: .FreeType 2 .libwmf .Ghostscript 8 .ImageMagick .FontForge .TeX .ConTeXt-Updater .XeTeX
Can someone please tell me what's the right way for using ConTeXt-XeTeX and ConTeXt-pdfeTeX?
....and if it looks simple and robust and I can understand it, I guess I could try adding this to the XeTeX installation scripts. I've never had the time to really look into ConTeXt, but it'd be nice if it could "just work" for people.
After an i-installation running ConTeXt (by pdfeTeX) works right out of the box (without any commandline action), same for plain XeTeX (plainTeX by XeTeX?). But running a ConTeXt document by XeTeX fails: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 fixing engine variable : pdfetex executable : xetex format : cont-en inputfile : text output : pdftex interface : en current mode : none TeX run : 1 This is XeTeX, Version 3.141592-2.2-0.99b (Web2C 7.5.3) (WARNING: translate-file "natural.tcx" ignored) ---! /usr/local/teTeX/share/texmf.local/web2c/cont-en.fmt was written by pdfetex (Fatal format file error; I'm stymied) return code : 256 run time : 1 seconds total run time : 1 seconds Someone knows what to do? Steffen
On Feb 12, 2006, at 8:49 PM, Steffen Wolfrum wrote:
This is XeTeX, Version 3.141592-2.2-0.99b (Web2C 7.5.3) (WARNING: translate-file "natural.tcx" ignored) ---! /usr/local/teTeX/share/texmf.local/web2c/cont-en.fmt was written by pdfetex ^^^^^^^^^^^
That's the problem. If you want both xetex and pdftex, you need to have two different format-files, both called cont-en.fmt. They need to be in two different subdirectories: /usr/local/teTeX/share/texmf.local/web2c/pdfetex [for pdfetex] /usr/local/teTeX/share/texmf.local/web2c/xetex [for xetex] Remove the cont-*.fmt files in the .../web2c directory and regenerate the formats with texexec. HTH Thomas
OK, a while ago I've found the XeTeX page in Patrick's garden: http:// wiki.contextgarden.net/XeTeX Now it works with both (pdfetex and xetex). Works fine in Terminal: texexec --xtx text.tex But the next problem is TeXShop. How do I trigger ConTeXt-XeTeX in TeXShop? The only solution I've found is: 1) start the document with %&program=xetex 2) in TeXShop's menu choose "Typeset": "ConTeXt" and "Personal Script" This will typeset a ConTeXt file with XeTeX. But at the end of TeXShop's log it says: "This script has been deprecated. Please call simpdftex latex test.dvi instead." So, what was wrong? What's the correct way? Steffen
Steffen Wolfrum wrote:
OK, a while ago I've found the XeTeX page in Patrick's garden: http:// wiki.contextgarden.net/XeTeX Now it works with both (pdfetex and xetex). Works fine in Terminal: texexec --xtx text.tex
But the next problem is TeXShop. How do I trigger ConTeXt-XeTeX in TeXShop? The only solution I've found is:
1) start the document with %&program=xetex 2) in TeXShop's menu choose "Typeset": "ConTeXt" and "Personal Script"
This will typeset a ConTeXt file with XeTeX. But at the end of TeXShop's log it says:
I'm not a TeXShop power user, or even a master shell scripter, but I did come up with the attached command, and saved it as ~/Library/TeXShop/Engines/XeConTeXt.engine For now, that's enough for me. I don't know how to trigger it programmatically (from within the .tex file). -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #!/bin/tcsh set path= ($path /usr/local/teTeX/bin/powerpc-apple-darwin-current /usr/local/bin) texexec --xtx "$1"
Hi Steffen, A few months ago I sent to the XeTeX list the following message regarding the use of XeConTeXt (that is a format mixing XeTeX and ConTeXt) from within TeXShop: 1) Create a (text) file called XeConTeXt.engine containing the lines: #!/bin/tcsh set path= ($path /usr/local/teTeX/bin/powerpc-apple-darwin-current / usr/local/bin) texexec --xtx "$1" and save it in the directory ~/Library/TeXShop/Engines If you use any other "shell" than "tcsh" you should put that shell instead. (The name "XeConTeXt.engine" can actually be "whatYouWant.engine"). 2) In a Terminal window make this file "XeConTeXt.engine" executable with the command chmod 755 XeConTeXt.engine 3) Reopen TeXShop and a file you want to typeset with XeConTeXt: you'll see in a small menu in the toolbar of the source file, that there is an option with XeConTeXt. Choose this and then typeset your file. Note: The above works provided the format cont-en.fmt created with XeTeX sits in the directory /usr/local/teTeX/share/texmf.local/web2c/xetex I hope this will be useful for what you want to do. Best regards: OK On 12 févr. 2006, at 18:10, Steffen Wolfrum wrote:
OK, a while ago I've found the XeTeX page in Patrick's garden: http:// wiki.contextgarden.net/XeTeX Now it works with both (pdfetex and xetex). Works fine in Terminal: texexec --xtx text.tex
But the next problem is TeXShop. How do I trigger ConTeXt-XeTeX in TeXShop? The only solution I've found is:
1) start the document with %&program=xetex 2) in TeXShop's menu choose "Typeset": "ConTeXt" and "Personal Script"
This will typeset a ConTeXt file with XeTeX. But at the end of TeXShop's log it says:
"This script has been deprecated. Please call
simpdftex latex test.dvi
instead."
So, what was wrong? What's the correct way?
Steffen _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (4)
-
Adam Lindsay
-
Otared Kavian
-
Steffen Wolfrum
-
Thomas A. Schmitz