Re: [NTG-context] LuaTex error "attempt to index global 'lang' (a nil value)"

2008-04-13 Thread Thomas A. Schmitz

On Apr 13, 2008, at 9:30 AM, Taco Hoekwater wrote:
> Roland wrote:
>>
>> Anybody?
>
> Makes no sense to me. I hope Thomas can have a look. Something  
> obviously
> goes wrong for you, but I have never yet see it go _so_ wrong. Is  
> there
> a chance of a corrupted download of something?
>
> Best wishes,
> Taco

OK, I'll have a go at it.

Roland, could you send me (off-list) the output of these commands:

echo $PATH

ls -al /usr/local/texlive/2007/bin/i386-darwin

ls -al

luatex --version

And I'll see if I can find anything.

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] Natural tables, offsets

2008-04-13 Thread Wolfgang Schuster
On Fri, Apr 11, 2008 at 3:24 PM, Santy, Michael
<[EMAIL PROTECTED]> wrote:
>
> Wolfgang,
>
> Can you use the leftoffset/rightoffset on individual table cells?

Yes you can.

You could also the offset parameters in \framed and any other command which
use \localframed.

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
___


[NTG-context] Unfill with anglebetween

2008-04-13 Thread David Arnold
All,

I was trying to help a student today and the following came up.

drawarrow anglebetween(path1, path2, btex $\theta$ etex)

Is there some way to typeset the theta with an "unfilled" background?

David.
___
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] fonts and luatex

2008-04-13 Thread Yue Wang
On 4/14/08, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Olivier Guéry wrote:
> >>  also if you wanted named access:
> >>
> >> mtxrun --script fonts --reload
> >
> > Maybe it's a solution to finely have linux-libertine run with context… :o)
> > But :
> > mtxrun --script fonts --reload
> > give me that : MtxRun | unknown script: fonts
> >
> > and :
> > mtxrun --verbose --script fonts
> >
> > MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT
> >
> > MtxRun | loading configuration for /usr/share/texmf/web2c from
> > /tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
> > MtxRun | locating list of /home/nemo/.texmf-config
> > MtxRun | locating list of /home/nemo/.texmf-var
> > MtxRun | locating list of /home/nemo/texmf
>
> what strange paths: these periods

Umm.. most linux distribution ship texlive like this.  It's common.
Just like TeXlive use ~/.texlive2007

>
> -
>   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
> ___
>
___
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] fonts and luatex

2008-04-13 Thread Arthur Reutenauer
> Where's the problem ?

  You haven't configured ConTeXt correctly.  Where is your ConTeXt tree?
It should be found by luatools (does luatools mtx-fonts.lua return
something useful?)

Arthur
___
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] luatools --ini plain

2008-04-13 Thread Arthur Reutenauer
> luatools --ini plain
> 
> Instead of the expected output 120,808 plain.fmt etc. I get an error:  
> "There is no lua initialization file found. ..."

  The ConTeXt tools don't support plain.  If you really want a plain
format for LuaTeX you can run luatex -ini instead:

luatex -ini -jobname=luatex plain \\dump

  But why do you want plain LuaTeX in the first place?  If it's only to
test the mk document, you should realize it's not a user manual.

Arthur
___
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] [Dev-luatex] luatools --ini plain

2008-04-13 Thread Hans Hagen
Hans van der Meer wrote:
> This is something I don't understand.
> 
> In the mk.pdf manual on luatex on page 21 there is the following  
> example:
> 
> luatools --ini plain

luatools --make plain

(this will use the context base lua files)

-
   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] fonts and luatex

2008-04-13 Thread Hans Hagen
Olivier Guéry wrote:
>>  also if you wanted named access:
>>
>> mtxrun --script fonts --reload
> 
> Maybe it's a solution to finely have linux-libertine run with context… :o)
> But :
> mtxrun --script fonts --reload
> give me that : MtxRun | unknown script: fonts
> 
> and :
> mtxrun --verbose --script fonts
> 
> MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT
> 
> MtxRun | loading configuration for /usr/share/texmf/web2c from
> /tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
> MtxRun | locating list of /home/nemo/.texmf-config
> MtxRun | locating list of /home/nemo/.texmf-var
> MtxRun | locating list of /home/nemo/texmf

what strange paths: these periods

-
   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] fonts and luatex

2008-04-13 Thread Olivier Guéry
>  also if you wanted named access:
>
> mtxrun --script fonts --reload

Maybe it's a solution to finely have linux-libertine run with context… :o)
But :
mtxrun --script fonts --reload
give me that : MtxRun | unknown script: fonts

and :
mtxrun --verbose --script fonts

MtxRun | version 1.0.2 - 2007+ - PRAGMA ADE / CONTEXT

MtxRun | loading configuration for /usr/share/texmf/web2c from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
MtxRun | locating list of /home/nemo/.texmf-config
MtxRun | locating list of /home/nemo/.texmf-var
MtxRun | locating list of /home/nemo/texmf
MtxRun | locating list of /etc/texmf
MtxRun | locating list of /var/lib/texmf
MtxRun | locating list of /usr/share/texmf
MtxRun | locating list of /usr/share/texmf
MtxRun | locating list of /usr/share/texmf-texlive
MtxRun | loading files for /home/nemo/.texmf-config from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/4f780d43d10fd80754205f2eed71b206
MtxRun | loading files for /home/nemo/.texmf-var from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/d220bc51e31cc1c58d3ad6c104d83111
MtxRun | loading files for /etc/texmf from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/76f9d14d3870a3ca17c588db81902d3d
MtxRun | loading files for /var/lib/texmf from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/49ce9fb6981e7315a79363280fdfe510
MtxRun | loading files for /usr/share/texmf from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8
MtxRun | loading files for /usr/share/texmf from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8
MtxRun | loading files for /usr/share/texmf-texlive from
/tmp/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/3187e2337ee4b2115b66aeca116ccb56
MtxRun | unknown script: fonts


Where's the problem ?

best regards,
Olivier.



-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
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] luatools --ini plain

2008-04-13 Thread Hans van der Meer
This is something I don't understand.

In the mk.pdf manual on luatex on page 21 there is the following  
example:

luatools --ini plain

Instead of the expected output 120,808 plain.fmt etc. I get an error:  
"There is no lua initialization file found. ..."
Running "luatools --generate" does not help.
There is a hint: "This file can be forced by the --progname directve,  
or specified with --luaname,..."

How can I get a "lua initialization file" in order to not have the  
error.
And how do I interpret the hint, as the text of the error message is  
too cryptic for me to understand.

Hans van der Meer




___
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] small caps and old numbers with open type fonts

2008-04-13 Thread Henning Hraban Ramm
Am 2008-04-13 um 20:39 schrieb Antoine Junod:
> I actually use my font as simple as possible with a
> \definefont[boum][MyFont at 12pt]. Is it the problem?

Yes. You should set up your fonts with a typescript and access small  
caps / oldstyle as "features".

Sorry, can't help you further at the moment, but there were a lot of  
mails/threads on similar subjects in the last few weeks.


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
___


[NTG-context] small caps and old numbers with open type fonts

2008-04-13 Thread Antoine Junod
Hello list,

I'm still playing with a few otf fonts and enjoying the way ConTeXt
works :)

I'm now playing with a beautiful Garamond. I try to typeset a few
things with old-style numbers and, well, the output contains old-style
numbers but not in my Garamond (it seems to be in latin modern). What
should I do to use the old-style numbers of my font? Did a miss a doc
about that? Or did I missunderstood the \os command (I thought it was
a switch to the old-style of the font but it seems rather to change of
font)?

I actually use my font as simple as possible with a
\definefont[boum][MyFont at 12pt]. Is it the problem?

It the same with the \sc command.

Thanks a lot for your reply,
-AJ
___
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] Streams

2008-04-13 Thread Henning Hraban Ramm
> perhaps the streams module can help you?

> see streams startting at
> http://wiki.contextgarden.net/Columns#Column_Sets

Luigi, Bert, you both completely miss that the OP already tried to  
use streams (see subject!) and can't achieve what he needs, i.e.  
streams in columns.
That's simply not possible to get "automatically" (i.e. without  
manual breaking) with today's ConTeXt.


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] fonts and luatex

2008-04-13 Thread Hans Hagen
Antoine Junod wrote:
> Hans Hagen <[EMAIL PROTECTED]> writes:
> 
>> Antoine Junod wrote:
>>> Hello, List!
>>>
>>> Is it still needed to 'install' fonts with luatex and otf fonts or
>>> is it enough to drop the otf font files in a random place inside
>>> texmf/fonts/opentype/ ?
>> dropping is enough; here i use:
>>
>>  texmfwhatever/fonts/data/vendor/collection/[otf, afm, pfb]
>>
>> don't forget
>>
>>  luatools --generate
>>
>>
>> also if you wanted named access:
>>
>>  mtxrun --script fonts --reload
> 
> Wow, thanks a lot, it works fine with the font I'm trying to play with
> (Adobe Brioso Pro).
> 
> What do you mean by 'named access'? For my testing purpose, I'm simply
> using domthing like \definefont[brioso][BriosoPro-Regular at 12pt]


\definefont[brioso][AdobeBriosoPro at 12pt]

or whatever mtxrun reports

 >mtxrun --script font --list --pattern=adobe 

adobeheitistd-regular   AdobeHeitiStd-Regular 
AdobeHeitiStd-Regular.otf
adobemyungjostd-medium  AdobeMyungjoStd-Medium 
AdobeMyungjoStd-Medium.otf
adobesongstd-light  AdobeSongStd-Light  AdobeSongStd-Light.otf 


and such

> Thanks for the reply,
> A+
> -AJ
> ___
> 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
> ___


-- 

-
   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] MkIV and DVI output

2008-04-13 Thread Mojca Miklavec
On Fri, Apr 11, 2008 at 11:45 AM, Hans Hagen wrote:
> Wolfgang Schuster wrote:
>  > Hi,
>  >
>  > is it possible to produce DVI files with Mark IV.
>  >
>  > I tried a simple file like
>  >
>  > \starttext
>  > text
>  > \stoptext
>  >
>  > with the command texexec --lua --backend=dvipdfm filename
>
>  no, at quite some places i've hardcoded a pdftex backend
>
>  at some point i will redo the backends, but i wonder if it really makes
>  sense to support dvi any longer; i'd rather prepare for future formats

Hello Wolfgang (and others),

I don't know if anyone has noticed it, but XeTeX "doesn't support" dvi
format either. It can create some intermediate format (xdv), but it's
rather useless - I don't know any software that can work with it. And
even if LuaTeX would support dvi, you still need to write support for
fonts in DVI previewers. (DVI=DeVice Independent - something that
would definitely not be true any more with OpenType fonts; or rather -
is not even true any more at this moment with dozens of PS specials)

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] fonts and luatex

2008-04-13 Thread Antoine Junod
Hans Hagen <[EMAIL PROTECTED]> writes:

> Antoine Junod wrote:
>> Hello, List!
>> 
>> Is it still needed to 'install' fonts with luatex and otf fonts or
>> is it enough to drop the otf font files in a random place inside
>> texmf/fonts/opentype/ ?
>
> dropping is enough; here i use:
>
>   texmfwhatever/fonts/data/vendor/collection/[otf, afm, pfb]
>
> don't forget
>
>   luatools --generate
>
>
> also if you wanted named access:
>
>   mtxrun --script fonts --reload

Wow, thanks a lot, it works fine with the font I'm trying to play with
(Adobe Brioso Pro).

What do you mean by 'named access'? For my testing purpose, I'm simply
using domthing like \definefont[brioso][BriosoPro-Regular at 12pt]

Thanks for the reply,
A+
-AJ
___
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] new version luatex / mkiv

2008-04-13 Thread Hans Hagen
Wolfgang Werners-Lucchini wrote:
> On 12 Apr 2008 at 12:00, [EMAIL PROTECTED] wrote:
> 
> Hallo Taco,
> 
>> Real API documentation will be provided once I am past the "alpha"
>> release stage. At the moment, I do not trust the API enough to
>> expose it to anything except controlled environments (lua mplib,
>> newmpost)
>>
 Isn't mplib a dll under windows?
>> It is possible to build the unix version as a .so because support
>> for that comes from autofoo automatically, but that is not yet
>> officially supported: debugging dynamic libraries is harder than 
>> debugging static code.
> 
> On the other side, it is very easy to replace a dll by a new version, 
> if the interface stays stable.

sure, but it also introduced unneeded mails on support lists of users 
who mix up things; we'd probably end up with the same situation as kpse 
... mplib234.dll and so, which does not improve things either

> If there is more than one program, which is using mplib, you have to 
> update all theses programs, if you make some mplib changes.

indeed, but contrary to tex livem where all binaries are updated in 
sync, for moving targets like luatex we want to be sure that things 
match; disk space is cheap, and telling user to download 'this' and 
'that' and put 'such' and 'so' in locations 'here' and 'there' is more 
trouble than let them just download one binary etc

> But I think that a dll could very much boost the metapost usage. It 
> would than be very easy to write third party software.

maybe, but that is independent of being used in luatex and mpost itself; 
as taco mentioned, there it will be staticaly linked, just as lua and 
its libs

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] new version luatex / mkiv

2008-04-13 Thread Hans Hagen
Lou wrote:
> Hello Hans,
> 
> Saturday, April 12, 2008, 3:23:36 PM, you wrote:
> 
 http://foundry.supelec.fr/plugins/scmsvn/viewcvs.php/tags/beta-0.25.
 2/manual/?root=luatex
> 
>>> This manual is not viewable without deleting a html-frame.
>>> Or what I am doing wrong?
> 
>> i don't know, it's a pdf document, so no html frame is part of it
> 
> I think the files are defective. No?
> 
> Is Lua going to be the only or main programming language for use with ConTeXt?

internally, yes; for additional tasks, i have ruby and lua scripts 
(trying to get rid of perl scripts); most tools now written in ruby will 
finally be redone in lua, but only those that still make sense


-
   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] luatexing

2008-04-13 Thread Hans Hagen
Wolfgang Werners-Lucchini wrote:
> On 12 Apr 2008 at 9:39, [EMAIL PROTECTED] wrote:
> 
>>> I have a few silly questions about
>>>
>>>   tex.print()
>>>
>>> To produce 
>>>
>>>   $\sqrt{2}=1.4142135623731$
>>>
>>> it should be enough to write
>>>
>>>   tex.print("$\\sqrt{2}=" .. math.sqrt(2) .. "$")
>> this is because \\ can mean anything, for instance it may expand to
>> \par  or \crlf or ..
> 
> May be I do not understand this right, but I thought that '\' is luas 
> escape character and tex.print() returns '\' not '\\'. So TeX sees no 
> macro '\\' which could expand to whatever.

it depends on where you code lives ... in a lua file, then \\ is an 
escape, in \directlua (or \ctxlua cum suis), then it's a tex cs

your mail only shows the one line of code so we have to guess

>> there is a \luaescapestring primitive which catches things like
>> quotes
> 
> Can you make a little example of usage?
> 
>> tex.print("\detokenize{$\sqrt{2}=}" .. math.sqrt(2) .. "$")

well, if you put that in your document, you'l get a typeset tex.sprint, 
so i assume that tis is wrapped in \directlua or so?

> Could not find the definition of \detokenize.

an etex primitive

-
   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] Unable to generate luatex formats

2008-04-13 Thread Hans Hagen
Taco Hoekwater wrote:
> Michael Green wrote:
>> I'm getting the following error when running this command: luatools -- 
>> ini --verbose --compile cont-en
>>
>> LuaTools | running command: luatex --ini --lua="cont-en.luc" "/usr/ 
>> local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex" \\dump
>> This is LuaTeX, Version snapshot-0.25.2-2008041101 (Web2C 7.5.6)  
>> (INITEX)
>> (/usr/local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex
>> (/usr/local/texlive/2007/../texmf-local/tex/context/base/context.tex
>> (/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-pln.tex)
>> (/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-prm.tex)
>> (/usr/local/texlive/2007/../texmf-local/tex/context/base/luat-env.tex
>> ! LuaTeX error [string "luas[0]"]:1: attempt to call field  
>> 'luafilechunk' (a nil value).
> 
> The environment.luafilechunk is defined in luat-env.lua, that should
> have been loaded at this point ( a bit earlier in luat-env.tex ).
> 
> I think either
> 
>/usr/local/texlive/texmf-local/tex/context/base/luat-env.tex
> 
> is not the one from the latest context distribution, or an extra
> luatools --generate command is needed.
> 
> You can check the \contextversion by looking at
> 
>/usr/local/texlive/texmf-local/tex/context/base/context.tex
> 
> around line 45, it should say
> 
>   \edef\contextversion{2008.04.11 14:48}
> 
> 
> There can be some more esoteric causes,  but these are the two most
> likely ones.

in previou sversions the env was loaded runtime (this behaviour 
originated in the stepwise development of embedding bytecodes in the 
format, in the beginning all chunks were loaded at runtime); i managed 
to get rid of that; in addition to taco's suggestions ... so it could be 
that old code and new code is mixed.

-
   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] urw-garamond with MKIV

2008-04-13 Thread Peter Münster
On Sun, Apr 13 2008, Taco Hoekwater wrote:

> If you want existing tfms to have precedence over any afms
> (thereby loosing unicode support for legacy fonts) you can add
> this to cont-sys or the top of your input:
> 
>\ctxlua{fonts.define.method=2}

Thanks, Taco! This works.

The right method for MKIV, without loosing unicode, would be even better.

> Otherwise, you will have to extend type-urwgaramand.tex in some
> way that I do not quite grasp.

Extend, or perhaps replace completely.  Unfortunately, my knowledge about
these font-things and typescripts is about 0...

Best wishes, Peter

-- 
http://pmrb.free.fr/contact/

___
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] fonts and luatex

2008-04-13 Thread Hans Hagen
Antoine Junod wrote:
> Hello, List!
> 
> Is it still needed to 'install' fonts with luatex and otf fonts or is
> it enough to drop the otf font files in a random place inside
> texmf/fonts/opentype/ ?

dropping is enough; here i use:

texmfwhatever/fonts/data/vendor/collection/[otf, afm, pfb]

don't forget

luatools --generate


also if you wanted named access:

mtxrun --script fonts --reload





-
   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] mplib & undefined commands

2008-04-13 Thread Hans Hagen
Mojca Miklavec wrote:

> Thanks. Still - I don't know if it's still needed at all and what
> exactly it was used for (maybe metapost has complained about too long
> lines long time ago).

indeed; also, at some point texexec would take care of it; nowadays the 
limitation is gone (in tex and mp)

> \sometxt is working, only some Aditya's extensions complain. I will
> test a bit, try to rewrite some bits and pieces, collect the missing
> parts and report back.

ok

> You have added the ability to use
> \sometxt[something]{abc}
> with a background definition of:
> \definetextext[something]{\strut}
> but I wanted to have two square brackets and Aditya has written a
> small patch which does that. Let me explore a bit more in the new mkiv
> sources and report back.

ok; keep in mind that in mkii things are bit tricky because there 
\sometxt is expanded first and replace by a reference next and a on 
standard optional [ parser is 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] updating minimals

2008-04-13 Thread Mojca Miklavec
On Sun, Apr 13, 2008 at 1:03 PM, Jean Magnan de Bornier wrote:
> Le 13 avril à 12:22:38 "Mojca Miklavec" écrit notamment:
>  | What does
>  | which luatex
>  | return?
>
>  Arrggg!
>
>  /usr/bin/luatex!!!
>  (comes from my earlier attempts to set up system wide mkiv...)
>
>  Let me delete this one, fix the paths and do it again...
>  And it *works*!

Glad to hear :)

Btw: Michael Green had the latest version of LuaTeX and still similar
problems, so it must be something else in his case.

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] mplib & undefined commands

2008-04-13 Thread Mojca Miklavec
Hi,

On Sat, Apr 12, 2008 at 9:38 AM, Hans Hagen wrote:
>
>  > 2.) undefined command
>  >  \forceMPTEXcheck{put_text}
>
>  ok, i will add a fake

Thanks.

>
>  > I have now used a wrapper to skip that line in LuaTeX (btw: what's the
>  > suggested \if clause or \beginNOLUATEX to check for luatex/mkiv?) Does
>  > it make sense to define \let\forceMPTEXcheck\empty in mkiv perhaps?
>
>  best make a
>
>  yourmodule.tex
>  yourmodule.mkii
>  yourmodule.mkiv
>
>  and in the tex file adds:
>
>  \loadmarkfile{yourmodule}

OK, once I rewrite some more code than a few lines, I will split it
(but now there are really only minor, one-line patches).

>  > 3.) undefined command \obeyMPlines. I actually forgot why I needed it,
>  > but according to the comment:
>  > \obeyMPlines % <- no longer a problem
>  > \def\obeyedline{}% <- thanks to this
>  > I simply commented out the first line and hoped for no problems in mkii
>
>  ok, another fake

Thanks. Still - I don't know if it's still needed at all and what
exactly it was used for (maybe metapost has complained about too long
lines long time ago).

>  > 4.) It seems to work without problems now, except for one tiny detail
>  > that I get in the final PDF.
>  > [do we need TeXtexts in MkIV]
>  >
>  > What is that supposed to mean?
>
>  well, that everything now can be 'textext'
>
>
>  > I need to admit that I have the following piece of code in the module
>  > (in case that matters). Maybe I'm the only one who uses it, so if you
>  > have any idea how to modify the macros to make
>  > \sometxt[gp][iwona,14pt]{text} work in mkiv, I will happily drop the
>  > old code/replace it for mkiv.
>
>  hm, so \sometxt is not working? i thought that i tested it (maybe not
>  ... too much to test)

\sometxt is working, only some Aditya's extensions complain. I will
test a bit, try to rewrite some bits and pieces, collect the missing
parts and report back.

>
>  > \long\def\redofiltersometxt[#1]%
>  > {\doifnextcharelse[{\reredofiltersometxt[#1]}{\redodofiltersometxt[#1]}}
>  >
>  > \long\def\redodofiltersometxt[#1]#2%
>  >   {\increment\txtcounter
>  >\TeXtext[#1]\txtcounter{#2}%
>  >\filtersometxt}
>  >
>  > \long\def\reredofiltersometxt[#1][#2]#3%
>  >   {\increment\txtcounter
>  >\TeXtext[#1]\txtcounter{\switchtobodyfont[#2]\strut#3}%
>  >\filtersometxt}
>
>  i think that we have it in the core

You have added the ability to use
\sometxt[something]{abc}
with a background definition of:
\definetextext[something]{\strut}
but I wanted to have two square brackets and Aditya has written a
small patch which does that. Let me explore a bit more in the new mkiv
sources and report back.

>  anyhow, just collects what does not work
>
>  (btw, i fixed something in textext ... i used to work only for code
>  passed as mpgraphic, but now it works also with libraries and so)

Thanks :) I didn't notice any weird behaviour so far, but I'm glad
that it's away before I started complaining about it :) :P

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
___


[NTG-context] fonts and luatex

2008-04-13 Thread Antoine Junod
Hello, List!

Is it still needed to 'install' fonts with luatex and otf fonts or is
it enough to drop the otf font files in a random place inside
texmf/fonts/opentype/ ?

Thanks for your reply,
-AJ
___
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] updating minimals

2008-04-13 Thread Jean Magnan de Bornier
Le 13 avril à 12:22:38 "Mojca Miklavec" <[EMAIL PROTECTED]> écrit notamment:

| On Sat, Apr 12, 2008 at 8:13 PM, Jean Magnan de Bornier
| <[EMAIL PROTECTED]> wrote:
| > Le 12 avril à 19:53:27 Aditya Mahajan <[EMAIL PROTECTED]> écrit notamment:
| >
| >  Here the whole thing (I see nothing about path though):
| >  .
| >  18:58 [EMAIL PROTECTED] /win/context/bin % luatex -v
| >  This is LuaTeX, Version snapshot-0.25.1-2008032113
>
| That's not OK. You should get 0.25.2. Besides, the proper version is
| probably in /win/context/tex/texmf-linux/bin (if you have the default
| installation).
>
| The minimals usually update texmf-linux/bin, but first-setup.sh
| updates the "bin" as well unless commented out. There is usually no
| luatex (only texlua) in root "bin" (where there is mtx-update).
>
| What does
| which luatex
| return?

Arrggg! 

/usr/bin/luatex!!!
(comes from my earlier attempts to set up system wide mkiv...)

Let me delete this one, fix the paths and do it again...
And it *works*!

Thanks Mojka!
-- 
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] mplib

2008-04-13 Thread Taco Hoekwater
Wolfgang Werners-Lucchini wrote:
> On 12 Apr 2008 at 9:39, [EMAIL PROTECTED] wrote:
> 
>>> \startlua
>>> mp = mplib.new ( {
>>> hash_size = 10,
>>> main_memory = 200,
>>> param_size = 10,
>>> } )
>>>
>>> if mp then
>>> res = mp:execute(
>>> "beginfig(1) draw (0,0) .. (1,1) .. (2,1); endfig; bye;" )
>>> tex.print("[" .. tostring(res.status) .. "]")
>>> mp:finish()
>>> end
>>> \stoplua
>> no format, so beginfig, draw etc are unknown
> 
> I thought 'plain.mem' is the default. But I see, there exists only 
> 'metafun.mem'.

If you want to "do the low-level thing", you have to read the
luatex manual carefully. MPlib is just like standalone metapost
in that it wants to load a mem file in non-ini mode, and that
file has to be generated before being used. Here is what you
wanted to do, using just the library core (I did cheat just a
little bit though, I added "dump;" at the end of my plain.mp):

% start low-level
\startlua
local function finder(name, mode, ftype)
 if mode=="w" then
 return name
 else
 return kpse.find_file(name,ftype)
 end
end
mp = mplib.new ( {
 hash_size = 10,
 main_memory = 200,
 param_size = 10,
 find_file = finder,
 ini_version = true
} )
if mp then
 res = mp:execute('plain')
 mp:finish()
end

mp = mplib.new ( {
 hash_size = 10,
 main_memory = 200,
 param_size = 10,
 find_file = finder,
} )

if mp then
 res = mp:execute("\\beginfig(1) draw (0,0) .. (1,1) .. (2,1); 
endfig; bye;" )
 tex.print("[" .. tostring(res.status) .. "]")
 mp:finish()
end
\stoplua
% stop low-level

If you just want to run plain metapost images inside of
a context document (instead of metafun), it is much easier
to use Hans' high-level API (once again, you need "dump;"
at the end of plain.mp):

\startlua
metapost.process(
   metapost.format("plain"),
   "beginfig(0); draw (0,0) .. (1,1) .. (2,1); endfig;")
\stoplua

This makes sure that all memory values are the same,
that the mem file is cached inbetween runs, removes the
need for "\\" and "bye;" etc.

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] updating minimals

2008-04-13 Thread Mojca Miklavec
On Sat, Apr 12, 2008 at 8:13 PM, Jean Magnan de Bornier
<[EMAIL PROTECTED]> wrote:
> Le 12 avril à 19:53:27 Aditya Mahajan <[EMAIL PROTECTED]> écrit notamment:
>
>  Here the whole thing (I see nothing about path though):
>  .
>  18:58 [EMAIL PROTECTED] /win/context/bin % luatex -v
>  This is LuaTeX, Version snapshot-0.25.1-2008032113

That's not OK. You should get 0.25.2. Besides, the proper version is
probably in /win/context/tex/texmf-linux/bin (if you have the default
installation).

The minimals usually update texmf-linux/bin, but first-setup.sh
updates the "bin" as well unless commented out. There is usually no
luatex (only texlua) in root "bin" (where there is mtx-update).

What does
which luatex
return?

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] Unable to generate luatex formats

2008-04-13 Thread Jean Magnan de Bornier
Le 12 avril à 22:53:53 Michael Green <[EMAIL PROTECTED]> écrit notamment:

| I'm getting the following error when running this command: luatools -- 
| ini --verbose --compile cont-en
>
| LuaTools | running command: luatex --ini --lua="cont-en.luc" "/usr/ 
| local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex" \\dump
| This is LuaTeX, Version snapshot-0.25.2-2008041101 (Web2C 7.5.6)  
| (INITEX)
| (/usr/local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex
| (/usr/local/texlive/2007/../texmf-local/tex/context/base/context.tex
| (/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-pln.tex)
| (/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-prm.tex)
| (/usr/local/texlive/2007/../texmf-local/tex/context/base/luat-env.tex
| ! LuaTeX error [string "luas[0]"]:1: attempt to call field  
| 'luafilechunk' (a ni
| l value).
| \ctxluabyteload ...nvironment.luafilechunk("#1") }
>
| \ ...fproductionrun \else \ctxluabyteload {#1}{#2}
|\fi \global  
| \everyloadluac...
| l.168 \registerctxluafile{luat-env}{1.001}
>
| ?
>
| I see that it is similar to an error that ZS had.

[...]

Hey, also exactly the same problem I posted yesterday in "updating
minimals"!

You're not alone!
-- 
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] Adding custom key/value pairs

2008-04-13 Thread Taco Hoekwater
Rory Molinari wrote:

> \startvariables all
>degree: degree
> \stopvariables

\c!... commands (keys) are created by \startconstants,
\v!... commands (enumerated values) by \startvariables.

So:

   \startconstants all
  degree: degree
   \stopconstants

you also have a few smaller problems with the definitions
like missing \unprotects etc, but the above is the key to
getting it working.

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 error "attempt to index global 'lang' (a nil value)"

2008-04-13 Thread Mojca Miklavec
On Sat, Apr 12, 2008 at 4:24 PM, Roland wrote:
> @Mojca, I found that /usr/texbin was pointing to a missing directory,
>  so this caused the problem mentioned below. I took /usr/texbin out of
>  the $PATH and replaced it with /usr/local/texlive/2007/bin/i386-darwin
>  -- this lets luatools --selfupdate run correctly:

I have no idea what went wrong, but this implies that your
installation might be slightly broken. /usr/texbin should point to
something. Mine points to
texbin -> ../Library/TeX/Distributions/.DefaultTeX/Contents/Programs/i386
(and there are some other symlinks in that path as well), but I need
to admit that I have never tried to make luatex work with the existing
installation (tried once and then gave up).

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] two easy xml-questions

2008-04-13 Thread Taco Hoekwater
Thomas A. Schmitz wrote:
> Hi gang,
> 
> speaking of xml... I have two easy questions, but can't find an  
> answer. It's about tweaking the pdf-output I get:
> 
> 1. How do you add an additional hyphenation to a word? How would I  
> enter the equivalent of super\-duper in an xml-file? I tried  
> super&addhyphen;duper with this definition:
> \defineXMLentity[addhyphen]{\-}
> 
> in my environment, but this doesn't seem to work.

Needs an example file, because

   \defineXMLentity[addhyphen]{\-}
   \starttext
   \hsize 1in
   \startXMLdata
   I tried super&addhyphen;duper
   \stopXMLdata
   \stoptext

works in both mkii and mkiv.


> 2. Similar question: how to prevent an unwanted ligature, esp. in  
> German? In TeX, I write Kauf{}laden. What would be a good way to do  
> this in xml? I was thinking of Kauf&nolig;laden and
> \defineXMLentity[nolig]{\kern0pt}

That should work, but probably better is:
   \defineXMLentity[nolig]{\prewordbreak\kern0pt\postwordbreak}
because the \kern will disable hyphenation, otherwise.

In mkii, just
   \defineXMLentity[nolig]{{}}
also works (but not in mkiv, and that is a feature).

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] urw-garamond with MKIV

2008-04-13 Thread Taco Hoekwater
Peter Münster wrote:
> Hello,
> 
> This does no more work with MKIV:

I can tell you the cause of the problem:

context mkiv loads the font from the AFM files in unicode mode,
but the typescript defines TFM fonts in texnansi only. This
results in mayhem (I am not sure what exactly goes wrong, but
that does not really matter).

If you want existing tfms to have precedence over any afms
(thereby loosing unicode support for legacy fonts) you can add
this to cont-sys or the top of your input:

   \ctxlua{fonts.define.method=2}

Otherwise, you will have to extend type-urwgaramand.tex in some
way that I do not quite grasp.

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] luatexing

2008-04-13 Thread Taco Hoekwater
Wolfgang Werners-Lucchini wrote:
> 
> May be I do not understand this right, but I thought that '\' is luas 
> escape character and tex.print() returns '\' not '\\'. So TeX sees no 
> macro '\\' which could expand to whatever.

This depends on how exactly you have input that line (which
in turn nicely demonstrates why you should post minimal examples,
instead of out-of-context questions).

I tried:

   % engine=luatex
   \starttext
   \directlua0 {tex.print('$\\sqrt{2}=1.4142135623731$')}
   \ctxlua{tex.print('$\\sqrt{2}=1.4142135623731$')}
   \startluacode
   tex.print('$\\sqrt{2}=1.4142135623731$')
   \stopluacode
   \stoptext

And all three work as they should. So what did you input, exactly, that
gave wrong results?

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] Unable to generate luatex formats

2008-04-13 Thread Taco Hoekwater
Michael Green wrote:
> I'm getting the following error when running this command: luatools -- 
> ini --verbose --compile cont-en
> 
> LuaTools | running command: luatex --ini --lua="cont-en.luc" "/usr/ 
> local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex" \\dump
> This is LuaTeX, Version snapshot-0.25.2-2008041101 (Web2C 7.5.6)  
> (INITEX)
> (/usr/local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex
> (/usr/local/texlive/2007/../texmf-local/tex/context/base/context.tex
> (/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-pln.tex)
> (/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-prm.tex)
> (/usr/local/texlive/2007/../texmf-local/tex/context/base/luat-env.tex
> ! LuaTeX error [string "luas[0]"]:1: attempt to call field  
> 'luafilechunk' (a nil value).

The environment.luafilechunk is defined in luat-env.lua, that should
have been loaded at this point ( a bit earlier in luat-env.tex ).

I think either

   /usr/local/texlive/texmf-local/tex/context/base/luat-env.tex

is not the one from the latest context distribution, or an extra
luatools --generate command is needed.

You can check the \contextversion by looking at

   /usr/local/texlive/texmf-local/tex/context/base/context.tex

around line 45, it should say

  \edef\contextversion{2008.04.11 14:48}


There can be some more esoteric causes,  but these are the two most
likely ones.

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] [Dev-luatex] hyphenating bug

2008-04-13 Thread Taco Hoekwater
Yue Wang wrote:
> Hi Taco and Hans
> 
> I was typesetting the manual of a software developed by me using
> ConTeXt while the problem occurred.  I try to minimized the problem
> and the result is attached.
> 
> luatex.pdf --- pdf produced by luatex 0.25.2
> 
> It seems luatex forgets to hyphenating capital words.
> I am not sure whether it is a bug of LuaTeX or ConTeXt.

It was a bug in luatex. The fix is in the repository already,
and there will be a 0.25.3 sometime next week.

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 error "attempt to index global 'lang' (a nil value)"

2008-04-13 Thread Taco Hoekwater
Roland wrote:
> 
> Anybody?

Makes no sense to me. I hope Thomas can have a look. Something obviously
goes wrong for you, but I have never yet see it go _so_ wrong. Is there
a chance of a corrupted download of something?

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
___