ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: a question about ConTeXt + AUCTeX
@ 2008-05-19  4:03 Dalyoung Jeong
  2008-05-19  7:44 ` Thomas A. Schmitz
  0 siblings, 1 reply; 11+ messages in thread
From: Dalyoung Jeong @ 2008-05-19  4:03 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: a question about ConTeXt + AUCTeX
  2008-05-19  4:03 a question about ConTeXt + AUCTeX Dalyoung Jeong
@ 2008-05-19  7:44 ` Thomas A. Schmitz
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas A. Schmitz @ 2008-05-19  7:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: a question about ConTeXt + AUCTeX
       [not found]   ` <492F42BE.7000605@googlemail.com>
@ 2008-11-28  8:08     ` Thomas A. Schmitz
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas A. Schmitz @ 2008-11-28  8:08 UTC (permalink / raw)
  To: Mohamed Bana; +Cc: mailing ConTeXt users list for


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: a question about ConTeXt + AUCTeX
  2008-05-17  9:28     ` Taco Hoekwater
@ 2008-05-17 16:06       ` Thomas A. Schmitz
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas A. Schmitz @ 2008-05-17 16:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: a question about ConTeXt + AUCTeX
  2008-05-17  9:18   ` Thomas A. Schmitz
@ 2008-05-17  9:28     ` Taco Hoekwater
  2008-05-17 16:06       ` Thomas A. Schmitz
  0 siblings, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2008-05-17  9:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: a question about ConTeXt + AUCTeX
  2008-05-17  8:53 ` Jean Magnan de Bornier
@ 2008-05-17  9:18   ` Thomas A. Schmitz
  2008-05-17  9:28     ` Taco Hoekwater
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas A. Schmitz @ 2008-05-17  9:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On May 17, 2008, at 10:53 AM, Jean Magnan de Bornier wrote:

> Le 17 mai à 10:11:13 Dalyoung Jeong <haksan@mac.com> é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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: a question about ConTeXt + AUCTeX
  2008-05-17  8:11 Dalyoung Jeong
@ 2008-05-17  8:53 ` Jean Magnan de Bornier
  2008-05-17  9:18   ` Thomas A. Schmitz
  0 siblings, 1 reply; 11+ messages in thread
From: Jean Magnan de Bornier @ 2008-05-17  8:53 UTC (permalink / raw)
  To: ntg-context

Le 17 mai à 10:11:13 Dalyoung Jeong <haksan@mac.com> é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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: a question about ConTeXt + AUCTeX
@ 2008-05-17  8:11 Dalyoung Jeong
  2008-05-17  8:53 ` Jean Magnan de Bornier
  0 siblings, 1 reply; 11+ messages in thread
From: Dalyoung Jeong @ 2008-05-17  8:11 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: a question about ConTeXt + AUCTeX
  2008-05-15  9:02 Dalyoung Jeong
  2008-05-15 10:50 ` Hans Hagen
@ 2008-05-15 12:00 ` Thomas A. Schmitz
       [not found]   ` <492F42BE.7000605@googlemail.com>
  1 sibling, 1 reply; 11+ messages in thread
From: Thomas A. Schmitz @ 2008-05-15 12:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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-en>command > 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: a question about ConTeXt + AUCTeX
  2008-05-15  9:02 Dalyoung Jeong
@ 2008-05-15 10:50 ` Hans Hagen
  2008-05-15 12:00 ` Thomas A. Schmitz
  1 sibling, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2008-05-15 10:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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-en>command > 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

* a question about ConTeXt + AUCTeX
@ 2008-05-15  9:02 Dalyoung Jeong
  2008-05-15 10:50 ` Hans Hagen
  2008-05-15 12:00 ` Thomas A. Schmitz
  0 siblings, 2 replies; 11+ messages in thread
From: Dalyoung Jeong @ 2008-05-15  9:02 UTC (permalink / raw)
  To: ntg-context

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-en>command > ConTeXt, it runs with the command
"texexec --once --pdf ...".
Is there any way to change it to "texmfstart texexec ..."?

Thank you.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-11-28  8:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19  4:03 a question about ConTeXt + AUCTeX Dalyoung Jeong
2008-05-19  7:44 ` Thomas A. Schmitz
  -- strict thread matches above, loose matches on Subject: below --
2008-05-17  8:11 Dalyoung Jeong
2008-05-17  8:53 ` Jean Magnan de Bornier
2008-05-17  9:18   ` Thomas A. Schmitz
2008-05-17  9:28     ` Taco Hoekwater
2008-05-17 16:06       ` Thomas A. Schmitz
2008-05-15  9:02 Dalyoung Jeong
2008-05-15 10:50 ` Hans Hagen
2008-05-15 12:00 ` Thomas A. Schmitz
     [not found]   ` <492F42BE.7000605@googlemail.com>
2008-11-28  8:08     ` Thomas A. Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).