Re: [NTG-context] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-18 Thread Joel C. Salomon
On Jan 18, 2008 2:47 AM, Olivier <[EMAIL PROTECTED]> wrote:
> I am using Debian packages. It works but as Aditya already said,
> you have to export at least those two variables: TEXMFCNF and TEXMFCACHE.

> But (from your mails) you do not seem to have set the environment
> variables correctly.

That put me on the right track:

[EMAIL PROTECTED]:~$ kpsewhich --expand-var '$TEXMFCNF'
/usr/share/texmf/web2c:/usr/local/share/texmf/web2c
[EMAIL PROTECTED]:~$ luatools --generate

LuaTools | skipping
/usr/share/texmf/web2c:/usr/local/share/texmf/web2c/texmf.cnf
LuaTools |
LuaTools | runtime: 0.005 seconds
[EMAIL PROTECTED]:~$ export TEXMFCNF=/usr/share/texmf/web2c
[EMAIL PROTECTED]:~$ luatools --generate

LuaTools | loading /usr/share/texmf/web2c/texmf.cnf


...And now mkiv works!

So do I report as a Debian/Ubuntu package bug that TEXMFCNF is set
with multiple directories, or as a luatools bug that it can't handle a
multiple path?

--Joel
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-17 Thread Olivier
Quoting  "Joel C. Salomon" :
> -- was [EMAIL PROTECTED] on Jan 15, 2008 at 04:25:09PM --

> ...is still not working for me.
> 
> For those of you who have used mkiv under Ubuntu (or Debian, I
> suppose), had it worked "out of the box" or is "some assembly
> required"?

I am using Debian packages. It works but as Aditya already said,
you have to export at least those two variables: TEXMFCNF and TEXMFCACHE.

So something like :

$ export TEXMFCNF=/usr/share/texmf/web2c
$ cd ~; mkdir .texmf-cache
$ export TEXMFCACHE=~/.texmf-cache
$ luatools --generate 
$ texexec --lua --make --all

and then 

$ texexec --luatex test.tex 

should work.  But (from your mails) you do not seem to have set the
environment variables correctly.

Olivier

___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-17 Thread Taco Hoekwater
luigi scarso wrote:
>> [EMAIL PROTECTED]:~/Documents/tex practice$ luatools --variables
> Nothing ?

Just in case:

Did you run
$ luatools --generate
and
$ texexec --make --luatex
?

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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-17 Thread luigi scarso
> [EMAIL PROTECTED]:~/Documents/tex practice$ luatools --variables
Nothing ?
Strange, here
$>luatools --variables
   AFMFONTS=.:$TEXMF/fonts/afm//:$OSFONTDIR//
   BIBINPUTS=.:$TEXMF/bibtex/bib//
   BIBINPUTS.bibtex8=.:$TEXMF/bibtex/{bib,}//
   BSTINPUTS=.:$TEXMF/bibtex/{bst,csf}//
   BSTINPUTS.bibtex8=.:$TEXMF/bibtex/{bst,csf,}//
   CMAPFONTS=.:$TEXMF/fonts/cmap//
   CWEBINPUTS=.:$TEXMF/cweb//
   ENCFONTS=.:$TEXMF/fonts/enc//
   FC_CACHEDIR=$SELFAUTOLOC/cache
  FONTCONFIG_FILE=fonts.conf
  
  parse_first_line=t
  parse_first_line.tex=f
  pool_free=47500
  pool_size=125
  save_size=5000
  shell_escape=f
  stack_size=5000
  string_vacancies=9
  trie_size=30

(166 lines)
Do you have luatools in your $PATH ?
It should be in the same dir of texlua.

> [EMAIL PROTECTED]:~/Documents/tex practice$ texlua -help
> Usage: luatex --lua=FILE [OPTION]... [TEXNAME[.tex]] [COMMANDS]
ok, texlua is in your $PATH



-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-17 Thread Joel C. Salomon
On Jan 17, 2008 3:36 PM, luigi scarso <[EMAIL PROTECTED]> wrote:
> What about
>
> $> luatools --variables
> and
> $>texlua -help

[EMAIL PROTECTED]:~/Documents/tex practice$ luatools --variables

[EMAIL PROTECTED]:~/Documents/tex practice$ texlua -help
Usage: luatex --lua=FILE [OPTION]... [TEXNAME[.tex]] [COMMANDS]
   or: luatex --lua=FILE [OPTION]... \FIRST-LINE
   or: luatex --lua=FILE [OPTION]... &FMT ARGS
  Run luaTeX on TEXNAME, usually creating TEXNAME.pdf.
  Any remaining COMMANDS are processed as luatex input, after TEXNAME is read.

  Alternatively, if the first non-option argument begins with a backslash,
  interpret all non-option arguments as a line of luatex input.

  Alternatively, if the first non-option argument begins with a &, the
  next word is taken as the FMT to read, overriding all else.  Any
  remaining arguments are processed as above.

  If no arguments or options are specified, prompt for input.

  --lua=FILE   the lua initialization file
  --safer  disable some easily exploitable lua commands
  --fmt=FORMAT load the format file FORMAT
  --inibe initex, for dumping formats
  --help   display this help and exit
  --versionoutput version information and exit

  Alternate behaviour models can be obtained by special switches

  --luaonlyrun a lua file, then exit
  --luaconly   byte-compile a lua file, then exit

Email bug reports to [EMAIL PROTECTED]
[EMAIL PROTECTED]:~/Documents/tex practice$
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-17 Thread luigi scarso
What about

$> luatools --variables
and
$>texlua -help



-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-17 Thread Joel C. Salomon
On Jan 16, 2008 6:49 PM, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
> > Is texexec for some reason not actually running luatex here?
>
> Yes ...
>
>  > [EMAIL PROTECTED]:~/Documents/tex practice$ texexec --lutex hello_lua.tex
>
>--luatex, not --lutex

Good eye!

But now the problem looks different:

[EMAIL PROTECTED]:~/Documents/tex practice$ cat hello_lua.tex
\starttext
Hello World
\ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
\stoptext

[EMAIL PROTECTED]:~/Documents/tex practice$ texexec --luatex hello_lua.tex
TeXExec | processing document 'hello_lua.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello_lua.top
TeXExec | using randomseed 734
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en

LuaTools | using format name
///home/chesky/luatex-cache/context/192d6cc536013c8f36d612384a3a539c/formats/cont-en.fmt
LuaTools | no luc/lua with name
///home/chesky/luatex-cache/context/192d6cc536013c8f36d612384a3a539c/formats/cont-en
LuaTools |
LuaTools | runtime: 0.012 seconds
TeXUtil | parsing file hello_lua.tui
TeXUtil | check loading of file 'hello_lua', begin/end problem
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 1
TeXUtil | temporary files: 0
TeXUtil | commands: 3
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 0.399001
[EMAIL PROTECTED]:~/Documents/tex practice$

...and no PDF file is generated.  Any clues as to what I'm still doing wrong?

--Joel
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-16 Thread Aditya Mahajan
On Wed, 16 Jan 2008, Joel C. Salomon wrote:

> On Jan 15, 2008 10:51 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
>>> Is there a test file with mkiv-only features I can better test my
>>> installation on?
>>
>> \ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
>>
>> This will definitely not work for mkii :)
>
> Good point; and here's where I ran into trouble:
>
> [EMAIL PROTECTED]:~/Documents/tex practice$ cat hello_lua.tex
> \starttext
> Hello World
> \ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
> \stoptext
>
> [EMAIL PROTECTED]:~/Documents/tex practice$ texexec --lutex hello_lua.tex
> [snip]
> ConTeXt  ver: 2008.01.02 14:18 MKII  fmt: 2008.1.15  int: english/english

Notice MKII here. This means MKII is running.

Did you actually type --lutex (the correct option is --luatex or simply 
--lua)?

Aditya
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-16 Thread Taco Hoekwater
Joel C. Salomon wrote:
> On Jan 15, 2008 10:51 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
>>> Is there a test file with mkiv-only features I can better test my
>>> installation on?
>> \ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
>>
>> This will definitely not work for mkii :)
> 
> Good point; and here's where I ran into trouble:
 > ...
> ! Undefined control sequence.
> l.3 \ctxlua
>{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
> ?
> 
> Is texexec for some reason not actually running luatex here?

Yes ...

 > [EMAIL PROTECTED]:~/Documents/tex practice$ texexec --lutex hello_lua.tex

   --luatex, not --lutex

typos on texexec's command line are silently ignored, and mkii is
still the default, so texexec runs pdftex instead of luatex.

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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-16 Thread Joel C. Salomon
On Jan 15, 2008 10:51 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> > Is there a test file with mkiv-only features I can better test my
> > installation on?
>
> \ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
>
> This will definitely not work for mkii :)

Good point; and here's where I ran into trouble:

[EMAIL PROTECTED]:~/Documents/tex practice$ cat hello_lua.tex
\starttext
Hello World
\ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
\stoptext

[EMAIL PROTECTED]:~/Documents/tex practice$ texexec --lutex hello_lua.tex
TeXExec | processing document 'hello_lua.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello_lua.top
TeXExec | using randomseed 657
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
 (/usr/share/texmf/web2c/natural.tcx)
entering extended mode
(./hello_lua.tex

ConTeXt  ver: 2008.01.02 14:18 MKII  fmt: 2008.1.15  int: english/english

language: language en is active
system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkii)
(/usr/share/texmf/tex/context/base/cont-mtx.tex))
system  : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/etc/texmf/tex/context/user/cont-sys.rme
(/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-one.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials: tex,postscript,rokicki loaded
system  : hello_lua.top loaded
(./hello_lua.top
specials: loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
(/usr/share/texmf/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are disabled
(/usr/share/texmf/tex/context/base/pdfr-def.tex)
systems : begin file hello_lua at line 1
! Undefined control sequence.
l.3 \ctxlua
   {a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
?

Is texexec for some reason not actually running luatex here?

--Joel
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-16 Thread Alex Lubberts
> ...is still not working for me.
>
> For those of you who have used mkiv under Ubuntu (or Debian, I
> suppose), had it worked "out of the box" or is "some assembly
> required"?
>
For me the linux minimals from minimals.contextgarden.net work perfectly
on Ubuntu 7.10. Very easy to install as well.

Regards,
Alex



___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-15 Thread Aditya Mahajan
On Tue, 15 Jan 2008, Joel C. Salomon wrote:

>> I use Gusty and have a almost fully working mkiv. I compiled luatex on my
>> own, and had to set TEXMFCNF and LUAINPUTS variables in my shell.
>
> Don't have them in the environment, only in kpathsea, but the
> compilation went OK.

I needed them to get mkiv run properly, otherwise luatools was getting 
confused by my mashed up setup.

> Is there a test file with mkiv-only features I can better test my
> installation on?

\ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}

This will definitely not work for mkii :)

Aditya
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-15 Thread Joel C. Salomon
On Jan 15, 2008 7:47 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> > For those of you who have used mkiv under Ubuntu (or Debian, I
> > suppose), had it worked "out of the box" or is "some assembly
> > required"?
>
> Can you use Debian sid repositories for Hardy? If so, Norbert Preining
> provides deb packages for context, texlive, luatex, and tex-gyre, which
> are fairly up-to-date, and may be the easiest way to get a fully working
> mkiv.

As I understand it, Dr Preining is the Debian maintainer of the
context, luatex, &c. packages, and so the .debs on his website are
previews of the official packages.  I'd installed and uninstalled his
packages trying to make things work, but only the install I did today
actually produced PDF output from "texexec --luatex hello.tex".  I
did, however need to generate the format files; Norbert, can you
please include that in the ConTeXt package set-up?

(As an aside, texlive-xetex depends on a version of libpoppler that my
Ubuntu system doesn't yet have.)

> I use Gusty and have a almost fully working mkiv. I compiled luatex on my
> own, and had to set TEXMFCNF and LUAINPUTS variables in my shell.

Don't have them in the environment, only in kpathsea, but the
compilation went OK.

Is there a test file with mkiv-only features I can better test my
installation on?

--Joel
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-15 Thread Aditya Mahajan
On Tue, 15 Jan 2008, Joel C. Salomon wrote:

> ...is still not working for me.
>
> For those of you who have used mkiv under Ubuntu (or Debian, I
> suppose), had it worked "out of the box" or is "some assembly
> required"?

Can you use Debian sid repositories for Hardy? If so, Norbert Preining 
provides deb packages for context, texlive, luatex, and tex-gyre, which 
are fairly up-to-date, and may be the easiest way to get a fully working 
mkiv.

I use Gusty and have a almost fully working mkiv. I compiled luatex on my 
own, and had to set TEXMFCNF and LUAINPUTS variables in my shell.

Aditya
___
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] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-15 Thread luigi scarso
On 1/15/08, Joel C. Salomon <[EMAIL PROTECTED]> wrote:
> ...is still not working for me.
>
> For those of you who have used mkiv under Ubuntu (or Debian, I
> suppose), had it worked "out of the box" or is "some assembly
> required"?
Works ok here with files from pragma and luatex from
www.luatex.org

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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
___


[NTG-context] ConTeXt mkiv on Ubuntu (Hardy alpha)

2008-01-15 Thread Joel C. Salomon
...is still not working for me.

For those of you who have used mkiv under Ubuntu (or Debian, I
suppose), had it worked "out of the box" or is "some assembly
required"?

--Joel
___
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
___