ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Struggling with luatools and MacTeX
@ 2008-05-25 23:08 Jin-Hwan Cho
  2008-05-26  8:58 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Jin-Hwan Cho @ 2008-05-25 23:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

For the first step to luatex, I tried to use luatools as written in  
Hans Hagen's MK manual.

1. Compiled a recent luatex and it was put in "/usr/texbin/luatex" and  
linked to "/usr/texbin/texlua".

2. Downloaded the current beta and construct my "$HOME/share/texmf- 
context".
    Of course, the line in /usr/local/texlive/2007/texmf/web2c/ 
texmf.cnf was changed as follows.

TEXMFHOME=$HOME/share/texmf-hyperref;$HOME/share/texmf-lm;$HOME/share/ 
texmf-context

3. Made a new "/usr/texbin/luatools" to use luatools.lua directly. The  
contents of the file was

#!/bin/sh
export SELFAUTOLOC=/usr/local/texlive/2007/bin
export SELFAUTODIR=/usr/local/texlive/2007
export SELFAUTOPARENT=/usr/local/texlive/2007
export TEXMFCACHE="$HOME/share"
texlua "$HOME/share/texmf-context/scripts/context/lua/luatools.lua" "$@"

4. Finally tried "luatools --generate" and it seemed that everything  
went smoothly.
    But I found that luatools did not cache the $TEXMFHOME directories  
because
    it consisted of more than one TEXMF directories. It's not a bug  
but here is a patch
    to solve this problem.

--- luatools.lua	2008-05-26 07:36:20.000000000 +0900
+++ luatools.lua.new	2008-05-26 07:59:17.000000000 +0900
@@ -3811,7 +3811,7 @@
          return { }
      else
          local t = { }
-        for _,v in ipairs(string.splitchr(str:gsub("^\{(.+)\} 
$","%1"),",")) do
+        for _,v in ipairs(string.splitchr(str:gsub("^\{(.+)\} 
$","%1"):gsub(";",","),",")) do
              t[#t+1] = (v:gsub("^[%!]*(.+)[%/\\]*$","%1"))
          end
          return t

5. Now tried "luatools cmr10.tfm" but no anwer. However "luatools  
cmr10.tfm*" showed
    the proper answer. It seems that this problem is related to the  
behavior of
    "luatools --ini plain" which says "LuaTools | no tex file with  
name plain.tex".

Is there something what I missed?

Best regards, ChoF.

___________________________________________________________________________________
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] 10+ messages in thread

end of thread, other threads:[~2008-05-27 21:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-25 23:08 Struggling with luatools and MacTeX Jin-Hwan Cho
2008-05-26  8:58 ` Hans Hagen
2008-05-26 22:00   ` Jin-Hwan Cho
2008-05-27  7:35     ` Hans Hagen
2008-05-27  8:21     ` Taco Hoekwater
2008-05-27  9:17       ` Jin-Hwan Cho
2008-05-27  9:49         ` Hans Hagen
2008-05-27 14:17           ` Jin-Hwan Cho
2008-05-27 14:23             ` Hans Hagen
2008-05-27 21:37               ` Jin-Hwan Cho

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).