Re: [NTG-context] LinuxLibertine Typescript (was : fonts and luatex)

2008-04-15 Thread Wolfgang Schuster
On Mon, Apr 14, 2008 at 2:05 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
  \starttypescript [serif] [linuxlibertine]
   \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [LinLibertine-Regular]
  \definefontsynonym [SerifBold]   [LinLibertine-Bold]
  \definefontsynonym [SerifItalic] [LinLibertine-Italic]
  \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
  \definefontsynonym [SerifCaps]   [LinLibertine-Caps]
 \stoptypescript
 
 \starttypescript [serif] [linuxlibertine]
  \definefontsynonym [LinLibertine-Regular] [file:LinLibertine_Re-2.7.9.9] 
  [features=default]
  \definefontsynonym [LinLibertine-Bold] [file:LinLibertine_Bd-2.7.8]   
  [features=default]
  \definefontsynonym [LinLibertine-Italic] [file:LinLibertine_It-2.7.8]   
  [features=default]
  \definefontsynonym [LinLibertine-BoldItalic] [file:LinLibertine_BI-2.7.2]   
  [features=default]
  \definefontsynonym [LinLibertine-Caps] [file:LinLibertineC_Re-2.7.3]  
  [features=default]
 \stoptypescript
 
 \starttypescript [linuxlibertine]
  \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
 \stoptypescript
 
 
 \usetypescript[linuxlibertine]
 \setupbodyfont[linuxlibertine]
 
 \starttext
 Text in Linux Libertine.
 \stoptext


 Thank's for the help, but I got this error :


 […]
 specials   : fdf loaded
 ) (/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-otf.tex)
 (/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-otf.tex)
 (/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-otf.texThis went wrong:
 /usr/share/texmf/tex/context/base/font-def.lua:226: attempt to call
 field '?' (a nil value)
 ).
 to be read again
   \relax
 \xxdododefinefont ...tspec {#4}\newfontidentifier
  \let \localrelativefontsiz...
 \fontstrategy ...me \fontclass #2#3#4#5\endcsname
  \tryingfontfalse \fi
 inserted text ...yle \fontalternative \fontsize
  \fi \iftryingfont \fontstr...
 \synchronizefont ...strategy \the \fontstrategies
  \relax \fi \iftryingfont \...
 argument \getvalue [EMAIL PROTECTED]@ \fontstyle }
   \edef \fontstyle {\fontstyle }\if...
 ...
 l.32 \setupbodyfont[linuxlibertine]

 ?

 I have exactly the same version of libertine font in
 /usr/share/texmf/fonts/opentype/public/linlibertine

I tested the font setups yesterday on my own system I got the same error
message but I found also the reason for this.

The Libertine fonts contains pints in the font names and this did currently
not work with MkIV, a temporary solution is to rename the fonts and remove
the version number from the fonts names. I know this is not perfect and Hans
is able to fiy this but it should do it for the moment.

I tested also to use the name of the fonts instead of the file name and this
did also work (after you removed the version number).

The new typescripts are:


\starttypescript [serif] [linuxlibertine]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [LinLibertine-Regular]
  \definefontsynonym [SerifBold]   [LinLibertine-Bold]
  \definefontsynonym [SerifItalic] [LinLibertine-Italic]
  \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
  \definefontsynonym [SerifCaps]   [LinLibertine-Caps]
\stoptypescript

\starttypescript [serif] [linuxlibertine]
  \definefontsynonym [LinLibertine-Regular][name:Linux Libertine
O] [features=default]
  \definefontsynonym [LinLibertine-Bold]   [name:Linux Libertine O
Bold][features=default]
  \definefontsynonym [LinLibertine-Italic] [name:Linux Libertine O
Italic]  [features=default]
  \definefontsynonym [LinLibertine-BoldItalic] [name:Linux Libertine O
Bold Italic] [features=default]
  \definefontsynonym [LinLibertine-Caps]   [name:Linux Libertine O
Capitals][features=default]
\stoptypescript

\starttypescript [linuxlibertine]
  \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
\stoptypescript

Greetings
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] bug in mplib?

2008-04-15 Thread Hans Hagen
Thomas A. Schmitz wrote:
 Hi all,
 
 I just noticed that with the new incarnation of metapost, arrows  
 behave somewhat erratically. Take this minmal example:
 
 \starttext
 
 \startuseMPgraphic{arrowtest}
 z1=(0,0) ;
 z2=(3cm,0) ;
 ahlength := 15pt ;
 pickup pencircle scaled 5pt ;
 drawarrow z1--z2 ;
 \stopuseMPgraphic
 
 \useMPgraphic{arrowtest}
 
 \stoptext
 
 compile it with mkii and mkiv and observe the difference.

confirmed ... homework for taco and me

-
   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] bug in mplib?

2008-04-15 Thread Hans Hagen
Peter Rolf wrote:

 same here. another broken example

could be related with thomas's bug, more news later

(fyi: the conversion is now using more low level mp output, and we have 
to figure out what happens there)

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

2008-04-15 Thread Hans Hagen
Wolfgang Werners-Lucchini wrote:

 Is there a find_file function necessary to find the mem-file given in 
 'mem_name' or is such a function only necessary for file-names in 
 'mp:execute'?

the find function is needed

in context you can use

metapost.process('formatname',datastream)

this will generate the format if needed and reuse it



-
   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] LinuxLibertine Typescript (was : fonts and luatex)

2008-04-15 Thread Hans Hagen
Wolfgang Schuster wrote:

 /usr/share/texmf/tex/context/base/font-def.lua:226: attempt to call
 field '?' (a nil value)

 I tested the font setups yesterday on my own system I got the same error
 message but I found also the reason for this.

ok, such an error should not happen

 The Libertine fonts contains pints in the font names and this did currently
 not work with MkIV, a temporary solution is to rename the fonts and remove
 the version number from the fonts names. I know this is not perfect and Hans
 is able to fiy this but it should do it for the moment.
 
 I tested also to use the name of the fonts instead of the file name and this
 did also work (after you removed the version number).


[file:bla 1.2.3]

may be problematic anyway (the space) so best try:

[file:bla1.2.3]

just remove spaces in names, which is what happens behind the screens too



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Unable to generate luatex formats

2008-04-15 Thread John Devereux
Michael Green [EMAIL PROTECTED] writes:

 I'm getting the following error when running this command: luatools -- 
 ini --verbose --compile cont-en

[...]

Hi, I am getting a similar error on debian unstable.

Following the instructions in the debian README.MarkIV when I get to:

  luatools --ini --compile --verbose cont-en

I get the error

  ! LuaTeX error [string luas[0]]:1: attempt to call field 'luafilechunk' (a 
nil value).

(full listing at end of mail).

I have not run the ctxtools --update since I m not sure if is
appropriate for debian...

Any ideas?




luatools --ini --compile --verbose cont-en

LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT 

LuaTools | loading configuration for /usr/share/texmf/web2c from 
///home/jd/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
LuaTools | locating list of /home/jd/.texmf-config
LuaTools | locating list of /home/jd/.texmf-var
LuaTools | locating list of /home/jd/texmf
LuaTools | locating list of /etc/texmf
LuaTools | locating list of /var/lib/texmf
LuaTools | locating list of /usr/local/share/texmf
LuaTools | locating list of /usr/share/texmf
LuaTools | locating list of /usr/share/texmf-texlive
LuaTools | loading files for /etc/texmf from 
///home/jd/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/76f9d14d3870a3ca17c588db81902d3d
LuaTools | loading files for /var/lib/texmf from 
///home/jd/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/49ce9fb6981e7315a79363280fdfe510
LuaTools | loading files for /usr/local/share/texmf from 
///home/jd/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/5044cbe2799fe389b078f26ff6b9ee8e
LuaTools | loading files for /usr/share/texmf from 
///home/jd/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/0638a6bb4aac17125bf8bd1aa29dc0c8
LuaTools | loading files for /usr/share/texmf-texlive from 
///home/jd/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/3187e2337ee4b2115b66aeca116ccb56
LuaTools | creating initialization file cont-en
LuaTools | using library path : /usr/local/share/texmf/tex/context/base
LuaTools | using lua libraries: l-string.lua l-lpeg.lua l-table.lua 
l-boolean.lua l-number.lua l-set.lua l-unicode.lua l-md5.lua l-os.lua l-io.lua 
l-file.lua l-dir.lua l-utils.lua l-tex.lua luat-lib.lua luat-inp.lua 
luat-tmp.lua luat-zip.lua luat-tex.lua
LuaTools | using compiled initialization file cont-en.luc
LuaTools | using lua initialization file cont-en.luc
LuaTools | running command: luatex --ini --lua=cont-en.luc 
/usr/local/share/texmf/tex/context/base/cont-en.tex \\dump
(/usr/local/share/texmf/tex/context/base/cont-en.tex 
(/usr/local/share/texmf/tex/context/base/context.tex 
(/usr/local/share/texmf/tex/context/base/syst-pln.tex) 
(/usr/local/share/texmf/tex/context/base/syst-prm.tex) 
(/usr/local/share/texmf/tex/context/base/luat-env.tex
! LuaTeX error [string luas[0]]:1: attempt to call field 'luafilechunk' (a 
nil value).
\ctxluabyteload ...nvironment.luafilechunk(#1) }
  
\ ...fproductionrun \else \ctxluabyteload {#1}{#2}
  \fi \global \everyloadluac...
l.168 \registerctxluafile{luat-env}{1.001}
  
? 


-- 

John Devereux
___
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] Module documentation

2008-04-15 Thread richard . stephens
Wolfgang and Mojca,

Thank-you for your replies.  They have enabled me to set up a little batch 
file to make life easier when I want to generate a module document.

Thanks,

Richard Stephens
___
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] chapter setup / table of contents

2008-04-15 Thread Wolfgang Schuster
On Mon, Apr 14, 2008 at 10:06 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote:
 Ahoi!

 In a volume of proceedings, each chapter has an author and title and
 sometimes a subtitle.
 The ToC entry should look like:

 Author: Title \hfill Page
 (no indents!)

 At the moment I've this setup:

 ---

 \def\Titel#1#2#3{% author, title, subtitle
\page%
{\writebetweenlist[chapter]{\placeongrid{\noindent #1:}}
\switchtobodyfont[12pt]\noindent #1%
\chapter{\noindent #2}%
{\ss\bf #3}%
\blank[2*big]}%
 }

 \setuphead[chapter][page=no, number=no, align=
 {flushleft,nothyphenated,verytolerant}, style={\ss\bfa}, before={},
 after={\blank}]

 \definecombinedlist[toc][chapter][level=chapter, placehead=no,
 criterium=all, alternative=b, offset=none]
 \setupcombinedlist  [toc] [partnumber=no]

 ---

 Please don't cry, I know it's ugly... ;-)

 What it does is close, but nood good enough.

 - Is there a way to use the normal chapter (or any head) mechanism
 with such feathered titles?
 - How do I get my special ToC?

Try this.

\unprotect

\resetvalue{\??sw\v!chapter}

\startsetups chapter:list

  \doifsomething{\sectionworldparameter\c!author}
{\expanded{\writetolist[\v!chapter]
  {\sectionworldparameter\c!author:\space
   \sectionworldparameter\c!text}{}}}

  \def\ChapterSubTitle{\sectionworldparameter\c!subtitle}

\stopsetups

\setupsectionworld
  [chapter]
  [setups={chapter:list},
   author=]

\def\ChapterCommand#1#2%
  {\vbox{#2\crlf\ChapterSubTitle}}

\let\ChapterSubTitle\relax

\protect

\setuphead
  [chapter]
  [incrementnumber=no,
   command=\ChapterCommand]

\starttext
\completecontent
\startsectionworld[chapter][author=Hans,text=Chapter One,subtitle=The Beginning]
\startsectionworld[chapter][author=Tom,text=Chapter Two,subtitle=The End]
\stopsectionworld
\stopsectionworld
\stoptext

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

2008-04-15 Thread Hans Hagen
Mojca Miklavec wrote:
 On Mon, Apr 14, 2008 at 7:43 PM, Hans Hagen wrote:
 
  i'm wondering ... if a name is not found, i can regenerate the database
  at runtime. i had that for a while; maybe i should reinstate that
 
 This sounds reasonable. If user is asking for non-existing font, he
 can be punished a bit (by a longer compile time) for providing the
 wrong name, and if he has just installed a new font, that behaviour is
 desirable anyway.

i now have

fonts.names.autoreload = toboolean(os.env['MTX.FONTS.AUTOLOAD'] or 
os.env['MTX_FONTS_AUTOLOAD'] or no)

so, one can configure it

-
   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 problems with \seeindex and \from

2008-04-15 Thread Taco Hoekwater


Mojca Miklavec wrote:
 
 I get a bus error on mac intel as well.

Bus errors often point to code alignment errors, so it
could be that the same problem manifests on all 64-bit
platforms. But that is about the only hint I can give,
someone has to debug the application.

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-15 Thread Hans Hagen
John Devereux wrote:
 Taco Hoekwater [EMAIL PROTECTED] writes:
 
 John Devereux wrote:
 Michael Green [EMAIL PROTECTED] writes:

 I'm getting the following error when running this command: luatools -- 
 ini --verbose --compile cont-en
 Hi, I am getting a similar error on debian unstable.
 Both of you, can you check that

luatools luat-env.lua
 
 I just get a blank line printed. And I get the same if I feed it the name
 of a random, non-existent file. Which is not encouraging...
 
 finds the file? If not, try running luatools --generate
 
 This produces:
 
   LuaTools | skipping /texmf-local/web2c/texmf.cnf
   LuaTools | skipping /texmf/web2c/texmf.cnf
   LuaTools | 
   LuaTools | runtime: 0.003 seconds

aha, so how about setting the env variables TEXMFCNF and TEXMF

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

2008-04-15 Thread Taco Hoekwater


John Devereux wrote:
 Michael Green [EMAIL PROTECTED] writes:
 
 I'm getting the following error when running this command: luatools -- 
 ini --verbose --compile cont-en

 Hi, I am getting a similar error on debian unstable.

Both of you, can you check that

   luatools luat-env.lua

finds the file? If not, try running luatools --generate

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 problems with \seeindex and \from

2008-04-15 Thread Mojca Miklavec
On Tue, Apr 15, 2008 at 11:15 AM, Taco Hoekwater wrote:


  Drazen Baic wrote:
   Hi,
  
   Of course, I should have provided one in my first mail. Trying to create
   a minimal test file I also found out that the crash only happens when
   \setupinteraction [state=start] is set. Here is the file.

  That example works OK for me, not even any warnings from valgrind.
  But I am on linux-i686, so it could be a problem in the ppc build,
  and I can't help you there. I hope someone else can take this up.


   \setupinteraction [state=start]
   \useURL[apache][http://httpd.apache.org/download.cgi]
  
   \starttext
   \startitemize
\item Download Apache at \from[apache]
   \stopitemize
  
   \stoptext



 Best wishes,
  Taco

I get a bus error on mac intel as well.

The most funny part is that one doesn't even notice that fact when
running ConTeXt. It seems to run normally, only no PDF file is
created.

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-15 Thread Mojca Miklavec
On Tue, Apr 15, 2008 at 9:57 AM, John Devereux wrote:

  I have not run the ctxtools --update since I m not sure if is
  appropriate for debian...

ctxtools --update does several things:
a) download cont-tmf.zip
b) extract to texmf-local
c) generate formats

a) is safe, b) and c) might put thing to weird places (different
distros have different conventions). A rather safe thing to do is to
unzip cont-tmf.zip to a location that you trust to be OK. You can
unzip it to either
/usr/local/share/texmf/
or to .texlive (check if one exists) and then regenerate formats in
the debian way. If you put files to /usr/local/share/texmf/, the
next, the next update (does it ever happen?) will update those files
(uninstall might possibly leave some files there if they were not
present in your previous installation). If you put context to your
local tree, you only need to make sure not to forget about it. If you
upgrade context with debian later, the tree in your home will have
precedence.

But in general there should be no problem updating some files on
debian. If you don't trust ctxtools, just do it manually.

You can also run rsync from minimals.contextgarden.net to update
context files instead of downloading and extracting the zip from
pragma.

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 problems with \seeindex and \from

2008-04-15 Thread Taco Hoekwater


Drazen Baic wrote:
 Hi,
 
 Of course, I should have provided one in my first mail. Trying to create
 a minimal test file I also found out that the crash only happens when
 \setupinteraction [state=start] is set. Here is the file.

That example works OK for me, not even any warnings from valgrind.
But I am on linux-i686, so it could be a problem in the ppc build,
and I can't help you there. I hope someone else can take this up.

 \setupinteraction [state=start]
 \useURL[apache][http://httpd.apache.org/download.cgi]
 
 \starttext
 \startitemize
  \item Download Apache at \from[apache]
 \stopitemize
 
 \stoptext

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-15 Thread John Devereux
Taco Hoekwater [EMAIL PROTECTED] writes:

 John Devereux wrote:
 Michael Green [EMAIL PROTECTED] writes:
 
 I'm getting the following error when running this command: luatools -- 
 ini --verbose --compile cont-en

 Hi, I am getting a similar error on debian unstable.

 Both of you, can you check that

luatools luat-env.lua

I just get a blank line printed. And I get the same if I feed it the name
of a random, non-existent file. Which is not encouraging...


 finds the file? If not, try running luatools --generate

This produces:

  LuaTools | skipping /texmf-local/web2c/texmf.cnf
  LuaTools | skipping /texmf/web2c/texmf.cnf
  LuaTools | 
  LuaTools | runtime: 0.003 seconds

I then still get the same error unfortunately :(

-- 

John Devereux
___
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-15 Thread Wolfgang Schuster
On Mon, Apr 14, 2008 at 6:11 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
 On Mon, 14 Apr 2008, Taco Hoekwater wrote:

  Wolfgang Schuster wrote:
 
  Why not, I have nothing against a few predefined title pages layouts.
 
  Somewhat related: it would be nice if there was some common code for
  titles (books as well as articles).
 
  [snip]
 
  Anyway, the maps module contains all the code to do everything. And
  the same is true for the TUG module. And for quite a few others I have
  laying around. Lots of duplicate code all over, so a common framework
  would be great. I've been meaning to write one for a long time, but
  somehow I never quite get around to actually doing it.
 
  Just saying this to let you know that I would really welcome a module
  with commands like \setuptitle, \definetitle, and \placetitle.

 I agree with that. It will be really nice to have a module that does a few
 simple titles (alternate=(a|b|c), etc.) For one of my personal modules,
 I was following something along the lines of the maps module. But I find
 Wolfgang's solution on the wiki to be more ConTeXtish than what all other
 modules use.

Hi Aditya,

could you use a few lines what do you expect from a placetitle/placetitlepage
command or a titlepage environment.

What should we do with the abstract, did it depend on the document title ...

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

2008-04-15 Thread John Devereux
Hans Hagen [EMAIL PROTECTED] writes:

 John Devereux wrote:
 Taco Hoekwater [EMAIL PROTECTED] writes:
 
 John Devereux wrote:
 Michael Green [EMAIL PROTECTED] writes:

 I'm getting the following error when running this command: luatools -- 
 ini --verbose --compile cont-en
 Hi, I am getting a similar error on debian unstable.
 Both of you, can you check that

luatools luat-env.lua
 
 I just get a blank line printed. And I get the same if I feed it the name
 of a random, non-existent file. Which is not encouraging...
 
 finds the file? If not, try running luatools --generate
 
 This produces:
 
   LuaTools | skipping /texmf-local/web2c/texmf.cnf
   LuaTools | skipping /texmf/web2c/texmf.cnf
   LuaTools | 
   LuaTools | runtime: 0.003 seconds

 aha, so how about setting the env variables TEXMFCNF and TEXMF

 Hans

aha indeed!

Setting TEXMF was missing from the instructions in debian... Or perhaps I
messed up my configuration in the past.

  luatools --ini --compile cont-en

works now.

I will start playing with it.

A quick try of the example snippet did not work (see dump at end of
message) but I will look into it more and try Mojcas advice re
ctxtools --update.

Thanks.




~$cat temp.tex

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

~$ texexec --lua temp.tex


TeXExec | processing document 'temp.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file temp.top
TeXExec | using randomseed 1151
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en

(./temp.tex

ConTeXt  ver: 2008.01.28 21:28 MKIV  fmt: 2008.4.15  int: english/english

language: language en is active
report  utilityfile: not present
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.mkiv
lua: used config path - /usr/share/texmf/web2c/texmf.cnf
lua: used cache path - 
//home/jd/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028
) (/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
)
bodyfont   : 12pt rm is loaded
error  define font: font with name msam7 is not found
error  define font: name: msam7, loading aborted
! Font \*7ptmmmarm*:=msam7 at 7pt not loadable: metric data not found or bad.
to be read again 
   \relax 
\xxdododefinefont ...tspec {#4}\newfontidentifier 
  \let \localrelativefontsiz...
\dodosetmathfamilyA ...amily \fontsize \endcsname 
  \else \ifcsname \fontbody ...
\dosetmathfamily ...athfamily \scriptscriptfont #1
  \let \fontbody #3\dodosetm...
inserted text ...\scriptscriptface \c!ma \empty 
  \dosetmathfamily \mbfam \t...
\synchronizemath ...athfonts \the \mathstrategies 
  \fi 
...
l.1 
\starttext
? 



-- 

John Devereux
___
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-15 Thread Mojca Miklavec
On Tue, Apr 15, 2008 at 12:37 PM, John Devereux wrote:
 Hans Hagen [EMAIL PROTECTED] writes:

   John Devereux wrote:
   Taco Hoekwater [EMAIL PROTECTED] writes:
  
   John Devereux wrote:
   Michael Green [EMAIL PROTECTED] writes:
  
   I'm getting the following error when running this command: luatools --
   ini --verbose --compile cont-en
   Hi, I am getting a similar error on debian unstable.
   Both of you, can you check that
  
  luatools luat-env.lua
  
   I just get a blank line printed. And I get the same if I feed it the name
   of a random, non-existent file. Which is not encouraging...
  
   finds the file? If not, try running luatools --generate
  
   This produces:
  
 LuaTools | skipping /texmf-local/web2c/texmf.cnf
 LuaTools | skipping /texmf/web2c/texmf.cnf
 LuaTools |
 LuaTools | runtime: 0.003 seconds
  
   aha, so how about setting the env variables TEXMFCNF and TEXMF
  
   Hans

  aha indeed!

  Setting TEXMF was missing from the instructions in debian... Or perhaps I
  messed up my configuration in the past.

   luatools --ini --compile cont-en

  works now.

  I will start playing with it.

  A quick try of the example snippet did not work (see dump at end of
  message) but I will look into it more and try Mojcas advice re
  ctxtools --update.

ctxtools --update won't help you as you have some missing fonts (msam7.tfm).
http://packages.debian.org/etch/all/texlive-base/filelist claims that
the file should be present in texlive-base in Debian, so it's a bit
confusing.

Mojca


  

  ~$cat temp.tex

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

  ~$ texexec --lua temp.tex


  TeXExec | processing document 'temp.tex'
  TeXExec | no ctx file found
  TeXExec | tex processing method: context
  TeXExec | TeX run 1
  TeXExec | writing option file temp.top
  TeXExec | using randomseed 1151
  TeXExec | tex engine: luatex
  TeXExec | tex format: cont-en

  (./temp.tex

  ConTeXt  ver: 2008.01.28 21:28 MKIV  fmt: 2008.4.15  int: english/english

  language: language en is active
  report  utilityfile: not present
  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.mkiv
  lua: used config path - /usr/share/texmf/web2c/texmf.cnf
  lua: used cache path - 
 //home/jd/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028
  ) (/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
  )
  bodyfont   : 12pt rm is loaded
  error  define font: font with name msam7 is not found
  error  define font: name: msam7, loading aborted
  ! Font \*7ptmmmarm*:=msam7 at 7pt not loadable: metric data not found or bad.
  to be read again
\relax
  \xxdododefinefont ...tspec {#4}\newfontidentifier
   \let 
 \localrelativefontsiz...
  \dodosetmathfamilyA ...amily \fontsize \endcsname
   \else \ifcsname \fontbody 
 ...
  \dosetmathfamily ...athfamily \scriptscriptfont #1
   \let \fontbody 
 #3\dodosetm...
  inserted text ...\scriptscriptface \c!ma \empty
   \dosetmathfamily \mbfam 
 \t...
  \synchronizemath ...athfonts \the \mathstrategies
   \fi
  ...
  l.1
 \starttext
  ?



  --

  John Devereux
___
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-15 Thread Taco Hoekwater
Wolfgang Werners-Lucchini wrote:
 if mp then
  res = mp:execute('plain')
  mp:finish()
 end
 
 this first step runs with res=0, but there is no 'plain.mem' dumped.

For the other readers: res itself can't really be zero. It is either
a table, or nil. The actual return value is the status field in the
table, and that can vary from 0 (good run) to 3 (extremely bad run),
and you can end up with nil if you have invalid arguments.

 (I have temporary appended 'dump;' to plain.mp)

After the above, you should have plain.mem in the local directory.
You can try printing res.term or res.log or even
   print(table.serialize(res))
to check if what mp is doing.

 after that I produced 'plain.mem' executing
 'texmfstart texexec --make plain'

I assume that will create a tex plain.fmt file. But even if it
does create a .mem file, you will not succeed unless you are using
newmpost from the mplib-alpha-0.40 distribution and the values
you sset up for hash_size, main_memory, and param_size in the loading
stage are identical to the values used by newmpost from texmf.cnf
during mem generation.

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-15 Thread John Devereux
Mojca Miklavec [EMAIL PROTECTED] writes:

 On Tue, Apr 15, 2008 at 12:37 PM, John Devereux wrote:
 Hans Hagen [EMAIL PROTECTED] writes:

   John Devereux wrote:
   Taco Hoekwater [EMAIL PROTECTED] writes:
  
   John Devereux wrote:
   Michael Green [EMAIL PROTECTED] writes:
  
   I'm getting the following error when running this command: luatools --
   ini --verbose --compile cont-en
   Hi, I am getting a similar error on debian unstable.
   Both of you, can you check that
  
  luatools luat-env.lua
  
   I just get a blank line printed. And I get the same if I feed it the name
   of a random, non-existent file. Which is not encouraging...
  
   finds the file? If not, try running luatools --generate
  
   This produces:
  
 LuaTools | skipping /texmf-local/web2c/texmf.cnf
 LuaTools | skipping /texmf/web2c/texmf.cnf
 LuaTools |
 LuaTools | runtime: 0.003 seconds
  
   aha, so how about setting the env variables TEXMFCNF and TEXMF
  
   Hans

  aha indeed!

  Setting TEXMF was missing from the instructions in debian... Or perhaps I
  messed up my configuration in the past.

   luatools --ini --compile cont-en

  works now.

  I will start playing with it.

  A quick try of the example snippet did not work (see dump at end of
  message) but I will look into it more and try Mojcas advice re
  ctxtools --update.

 ctxtools --update won't help you as you have some missing fonts (msam7.tfm).
 http://packages.debian.org/etch/all/texlive-base/filelist claims that
 the file should be present in texlive-base in Debian, so it's a bit
 confusing.

 Mojca

Hi Mojca,

There is a file here:

  /usr/share/texmf-texlive/fonts/tfm/public/ams/msam7.tfm

But I don't know what else is needed.

John

  

  ~$cat temp.tex

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

  ~$ texexec --lua temp.tex


  TeXExec | processing document 'temp.tex'
  TeXExec | no ctx file found
  TeXExec | tex processing method: context
  TeXExec | TeX run 1
  TeXExec | writing option file temp.top
  TeXExec | using randomseed 1151
  TeXExec | tex engine: luatex
  TeXExec | tex format: cont-en

  (./temp.tex

  ConTeXt  ver: 2008.01.28 21:28 MKIV  fmt: 2008.4.15  int: english/english

  language: language en is active
  report  utilityfile: not present
  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.mkiv
  lua: used config path - /usr/share/texmf/web2c/texmf.cnf
  lua: used cache path - 
 //home/jd/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028
  ) (/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
  )
  bodyfont   : 12pt rm is loaded
  error  define font: font with name msam7 is not found
  error  define font: name: msam7, loading aborted
  ! Font \*7ptmmmarm*:=msam7 at 7pt not loadable: metric data not found or 
 bad.
  to be read again
\relax
  \xxdododefinefont ...tspec {#4}\newfontidentifier
   \let 
 \localrelativefontsiz...
  \dodosetmathfamilyA ...amily \fontsize \endcsname
   \else \ifcsname \fontbody 
 ...
  \dosetmathfamily ...athfamily \scriptscriptfont #1
   \let \fontbody 
 #3\dodosetm...
  inserted text ...\scriptscriptface \c!ma \empty
   \dosetmathfamily \mbfam 
 \t...
  \synchronizemath ...athfonts \the \mathstrategies
   \fi
  ...
  l.1
 \starttext
  ?

-- 

John Devereux
___
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] 2 problems with texexec --module

2008-04-15 Thread Taco Hoekwater
Peter Münster wrote:
 Hello,
 
 1.) Compilation stop like this:
 
 [1.1] [2.1] . (./t-french.tex
 language   : language specific options [default-fr] introduce a 4.0pt  
 skip
 \wait=

Somewhat unexpectedly, the space after [frenchpunctuation] is not 
ignored (note: I am not saying it should). Can you try this?

   \startlanguagespecifics[fr]
 \setcharacterspacing[frenchpunctuation]%
   \stoplanguagespecifics

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] 2 problems with texexec --module

2008-04-15 Thread Peter Münster
On Tue, Apr 15 2008, Taco Hoekwater wrote:

 Peter Münster wrote:
  Hello,
  
  1.) Compilation stop like this:
  
  [1.1] [2.1] . (./t-french.tex
  language   : language specific options [default-fr] introduce a 4.0pt  
  skip
  \wait=
 
 Somewhat unexpectedly, the space after [frenchpunctuation] is not 
 ignored (note: I am not saying it should). Can you try this?
 
\startlanguagespecifics[fr]
  \setcharacterspacing[frenchpunctuation]%
\stoplanguagespecifics

I've already tried this, but it does not work. But thanks to your remark,
I've finally found the reason: it's the space *before*
\setcharacterspacing.

This works ok:

\startlanguagespecifics[fr]
\setcharacterspacing[frenchpunctuation]
\stoplanguagespecifics

Cheers, 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] 2 problems with texexec --module

2008-04-15 Thread Taco Hoekwater


Peter Münster wrote:
 
 \startlanguagespecifics[fr]
 \setcharacterspacing[frenchpunctuation]
 \stoplanguagespecifics

Still somewhat odd.
___
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-15 Thread Mojca Miklavec
On Tue, Apr 15, 2008 at 1:25 PM, John Devereux wrote:

 Mojca Miklavec writes:

Setting TEXMF was missing from the instructions in debian... Or perhaps I
messed up my configuration in the past.
  
 luatools --ini --compile cont-en
  
works now.
  
I will start playing with it.
  
A quick try of the example snippet did not work (see dump at end of
message) but I will look into it more and try Mojcas advice re
ctxtools --update.
  
   ctxtools --update won't help you as you have some missing fonts 
 (msam7.tfm).
   http://packages.debian.org/etch/all/texlive-base/filelist claims that
   the file should be present in texlive-base in Debian, so it's a bit
   confusing.
  
   Mojca

  Hi Mojca,

  There is a file here:

   /usr/share/texmf-texlive/fonts/tfm/public/ams/msam7.tfm

  But I don't know what else is needed.

I would say that the installation might be slightly broken, even if
only a few variables are missing. How exactly did you install LuaTeX
and latest ConTeXt?

  Setting TEXMF was missing from the instructions in debian...

This should not happen, but once you answer the question about how you
have installed it, it might become clearer.

Some time ago there was some problem on debian since Hans's lua
scripts were unable to parse TEXMFCNF (texmf.cnf) files properly, but
this might have been resolved in the meantime.

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-15 Thread John Devereux
Mojca Miklavec [EMAIL PROTECTED] writes:

 On Tue, Apr 15, 2008 at 1:25 PM, John Devereux wrote:

 Mojca Miklavec writes:

Setting TEXMF was missing from the instructions in debian... Or perhaps 
 I
messed up my configuration in the past.
  
 luatools --ini --compile cont-en
  
works now.
  
I will start playing with it.
  
A quick try of the example snippet did not work (see dump at end of
message) but I will look into it more and try Mojcas advice re
ctxtools --update.
  
   ctxtools --update won't help you as you have some missing fonts 
 (msam7.tfm).
   http://packages.debian.org/etch/all/texlive-base/filelist claims that
   the file should be present in texlive-base in Debian, so it's a bit
   confusing.
  
   Mojca

  Hi Mojca,

  There is a file here:

   /usr/share/texmf-texlive/fonts/tfm/public/ams/msam7.tfm

  But I don't know what else is needed.

 I would say that the installation might be slightly broken, even if
 only a few variables are missing. How exactly did you install LuaTeX
 and latest ConTeXt?

Mojca,

I followed the instructions here, where applicable for debian sid:

http://wiki.contextgarden.net/Debian_installation

Then the instruction in the README.MarkIV that appeared in the pckage
documentation directory (appended to end of post).

However I have been using context for years, and may well have messed
something up! It seems to work OK with my normal documents. Except I
notice \usemodule[gnuplot] does not work.

John

  Setting TEXMF was missing from the instructions in debian...

 This should not happen, but once you answer the question about how you
 have installed it, it might become clearer.

 Some time ago there was some problem on debian since Hans's lua
 scripts were unable to parse TEXMFCNF (texmf.cnf) files properly, but
 this might have been resolved in the meantime.



README.luatex
=

Mark IV is the name of the LuaTeX-aware part of ConTeXt; that is, when you
use ConTeXt over the LuaTeX engine instead of PDFTeX or XeTeX. You run it
with texexec --lua.

Currently the integration of Mark IV into Debian is not completely done,
especially because the details are currently worked out (see the dev-context
mailing list).

If you want to start using Mark IV the following the following few points
should get you started:

1) Right versions:
luatex = 0.20.2
context = 2007.12.20

2) environment variables and luatex-cache
   Mark IV ships its own implementation of file searching and doesn't
   use the ls-R databases, but luatex-cache. You have to tell luatools
   where to find texmf.cnf, and then generate the cache:
export TEXMFCNF=/usr/share/texmf/web2c
luatools --generate --verbose
   This will generate the luatex-cache in $HOME. If you want to put it
   somewhere else set (and export) the TEXMFCACHE variable (like
   export TEXMFCACHE=/tmp)

3) Generate a Mark IV format
   This is not integrated into the usual format building process, and 
   probably will need some time to be worked out completely as the 
   current fmtutil cannot cope with Mark IV formats. Call
luatools --ini --compile cont-en

4) Now you can try some simple document like (thanks to Arthur Reutenauer)
\starttext

\ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;}
or the equivalent:
\startlua
a = 1.5
b = 1.8
c = a*b
tex.print(c)
\stoplua

You can also do more elaborate calculations with the lua math library:
\ctxlua{tex.print($\string\\sqrt{2} =  .. math.sqrt(2) .. $)}

\stoptext
  and run it with
texexec --lua filename.tex


-- 

John Devereux
___
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] Problem to save data font in cache

2008-04-15 Thread Wolfgang Schuster
Hi,

I tried to use the cwTeX fonts with MkIV and I can use them but ConTeXt is not
able to save the font data and read the font for every run, this did
work but it takes
quiet some time to do this.

A attached the result from the terminal and the log file.

The font are available from the following page:
http://cle.linux.org.tw/fonts/cwttf/baseline/

My example document is:

% engine=luatex

\definefont[cwheib][file:cwheib*default at 12pt]

\starttext
\cwheib cwTeXHeiBold
\stoptext

Wolfgang


cwheib.log
Description: Binary data
E:\texexec cwheib.tex
TeXExec | processing document 'cwheib.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file cwheib.top
TeXExec | using randomseed 942
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en

LuaTools | running command: luatex --fmt=C:/DOKUME~1/Wolfgang/LOKALE~1/Temp/lua
tex-cache/context/aa3708bbacfa039a6085d2b5c7446e1e/formats/cont-en --lua=C:/DO
KUME~1/Wolfgang/LOKALE~1/Temp/luatex-cache/context/aa3708bbacfa039a6085d2b5c7446
e1e/formats/cont-en.luc cwheib.tex (./cwheib.tex

ConTeXt  ver: 2008.04.11 00:07 MKIV  fmt: 2008.4.14  int: english/english

language   : language en is active
report  utilityfile: not present
system : cont-new loaded
(c:/w32tex/share/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(c:/w32tex/share/texmf-local/tex/context/base/cont-new.mkiv
lua: used config path - C:/w32tex/share/texmf/web2c/texmf.cnf
lua: used cache path - C:/DOKUME\CCC:5:126 1/Wolfgang/LOKALE\CCC:5:1
26 1/Temp/luatex-cache/context/aa3708bbacfa039a6085d2b5c7446e1e
) (c:/w32tex/share/texmf-local/tex/context/base/cont-mtx.tex))
system : cont-old loaded
(c:/w32tex/share/texmf-local/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(c:/w32tex/share/texmf-local/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys loaded
(c:/w32tex/share/texmf-local/tex/context/user/cont-sys.tex (c:/w32tex/share/texm
f-local/tex/context/base/type-tmf.tex) (c:/w32tex/share/texmf-local/tex/context/
base/type-siz.tex) (c:/w32tex/share/texmf-local/tex/context/base/type-otf.tex))
bodyfont   : 12pt rm is loaded
specials   : tex loaded
system : cwheib.top loaded
(./cwheib.top
specials   : loading definition file tpd
(c:/w32tex/share/texmf-local/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(c:/w32tex/share/texmf-local/tex/context/base/spec-fdf.tex (c:/w32tex/share/texm
f-local/tex/context/base/spec-fdf.mkiv))
specials   : fdf loaded
)
specials   : fdf loaded
)
systems: begin file cwheib at line 5
report  load otf: loading: ./cwheib.ttf
report  load otf: enhance: before
report  load otf: enhance: enrich
report  load otf: enhance: registering tlig feature
report  load otf: enhance: registering trep feature
report  load otf: enhance: flatten
report  load otf: flattening 'specifications' tables
report  load otf: flattening 'anchor' tables
report  load otf: flattening 'gsub' tables
report  load otf: enhance: analyze
report  load otf: enhance: after
report  load otf: enhance: patch
report  load otf: enhance: strip
report  load otf: enhance: pack
report  load otf: file size: 5493164
report  load otf: saving: in cachetexluac: ...atex-cache/context/aa3708bbacfa0
39a6085d2b5c7446e1e/fonts/otf/cwheib.tma:169863: unfinished string near '={'
luac: ...atex-cache/context/aa3708bbacfa039a6085d2b5c7446e1e/fonts/otf/cwheib.tm
a:169863: unfinished string near '={'

fonts  : resetting map file list
{c:/w32tex/share/texmf-local/fonts/map/pdftex/context/original-empty.map}
fonts  : using map file: original-base
{c:/w32tex/share/texmf-local/fonts/map/pdftex/context/original-base.map}
fonts  : using map file: lm-math
{c:/w32tex/share/texmf/fonts/map/dvips/lm/lm-math.map}
fonts  : using map file: lm-rm
{c:/w32tex/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts  : using map file: original-ams-base
{c:/w32tex/share/texmf-local/fonts/map/pdftex/context/original-ams-base.map}
fonts  : using map file: original-ams-euler
{c:/w32tex/share/texmf-local/fonts/map/pdftex/context/original-ams-euler.map}
fonts  : using map file: original-public-lm
{c:/w32tex/share/texmf-local/fonts/map/pdftex/context/original-public-lm.map} [1
.1]
systems: end file cwheib at line 7
 )./cwheib.ttfc:/w32tex/share/texmf-fonts/fonts/opentype/public/lm/lmroman12-
regular.otf
mkiv lua stats : used config path  - C:/w32tex/share/texmf/web2c/texmf.c
nf
mkiv lua stats : used cache path   - C:/DOKUME~1/Wolfgang/LOKALE~1/Temp/
luatex-cache/context/aa3708bbacfa039a6085d2b5c7446e1e
mkiv lua stats : modules/dumps/instances   - 84/20/1
mkiv lua stats : input load time   - 0.060 seconds
mkiv lua stats : fonts load time   - 20.750 seconds
mkiv 

Re: [NTG-context] Problem to save data font in cache

2008-04-15 Thread Hans Hagen
Wolfgang Schuster wrote:
 Hi,
 
 I tried to use the cwTeX fonts with MkIV and I can use them but ConTeXt is not
 able to save the font data and read the font for every run, this did
 work but it takes
 quiet some time to do this.
 
 A attached the result from the terminal and the log file.
 
 The font are available from the following page:
 http://cle.linux.org.tw/fonts/cwttf/baseline/
 
 My example document is:
 
 % engine=luatex
 
 \definefont[cwheib][file:cwheib*default at 12pt]
 
 \starttext
 \cwheib cwTeXHeiBold
 \stoptext

can you check if there's an tma file in the cache? and if so, if you can 
run texluac -s blabla.tma on it?

-
   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] Problem to save data font in cache

2008-04-15 Thread Wolfgang Schuster
On Tue, Apr 15, 2008 at 3:09 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Wolfgang Schuster wrote:
  Hi,
 
  I tried to use the cwTeX fonts with MkIV and I can use them but ConTeXt is 
  not
  able to save the font data and read the font for every run, this did
  work but it takes
  quiet some time to do this.
 
  A attached the result from the terminal and the log file.
 
  The font are available from the following page:
  http://cle.linux.org.tw/fonts/cwttf/baseline/
 
  My example document is:
 
  % engine=luatex
 
  \definefont[cwheib][file:cwheib*default at 12pt]
 
  \starttext
  \cwheib cwTeXHeiBold
  \stoptext

 can you check if there's an tma file in the cache? and if so, if you can
 run texluac -s blabla.tma on it?

I will try this today evening.

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] bug in mplib?

2008-04-15 Thread Hans Hagen
Thomas A. Schmitz wrote:
 Hi all,
 
 I just noticed that with the new incarnation of metapost, arrows  
 behave somewhat erratically. Take this minmal example:
 
 \starttext
 
 \startuseMPgraphic{arrowtest}
 z1=(0,0) ;
 z2=(3cm,0) ;
 ahlength := 15pt ;
 pickup pencircle scaled 5pt ;
 drawarrow z1--z2 ;
 \stopuseMPgraphic
 
 \useMPgraphic{arrowtest}

both reported bugs (arrow and pensquare) are solved (took taco and me 
the whole morning)

we will post a new luatex binary and mkiv zip later

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

2008-04-15 Thread Mojca Miklavec
  However I have been using context for years, and may well have messed
  something up! It seems to work OK with my normal documents. Except I
  notice \usemodule[gnuplot] does not work.

What exactly goes wrong?

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 problems with \seeindex and \from

2008-04-15 Thread Taco Hoekwater
Hi,

Drazen Baic wrote:
 Hi,
 
 Of course, I should have provided one in my first mail. Trying to create
 a minimal test file I also found out that the crash only happens when
 \setupinteraction [state=start] is set. Here is the file.
 
 \setupinteraction [state=start]
 \useURL[apache][http://httpd.apache.org/download.cgi]
 
 \starttext
 \startitemize
  \item Download Apache at \from[apache]
 \stopitemize
 
 \stoptext

Mojca helped debugging this, and there is a patch in the luatex
repository that should fix it. As Hans said already, you can expect
a new luatex binary and context release later this 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] Unable to generate luatex formats

2008-04-15 Thread Hans van der Meer
On 15 apr 2008, at 14:52, John Devereux wrote:

 4) Now you can try some simple document like (thanks to Arthur  
 Reutenauer)
   \starttext
 some statements deleted 

   \startlua
   a = 1.5
   b = 1.8
   c = a*b
   tex.print(c)
   \stoplua
   \stoptext
  and run it with
   texexec --lua filename.tex

Not true. This code used to work, it DID WORK. But now it gives an  
error:
system : cont-sys loaded
(/Users/hans/TeX/texmf-private/tex/context/user/cont-sys.tex
! Undefined control sequence.
l.182 \forceMPTEXgraphictrue

ConTeXt  ver: 2008.04.11 00:07 MKIV  fmt: 2008.4.14  int: english/ 
english

I am not happy to see something so simple now being broken!!

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] Module documentation

2008-04-15 Thread luigi scarso
 On Luigi Scarso's page
 (http://wiki.contextgarden.net/User:Luigi.scarso/modules.pdf) he suggests
 the following:

 texexec --module --pdf core-tab.tex
sooner I will move this stuffs to supelec


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

2008-04-15 Thread Hans Hagen
Hans van der Meer wrote:
 On 15 apr 2008, at 14:52, John Devereux wrote:
 
 4) Now you can try some simple document like (thanks to Arthur  
 Reutenauer)
  \starttext
 . some statements deleted 
  \startlua
  a = 1.5
  b = 1.8
  c = a*b
  tex.print(c)
  \stoplua
  \stoptext
  and run it with
  texexec --lua filename.tex
 
 Not true. This code used to work, it DID WORK. But now it gives an  
 error:
 system : cont-sys loaded
 (/Users/hans/TeX/texmf-private/tex/context/user/cont-sys.tex
 ! Undefined control sequence.
 l.182 \forceMPTEXgraphictrue
 
 ConTeXt  ver: 2008.04.11 00:07 MKIV  fmt: 2008.4.14  int: english/ 
 english
 
 I am not happy to see something so simple now being broken!!

the upcoming release will

\let\forceMPTEXgraphictrue\relax

actually nothin gis really broken, it's just that supp-mps is no longer 
used in mkiv and so we have to provide placeholders (the less the better)

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

2008-04-15 Thread Mojca Miklavec
On Tue, Apr 15, 2008 at 4:16 PM, Hans van der Meer wrote:

  Not true. This code used to work, it DID WORK. But now it gives an
  error:
  system : cont-sys loaded
  (/Users/hans/TeX/texmf-private/tex/context/user/cont-sys.tex
  ! Undefined control sequence.
  l.182 \forceMPTEXgraphictrue

  ConTeXt  ver: 2008.04.11 00:07 MKIV  fmt: 2008.4.14  int: english/
  english

  I am not happy to see something so simple now being broken!!

That probably happens with just any file, right? Try to comment out
\forceMPTEXgraphictrue from
/Users/hans/TeX/texmf-private/tex/context/user/cont-sys.tex

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-15 Thread Mojca Miklavec
  I am not happy to see something so simple now being broken!!

This is why ConTeXt MK IV is still called experimental, and you should
be aware of that when using it.

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] Architecture Sketch

2008-04-15 Thread Idris Samawi Hamid
On Tue, 15 Apr 2008 08:38:20 -0600, luigi scarso [EMAIL PROTECTED]  
wrote:

 And use linux.

Well Hans, the lead developer uses windows ;-) and from the messages I see  
on this list the linux people tend to run into more installation/format  
problems :-D

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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] Architecture Sketch

2008-04-15 Thread John Devereux
Idris Samawi Hamid [EMAIL PROTECTED] writes:

 On Tue, 15 Apr 2008 08:38:20 -0600, luigi scarso [EMAIL PROTECTED]  
 wrote:

 And use linux.

 Well Hans, the lead developer uses windows ;-) and from the messages I see  
 on this list the linux people tend to run into more installation/format  
 problems :-D

And I suspect these two facts are related.. :)

Nevertheless, I have used both and find the linux environment better
in general. Everything is there and my distribution (debian) takes
care of things. Sometimes I am impatient and want to experiment with
the latest and greatest, bypassing the distributions packaging
system. Then I get into trouble.

-- 

John Devereux
___
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-15 Thread Aditya Mahajan
Hi Wolfgang,

On Tue, 15 Apr 2008, Wolfgang Schuster wrote:

 On Mon, Apr 14, 2008 at 6:11 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
 On Mon, 14 Apr 2008, Taco Hoekwater wrote:

 Wolfgang Schuster wrote:

 Why not, I have nothing against a few predefined title pages layouts.

 Somewhat related: it would be nice if there was some common code for
 titles (books as well as articles).

 [snip]

 Anyway, the maps module contains all the code to do everything. And
 the same is true for the TUG module. And for quite a few others I have
 laying around. Lots of duplicate code all over, so a common framework
 would be great. I've been meaning to write one for a long time, but
 somehow I never quite get around to actually doing it.

 Just saying this to let you know that I would really welcome a module
 with commands like \setuptitle, \definetitle, and \placetitle.

 I agree with that. It will be really nice to have a module that does a few
 simple titles (alternate=(a|b|c), etc.) For one of my personal modules,
 I was following something along the lines of the maps module. But I find
 Wolfgang's solution on the wiki to be more ConTeXtish than what all other
 modules use.

 Hi Aditya,

 could you use a few lines what do you expect from a placetitle/placetitlepage
 command or a titlepage environment.

Some of the things that I use \placetitle for:

* Writing academic papers. Currenly, I have a macro that I use like this:

\article
[title ={...},
 author={...},
publication={...},% This just goes to pdf subtitle
date={...},
bottom={...}, %text placed at page bottom,
  %usually current revision number
thanks={...}, %placed on the footer of the first page
]

\startabstract
...
\stopabstract

\startkeywords

\stopkeywords

The abstract environment places a head (Abstract) followed by its 
content. The formatting depends on whether it is a journal article, or a 
conference article.

keyword also places a head followed by its content.

Currently, what I have is that \article places all its contents, and so do 
abstract and keyword. So, I do not have to store anything.

* TUGBoat articles: This uses a style file originally by Hans, which I 
have modified considerably, but still uses the same interface.

This uses

\setvariables
[tugboat]
[title={...},
 author={...},
 address={...},
 email={...},
 year={...},
 volume={..},
 number={...},
 page={...}]

The title and the author go to the document title. The address and email 
go at the end of the article. The year, volume, number, and page go to the 
header and footer of the article.

The rest of the article is somethng like

\starttext
\startArticle

\startAbstract

\stopAbstract
...

\stopArticle
\stoptext

This structure is the reason I think something like \setuptitle (or 
\setupdocumenttitle) is needed.

* Practex journal, which uses

http://wiki.contextgarden.net/Modules/Pracjourn

* My Ways which use

http://wiki.contextgarden.net/Modules/MyWay

* and finally Maps which use

http://wiki.contextgarden.net/Modules/Maps



Notice that almost all of them so similar things, but in slightly 
different manner. What I wish for is a common interface, and I really like 
your idea of \setuptitle. In fact, I think that something like that should 
be part of the core.

The module does not need to take care of all the formatting requirements: 
just provide the interface. For a particular publications, the module for 
that publication can modify the \placetitle command to do what they want. 
With this, the user documentation can just say that use

\setuptitle[title=...,author=..., date=] %and maybe setups={...}

So, we will have a consistent user inteferface for all documents.

 What should we do with the abstract, did it depend on the document title ...

In general, the formatting of the abstract will depend on the kind of the 
document. Just need something like

\definetitlesubstructure% or something more appropriate
   [abstract]
   [headtext={Abstract},
headstyle=bold,
headcolor=blue,
headalign=middle,
inbetween=\blank,%between the head and the body
style=small, %for the contents
color=black, %for the contents
   ]

This should define a command that captures its contents, and provides a 
command \placetitlesubstructure[abstract].

Similarly, we can define

\definetitlesubstructure
   [keywords]
   []

Then, \placetitlesubstructure[abstract] and 
\placetitlesubstracutre[keywords] and go in the after={...} key of 
\setuptitle.

As I said before, the module just needs to collect the information, and 
provide one or two simple styles. Once the information is collected, it is 
easy to use other keys (e.g. thanks key in my first case) and let the user 
define a setups that take of how to handle those keys.

Aditya
___
If your question is 

Re: [NTG-context] Architecture Sketch

2008-04-15 Thread luigi scarso
  And I suspect these two facts are related.. :)
no, taco is on linux (well, i hope..)

  Nevertheless, I have used both and find the linux environment better
  in general. Everything is there and my distribution (debian) takes
  care of things. Sometimes I am impatient and want to experiment with
  the latest and greatest, bypassing the distributions packaging
  system. Then I get into trouble.
indeed , not me.
Always follow carefully  instructions.


-- 
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] Architecture Sketch

2008-04-15 Thread Hans Hagen
John Devereux wrote:
 Idris Samawi Hamid [EMAIL PROTECTED] writes:
 
 On Tue, 15 Apr 2008 08:38:20 -0600, luigi scarso [EMAIL PROTECTED]  
 wrote:

 And use linux.
 Well Hans, the lead developer uses windows ;-) and from the messages I see  
 on this list the linux people tend to run into more installation/format  
 problems :-D
 
 And I suspect these two facts are related.. :)

well, luatex/mkiv runs happily on our linux servers; my development 
machine runs vista, and taco's runs linux and we happily generatet 
multiple new formats per day ... the main ingredients for a working set 
up are: TEXMF, TEXMFCNF and sometimes TEXMFCACHE (keep in mind that 
traditional tex distribiutions can have hard coded paths and assumptions)

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] Architecture Sketch

2008-04-15 Thread Jean Magnan de Bornier
Le 15 avril à 15:24:19 Suno Ano [EMAIL PROTECTED] écrit notamment:

| hi folks,
| I am new to ConTeXt. I had been a TeXinfo, Muse ...

Hi,

You can still be a Muse boy with context:
http://wiki.contextgarden.net/ConTeXt_and_emacs-muse

(I have to edit a bit this page but it is quite enough for a muse user to
see what can be done)

-- 
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] Architecture Sketch

2008-04-15 Thread John Devereux
Hans Hagen [EMAIL PROTECTED] writes:

 John Devereux wrote:
 Idris Samawi Hamid [EMAIL PROTECTED] writes:
 
 On Tue, 15 Apr 2008 08:38:20 -0600, luigi scarso [EMAIL PROTECTED]  
 wrote:

 And use linux.
 Well Hans, the lead developer uses windows ;-) and from the messages I see  
 on this list the linux people tend to run into more installation/format  
 problems :-D
 
 And I suspect these two facts are related.. :)

 well, luatex/mkiv runs happily on our linux servers; my development 
 machine runs vista, and taco's runs linux and we happily generatet 
 multiple new formats per day ...

I am only teasing.

I love context, and have been using it for years now on linux. But I
only get to use it intermittently, and only rarely get involved with
the installation itself...

 the main ingredients for a working set 
 up are: TEXMF, TEXMFCNF and sometimes TEXMFCACHE (keep in mind that 
 traditional tex distribiutions can have hard coded paths and assumptions)

...so I forget the mechanics of how tex is configured and how it finds
everything.

Thanks,

-- 

John Devereux
___
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] bug in mplib?

2008-04-15 Thread Hans Hagen
luigi scarso wrote:
  we will post a new luatex binary and mkiv zip later
 also with searching path fixed ?

sure,   


-
   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 problems with \seeindex and \from

2008-04-15 Thread Drazen Baic
On Tue, Apr 15, 2008 at 4:03 PM, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Hi,


  Drazen Baic wrote:
   Hi,
  
   Of course, I should have provided one in my first mail. Trying to create
   a minimal test file I also found out that the crash only happens when
   \setupinteraction [state=start] is set. Here is the file.
  
   \setupinteraction [state=start]
   \useURL[apache][http://httpd.apache.org/download.cgi]
  
   \starttext
   \startitemize
\item Download Apache at \from[apache]
   \stopitemize
  
   \stoptext

  Mojca helped debugging this, and there is a patch in the luatex
  repository that should fix it. As Hans said already, you can expect
  a new luatex binary and context release later this week.


You are really unbelievable fast in fixing bugs. Thank you very much!
And I would like to thank all the ConTeXt and LuaTeX developers.
This software is amazing!

Regards,
Drazen
___
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] Architecture Sketch

2008-04-15 Thread Suno Ano
 | On Tue, 15 Apr 2008 16:38:20 +0200,
 | luigi scarso
 | who can be reached at: [EMAIL PROTECTED]
 | (whose comments are cited below with  luigi ),
 | had this to say in article [EMAIL PROTECTED]
 | in newsgroups gmane.comp.tex.context
 | concerning the subject of Re: Architecture Sketch
 | (see [EMAIL PROTECTED] for more details)

  hi folks, How do they fit together? Is there some sort of
  architecure chart somewhere so newbies can get a hold within a few
  seconds? Luatex == tex context == latex
 luigi ok ?
nope, I do not get it especially for the latex part. What about this:


  +--+
  | ConTeXt, used for|
  | creating the source  |
  | files to luatex  |
  +--+
   ^
   |
   |
   |
   |
   |
  +--+
  | luatex, a bunch of   |
  | libraries and whatnot|
  | which is going to replace|
  | pdfTeX   |
  |  |
  +--+

So where do LaTeX and MkIV fit into this? 


  Secondly, now that it seems MkIV is the new star will all my ConTeXt
  knowledge be obsolete once luatex is going to be used? (Maybe I am
  just making a fool out of myself even asking this but then I am
  totally new to this whole subject so ...)
 luigi A bit here and there, but not all

Which tells me exactly nothing :-) Actually to rephrase what I meant and
to what it boils down:

,[ Question ]
| What will happen to folks like me who just need/want to write great
| documents using ConTeXt?
`

If someone could shed some light onto this, I would be very thankful ...

For the rest
 - I took a look at the wiki, ml etc. but those could not answer my
   question -- usually I try another approach after 2 hours searching
   around 
 - yes, I am with Linux (DebianGNU/Linux)
 - GNU Emacs
 - my adorable cat :-)
 - a whole pile of ConTeXt manuals to read

___
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 problems with \seeindex and \from

2008-04-15 Thread Hans Hagen
Drazen Baic wrote:
 Hi,
 
 Here is a small test file. Compiled with 'texexec --lua' the register
 has only the entry 'Software 1' but it should have one additional
 entry 'Apache see Software'. This works OK when compiled with
 'texexec --xtx'
 
 \starttext
 \index{Software}Software
 \seeindex{Apache}{Software}Apache
 
 \placeindex
 \stoptext

see was not supported yet; i added it

-
   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 problems with \seeindex and \from

2008-04-15 Thread Taco Hoekwater
Drazen Baic wrote:

  Mojca helped debugging this, and there is a patch in the luatex
  repository that should fix it. As Hans said already, you can expect
  a new luatex binary and context release later this week.

 
 You are really unbelievable fast in fixing bugs. Thank you very much!

This is not always the case, to be honest. Mostly, you are lucky that
luatex bugs are a top priority right now. Some of my bib module
bugs are have been open for years, I am ashamed to admit.

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
___


[NTG-context] Unable to generate luatex formats

2008-04-15 Thread Michael Green
[A] My experience is similar to Hans van der Meer's (quoted below).

luatools --generate does what I think it's supposed to.

luatools luat-env.lua returns a blank line.

[B] I followed Thomas Schmitz's instructions and used the  
source .luatex method, for what it's worth.

http://archive.contextgarden.net/message/ 
20071002.175335.21873a03.en.html

.luatex contains:

export TEXMFCACHE=/tmp
export TEXMFCNF=/usr/local/texlive/2007/texmf/web2c
export TEXMF={/Users/michaelgreen/.texlive2007/texmf-config,/Users/ 
michaelgreen/.texlive2007/texmf-var,/Users/michaelgreen/Library/ 
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}
export LUAINPUTS={/usr/local/texlive/texmf-local/tex/context/base,/ 
usr/local/texlive/2007/texmf-dist/scripts/context/lua,/usr/local/ 
texlive/texmf-local/scripts/context/lua}

[C] Is there a chance that this is a permissions issue? I had to make  
luatools.lua executable by hand.

None of the other files in that directory are executable, where  
'that' directory is:

  /usr/local/texlive/texmf-local/scripts/context/lua

mjg

 From: Hans van der Meer [EMAIL PROTECTED]
 Subject: Re: [NTG-context] Unable to generate luatex formats

 Same thing here. luatools luat-env.lua gives an empty line. After
 luatools --generate again the same.
 And I have TEXMFCNF and TEXMF defined in .bashrc
 TEXMFCNF=/usr/local/texlive/2007/texmf/web2c
 TEXMF={/Users/hans/TeX/texmf-private,/usr/local/texlive/texmf-
 context,/usr/local/texlive/texmf-local,/usr/local/texlive/2007/texmf,/
 usr/local/texlive/2007/texmf-config,/usr/local/texlive/2007/texmf-
 dist,/usr/local/texlive/2007/texmf-doc,/usr/local/texlive/2007/texmf-
 var}

 So there must be something else amiis.

 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] Architecture Sketch

2008-04-15 Thread Suno Ano
 | On Tue, 15 Apr 2008 18:09:09 +0200,
 | Jean Magnan de Bornier
 | who can be reached at: [EMAIL PROTECTED]
 | (whose comments are cited below with  Jean ),
 | had this to say in article [EMAIL PROTECTED]
 | in newsgroups gmane.comp.tex.context
 | concerning the subject of Re: Architecture Sketch
 | (see [EMAIL PROTECTED] for more details)

 Jean You can still be a Muse boy with context:
 Jean http://wiki.contextgarden.net/ConTeXt_and_emacs-muse

Of course I will remain a Muse fanboy as well. Muse for my website,
texinfo for all FLOSS (Free/Libre Open Source Software) manuals etc. and
ConTeXt for a book and tech papers I am going to write ...

___
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] Architecture Sketch

2008-04-15 Thread Hans Hagen
Suno Ano wrote:
  | On Tue, 15 Apr 2008 16:38:20 +0200,
  | luigi scarso
  | who can be reached at: [EMAIL PROTECTED]
  | (whose comments are cited below with  luigi ),
  | had this to say in article [EMAIL PROTECTED]
  | in newsgroups gmane.comp.tex.context
  | concerning the subject of Re: Architecture Sketch
  | (see [EMAIL PROTECTED] for more details)
 
   hi folks, How do they fit together? Is there some sort of
   architecure chart somewhere so newbies can get a hold within a few
   seconds? Luatex == tex context == latex
  luigi ok ?
 nope, I do not get it especially for the latex part. What about this:
 
 
 +--+
 | ConTeXt, used for|
 | creating the source  |
 | files to luatex  |
 +--+
  ^
  |
  |
  |
  |
  |
 +--+
 | luatex, a bunch of   |
 | libraries and whatnot|
 | which is going to replace|
 | pdfTeX   |
 |  |
 +--+
 
 So where do LaTeX and MkIV fit into this? 

pdftex, xetex, luatex: engines

context mkii: pdftex/xetex
context mkiv: luatex

 Which tells me exactly nothing :-) Actually to rephrase what I meant and
 to what it boils down:

no need to discard old knowledge ... there will be new mkiv-only 
features, some hacks will go away

 ,[ Question ]
 | What will happen to folks like me who just need/want to write great
 | documents using ConTeXt?
 `
 
 If someone could shed some light onto this, I would be very thankful ...

just see mkiv as a next version; the reason for calling it mkiv is that 
context never had fundamental versions, like latex (original, 2e, 3)

in order to prevent users asking hey, there will be latex 3, when will 
there be acontext 3 i skipped the 3 and went for the 4 ...

... the mark part was inspired by deep purple using mk as tag for each 
new combination (which got my attention when i found out that steve 
morse was part of mk7 onwards, and the first code i wrote was with steve 
morse cd's in loop mode ...

... so now everyone knows why context mkiv is called mkiv; and yes, i 
only have DP mkvii/mkviii cd's/dvd's; and i'm not that no sure if there 
will be a context mkvii -)

-
   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] Architecture Sketch

2008-04-15 Thread luigi scarso
  in order to prevent users asking hey, there will be latex 3, when will
  there be acontext 3 i skipped the 3 and went for the 4 ...

  ... the mark part was inspired by deep purple using mk as tag for each
  new combination (which got my attention when i found out that steve
  morse was part of mk7 onwards, and the first code i wrote was with steve
  morse cd's in loop mode ...

  ... so now everyone knows why context mkiv is called mkiv; and yes, i
  only have DP mkvii/mkviii cd's/dvd's; and i'm not that no sure if there
  will be a context mkvii -)

to wikify .



-- 
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] Architecture Sketch

2008-04-15 Thread Olivier Guéry
On Tue, Apr 15, 2008 at 7:28 PM, luigi scarso [EMAIL PROTECTED] wrote:
   in order to prevent users asking hey, there will be latex 3, when will
there be acontext 3 i skipped the 3 and went for the 4 ...
  
... the mark part was inspired by deep purple using mk as tag for each
new combination (which got my attention when i found out that steve
morse was part of mk7 onwards, and the first code i wrote was with steve
morse cd's in loop mode ...
  
... so now everyone knows why context mkiv is called mkiv; and yes, i
only have DP mkvii/mkviii cd's/dvd's; and i'm not that no sure if there
will be a context mkvii -)
  
  to wikify .

Deep Purple… this Deep Purple : http://youtube.com/watch?v=8sEYIouqEdU ;o) ?
To wikify of course. Thank's to DP for being with you all this hours
of great code.

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
___


Re: [NTG-context] Architecture Sketch

2008-04-15 Thread luigi scarso

  ,[ Question ]
  | What will happen to folks like me who just need/want to write great
  | documents using ConTeXt?
  `
it depends:
i get fat, for example.

   - yes, I am with Linux (DebianGNU/Linux)
hey , like me!
   - GNU Emacs
also me
   - my adorable cat :-)
two little daughter (and wife, of course)
   - a whole pile of ConTeXt manuals to read
me again !

75% !



-- 
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] Architecture Sketch

2008-04-15 Thread Hans Hagen
Olivier Guéry wrote:
 On Tue, Apr 15, 2008 at 7:28 PM, luigi scarso [EMAIL PROTECTED] wrote:
  in order to prevent users asking hey, there will be latex 3, when will
there be acontext 3 i skipped the 3 and went for the 4 ...
  
... the mark part was inspired by deep purple using mk as tag for each
new combination (which got my attention when i found out that steve
morse was part of mk7 onwards, and the first code i wrote was with steve
morse cd's in loop mode ...
  
... so now everyone knows why context mkiv is called mkiv; and yes, i
only have DP mkvii/mkviii cd's/dvd's; and i'm not that no sure if there
will be a context mkvii -)
  
  to wikify .
 
 Deep Purple… this Deep Purple : http://youtube.com/watch?v=8sEYIouqEdU ;o) ?
 To wikify of course. Thank's to DP for being with you all this hours
 of great code.

haha, i didn't know that one -)


-
   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] Architecture Sketch

2008-04-15 Thread Suno Ano
 | On Tue, 15 Apr 2008 19:18:43 +0200,
 | Hans Hagen
 | who can be reached at: [EMAIL PROTECTED]
 | (whose comments are cited below with  Hans ),
 | had this to say in article [EMAIL PROTECTED]
 | in newsgroups gmane.comp.tex.context
 | concerning the subject of Re: Architecture Sketch
 | (see [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] for more 
 details)

 Hans Just see mkiv as a next version
Thanks, that answers my question.

___
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] 2 problems with texexec --module

2008-04-15 Thread Peter Münster
On Tue, Apr 15 2008, Taco Hoekwater wrote:

 Peter Münster wrote:
  
  \startlanguagespecifics[fr]
  \setcharacterspacing[frenchpunctuation]
  \stoplanguagespecifics
 
 Still somewhat odd.

Indeed. And I think for several reasons:
- I believed, that texexec --module does not execute commands without a
  %D at the beginning of the line
- usually, space in the beginning of the line is ignored
- I've found another similar case:

%D \module[file=t-test]
\appendtoks \abc \to \everystarttext

fails with:

) (./t-test.tex
! You can't use `\hskip' after \the.
\obeyedspace -\hskip 
  \zeropoint \hbox to \onepoint {}\hskip \zeropoint 
inserted text 
 \abc  
\dodoappendtoks ...EA \@@toks \the \@@scratchtoks 
  }
l.2 \appendtoks \abc \to 
 \everystarttext


No problem without the space after \to.

All problems in this thread are unrelated to MKII or MKIV.

Cheers, 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] 2 problems with texexec --module

2008-04-15 Thread Hans Hagen
Peter Münster wrote:
 On Tue, Apr 15 2008, Taco Hoekwater wrote:
 
 Peter Münster wrote:
 \startlanguagespecifics[fr]
 \setcharacterspacing[frenchpunctuation]
 \stoplanguagespecifics
 Still somewhat odd.

always messy this active :

all places where : can occur then need to be enclosed in cleanup code

-
   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 problems with \seeindex and \from

2008-04-15 Thread Drazen Baic
On Tue, Apr 15, 2008 at 6:51 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 Drazen Baic wrote:
   Hi,
  
   Here is a small test file. Compiled with 'texexec --lua' the register
   has only the entry 'Software 1' but it should have one additional
   entry 'Apache see Software'. This works OK when compiled with
   'texexec --xtx'
  
   \starttext
   \index{Software}Software
   \seeindex{Apache}{Software}Apache
  
   \placeindex
   \stoptext

  see was not supported yet; i added it

Thank you very much!

Regards,
Drazen
___
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-15 Thread Wolfgang Werners-Lucchini
On 15 Apr 2008 at 13:31, [EMAIL PROTECTED] wrote:

Hallo Taco,

  (I have temporary appended 'dump;' to plain.mp)
 
 After the above, you should have plain.mem in the local directory.

No.
There is neither a 'plain.fmt' nor a 'plain.mem'!

I have searched in the local directory, where it should be.
It is not in 'D:\context\tex\texmf-mswin\web2c' where format-files 
usally exist.
It is not in the cache.

I run this:
---
\enableregime[utf-8]
\starttext
% 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)
 print(table.serialize(res))
 res = mp:finish()
 print(table.serialize(res))
end
\stoplua
% stop low-level
\stoptext
---

with the following output:

---
t={
 [log]=This is MetaPost, Version 1.003 (INIMP)  15 APR 2008 21:00 
(plain.mpPreloading the plain mem file, version 0.99,
 [status]=0,
 [term]=This is MetaPost, Version 1.003 (Cweb version 0.40) 
(INIMP)\
 (plain.mpPreloading the plain mem file, version 0.99,
}
t={
 [log]= )\
Beginning to dump on file plain.mem\
 (mem=plain 8.4.15)\
at most 735 strings of total length 3629\
3326 memory locations dumped; current usage is 10212227\
501 symbolic tokens\
,
 [status]=0,
 [term]= )\
Beginning to dump on file plain.mem\
 (mem=plain 8.4.15)\
at most 735 strings of total length 3629\
3326 memory locations dumped; current usage is 10212227\
501 symbolic tokens\
Transcript written on plain.log.\
,
}
---

Can you see, what I am missing?

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] 2 problems with texexec --module

2008-04-15 Thread Peter Münster
On Tue, Apr 15 2008, Hans Hagen wrote:

 Peter Münster wrote:
  On Tue, Apr 15 2008, Taco Hoekwater wrote:
  
  Peter Münster wrote:
  \startlanguagespecifics[fr]
  \setcharacterspacing[frenchpunctuation]
  \stoplanguagespecifics
  Still somewhat odd.
 
 always messy this active :

The actual problem has nothing to do with \setcharacterspacing. You can
replace this line by \setupitemize[symbol=2] or similar.

And why active :? I thought, that \setcharacterspacing[frenchpunctuation]
uses some lua-magic instead of active characters?

Cheers, 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] luatex feature question/request

2008-04-15 Thread Hans Hagen
Olivier Guéry wrote:

 Looking to my tests it seems that if there's a space in the source
 file, the spacing is not apply — and I guess the nbsp neither.
 So, what would be great is we had something that say : no mater what
 is in front of this punctuations (space, nbsp or nothing) just make
 them nbsp with the right spacing !

it's no problem to add avariant that treats nospace, space, nbsp as 
equel, and removes in that case the space/nbsp but if we support such a 
thing, we need a better specification; there are probably more space 
related chars that needs treatment then


-
   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] Architecture Sketch

2008-04-15 Thread Martin Schröder
2008/4/15, Suno Ano [EMAIL PROTECTED]:
  So where do LaTeX and MkIV fit into this?

For LaTeX ask the LaTeX team. Maybe they have realized that luatex
exists, although I doubt it. :-)

Best
   Martin (SCNR)
___
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] new zips

2008-04-15 Thread Hans Hagen
Hi,

I uploaded new zips. Beware, for some bugfixes a new luatex binary is needed

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] 2 problems with texexec --module

2008-04-15 Thread Hans Hagen
Peter Münster wrote:
 On Tue, Apr 15 2008, Hans Hagen wrote:
 
 Peter Münster wrote:
 On Tue, Apr 15 2008, Taco Hoekwater wrote:

 Peter Münster wrote:
 \startlanguagespecifics[fr]
 \setcharacterspacing[frenchpunctuation]
 \stoplanguagespecifics
 Still somewhat odd.
 always messy this active :
 
 The actual problem has nothing to do with \setcharacterspacing. You can
 replace this line by \setupitemize[symbol=2] or similar.
 
 And why active :? I thought, that \setcharacterspacing[frenchpunctuation]
 uses some lua-magic instead of active characters?

in mkiv it does indeed; only mkii has language specifics


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


[NTG-context] using mag and myway

2008-04-15 Thread Pau
Hi,

I am worried because I would like to use mag-01 to write a document and
then upload it to the arxiv.org. Of course, I have a title for the document and
I would like to use it instead of having My Way written in the front page
(which nobody would understand)

I see that

-
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
-

I found this file on the net.  at

www.tug.org/teTeX/tetex-texmfdist/doc/context/base/mreadme.pdf

I see that it is (basically?) GPL.

Ok... now, in mag-01 I read that:

% This style is used for producing explanationary documents.
% Don't misuse it for other purposes, since it may confuse
% users. Don't change the title either, since it provides a
% way to categorize documents. Numbers are disabled in
% instances produced outside PRAGMA ADE.

Don't change the title either

?!?!

and

% These are reserved for PRAGMA-ADE, don't use them yourself!

% \setvariables[magazine][main=Tricky]
% \setvariables[magazine][main=Update]
% \setvariables[magazine][main=HOWTO]

% \setvariables[magazine][main=This Way]  % preludes to a/the manual
% \setvariables[magazine][main=A Better Way]  % dirty versus clean
% \setvariables[magazine][main=No Way]% how users should not do
% it
% \setvariables[magazine][main=Your Way]  % how users do it
% \setvariables[magazine][main=My Way]% how users do it
% \setvariables[magazine][main=Our Way]   % how we do things at
% pragma
% \setvariables[magazine][main=Their Way] % how to do latex things
% in context


What does this mean? Am I free to use the style but forced to write
My Way on the top of
it? Cannot I modify mag-01.tex, rename it to something which do not
lead to confusion (say JourDiffTitle.tex) and -of course leaving the
comments there- use it as I want?

Are the example tex files under the gpl or cannot one modify them?

I am asking to avoid posterior problems.

Thanks,

Pau
___
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 feature question/request

2008-04-15 Thread Olivier Guéry
On Tue, Apr 15, 2008 at 9:18 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 Olivier Guéry wrote:

   Looking to my tests it seems that if there's a space in the source
   file, the spacing is not apply — and I guess the nbsp neither.
   So, what would be great is we had something that say : no mater what
   is in front of this punctuations (space, nbsp or nothing) just make
   them nbsp with the right spacing !

  it's no problem to add avariant that treats nospace, space, nbsp as
  equel, and removes in that case the space/nbsp but if we support such a
  thing, we need a better specification; there are probably more space
  related chars that needs treatment then

Great to hear.
Sorry but I don't understand well your last sentence : « there are
probably more space
related chars that needs treatment then ».
You want to know if there's other rules related to spaces in french typography ?
One of the most complicated for me is the « — » because the nbsp is a
« espace justifiante insécable » — don't know how to say this in
English — when we use it as parentheses, a regular nbps for dialog :
— Hello,
— Hello, how are you ?
and sometime… nothing. So I think we have to deal with this « by hand ».

Bus I'm sure about the rules for « : », « ; », « ? »,  « ! », « and
». And if I remember well, in Latex the space is 0.16667, not 0.25.

If you want, I can contact french people who know the rules, on a
typography mailing list.

Thank's for trying to solve the french strange behaviours.
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
___


Re: [NTG-context] Architecture Sketch

2008-04-15 Thread Andrea Valle

and yes, i
 only have DP mkvii/mkviii cd's/dvd's;


Oh, Hans, this is a big issue...
I thought that while writing ConTeXt you (the Speed King of TeX,  
indeed) had thought about the motto following -exactly- Speed King:

just a few roots, replanted.

:)

Best

-a-



--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





___
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] using mag and myway

2008-04-15 Thread Hans Hagen
Pau wrote:
 Hi,
 
 I am worried because I would like to use mag-01 to write a document and
 then upload it to the arxiv.org. Of course, I have a title for the document 
 and
 I would like to use it instead of having My Way written in the front page
 (which nobody would understand)
 
 I see that
 
 -
 %C This module is part of the \CONTEXT\ macro||package and is
 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
 %C details.
 -
 
 I found this file on the net.  at
 
 www.tug.org/teTeX/tetex-texmfdist/doc/context/base/mreadme.pdf
 
 I see that it is (basically?) GPL.
 
 Ok... now, in mag-01 I read that:
 
 % This style is used for producing explanationary documents.
 % Don't misuse it for other purposes, since it may confuse
 % users. Don't change the title either, since it provides a
 % way to categorize documents. Numbers are disabled in
 % instances produced outside PRAGMA ADE.
 
 Don't change the title either
 
 ?!?!
 
 and
 
 % These are reserved for PRAGMA-ADE, don't use them yourself!
 
 % \setvariables[magazine][main=Tricky]
 % \setvariables[magazine][main=Update]
 % \setvariables[magazine][main=HOWTO]
 
 % \setvariables[magazine][main=This Way]  % preludes to a/the manual
 % \setvariables[magazine][main=A Better Way]  % dirty versus clean
 % \setvariables[magazine][main=No Way]% how users should not do
 % it
 % \setvariables[magazine][main=Your Way]  % how users do it
 % \setvariables[magazine][main=My Way]% how users do it
 % \setvariables[magazine][main=Our Way]   % how we do things at
 % pragma
 % \setvariables[magazine][main=Their Way] % how to do latex things
 % in context
 
 
 What does this mean? Am I free to use the style but forced to write
 My Way on the top of
 it? Cannot I modify mag-01.tex, rename it to something which do not
 lead to confusion (say JourDiffTitle.tex) and -of course leaving the
 comments there- use it as I want?
 
 Are the example tex files under the gpl or cannot one modify them?

it's just that we don't want confusion .. a context user expects a 
myway/yourway to be a kind of manual

so, if you use one of the reserved titles, then it should preferaby be a 
kind of manual thing; often these end up on the garden or alongside modules

i have no problem if you create a document using another title

at the top of your document you can change the title using \setvariables 
so there is no real reason for a copy

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] Architecture Sketch

2008-04-15 Thread Hans Hagen
Andrea Valle wrote:
 and yes, i
  only have DP mkvii/mkviii cd's/dvd's;
 
 Oh, Hans, this is a big issue...
 I thought that while writing ConTeXt you (the Speed King of TeX, indeed) 
 had thought about the motto following -exactly- Speed King:
 just a few roots, replanted.

well, often when writing tex code i feel more Like a Blind Man -)

anyhow, at some point i did realize that mkiv would have some Major 
Impact - two nice cd's -

(i wonder if users can deduce from the code what i was listening too, 
which is quite a broad spectrum ... for instance Canto Ostinato may lead 
to nice metapost graphics and i'm sure that my best code boils up while 
listening to Laughing Stock)

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] using mag and myway

2008-04-15 Thread Pau
Hi Hans,

Dank u!

That was a quick answer.

Also, thanks a lot for your software, and for making it free. You have
made true a lot of little perversions of mine which usually cost me
sweat and blood with latex (no offense please, your work is great,
this is just intented to be a nice little joke)

It's amazing to see how I get the same result with context in one line
(or even one command) when I needed something like 20 lines or so with
latex!

You have gained a new ardent context fan.

Pau


2008/4/15, Hans Hagen [EMAIL PROTECTED]:
 Pau wrote:

  Hi,
 
  I am worried because I would like to use mag-01 to write a document and
  then upload it to the arxiv.org. Of course, I have a title for the
 document and
  I would like to use it instead of having My Way written in the front
 page
  (which nobody would understand)
 
  I see that
 
  -
  %C This module is part of the \CONTEXT\ macro||package and is
  %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
  %C details.
  -
 
  I found this file on the net.  at
 
 
 www.tug.org/teTeX/tetex-texmfdist/doc/context/base/mreadme.pdf
 
  I see that it is (basically?) GPL.
 
  Ok... now, in mag-01 I read that:
 
  % This style is used for producing explanationary documents.
  % Don't misuse it for other purposes, since it may confuse
  % users. Don't change the title either, since it provides a
  % way to categorize documents. Numbers are disabled in
  % instances produced outside PRAGMA ADE.
 
  Don't change the title either
 
  ?!?!
 
  and
 
  % These are reserved for PRAGMA-ADE, don't use them yourself!
 
  % \setvariables[magazine][main=Tricky]
  % \setvariables[magazine][main=Update]
  % \setvariables[magazine][main=HOWTO]
 
  % \setvariables[magazine][main=This Way]  % preludes
 to a/the manual
  % \setvariables[magazine][main=A Better Way]  % dirty versus clean
  % \setvariables[magazine][main=No Way]% how users should not do
  % it
  % \setvariables[magazine][main=Your Way]  % how users
 do it
  % \setvariables[magazine][main=My Way]% how users do it
  % \setvariables[magazine][main=Our Way]   % how we do
 things at
  % pragma
  % \setvariables[magazine][main=Their Way] % how to do
 latex things
  % in context
 
 
  What does this mean? Am I free to use the style but forced to write
  My Way on the top of
  it? Cannot I modify mag-01.tex, rename it to something which do not
  lead to confusion (say JourDiffTitle.tex) and -of course leaving the
  comments there- use it as I want?
 
  Are the example tex files under the gpl or cannot one modify them?
 

  it's just that we don't want confusion .. a context user expects a
 myway/yourway to be a kind of manual

  so, if you use one of the reserved titles, then it should preferaby be a
 kind of manual thing; often these end up on the garden or alongside modules

  i have no problem if you create a document using another title

  at the top of your document you can change the title using \setvariables so
 there is no real reason for a copy

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

2008-04-15 Thread Taco Hoekwater
Wolfgang Werners-Lucchini wrote:
 On 15 Apr 2008 at 13:31, [EMAIL PROTECTED] wrote:
 
 Hallo Taco,
 
 (I have temporary appended 'dump;' to plain.mp)
 After the above, you should have plain.mem in the local directory.
 
 No.
 There is neither a 'plain.fmt' nor a 'plain.mem'!

Everything I read below says there should be a 'plain.mem'
in the folder where you ran theat file in.  If there
really really isn't, then my only advise to you is to buy
a less thieving operating system, as it seems this one steals
your files before you can even have an admiring look at them. :-)

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 problems with \seeindex and \from

2008-04-15 Thread Drazen Baic
On Tue, Apr 15, 2008 at 8:47 PM, Drazen Baic [EMAIL PROTECTED] wrote:
 On Tue, Apr 15, 2008 at 6:51 PM, Hans Hagen [EMAIL PROTECTED] wrote:
   Drazen Baic wrote:
 Hi,

 Here is a small test file. Compiled with 'texexec --lua' the register
 has only the entry 'Software 1' but it should have one additional
 entry 'Apache see Software'. This works OK when compiled with
 'texexec --xtx'

 \starttext
 \index{Software}Software
 \seeindex{Apache}{Software}Apache

 \placeindex
 \stoptext
  
see was not supported yet; i added it

I just did an update to ConTeXt 2008.04.15 21:21 and it works perfectly
for my example above. But if you use abbreviations the 'see ...' entry in
the registers shows the value between the brackets in the abbreviation
definition. Here is a small example:

\definesynonyms [abbreviation] [abbreviations][\infull]
\setupsynonyms [abbreviation]
\abbreviation [GCc] {\sc gcc} {GNU C Compiler}
\abbreviation [GNU] {\sc gnu} {{\sc gnu'}s Not Unix}

\starttext
\index{Software}Software
\seeindex{Apache}{Software}Apache
\index[GCC]{\GCc}\GCc\
\seeindex[GNU C Compiler]{\GNU\ C Compiler}{\GCc}\GNU\ C Compiler

\placeindex

\stoptext

I defined the GCc abbreviation with small c on purpose to demonstrate
that 'GCc' shows up in the register instead of {\sc gcc}.

I tried to look at the file core-reg.lua and thought that the error has
to be at

if vv[1] == 'e' then
-- format reference pagespec realpage
flush(template.page:format(class,,,vv[4],vv[5],vv[3]))
elseif vv[1] == 's' then
flush(template.see:format(class,,,vv[5],vv[3]))

but as I know nothing about Lua I gave up pretty soon.

Regards,
Drazen
___
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] chapter setup / table of contents

2008-04-15 Thread Henning Hraban Ramm
Am 2008-04-15 um 10:03 schrieb Wolfgang Schuster:
 Try this.

 \unprotect

 \resetvalue{\??sw\v!chapter}

 \startsetups chapter:list

   \doifsomething{\sectionworldparameter\c!author}
 {\expanded{\writetolist[\v!chapter]
   {\sectionworldparameter\c!author:\space
\sectionworldparameter\c!text}{}}}

   \def\ChapterSubTitle{\sectionworldparameter\c!subtitle}

 \stopsetups

 \setupsectionworld
   [chapter]
   [setups={chapter:list},
author=]

 \def\ChapterCommand#1#2%
   {\vbox{#2\crlf\ChapterSubTitle}}

 \let\ChapterSubTitle\relax

 \protect

 \setuphead
   [chapter]
   [incrementnumber=no,
command=\ChapterCommand]

 \starttext
 \completecontent
 \startsectionworld[chapter][author=Hans,text=Chapter  
 One,subtitle=The Beginning]
 \startsectionworld[chapter][author=Tom,text=Chapter  
 Two,subtitle=The End]
 \stopsectionworld
 \stopsectionworld
 \stoptext

Interesting idea, thank you very much!

Never heard about sectionworld before - ConTeXt's sources still  
aren't my usual bedtime reading.

I just managed to add outputting the author (not only in the ToC)...

Could you please show me how to set also the header to Author: Title?


BTW: Just added rsyncing luaTeX binaries to my daily update script,  
format generation went through, will try more tomorrow...
(Thanks Mojca, Wolfgang, Hans, Taco, Luigi etc. so far!)

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] Fonts and other tips for thesis and other academic works

2008-04-15 Thread Matija Šuklje
Hullo,

Now that I'm fairly happy with the citation and basic styling of my template 
for my seminary, research works and thesis, I'd like to take up the fonts and 
styling of it.

So, what I'd like to know is which fonts do you suggest for academic works and 
what are the basic styling tips for such works?


Cheers,
Matija


link:
http://wiki.contextgarden.net/Law_Faculty_University_of_Ljubljana_Styling_and_citations

-- 
gsm: +386 41 849 552
e-mail: [EMAIL PROTECTED]
www: http://matija.suklje.name

aim: hookofsilver
icq: 110183360
jabber/g-talk: [EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
yahoo: matija_suklje


signature.asc
Description: This is a digitally signed message part.
___
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] chapter setup / table of contents

2008-04-15 Thread Henning Hraban Ramm
I have now:

\unprotect

\resetvalue{\??sw\v!chapter}

\startsetups chapter:list

   \doifsomething{\sectionworldparameter\c!author}
 {\expanded{\writetolist[\v!chapter]
   {\sectionworldparameter\c!author:\space
\sectionworldparameter\c!text}{}}}

   \def\ChapterAuthor{{\rm\tf\sectionworldparameter\c!author}}
   \def\ChapterTitle{{\ss\bfa\sectionworldparameter\c!text}}
   \def\ChapterSubTitle{{\ss\bf\sectionworldparameter\c!subtitle}}

\stopsetups

\setupsectionworld  [chapter]
   [setups={chapter:list},
author=]

\def\ChapterCommand#1#2%
   {\vbox{\ChapterAuthor\crlf\ChapterTitle\crlf\ChapterSubTitle}}

\let\ChapterAuthor\relax
\let\ChapterTitle\relax
\let\ChapterSubTitle\relax

\protect

\setuphead  [chapter]
[incrementnumber=no,
command=\ChapterCommand,
 page=yes,number=no,
 align={flushleft,nothyphenated,verytolerant}
]


The result is about:

\rm\tfa Author
\ss\bf Title
\ss\bfa Subtitle

instead of (like I defined):

\rm\tf Author
\ss\bfa Title
\ss\bf SubTitle

Why?


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] Architecture Sketch

2008-04-15 Thread Arthur Reutenauer
 well, luatex/mkiv runs happily on our linux servers; my development 
 machine runs vista, and taco's runs linux and we happily generatet 
 multiple new formats per day ...

  ... and Mark IV has been successfully run on Sparc Solaris and Sparc
Linux as well ;-)

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] luatex feature question/request

2008-04-15 Thread Arthur Reutenauer
but if we support such a 
 thing, we need a better specification; there are probably more space 
 related chars that needs treatment then

  There's not much to it, actually.  There are some space characters in
Unicode, and we should handle them as much Unicode-compliantly as
possible; and there are some particular typographic conventions on top
of that, for each language.  It's easy to come up with a simple scheme
to support both, and I've already outlined it on a different
mailing-list (http://tug.org/pipermail/xetex/2008-February/008529.html).
The problem is to decide how much of the users' old typing habits we
want to take in account (and, Olivier, another message by me in the same
thread addresses the exact same issues you were raising a few days ago:
http://tug.org/pipermail/xetex/2008-February/008533.html).

  I can discuss that with you at BachoTeX, Hans.  It's best done around
a beer or two, anyway ;-)

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
___