Re: [NTG-context] LuaTeX on Mac OS X

2007-10-11 Thread Otared Kavian
Dear Joeng, dear Thomas,

Thank you so much for your message and your invaluable help.
Indeed thanks to Thomas' instructions, after correcting a few  
details, I could install LuaTeX and typeset the file test-1.tex with  
the command

texexec --lua test-1.tex

However, the execution stops with this error message:

everyjob \the \everyloadluacode
   \the \everyfinalizeluacode \the  
\everyjob

but after ignoring such messages with the command

r

(meaning run without complaining...) I get the expected PDF file.

Since this is not yet a clean and thoroughly working installation, I  
have not yet tried to put the install informations on the Wiki. Later  
next week I'll try to re-install everything anew and see whether I  
have well understood what is needed to run LuaTeX on MacOS X.

Best regards: OK

On 11 oct. 2007, at 17:22, Jeong Dalyoung wrote:

 Dear Otared,

 Finally, luatools is working in my system.

 I reinstalled gwTeX and followed Thomas' instruction.
 Also I got an advice from Lutz.
 She said that use the latest Luatex and stable version of Context.
 Hence I installed stable version of the ConTeXt.
 I also saved environment variables in a file .luatex and run it  
 after open the terminal using 'source .luatex'
 After that luatools is working properly. As I wrote in the list, I  
 need to add a line 'trie_size=40' in texmf.cnf

 I tested a short file and it was working properly.
 However, I have an error when I compile a sample file in the wiki.  
 I don't know why. I hope that someone answer to that question.

 Since I did it, you will do it. Maybe you already run luatools  
 properly.

 Thank you.

 Best regards,

 Dalyoung

___
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] LuaTeX on Mac OS X

2007-10-11 Thread Hans Hagen
Otared Kavian wrote:
 Dear Joeng, dear Thomas,
 
 Thank you so much for your message and your invaluable help.
 Indeed thanks to Thomas' instructions, after correcting a few  
 details, I could install LuaTeX and typeset the file test-1.tex with  
 the command
 
   texexec --lua test-1.tex

--luatex

 However, the execution stops with this error message:
 
   everyjob \the \everyloadluacode
  \the \everyfinalizeluacode \the  
 \everyjob

looks like pdftex is called

Hans

-
   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] LuaTeX on Mac OS X

2007-10-06 Thread Thomas A. Schmitz

On Oct 6, 2007, at 5:47 AM, Jeong Dalyoung wrote:

 Dear Thomas, Hans, and all

 I am sorry to give another noise to you. I did install luatex once
 more and I'd like to report the results.


A simple search in the archives would have brought up this thread  
from yesterday:

http://archive.contextgarden.net/thread/20071005.055839.1a3f8676.en.html

which describes exactly your problem.

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] LuaTeX on Mac OS X

2007-10-05 Thread Jeong Dalyoung
Dear Thomas, Hans, and all

I am sorry to give another noise to you. I did install luatex once  
more and I'd like to report the results.

I removed TeX completely and reinstalled gwTeX again.
After that I followed the instructions given by Thomas. I made  
.luatex for the variables which contains the following lines:

export TEXMFCACHE=/tmp
export TEXMFCNF=/usr/local/gwTeX
export TEXMF={/Users/dalyoung/Library/texmf,/usr/local/gwTeX/ 
texmf.local,/usr/local/gwTeX/texmf.pkgs,/usr/local/gwTeX/texmf.gwtex,/ 
usr/local/gwTeX/texmf.texlive,/usr/local/gwTeX/texmf}
export LUAINPUTS={/usr/local/gwTeX/texmf.pkgs/tex/context/base,/usr/ 
local/gwTeX/texmf.pkgs/scripts/context/lua}

After running source .luatex, luatools --generate worked well.
I tried to run luatools --ini --verbose --compile cont-en, but  
there are several error occurred.

1. ...
loading : Context Language Macros / Initialization
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/lang-ini.mkiv
! LuaTeX error ...local/gwTeX/texmf.pkgs/tex/context/base/lang- 
ini.lua:9: attempt to index global 'lang' (a nil value).
\ctxluabytecode ...ode  .. #1 .. str) end end }

\registerctxluafile ...{\the \luabytecodecounter }
   \fi \fi
l.16 \registerctxluafile{lang-ini}{1.001}

?
[snip]

2. many of the following for all the languages.

Copyright 1990-2007 / PRAGMA ADE / J. Hagen - A.F. Otten

system (LUATEX) : [line 628]
)
system : cont-usr loaded
(/usr/local/gwTeX/texmf.pkgs/tex/context/config/cont-usr.tex
loading : User Settings
)
! LuaTeX error [string luas[0]]:1: attempt to call field  
'register' (a nil value).
\mkdoloadpatterns ... #2.\f!hyphensextension }) }

\next1 #1,-\preloadallpatterns {#1}
 \doprocesscommaitem
argument \relax nl,
   
fr,de,it,pt,hr,pl,cz,sk,sl,vn,ru,en,uk,us,agr,da,sv,af,...
\doprocesscommalist ...aitem \gobbleoneargument #1
   ,]\relax \global  
\advance ...
\preloadallpatterns ...uages ]\preloadallpatterns
   \global \let  
\preloadallpa...
\loaduserspecifications ...se \preloadallpatterns
   \fi
l.22 \loaduserspecifications

?
...
3.
! LuaTeX error [string luas[0]]:1: attempt to call field  
'register' (a nil value).
\mkdoloadpatterns ... #2.\f!hyphensextension }) }

l.26 \installlanguage [\s!en] [\c!state=\v!start]

! LuaTeX error [string luas[0]]:1: attempt to call field  
'register' (a nil value).
\mkdoloadpatterns ... #2.\f!hyphensextension }) }

l.27 \installlanguage [\s!uk] [\c!state=\v!start]
...

According to those lines, I assume that it is related with the  
languages. But I really do not know both causes and cures.

Thank you so much for all the helps you gave.

Best regards,

Dalyoung
___
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] LuaTeX on Mac OS X

2007-10-04 Thread Otared Kavian
Dear Thomas, dear Dalyoung, dear all,

Thank you so much for the detailed procedure you sent about  
installing LuaTeX on MacOS X.
I could follow your instructions up to some point, but I must confess  
that I ended up into some confusion when you say

 After that, we create symbolic links to these programs in the
 directory where
 we installed luatex:
 # cd /usr/local/texlive/2007/bin/i386-darwin/pdftex
 # sudo ln -s /usr/local/texlive/texmf-local/scripts/context/lua/
 luatools.lua luatools
 # sudo ln -s /usr/local/texlive/texmf-local/scripts/context/lua/
 mtxrun.lua mtxrun

Indeed the binary paths I have for my TeX programs are

/usr/local/gwTeX/bin/
/usr/texbin

of which the first one contains the directory

/usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0

However, in this directory I only have a file pdftex which is not a  
directory, and therefore the command

cd /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/

results in:

bash: cd: /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/: Not  
a directory

(By the way the command rehash you mention in your instructions  
does not exist, so I had to use
sudo texhash
instead. Also, in order to export the environment variables as you  
mention in your instructions, I had to switch to bash, the Bourne  
Again Shell. However these are not the main issues).

So it seems that the procedures for installing LuaTeX are not yet  
thouroughly straightforward, and persons like Dalyoung and me have to  
wait a little bit...

Once again thanks for your patience and help though!

Best regards: OK


On 2 oct. 2007, at 19:53, Thomas A. Schmitz wrote:


 On Oct 1, 2007, at 11:31 PM, Otared Kavian wrote:

 Dear Dalyoung,

 Like many other ConTeXt users I followed up the many threads about
 how to install, successfully, LuaTeX.
 In particular I was interested in your experience since I had more or
 less the same problems as the ones you described in your latest
 messages on the list.
 Now my question is: did you succeed to install and use LuaTeX on Mac
 OS X?
  --- If yes, could you please describe how you did proceed?
  --- If no, this means we have to wait more for our salvation...

 Thanks for your attention and best regards: OK


 OK, I have just summarized my own experience with luatex. Please
 comment; if this is helpful at all, we should put it on the wiki.

 Thomas

 Setting up luatex on OS X

 The following remarks are not more than an amplification of what Hans
 writes in
 magazin #12. However, since some users have had difficulties, here's
 a short
 summary of the steps that I have followed on my system (OS X 10.4;
 system
 language set to English; vanilla TeXLive installation) to work with
 luatex.

 1. Get the latest ConTeXt version.

 Download the latest cont-tmf.zip at
 www.pragma-ade.com (either stable or beta). Unzip this file in a
 texmf-tree. It
 is recommended that you do this in a local tree. This way, if you
 ever have
 problems, you can just delete this local tree and continue working
 with the
 stable tree that came with your distribution. If you don't know where
 your
 local texmf tree is located, follow these directions (a line with #
 in front
 means you should type the line following this # into your Terminal
 window;
 press Return at the end of the line. Comments or explanations which
 should
 not be retyped are included in  brackets. Please be careful to  
 retype
 exactly, leaving all the quotes etc. in place!).

 # kpsewhich --expand-var '$TEXMFLOCAL'

 On my system, this expands to
 /usr/local/texlive/texmf-local

 Now go to this directory

 # cd /usr/local/texlive/texmf-local

 download the file cont-tmf.zip to this directory and unzip it. On
 most systems,
 you will need superuser rights to do this; after entering the sudo
 command, you
 will be asked for your password.

 # sudo unzip cont-tmf.zip
 Password:
 # type your password, then RETURN
 Archive:  cont-tmf.zip
 replace bibtex/bst/context/cont-ab.bst? [y]es, [n]o, [A]ll, [N]one,
 [r]ename:
 # type A then type RETURN

 After this, a long list of files will scroll by.

 2. Regenerate the formats

 While we're at it, we might as well regenerate the formats for pdftex-
 based
 ConTeXT:

 # sudo texmfstart texexec --make --all --pdftex

 You'll see the output on the Terminal; at the end, texexec should
 tell you that
 it has regenerated all the formats.
 TeXExec |
 TeXExec | tex engine path: /usr/local/texlive/2007/texmf-config/web2c/
 pdftex
 TeXExec | mps engine path: /usr/local/texlive/2007/texmf-config/web2c
 TeXExec |
 TeXExec | tex: 02/10/2007 17:50:43  /usr/local/texlive/2007/texmf-
 config/web2c/pdftex/cont-en.fmt (7392414)
 TeXExec | tex: 02/10/2007 17:50:57  /usr/local/texlive/2007/texmf-
 config/web2c/pdftex/cont-nl.fmt (7473512)
 TeXExec | tex: 02/10/2007 17:50:57  /usr/local/texlive/2007/texmf-
 config/web2c/pdftex/mptopdf.fmt (277947)
 TeXExec | mps: 02/10/2007 17:50:58  /usr/local/texlive/2007/texmf-
 config/web2c/metafun.mem (482192)
 TeXExec |
 TeXExec | 

Re: [NTG-context] LuaTeX on Mac OS X

2007-10-04 Thread Thomas A. Schmitz

On Oct 4, 2007, at 8:28 AM, Otared Kavian wrote:

 Indeed the binary paths I have for my TeX programs are

 /usr/local/gwTeX/bin/
 /usr/texbin

 of which the first one contains the directory

 /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0

 However, in this directory I only have a file pdftex which is not a
 directory, and therefore the command

 cd /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/

 results in:

 bash: cd: /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/pdftex/: Not
 a directory

Sorry, that was a typo! So in your case, that should be

cd /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0

Btw, rehash is not the same as texhash: in some shells (I use  
zsh, the best shell in the world), you run this command when you add  
a new binary to your path.

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] LuaTeX on Mac OS X

2007-10-04 Thread Mojca Miklavec
On 10/4/07, Otared Kavian wrote:

 So it seems that the procedures for installing LuaTeX are not yet
 thouroughly straightforward, and persons like Dalyoung and me have to
 wait a little bit...

I have never been stubborn enough in order to try to make luatex work
over the existing gwTeX, so I have been always using Hans's minimals
(you need to download justtex.zip and macosxtex.zip, unzip them and
run . setuptex).

If you only want to play with luaTeX, here's something experimental
that you can test if you have rsync (no warranty that the structure
will remain the same):

rsync -rvzctl rsync://contextgarden.net/minimals/minimals/mac-ppc/ mytex
cd mytex
. setuptex
mktexlsr
luatools --generate
texexec --lua --make --all
texexec --make --all

and then you should be able to compile your document with
texexec --lua something
(as long as you stay in the same terminal)

Mojca
___
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] LuaTeX on Mac OS X

2007-10-04 Thread Dalyoung Jeong
Dear Thomas, Mojca, and Otared,

Thank you for the instructions. I think that I followed the  
instructions of installation without problems. But I have a problem  
running luatools.

A few week ago, I succeeded running luatools --generate, but not  
luatools --ini --... after making .luatex containg variables like  
TEXMF, TEXMFCNF, etc.

I removed gwTeX and reinstalled MacTeX, I did the same steps of  
installation and I got the errors. At this time, even luatools -- 
generate didn't run correctly. It is ooking for the wrong folder.

I tried setuptex(copy setuptex to the binary, and chmod 755 to  
run), but it asked me to provide a proper tex directory like / 
something/tex

It seems to me that luatools are not able to get the texlive home  
dirextory.
I may try once more using another mac because sometime it behaved  
differently.

Thank you for your concern.

Best regards,

Dalyoung


___
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] LuaTeX on Mac OS X

2007-10-04 Thread Mojca Miklavec
On 10/4/07, Dalyoung Jeong [EMAIL PROTECTED] wrote:
 Dear Thomas, Mojca, and Otared,

 Thank you for the instructions. I think that I followed the
 instructions of installation without problems. But I have a problem
 running luatools.

 A few week ago, I succeeded running luatools --generate, but not
 luatools --ini --... after making .luatex containg variables like
 TEXMF, TEXMFCNF, etc.

 I removed gwTeX and reinstalled MacTeX, I did the same steps of
 installation and I got the errors. At this time, even luatools --
 generate didn't run correctly. It is ooking for the wrong folder.

 I tried setuptex(copy setuptex to the binary, and chmod 755 to
 run), but it asked me to provide a proper tex directory like /
 something/tex

Because it's hardcoded in setuptex that one needs to have some files
at fixed locations. You can modify setuptex a bit according to your
needs (remove those explicit checks).

Mojca
___
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] LuaTeX on Mac OS X

2007-10-03 Thread Taco Hoekwater
Jeong Dalyoung wrote:
 Dear Hans,
 
 Thank you for your concern.
 
 There is no non-ascii character in folder names except ~/Documents/.
 
 And the TeX directory is
 
 /usr/local/texlive/{2007, texmf-local}/...

Do you have this in an environment variable including the space?
If so, I would advice trying the same without space, just in case.

Best wishes,
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] LuaTeX on Mac OS X

2007-10-02 Thread Dalyoung Jeong
Dear Otared,

Thank you for your mail.
Since there is no echo at all on this matter for a few days, I think  
that I am the only person who has the installation problem.

I tired in many ways. I repeated the installation process  three  
times from the scratch.
But I have no progress at all.

I made  .luatex(it is described by Thomas in ntg-context digest vol  
39, issue 30), and got the following result. there is a little  
difference. luatools tried to load texmf.cnf but face to an error soon.



dalyoung$ source ~/.luatex
dalyoung$ luatools --generate

LuaTools | skipping /usr/local/texlive/2007/bin/powerpc-darwin/texmf.cnf
LuaTools | skipping /usr/local/texlive/2007/bin/powerpc-darwin/share/ 
texmf-local/web2c/texmf.cnf
...
LuaTools | skipping /usr/local/texlive/2007/bin/texmf.cnf
LuaTools | skipping /usr/local/texlive/2007/bin/texmf/web2c/texmf.cnf
LuaTools | skipping /usr/local/texlive/2007/texmf.cnf
LuaTools | loading /usr/local/texlive/2007/texmf/web2c/texmf.cnf
LuaTools | skipping /./texmf.cnfError in lua file loading: /usr/ 
texbin/luatools:1108: bad argument #1 to 'sum' (string expected, got  
table)

%%%

As you see, the output of luatools --variables also gave the same  
output.

~ dalyoung$ luatools --variables
Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1  
to 'sum' (string expected, got table)
~ dalyoung$ luatools --show-path
Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1  
to 'sum' (string expected, got table)

%%%

There may be something that is unknown to us in our system. For  
information, I use mac G5(OSX 10.4.10, PPC) and installed MacTeX 2007  
version.

That is all that I can say right now. If you have anything good,  
please let me know.

Thank you for your concern.

best regards,

Dalyoung
___
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] LuaTeX on Mac OS X

2007-10-02 Thread Hans Hagen
Dalyoung Jeong wrote:

 Thank you for your mail.
 Since there is no echo at all on this matter for a few days, I think  
 that I am the only person who has the installation problem.

well, i have no mac -)

 LuaTools | loading /usr/local/texlive/2007/texmf/web2c/texmf.cnf
 LuaTools | skipping /./texmf.cnfError in lua file loading: /usr/ 
 texbin/luatools:1108: bad argument #1 to 'sum' (string expected, got  
 table)

hm, is there something weird in the cnf file?

 %%%
 
 As you see, the output of luatools --variables also gave the same  
 output.
 
 ~ dalyoung$ luatools --variables
 Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1  
 to 'sum' (string expected, got table)
 ~ dalyoung$ luatools --show-path
 Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1  
 to 'sum' (string expected, got table)
 
 %%%
 
 There may be something that is unknown to us in our system. For  
 information, I use mac G5(OSX 10.4.10, PPC) and installed MacTeX 2007  
 version.
 
 That is all that I can say right now. If you have anything good,  
 please let me know.

i remember problems with parsing filenames that had weird chars

what is in line 1108 of your luatools?

Hans

-
   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] LuaTeX on Mac OS X

2007-10-02 Thread Wolfgang Schuster
On Tue, 02 Oct 2007 09:56:23 +0200
Hans Hagen [EMAIL PROTECTED] wrote:

 Dalyoung Jeong wrote:
 
  Thank you for your mail.
  Since there is no echo at all on this matter for a few days, I think  
  that I am the only person who has the installation problem.
 
 well, i have no mac -)
 
  LuaTools | loading /usr/local/texlive/2007/texmf/web2c/texmf.cnf
  LuaTools | skipping /./texmf.cnfError in lua file loading: /usr/ 
  texbin/luatools:1108: bad argument #1 to 'sum' (string expected, got  
  table)
 
 hm, is there something weird in the cnf file?
 
  %%%
  
  As you see, the output of luatools --variables also gave the same  
  output.
  
  ~ dalyoung$ luatools --variables
  Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1  
  to 'sum' (string expected, got table)
  ~ dalyoung$ luatools --show-path
  Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1  
  to 'sum' (string expected, got table)
  
  %%%
  
  There may be something that is unknown to us in our system. For  
  information, I use mac G5(OSX 10.4.10, PPC) and installed MacTeX 2007  
  version.
  
  That is all that I can say right now. If you have anything good,  
  please let me know.
 
 i remember problems with parsing filenames that had weird chars
 
 what is in line 1108 of your luatools?

I have the same error message on my wndows machine but the setuptex
script solves this for me und LuaTeX is working.

Wolfgang
___
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] LuaTeX on Mac OS X

2007-10-02 Thread Dalyoung Jeong
Dear Hans,

Thank you for the reply.

Here is the codes of luatools.lua from line number 1106 -

%%%
1106: if md5 then do

1107:local function convert(str,fmt)
1108:return (string.gsub(md5.sum(str),.,function(chr)  
return string.format(fmt,string.byte(chr)) end))
1109:   end

 if not md5.HEX then function md5.HEX(str) return convert(str,% 
02X) end end
 if not md5.hex then function md5.hex(str) return convert(str,% 
02x) end end
 if not md5.dec then function md5.dec(str) return convert(stt,% 
03i) end end

end end

%

Since most people didn't have the problem in installation. it  
reminded me a problem when I installed the XeTeX a long time ago.  
After installed files of XeTeX, I tried to make a format, but I  
couldn't succeed. I reported the error message to XeTeX mailing list,  
but every one had no problem to install and to make a format. They  
said that it was good in their system.
Finally Jonathan found that it was related with my OSX(OSX korean  
version) even though I put english at the top priority in the  
preference panel.
He installed korean in his system to locate the problem and removed  
the problems.

Is this problem related with my OSX?

I hope that the line 1108 gives you a clue of my problem.

Thank you.

Best regards,

Dalyoung
___
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] LuaTeX on Mac OS X

2007-10-02 Thread Henning Hraban Ramm
Am 2007-10-02 um 14:27 schrieb Dalyoung Jeong:

  if not md5.HEX then function md5.HEX(str) return convert(str,%
 02X) end end
  if not md5.hex then function md5.hex(str) return convert(str,%
 02x) end end
  if not md5.dec then function md5.dec(str) return convert(stt,%
 03i) end end

I don't really know Lua, but stt looks like an error (maybe  
Dalyoung's?),
and if Lua makes a difference between unicode and byte strings,
the usage of str would explain problems with Korean directory names  
or the like.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] LuaTeX on Mac OS X

2007-10-02 Thread Hans Hagen
Henning Hraban Ramm wrote:
 Am 2007-10-02 um 14:27 schrieb Dalyoung Jeong:
 
  if not md5.HEX then function md5.HEX(str) return convert(str,%
 02X) end end
  if not md5.hex then function md5.hex(str) return convert(str,%
 02x) end end
  if not md5.dec then function md5.dec(str) return convert(stt,%
 03i) end end
 
 I don't really know Lua, but stt looks like an error (maybe  
 Dalyoung's?),
 and if Lua makes a difference between unicode and byte strings,
 the usage of str would explain problems with Korean directory names  
 or the like.

whow, pretty good close reading, should be str indeed!

this also points into the direction of a missing md5 lib; is texlua used?

Hans

-
   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] LuaTeX on Mac OS X

2007-10-02 Thread Hans Hagen
Dalyoung Jeong wrote:
 Dear Hans,
 
 Thank you for the reply.
 
 Here is the codes of luatools.lua from line number 1106 -
 
 %%%
 1106: if md5 then do
 
 1107:local function convert(str,fmt)
 1108:return (string.gsub(md5.sum(str),.,function(chr)  
 return string.format(fmt,string.byte(chr)) end))
 1109:   end
 
  if not md5.HEX then function md5.HEX(str) return convert(str,% 
 02X) end end
  if not md5.hex then function md5.hex(str) return convert(str,% 
 02x) end end
  if not md5.dec then function md5.dec(str) return convert(stt,% 
 03i) end end
 
 end end
 
 %
 
 Since most people didn't have the problem in installation. it  
 reminded me a problem when I installed the XeTeX a long time ago.  
 After installed files of XeTeX, I tried to make a format, but I  
 couldn't succeed. I reported the error message to XeTeX mailing list,  
 but every one had no problem to install and to make a format. They  
 said that it was good in their system.
 Finally Jonathan found that it was related with my OSX(OSX korean  
 version) even though I put english at the top priority in the  
 preference panel.
 He installed korean in his system to locate the problem and removed  
 the problems.
 
 Is this problem related with my OSX?

how do your paths look like? do they contain non ascii chars?

-
   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] LuaTeX on Mac OS X

2007-10-02 Thread Thomas A. Schmitz

On Oct 1, 2007, at 11:31 PM, Otared Kavian wrote:

 Dear Dalyoung,

 Like many other ConTeXt users I followed up the many threads about
 how to install, successfully, LuaTeX.
 In particular I was interested in your experience since I had more or
 less the same problems as the ones you described in your latest
 messages on the list.
 Now my question is: did you succeed to install and use LuaTeX on Mac
 OS X?
   --- If yes, could you please describe how you did proceed?
   --- If no, this means we have to wait more for our salvation...

 Thanks for your attention and best regards: OK


OK, I have just summarized my own experience with luatex. Please  
comment; if this is helpful at all, we should put it on the wiki.

Thomas

Setting up luatex on OS X

The following remarks are not more than an amplification of what Hans  
writes in
magazin #12. However, since some users have had difficulties, here's  
a short
summary of the steps that I have followed on my system (OS X 10.4;  
system
language set to English; vanilla TeXLive installation) to work with  
luatex.

1. Get the latest ConTeXt version.

Download the latest cont-tmf.zip at
www.pragma-ade.com (either stable or beta). Unzip this file in a  
texmf-tree. It
is recommended that you do this in a local tree. This way, if you  
ever have
problems, you can just delete this local tree and continue working  
with the
stable tree that came with your distribution. If you don't know where  
your
local texmf tree is located, follow these directions (a line with #  
in front
means you should type the line following this # into your Terminal  
window;
press Return at the end of the line. Comments or explanations which  
should
not be retyped are included in  brackets. Please be careful to retype
exactly, leaving all the quotes etc. in place!).

# kpsewhich --expand-var '$TEXMFLOCAL'

On my system, this expands to
/usr/local/texlive/texmf-local

Now go to this directory

# cd /usr/local/texlive/texmf-local

download the file cont-tmf.zip to this directory and unzip it. On  
most systems,
you will need superuser rights to do this; after entering the sudo  
command, you
will be asked for your password.

# sudo unzip cont-tmf.zip
Password:
# type your password, then RETURN
Archive:  cont-tmf.zip
replace bibtex/bst/context/cont-ab.bst? [y]es, [n]o, [A]ll, [N]one,  
[r]ename:
# type A then type RETURN

After this, a long list of files will scroll by.

2. Regenerate the formats

While we're at it, we might as well regenerate the formats for pdftex- 
based
ConTeXT:

# sudo texmfstart texexec --make --all --pdftex

You'll see the output on the Terminal; at the end, texexec should  
tell you that
it has regenerated all the formats.
TeXExec |
TeXExec | tex engine path: /usr/local/texlive/2007/texmf-config/web2c/ 
pdftex
TeXExec | mps engine path: /usr/local/texlive/2007/texmf-config/web2c
TeXExec |
TeXExec | tex: 02/10/2007 17:50:43  /usr/local/texlive/2007/texmf- 
config/web2c/pdftex/cont-en.fmt (7392414)
TeXExec | tex: 02/10/2007 17:50:57  /usr/local/texlive/2007/texmf- 
config/web2c/pdftex/cont-nl.fmt (7473512)
TeXExec | tex: 02/10/2007 17:50:57  /usr/local/texlive/2007/texmf- 
config/web2c/pdftex/mptopdf.fmt (277947)
TeXExec | mps: 02/10/2007 17:50:58  /usr/local/texlive/2007/texmf- 
config/web2c/metafun.mem (482192)
TeXExec |
TeXExec | runtime: 7.575246

3. Set environment variables

In its current beta stadium, luatex needs some environment variables  
to be set;
this will probably change soon. In my experiments, on OS X, it needs  
these
four variables:

TEXMFCACHE: this decides where the luatex-cache directory will be  
created. If
you set this variable to a temporary directory such as /tmp, it will  
be deleted
at every reboot. This is a good idea since luatex caches lots of  
files and
paths in this directory, so it makes sense to refresh this directory  
often.

TEXMFCNF: This should point to the directory where the file texmf.cnf  
which
your TeX installation uses is located. In order to find out where  
this is, run
this command:

#kpsewhich texmf.cnf

On my system, this points to
/usr/local/texlive/2007/texmf/web2c/texmf.cnf
so we need to set TEXMFCNF to /usr/local/texlive/2007/texmf/web2c.

TEXMF
This should list ALL texmf trees which your TeX installation uses. In  
order to
know what these trees are, run this command:

# kpsewhich --expand-var '$TEXMF'

The output of this command on my system is:

{/Users/tas/.texlive2007/texmf-config,/Users/tas/.texlive2007/texmf- 
var,/Users/tas/texmf,!!/usr/local/texlive/2007/texmf-config,!!/usr/ 
local/texlive/2007/texmf-var,!!/usr/local/texlive/2007/texmf,!!/usr/ 
local/texlive/2007/../texmf-local,!!/usr/local/texlive/2007/texmf- 
dist,!!/usr/local/texlive/2007/texmf.gwtex}

In this form, the list contains a few shortcuts and symbols which are  
special
to kpsewhich. Remove all the exclamation marks; if there are other  
shortcuts in
your output, bring it into a flat list of Unix directories.

LUAINPUTS

These 

Re: [NTG-context] LuaTeX on Mac OS X

2007-10-02 Thread Jeong Dalyoung
Dear Hans,

Thank you for your concern.

There is no non-ascii character in folder names except ~/Documents/.

And the TeX directory is

/usr/local/texlive/{2007, texmf-local}/...

By the way, where is setuptex command which can be used in Mac? I  
tried before as in the wiki, but it couldn't find such a command.

Thank you again.

Best regards,

Dalyoung


___
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] LuaTeX on Mac OS X

2007-10-02 Thread Arthur Reutenauer
 By the way, where is setuptex command which can be used in Mac? I  
 tried before as in the wiki, but it couldn't find such a command.

  In the minimal distribution:

http://www.pragma-ade.com/context/install/macosxtex.zip
___
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
___