Re: [NTG-context] a question about ConTeXt + AUCTeX
On Nov 28, 2008, at 2:00 AM, Mohamed Bana wrote: Hi Thomas, I was just browsing the ML looking for a solution to my problem. 1. I'd like to customise the commands used for 'ConTeXt' and 'ConTeXt Full' found in the 'Command' menu, e.g., I like to use 'context thefile' for the 'ConTeXt' command. 2. Can I bind these to certain shortcut keys? Thanks alot Mohamed I'm not sure what your question is. Have you tried the solution I've given? Is it working? If you use the customize command, this will write to your .emacs file. Thomas Thomas A. Schmitz wrote: I don't use Aquamacs precisely because I find customizing it more difficult than other Carbon Emacsen, but you can try this: M-x customize-variabel Return TeX-command-list Return in the list, scroll down to ConTeXt and change the Command to texmfstart texexec %t. You have to make sure yourself that texmfstart is in your $PATH and that Aquamaces knows about this $PATH. You can also add other commands, I have LuaConTeXt mtxrun --script context %t and XeConTeXt texmfstart texexec --xtx %t. HTH Thomas ___ 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 ___
Re: [NTG-context] a question about ConTeXt + AUCTeX
On May 19, 2008, at 6:03 AM, Dalyoung Jeong wrote: By the way, is it normal to run luatools --generate and luatools -- ini --verbose --compile ... whenever I start computer? Or, I missed something in my setup. Thank you again. Best regards, Dalyoung Jeong In the instructions I wrote a while ago on the list, I suggested putting the luatex-cache directory into the /tmp folder. This means it will be deleted at every reboot, so you'll indeed have to run these two commands at every startup. Now, luatex and mkiv have become more stable, so I wouldn't recommend that anymore. In your .luatex file, change the first line to export TEXMFCACHE=$HOME This way, the directory luatex-cache will be generated in your home directory and will persist across reboots, and you won't have to run these commands unless a new version comes out. Thomas ___ 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 ___
Re: [NTG-context] a question about ConTeXt + AUCTeX
Thank you for all the replies. I open Aquamacs emacs from the terminal in which source .luatex was executed. Then it worked fine. For other methods, I'll try later. By the way, is it normal to run luatools --generate and luatools -- ini --verbose --compile ... whenever I start computer? Or, I missed something in my setup. Thank you again. Best regards, Dalyoung Jeong ___ 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 ___
Re: [NTG-context] a question about ConTeXt + AUCTeX
Dear Thomas, Thank you for your reply. XeTeX+ ConTeXt is working after adding a command as you said. (customize-variaable) But Lua + ConTeXt is not working. If I do mtxrun --script context ..., then it complains. %%% Running `Other' on `test-lua' with ``mtxrun --script context %t'' MtxRun | unknown script: context % If I changed the command texmfstart texexec --lua %t, then I got the following. Running `LuaConTeXt' on `test-lua' with ``texmfstart texexec --lua test-lua.tex'' TeXExec | processing document 'test-lua.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file test-lua.top TeXExec | using randomseed 828 TeXExec | tex engine: luatex TeXExec | tex format: cont-en LuaTools | using format name /Users/dalyoung/luatex-cache/context/ 5759d5068ca15ba6658b2e6454390744/formats/cont-en.fmt LuaTools | no luc/lua with name /Users/dalyoung/luatex-cache/context/ 5759d5068ca15ba6658b2e6454390744/formats/cont-en LuaTools | LuaTools | runtime: 0.023 seconds TeXUtil | parsing file test-lua.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: 0.891602 LuaConTeXt finished at Sat May 17 16:14:24 However, the same command worked well in a terminal. Maybe the system setup of yours is different from mine. Usually I run source .luatex first before running luatex. So my guess is that emacs couldn't know the luatex path even though it is known in another program terminal. Am I correct? If so, how to apply environment .luatex to global condition? Otherwise, what are wrong in my setup? Thank you. Best regards, Dalyoung Jeong ___ 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 ___
Re: [NTG-context] a question about ConTeXt + AUCTeX
Le 17 mai à 10:11:13 Dalyoung Jeong [EMAIL PROTECTED] écrit notamment: | However, the same command worked well in a terminal. | Maybe the system setup of yours is different from mine. | Usually I run source .luatex first before running luatex. | So my guess is that emacs couldn't know the luatex path even though it | is known in another program terminal. | Am I correct? If so, how to apply environment .luatex to global | condition? Otherwise, what are wrong in my setup? Yes I think you are correct; if you start emacs *from this terminal from which you issued source .luatex* you will probably see that emacs knows luatex; this is what I had on my system, before I found how to have all my emacs know the proper environment. I am on linux and I believe you are on mac, so I'm not sure my experience can be extended to you? If needed I will be more specific. hth -- Jean ___ 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 ___
Re: [NTG-context] a question about ConTeXt + AUCTeX
On May 17, 2008, at 10:53 AM, Jean Magnan de Bornier wrote: Le 17 mai à 10:11:13 Dalyoung Jeong [EMAIL PROTECTED] écrit notamment: | However, the same command worked well in a terminal. | Maybe the system setup of yours is different from mine. | Usually I run source .luatex first before running luatex. | So my guess is that emacs couldn't know the luatex path even though it | is known in another program terminal. | Am I correct? If so, how to apply environment .luatex to global | condition? Otherwise, what are wrong in my setup? Yes I think you are correct; if you start emacs *from this terminal from which you issued source .luatex* you will probably see that emacs knows luatex; this is what I had on my system, before I found how to have all my emacs know the proper environment. I am on linux and I believe you are on mac, so I'm not sure my experience can be extended to you? If needed I will be more specific. hth Yes, you're both right. What I do (and what I find the easiest way): start emacs from the same terminal where you have issued source .luatex with the command open -a emacs. That way, emacs should know about path variables. Thomas ___ 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 ___
Re: [NTG-context] a question about ConTeXt + AUCTeX
Thomas A. Schmitz wrote: Yes, you're both right. What I do (and what I find the easiest way): start emacs from the same terminal where you have issued source .luatex with the command open -a emacs. That way, emacs should know about path variables. Emacs has a setenv command, so you could do the whole setuptex in elisp with commands like this in your emacs startup script: (setenv TEXMF {$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN}) Maybe that is an idea? Cheers, Taco ___ 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 ___
Re: [NTG-context] a question about ConTeXt + AUCTeX
On May 17, 2008, at 11:28 AM, Taco Hoekwater wrote: Emacs has a setenv command, so you could do the whole setuptex in elisp with commands like this in your emacs startup script: (setenv TEXMF {$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!! $TEXMFMAIN}) Maybe that is an idea? Cheers, Taco Yes, that would be possible (but you would also have to set the PATH variable). Another idea on Mac OS X is the use of an environment.plist which will set variables for all GUI applications. I'm not very much in favor of that, though, because it has created problems in the past with Geben Wierda's TeX installer. Since I spend much of my time in a terminal window anyway, I find it easiest to start emacs and/or gvim from there. Best Thomas ___ 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 ___
Re: [NTG-context] a question about ConTeXt + AUCTeX
Dalyoung Jeong wrote: Dear all, Recently I installed Aquamacs Emacs which is nicely working. And I also found AUCTeX macros in the wiki. Since I am a newbie to AUCTeX, I don't know how to apply such codes to Aquamacs. Would someone tell me how to do that? When I choose PDFConTeXt-encommand ConTeXt, it runs with the command texexec --once --pdf Is there any way to change it to texmfstart texexec ...? that;s indeed the prefered way to call texexec (more efficient too) - 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 - ___ 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 ___
Re: [NTG-context] a question about ConTeXt + AUCTeX
On May 15, 2008, at 11:02 AM, Dalyoung Jeong wrote: Dear all, Recently I installed Aquamacs Emacs which is nicely working. And I also found AUCTeX macros in the wiki. Since I am a newbie to AUCTeX, I don't know how to apply such codes to Aquamacs. Would someone tell me how to do that? When I choose PDFConTeXt-encommand ConTeXt, it runs with the command texexec --once --pdf Is there any way to change it to texmfstart texexec ...? Thank you. Dalyoung Jeong I don't use Aquamacs precisely because I find customizing it more difficult than other Carbon Emacsen, but you can try this: M-x customize-variabel Return TeX-command-list Return in the list, scroll down to ConTeXt and change the Command to texmfstart texexec %t. You have to make sure yourself that texmfstart is in your $PATH and that Aquamaces knows about this $PATH. You can also add other commands, I have LuaConTeXt mtxrun --script context %t and XeConTeXt texmfstart texexec --xtx %t. HTH Thomas ___ 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 ___