Re: [NTG-context] XeTeX after ctxtools

2007-09-14 Thread Hans Hagen
Andrea Valle wrote:
 Many thanks
 
 and how do I update Metapost?
 I supposed that
 
 ctxtools --updatecontext
 
 would have update all

this only updates the context files (tex, mp, etc) not binaries

(soon it will be possible to do this from the garden)

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] XeTeX after ctxtools

2007-09-14 Thread Hans Hagen
Andrea Valle wrote:
 Thanks Hans,
 So, how can I update binaries?

depends on the platform ... debian ships intermediate updates, at 
akira's site there are fresh win binaries, osx distributions have good 
updaters, and for luatex there is luatex.org and fabrice's gforge repos

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] How to process simple HTML files with LuaTeX

2007-09-14 Thread Hans Hagen
Mojca Miklavec wrote:
 On 9/14/07, Hans Hagen wrote:
 Mojca Miklavec wrote:
 Hello,

 I was trying to figure out how to process simple HTML files with the
 new code, but I fail to understand the details. Here's a simple file I
 would like to process:

 keep in mind that this is still somewhat experimental
 
 Sure :)
 That's why I'm sending files for testing :) :) :)

- i'll make a table mapper (need it anyway), cals tables are already 
provided

- idem for preformatted and verbatim

- your code:

d[k] = dk:gsub(nbsp;,' ')
dk = d[k]
d[k] = dk:gsub(le;, '\\mathematics{\\le}')

local dk = d[k]
dk = dk:gsub(nbsp;,' ')
dk = dk:gsub(le;, '\\mathematics{\\le}')
d[k] = dk

or 

mojcasentities = {
nbsp =  ,
le   = '\\mathematics{\\le}'
}

local d[k]= d[k]:gsub((.-);,mojcasentities)


(there probably already is code for that)


-
   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] XeTeX after ctxtools

2007-09-14 Thread Hans Hagen
Andrea Valle wrote:

 depends on the platform ...
 
 OK, I serached a bit and the downloaded and installed the
 TeXLive-2007-Dev
 
 from http://tug.org/mactex/morepackages.html. It's the september 2007 
 package.
 The stretching problem was solved even without updating via
 
 ctxtools --updatecontext
 
 But I did it the same, then I did
 texexec --make --all
 texexec --make --all --xetex
 
 ConTeXt works but it doesn't change anything with respect to the:
 
 | ** WARNING ** Invalid CMap
 | ** ERROR ** pdf_ref_obj(): passed invalid object.
 
 message (which makes the compilation fail in the case of my photoBooklet).
 
 Any hints?

try with different fonts

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] XeTeX after ctxtools

2007-09-14 Thread Hans Hagen
Andrea Valle wrote:
 Brief investigation and summary:
 
 After
 1. updating with macTeX package on macOSX 10.4.9
 2. even if I have update ConTeXt and regenerate formats (all, also with 
 xetex)
 
 my normal ConTeXt (texexec) is ok, my XeConTeX  (texexec --xtx) is broken


--xetex 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] How to process simple HTML files with LuaTeX

2007-09-14 Thread Hans Hagen
Mojca Miklavec wrote:

 Great! This works perfect and seems much easier to write than the old
 code, though I still have no idea how to implement some parts of it:
 - where to plug in the entities such as nbsp;, le;, ...

\xmlutfize{main}

or just load the regular entity handlers (mkii still works and can be 
used mixed)

 - how to catch classes: how to differentiate between h1title/h1
 and h1 class=...title/h1
 - and some more - there are some simple examples in the attachment
 (too long to copy-paste)

\doifelse {\xmlatt{#1}{class}} {whatever} {
dothis
} {
dothat
}

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] Re :luatex:first steps

2007-09-14 Thread Hans Hagen
Wolfgang Werners-Lucchini wrote:

 And what about the nonstoping \rescan? I don't understand this 
 example. The output is identical for the three variants. Does it mean 
 that they are all equivalent? What should \rescan do?
 What happend with the command \luatex? Does it not longer exist?

i need to update these examples to the latest luatex/mkiv

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] need help for the installation of luatools

2007-09-15 Thread Hans Hagen
Taco Hoekwater wrote:
 Dalyoung Jeong wrote:
 Thank you, Thomas, Arthur, and Taco,

 I checked texmf.cnf. There are two texmf.cnf

  gwTeX/texmf.cnf --- there is no code for the memory setup, it  
 just describe the TDS structure.
 
 The problem could be that luatools only sees this one
 (Hans has to answer that).

multiple cnf files are read (if the specification says so); the first 
values encountered are taken (so the order matters)



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] XeTeX after ctxtools

2007-09-15 Thread Hans Hagen
Andrea Valle wrote:
 Thanks Hans
 
 texexec --xetex myfile.tex
 
 is broken too:
 ** WARNING ** Invalid CMap
 ** ERROR ** pdf_ref_obj(): passed invalid object.
 
 
 (what's the difference between --xtx and --xetex?)

depends on theversion of texexec; nowadays we always use dvipdfmx so 
there should be no different

to me it looks like one of the fonts is broken, context does nothing 
with cmaps (that is, only mkiv does)

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] \setcharacterspacing[normal] ?

2007-09-15 Thread Hans Hagen
Peter Münster wrote:
 Hello,
 
 how can I reset the \setcharacterspacing[frenchpunctuation] ?
 
 Here my example to show what I'm searching for:
 
 % engine=luatex
 
 \mainlanguage[fr]
 
 \startlanguagespecifics[fr]
 \setcharacterspacing[frenchpunctuation]
 \stoplanguagespecifics
 
 % This does not work:
 %\appendtoks \setcharacterspacing[normal] \to \everyresetlanguagespecifics
 
 \starttext
 French: French
 \en English: English
 \stoptext

add to core-spa.mkiv

\setvalue{\??ch:\s!reset}{\doresetattribute{spacing}}

after that you can say

\setcharacterspacing[reset]

-
   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] XeTeX after ctxtools

2007-09-15 Thread Hans Hagen
Andrea Valle wrote:

 \enableregime[utf]

this one is not needed, xetex is utf

 \starttext
 
 \startitemize
 \item nome dell'insegnamento (es. $\to$ Storia del cinema)
 \item settore scientifico-disciplinare (SSD, es. $\to$ l-art/06)
 \item numero di crediti (cfu, es. $\to$ 10)
 \stopitemize
 La votazione é
 irrilevante. Queste informazioni vanno inserite in un file di testo in 
 una forma simile:
 \stoptext
 
 It gives:
 
 [1
 ** NOTICE: This document contains a `Preview  Print only' licensed font **
 ]
 ** WARNING ** Invalid CMap
 ** ERROR ** pdf_ref_obj(): passed invalid object.

i wonder what that object is .. and who generates the ref, could be a 
special but you do nothing special in the example so i'm puzzled ... do 
others have this problem?


-
   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] \framed alignment in natural tables

2007-09-15 Thread Hans Hagen
Olivier wrote:
 Quoting  Wolfgang Schuster :
 -- was [EMAIL PROTECTED] on Sep 15, 2007 at 09:49:41AM --
 
 On Fri, 14 Sep 2007 20:27:52 +0200
 Olivier [EMAIL PROTECTED] wrote:

 Hi all,

 Is this normal behavior to have the framed text in

 \bTABLE
 \bTR \bTD[width=4cm,align=middle] \framed[width=2cm]{test} \eTD \eTR
 \eTABLE

 not aligned?

 If yes, what is a natural way to center the framed text in the cell?
 \bTABLE
 \bTR \bTD[width=4cm,align=middle] \dontleavehmode\framed[width=2cm]
 {test} \eTD\eTR \eTABLE
 
 Many thanks Wolfgang! That's what I was waiting for.
 
 I always thought of \framed as an \hbox.
 Is it actually implemented as a vbox? Or does it depends on the situation?

framed defaults to an hbox unless align is set; in TABLE's align is set 
so there it defaults to a vbox

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] XeTeX after ctxtools

2007-09-15 Thread Hans Hagen
Mojca Miklavec wrote:

 PS: to be honest, I'm still using the XeTeX version from TeXLive 2007
 which is a bit old. I remember that Jonathan has promissed to look
 into the problem described above some time ago (\font\a=rm-lmr12 vs.
 \font\a=rm-lmr12 at 12pt), but I have no idea about what has
 happened later with it. But in any case: this problem should be fixed
 inside ConTeXt first.

taco will write a 'non existing font' catch routine for xetex (and 
pdftex/luatex) so that we can get away from the batch mode trickery


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] pdfopen pdfclose

2007-09-15 Thread Hans Hagen
Idris Samawi Hamid wrote:
 Hi Hans and gang,
 
 For a future ConTeXt, would it be possible to add support for the --back  
 option for pdfopen/pdfclose? See
 
 http://magic.aladdin.cs.cmu.edu/2005/07/15/pdfopen-and-pdfclose/
 
 This will allow you to automatically return to the page of the pdf you  
 were working on at the moment you close it. There are some caveats for  
 working with mutiple pdf's but it's a nice feature to have.

well, then make sure that the version in distributions support it

 pdfopen  --help
Usage:
 pdfopen  --file filename [--page page]
Opens filename (at page page if available)
  in Acrobat or Acrobat Reader.
 pdfclose --file filename
  Closes filename in Acrobat or Acrobat Reader.
 pdfclose --all
  Closes all documents in Acrobat or Acrobat Reader.
Beware: only documents opened by `pdfopen' can be closed
 by `pdfclose'.

-
   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] XeTeX after ctxtools

2007-09-15 Thread Hans Hagen
Mojca Miklavec wrote:
 (I'm sorry for the delayed answer.)
 
 On 9/15/07, Hans Hagen wrote:
 Andrea Valle wrote:
 ** WARNING ** Invalid CMap
 ** ERROR ** pdf_ref_obj(): passed invalid object.
 i wonder what that object is .. and who generates the ref, could be a
 special but you do nothing special in the example so i'm puzzled ... do
 others have this problem?
 
 Yes. I don't remember whether I already complained about it or not,
 but here's another (minimal) example to reproduce it:
 
 \starttext
 \startformula
 a+b=\int_{i=0}^{\infty}\Gamma\,dx
 \stopformula
 \stoptext
 
 The main problem (besides being quite slow for the default LM) is that
 font loading in ConTeXt+XeTeX now does the following:
 
 if (FontName is a valid font) then
  use FontName
 else
 use [FontName]
 end
 
 And that one forgets the third possibility: about the old tfm fonts
 which should be loaded without any quotes, for example rm-lmr12
 
 \font\a=rm-lmr12 works, but \font\a=rm-lmr12 at 12pt doesn't, and
 ConTeXt tries to use that one. Normally TeX would stop: generate and
 report the error at that point, but ConTeXt currently skips those
 errors on purpose and tries to use an unexisting font, so it results
 in a broken PDF.

i will send you a patch (yet another test for a spec -)

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] XeTeX after ctxtools

2007-09-16 Thread Hans Hagen
Andrea Valle wrote:
 (Thanks Hans)
 
 On 15 Sep 2007, at 18:43, Hans Hagen wrote:
 
 Andrea Valle wrote:

 \enableregime[utf]

 this one is not needed, xetex is utf
 
 
 Ok. I read some infos on the wiki but I was a bit confused.
 So:
 
 - if I encode in utf-8 I don't have to specify regime \enableregime[utf]
 - if I encode in another encodign (e.g. mac roman) I have to specify 
 \the correct \enableregime (here: [mac])
 
 Am I right?

kind of ... i never tested regimes with xetex if only because i assume 
that xetex users use utf8 of have recoded their docs to utf8 -)

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] XeTeX after ctxtools

2007-09-16 Thread Hans Hagen
Mojca Miklavec wrote:

 Another possibility would be to use LuaTeX. It should work OK, but
 again, there is no 100% guarantee (I created some newspaper with it
 back in June and besides all the problems I had every now and then, it
 was pre-alpha after all, our color laser at university still objects

Can you reprocess that doc and test again? Color in mkiv is implemented 
completely different from mkii but it should be ok now.

 I hope that the problem with non-working PDFs will be resolved really
 soon, so if you have a few days more to wait ... in the meantime you
 can try LuaTeX.

in a few days font issues in the binary will be resolved (subsetting and 
such) so ...

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] How to process simple HTML files with LuaTeX

2007-09-16 Thread Hans Hagen
Aditya Mahajan wrote:

 (Caveat: I do not really know lua regex, and have not tried out the 
 code)

they are not regexp but expressions -)

 Assuming lua follows standard regex syntax, this means
 
  # The letter 
 ( # start a group
 .. # any character
 - # As few as needed
 ) # end group
 ; # the letter ;
 
 so this will match all entities.

just (.-); with () being the capture


 If it helps, the equivalent vim regex will be
 \\(.\{-}\);
 
 I guess that $1 (the first group, that is everything that matches .-) 

%1

 will be compared with mojcaentities table and replaced accordingly. 

indeed

 This looks like a really nice feature of lua. In Ruby and Vim, I often 
 find myself writing a bunch of similar regex, and always wished there 
 was something like what lua does.

the nice thing about many lua feature is that less code (lua c code) 
behaves more powerful




-
   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] How to process simple HTML files with LuaTeX

2007-09-16 Thread Hans Hagen
Mojca Miklavec wrote:

 I have tried exactly that before, but this example fails to work for
 me, or I don't know how to apply it:

i rewrote the parser (both xml and semi-xpath) so it may have been 
broken, i'll upload a new beta tomorrow

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] Greek in luatex

2007-09-16 Thread Hans Hagen
Thomas A. Schmitz wrote:
 Hi Arthur, Taco,
 
 you're my heroes! Changing the order of the lookup tables in the .fea  
 file actually took care of the problem. Thanks for looking into this,  
 now I get the results I was expecting; every substitution is applied  
 to the font! Once the initial lookup has been done, this is  
 reasonably fast, too, so I like it. I'm eagerly waiting for teh new  
 release next week to see if this works with copy-and-past from pdfs.  
 So this appears to be one way to deal with ASCII input a la babel.  
 Easy to implement, but fails on fonts that don't have the glyphs for  
 the Latin characters.

arthur mentions the final sigma in the fea file .. can be a (part of) 
feature too (like fina)


 One trivial question: when I want to experiment with feature files,  
 the cached instance of the font seems to be in the way. Only after  
 deleting the current luatex-cache, regenerating it and recompiling  
 the format do I get proper results. Is there an easier/faster way to  
 do this?

jumping the version number of the otf handler will force this, but this 
is a bad idea; also, caching is fast because no file checking has to be 
done, so deleting cached files (just the one you test) is the price you 
pay when developing a font (fea) file

btw, the fea file can be part of the distribution (but we need to think 
of a naming scheme)

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] Greek in luatex

2007-09-17 Thread Hans Hagen
Hi Arthur and Thomas,

i've put the greek file in the distribution (fea path), do we also need 
this babel stuff for u and such?

we should start thinking about a set of predefined features

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] Logos in context / Miscellaneous questions

2007-09-17 Thread Hans Hagen
Edd Barrett wrote:

 ! Undefined control sequence.
 l.11 \t
hisissectionseparator{-}

weird error

try layers instead of logos (see wiki), more powerfull and easier to use

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] \MPcolor bug with LuaTeX

2007-09-18 Thread Hans Hagen
Wolfgang Schuster wrote:
 Hi,
 
 colors defined in gray values give a inverted output in MetaPost with
 the \MPcolor macro.

afaik this was fixed (take the beta)


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] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello,
 
 Waiting impatiently for updated mswincontext. Would it be available from 
 Pragma tomorrow or when?

i need to update a few more binaries, and mojca and i have to fix/test a 
couple of xetex things (new xetex bin too)

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] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Wolfgang Schuster wrote:
 On Wed, 19 Sep 2007 09:46:32 +0200
 Hans Hagen [EMAIL PROTECTED] wrote:
 
 Vyatcheslav Yatskovsky wrote:
 Hello,

 Waiting impatiently for updated mswincontext. Would it be available from 
 Pragma tomorrow or when?
 i need to update a few more binaries, and mojca and i have to fix/test a 
 couple of xetex things (new xetex bin too)

 Hans
 
 Hi Hans,
 
 can you also add ini files for the plain TeX formats with XeTeX, pdfTeX
 and LuaTeX and the fonts.conf file for XeTeX. I prefer plain TeX for
 test files or simple documents where I can live without ConTeXt and
 this should work out of the box and not only after I create the files
 by myself.

what's wrong with

texexec --make --all --xetex plain

and alike? i have nu clue what ini files are for

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] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Joel C. Salomon wrote:
 On 9/19/07, Hans Hagen [EMAIL PROTECTED] wrote:
 i need to update a few more binaries, and mojca and i have to fix/test a
 couple of xetex things (new xetex bin too)
 
 So the minimal distribution will come with mkii, mkiii, and mkiv?  Thanks!

well, mkiii is something virtual -)

pdftex/xetex support is in the tex+mkii files
luatex   support is in the tex+mkiv files

the deviattion of xetex from pdftex is currently not large enough to add 
mkiii files

the context zip will always have it all

 One question: does the bundled LuaTeX track the current (semi)stable
 LuaTeX releases?

sure, when i make zips i add the bins that i use

however, in the near future minimals will be delivered differently, 
rsynced from the contextgarden and optionally be way more minimal, esp 
with regards to fonts:

pdftex: no opentype, less afm files, gyre instead of old, lm type1 (only 
encodings that make sense)

xetex: only opentype + math

luatex: idem

of course one can merge all

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] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Mojca Miklavec wrote:
 can you also add ini files for the plain TeX formats with XeTeX, pdfTeX
 Hey, you lot! They are supposed to be minimals. If you suggest adding
 something, I really think you should suggest removing something at the
 same time :-)
 
 But I would agree that it would be nice to be able to run plain
 (pdf)TeX and plain metapost with minimals. To be honest, almost
 everything is there already, with the only exception that the formats
 aren't generated automatically as they are in TeX Live for example.
 
 Having pdftex.fmt, xetex.fmt and mpost.mem generated automatically
 would be great, and not much overhead. (Perhaps a file or two are
 needed for xetex.fmt, not much more.

as taco mentioned ... adding stuff will never end then ... could be 
another 'download option'

btw, the plain version of luatex has the same basic file stuff as mkiv, 
so it does zip files and alike, some day also open type

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] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Wolfgang Schuster wrote:

 texexec --make --all --xetex plain
 
 it could be just a matter of taste but I prefer to call just pdftex or
 xetex and the engine with the preloaded plain TeX formats, this is
 shorter because the format files pdftex.fmt or xetex.fmt are loaded by
 default with the engines and xetex has sets also charclasses to a few
 charcaters in his own plain format.

can still be done, we're just talking about making formats and that also 
involves moving files to directories and such (initex puts formats in 
the current dir)

 and alike? i have nu clue what ini files are for
 
 nearly the same thing you do with your cont-de, cont-en files, the load
 plain.tex and seta few option like pdfoutput=1 in pdftex.ini.
 
 A simple pdftex.ini could look like
 
 \input plain
 \pdfoutput=1
 \dump

hm, to be honest, i dislike such defaults, esp since normally switches 
to engines go along with selective loading or other initializations,

afaik those ini files are used by fmtutil and that is (and will not be) 
not part of the minimals

 I know the ini files from w32tex and don't know how the other TeX
 distributions like TeXlive or MikTeX handle the formats but I like this
 system and the ini files also in the ConTeXt minimals.

would not help since generating format is not done that way in minimals

btw,

pdftex --ini plain \\pdfoutput=1 \dump

can do the same for you, but as said .. if the minimals would have plain 
formats they would default to dvi anyway so it would be of no help to you

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] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Idris Samawi Hamid wrote:
 On Wed, 19 Sep 2007 10:33:42 -0600, Joel C. Salomon  
 [EMAIL PROTECTED] wrote:
 
 On 9/19/07, Idris Samawi Hamid [EMAIL PROTECTED] wrote:
 Don't forget to incorporate tex-gyre, including otf's!
 Is the installation really that hard?
 
 The last time I installed TeX-Gyre only two fonts worked and the rest did  
 not.
 
 The point is that debugging when things go wrong takes time and some of us  
 are just too busy to have to to debug every little thing. It seems to me  
 that TeX-Gyre is one of those things that should work out of the box, like  
 lm.

sure, but since they are under development, names change, locations 
change etc i don't look into it on a daily basis (already overloaded)

 I'd rather have a tarball to be unzipped over the directory tree than
 have a constantly growing 'minimal' installation.
 
 Finally, mswincontext.zip is not really minimal but maximal ;-)  
 Updates to TeX-Gyre could be supported as a package a la cont-tmf.zip of  
 course.

we had that a while but inconsistencies showed up

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] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Mojca Miklavec wrote:
 On 9/19/07, Hans Hagen wrote:
 btw,

 pdftex --ini plain \\pdfoutput=1 \dump

 can do the same for you, but as said .. if the minimals would have plain
 formats they would default to dvi anyway so it would be of no help to you
 
 pdftex.fmt and mpost.mem would be perfectly fine. No need for
 plain.fmt (I guess). (And maybe xetex.fmt as a sugar, although that
 one might need some additional files.)

pdftex --ini -fmt=pdftex plain.tex \\pdfoutput=1 \dump

probably does that, but as said, everyone wants his/her own variant 
(patterns to start with -)

is you know how to use plain, then you also know how to make.call 
formats -)

btw,

luatools --make --compile plain
luatools --run plain

as stub is needed for plain in order to get the lua files loaded (also 
because we bypass kpse)

 It might be extremely simple to generate format the way you describe
 above, but perhaps
 texexec --make pdftex mpost xetex
 could have done the the same job instead (since people are used to it)?

sure, but i haven't used plain in ages and using texexec for plain is 
kind of overkill, so i happily leave that to others to deal with

as said, minimals are minimal and should be more minimal instead of 
adding stuff; the current minimals are way to big (for me)

personally i always find it kind of annoying that when i download an 
achive with binaries, that i also get format files that i don't use (or 
know)

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] register: spurious space one more entry level ask

2007-09-19 Thread Hans Hagen
Vit Zyka wrote:
 Dear ConTeXters,
 
 there are 3 topics dealing with register (index):
 
 1. [Spurious space] There are entries like
   \registerpage{index}{,}{5}{2--1-1-0-1-0-0-0--1}{2}
 in a *.tuo file. Since the definition (core-reg.tex)
   \def\dosetpageregisterpage#1#2#3#4#5#6%
 {\doifreglevelelse[#5]%
   {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
   {}}
 there will be a spurious space between page number like
   Entry 23 , 67
 instead of
   Entry 23, 67
 
 Solution:
   \def\dosetpageregisterpage#1#2#3#4#5#6%
 {\doifreglevelelse[#5]%
   {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
   {}\ignorespaces}

interesting that no one noticed this before ... in core-uti.tex pushing 
the line ending was messed up when changing to catcode tables (well, 
pseudo ones in mkii)

\long\def\doutilities#1#2#3#4#5% % introduceren in utility file
   {\resetutilities
% more than one utility thing can be handled in one pass,
% for instance lists, so we process ##1 as list
\def\douticommand##1{\csname\s!set##1\endcsname}%
\processcommacommand[#1]\douticommand
\begingroup
\def\currentutilityfilename{#2}%
\notesenabledfalse
\doinpututilitiestrue
\global\utilitydonefalse
\pushcatcodetable
\setcatcodetable\ctxcatcodes
\pushendofline % 
\ifunprotectutilities % nog nodig ?
  \unprotect
\fi


 2. [feature request] Current register implementation enable upto three 
 entry level (\index{level 1+level 2+level 3}). My custommer require 4 
 levels. Please could the entry number be extended?

not trivial, since we then need to adapt texutil too + a bunch of 
macros; adapting mkiv may be easier

 3. [not important, just for info] Formating of the register entries is 
 not much user friendly. See \hangindent1em in a following definition:
 
\def\dosetpageregisterentrya#1#2%
  {\flushseenregisterpage
   \edef\currententrylevel{1}%
   \global\let\c!entryb\relax
   \global\let\c!entryc\relax
   \gdef\c!entrya
 {\iffirstregisterentry\else\endgraf\fi % new
  \global\firstregisterpagetrue
  \hangindent1em\noindent\c!entryreference
  \dohandlepageregisterentry{#1}{#2}%
  \global\firstregisterentryfalse
  \global\firstsubentrytrue
  \global\firstsubsubentrytrue}}
 
 So, when one want the change formating he has to redefine this 
 definition. It is against a ConTeXt spirit.

some day there will be a better interface (probably only in mkiv)

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] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Idris Samawi Hamid wrote:
 On Wed, 19 Sep 2007 11:25:35 -0600, Wolfgang Schuster  
 [EMAIL PROTECTED] wrote:
 
 Hey, you lot! They are supposed to be minimals. If you suggest adding
 something, I really think you should suggest removing something at the
 same time :-)
 How about the bib module :-)
 
 LOL, best joke I've heard all week...
 
 Err, well, you had BETTER be joking ;-)

well, if someone keys in my books in a bib file, i'll make a lua variant -)

actually, i may look into that some day (when i'm bored) because it will 
make bib handling much easier

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] register: spurious space one more entry level ask

2007-09-20 Thread Hans Hagen
Vit Zyka wrote:
 Jupi!
 
 Both patches (space  4-level entry) work well as I can test them till 
 now. I will do some testing on a real and big document in a near future.
 
 Do you intend to incorporate both patches to the distribution?

well, i always do such things directly in the source files so ...

-
   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] waiting for mswincontext

2007-09-20 Thread Hans Hagen
Aditya Mahajan wrote:
 On Wed, 19 Sep 2007, Hans Hagen wrote:
 well, if someone keys in my books in a bib file, i'll make a lua variant -)
 
 hmm  how many books do you have? :)

quite a lot (i sometimes buy them faster than i can read), but not all 
qualify for a database -)

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] waiting for mswincontext

2007-09-20 Thread Hans Hagen
Aditya Mahajan wrote:
 On Wed, 19 Sep 2007, Hans Hagen wrote:
 well, if someone keys in my books in a bib file, i'll make a lua variant -)
 
 hmm  how many books do you have? :)

btw, one thing that i noticed is that more and more (scientific) books 
are typeset using systems that do interchar spacing (even when not 
needed) which makes reading less fun; there are occasional exceptions of 
course; we could have a database of books with comments on their quality

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] 2UP arranging spoils the table of contents and index

2007-09-20 Thread Hans Hagen
Liesbeth van der Plas wrote:
 Dear context group members,
 
 
 
 The 2UP arranging  spoils the table of contents and the index. Deleting the
 second rule gives a content and index, including the second rule gives only
 the titels 'content' and 'index'.

texexec --arrange yourtext.tex

this will make the last pass not generate a tuo file (the reordering 
messes up the multipass data)

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] waiting for mswincontext

2007-09-20 Thread Hans Hagen
Taco Hoekwater wrote:
 Arthur Reutenauer wrote:
 hmm  how many books do you have? :)
   That's not how you should have asked it :-) You should have said yes
 first and then looked for someone to type the bib file if Hans really
 has too much books ;-) Or you could distribute the task ...
 
 Really, we (=I) should move away from bibtex.
 
 What I really want is a module that reads XML databases by using lua
 xpath for item extraction (inline in mkiv, with a standalone lua script
 in mkii), along with a script to convert legacy bibtex databases into
 XML databases.
 
 I have Mods in mind for the database format.

we can discuss that in mode detail as it makes a nice example of using 
the xml features in mkiv

if we have the database format decided, i can make a basic framework and 
you/others can define the bib styles

of course this is mkiv only

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] waiting for mswincontext

2007-09-20 Thread Hans Hagen
Mojca Miklavec wrote:
 So one additionally needs:
 - (possibly modified) xetex.ini itself
 - unicode-letters.tex (could be replaced by enco-utf.tex, though I

context does not use that file (plain may use it) we can indeed use 
enco-utf for plain as well (also defines some named chars)

context does not depend on any tex file outside the base path

 just figured out that there's more in unicode-letters than in
 enco-utf, but in that case enco-utf is that one which should be fixed)

depends on the kind of error -)

enco-utf uses info from unicode tables (character categories)

 this is not possible with the 0.997dev version because it presets
 charclasses (a new feature in XeTeX) for a few CJK characters
 
 I saw some new additions when I took a look.
 
 This means that enco-utf needs to be updated once hans gets the new
 binaries from Akira :)

depends, if we don't use these new features .. (yet)

 - etex.src (btw: why is that one only used in xetex, but not in pdfTeX?)
 this is also used for the pdftex format in w32tex

because i cannot imagine a macro package to use the content of that file

 I will take a look at w32tex then.
 
 It would be really handy to have those three plain formats.

well, only is if it is not adding too much to the minimals, (and formats 
to be generated by users)

if you want such formats, we need dedicated files to make them, like 
pdftex-plain.tex and such (after all, we want predictable stuff) for 
initializing them

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] waiting for mswincontext

2007-09-21 Thread Hans Hagen
Wolfgang Schuster wrote:

 THis is a nice feature for our own simple plain documents but nothing
 for ConTeXt because there is no replacement in pdfTeX/luaTeX but it
 would be nice to have also something to use different fonts for latin,
 greek, CJK without using environments and switch to them with only the
 right characters.
 
 I want such a feature because CJK fonts have sometimes ugly latin
 characters and I want to use another font for them, I know this did
 happen in the current ConTeXt version but there should be no
 difference in fonts for CJK and the rest. Both should be defined with
 typescripts, one can use one fonts for both or select one for CJK and
 another one for the rest.

i dunno what this featurs is but if it has to do with some kind of 
automatism for switching fonts depending on chars, then it has to wait 
till i have something in place for luatex (using virtual fonts btw, 
basics are there actually), and then we can look if we can use the same 
high level interface to mimick this in xetex; it's ok to have the same 
high level interface with slightly different behaviour, as with font 
features

 - etex.src (btw: why is that one only used in xetex, but not in pdfTeX?)
 this is also used for the pdftex format in w32tex
 because i cannot imagine a macro package to use the content of that file

 I will take a look at w32tex then.

 It would be really handy to have those three plain formats.
 well, only is if it is not adding too much to the minimals, (and formats 
 to be generated by users)
 
 I have nothing against to make another archive cont-pln with all the
 file we need for the plain formats.

no problem if we need what should go in there

 if you want such formats, we need dedicated files to make them, like 
 pdftex-plain.tex and such (after all, we want predictable stuff) for 
 initializing them

 Hans
 
 the file name for the format should math the engine name because it
 will be loaded with engine by default if you call it, e.g. pdftex myfile
 with process the file myfile with the format file pdftex.fmt

sure, but that's why you can have a different formatname and filename 
that generates it, so you can have blabla.tex being used for generating 
the format pdftex.fmt (also, since one has to move files anyway, 
renaming isno big deal either)

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] waiting for mswincontext / injecting

2007-09-22 Thread Hans Hagen
Wolfgang Schuster wrote:

 Version 0.997 of XeTeX introduced a new concept to assign every
 character a class value. You can define rules what should happen if you
 switch for example from class 1 to class 2 and another one if you do
 the same in reverse order. The commands for this action are saved in
 token register and came into action if this class switch appear in the
 document.

ok, i remember jonathan talking about it at bachotek

 the unicode-letters file from XeTeX define a class for quotation,
 punctutation ... in CJK and another one for the other CJK characters
 and define spacing and linebreaking between normal characters and
 punctuation now by the class number (you did something similiar in your
 chinese module but used active characters instead).

the problem with such mechanisms is limited options for lookahead and 
look back

 The XeTeX reference manual has a simple example of this concept on page
 10 and 11.
 
 http://tug.ctan.org/info/xetexref/XeTeX-reference.pdf
 
 can't  this be done in LuaTeX with nodes (or what you mentioned for
 your color modell) or something similar.

injecting tokens into the nodelist is no option, since at that stage 
tokenization already has been done; so it should happen earlier, during 
tokenization, which can be kind of messy, because even then we're 
talking of

a\beta c - a\char[beta]c (no further expansion) - inject expanded 
stuff before, after each chartoken or \char token - convert tokens to 
nodes

sure, i can implement such an injector (since it's tokens, it should 
haven in the input stream somehow, operating on node lists is kind of 
messy in that case because tokens need to be expanded) but we're not 
going to use that method in mkiv. It's one of those areas where xetex 
and luatex support differs a lot.

 but I am too lazy to rename files or create them always by hand with
 every update ...

that's what scripting is fore, after all, format generation in tex 
engines is not automated at all (one has to manage moving fmt files to 
the right place anyway)

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] waiting for mswincontext / injecting

2007-09-23 Thread Hans Hagen
Arthur Reutenauer wrote:
 I guess that in LuaTeX you can compose your own font on the fly.
 
   That's the virtual fonts Hans mentioned (like a vf in good ol' TeX,
 but on the fly, as you say). See section 5.2 of the LuaTeX manual (pp.
 70-72 as of September 18th), especially the last one with an example.

for those interested in the development history of luatex (and way it 
evolves) ...

http://www.pragma-ade.com/general/manuals/mk.pdf

(occasionally chapters are added; it's also one of our standard tests 
for new luatex binaries and mkiv formats)


-
   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] waiting for mswincontext / injecting

2007-09-23 Thread Hans Hagen
Mojca Miklavec wrote:
 On 9/23/07, Wolfgang Schuster wrote:
 
 this would be nice because many chinese and japanese fonts have very
 ugly characters for normal latin texts and would be nice to choose
 another font for them.

 The second point is some it often neccesary to choose differents fonts
 for arabic, greek ... and this method can used to switch to the
 corresponding font without inserting font switching commands in the
 text but handle this with character classes.
 
 I guess that in LuaTeX you can compose your own font on the fly. So
 you can say please take this region from Arial, another region from
 some Greek fonts, and yet another from Chineese, perhaps some more
 characters from somewhere else ... And then you can use a single font
 for everything. (Don't ask me how this can be done, though.)

the code is there, but i need to make a proper user interface in context 
  for which i need some really deep thoughts

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] Completelistoffigures, help needed!

2007-09-23 Thread Hans Hagen
Idris Samawi Hamid wrote:
 On Sun, 23 Sep 2007 05:00:39 -0600, Wolfgang Schuster  
 [EMAIL PROTECTED] wrote:
 
 you can use the following method, it is very dirty but it works and
 give you what you want.

 \setupcaption[figure][distance=\zeropoint]
 \defineconversion[gobble][\gobbleoneargument]
 \setupnumber[figure][conversion=gobble]
 \setuplabeltext[figure=]

 \starttext
 \completelistoffigures
 \page
 \placefigure{First Figure}{\blackrule[width=4cm,height=2cm]}
 \placefigure{Second Figure}{\blackrule[width=3cm,height=5cm]}
 \stoptext
 
 Ah.. our stalwart gangster Wolfgang, always the master of dirty tricks. If  
 we ever finish The ConTeXtbook you'll have to do Appendix~D ;-)

well, this is a valid dirty trick because the conversion interface is 
not likely to change (for wolfgang: there is a predefined 'empty' 
conversion for this purpose, introduced not that long ago, so maybe not 
present everywhere)

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] Completelistoffigures, help needed!

2007-09-23 Thread Hans Hagen
Idris Samawi Hamid wrote:

 Ah.. our stalwart gangster Wolfgang, always the master of dirty tricks. If  
 we ever finish The ConTeXtbook you'll have to do Appendix~D ;-)

talking of that book ... how are you progressing?

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] waiting for mswincontext / injecting

2007-09-23 Thread Hans Hagen
Idris Samawi Hamid wrote:
 On Sun, 23 Sep 2007 11:45:41 -0600, Mojca Miklavec  
 [EMAIL PROTECTED] wrote:
 
 On 9/23/07, Wolfgang Schuster wrote:

 this would be nice because many chinese and japanese fonts have very
 ugly characters for normal latin texts and would be nice to choose
 another font for them.

 The second point is some it often neccesary to choose differents fonts
 for arabic, greek ... and this method can used to switch to the
 corresponding font without inserting font switching commands in the
 text but handle this with character classes.
 I guess that in LuaTeX you can compose your own font on the fly. So
 you can say please take this region from Arial, another region from
 some Greek fonts, and yet another from Chineese, perhaps some more
 characters from somewhere else ... And then you can use a single font
 for everything. (Don't ask me how this can be done, though.)
 
 Let's get even more funky: we could define text direction classes such  
 that switching from LR to RL automatically switches from, say, the latin  
 group (or cyrillic) to the arabic group (or hebrew), and direction  
 switching could be done using the appropriate unicode characters instead  
 of control sequences (ie, unicode direction charaters should be made  
 active).

didn't i send you the code for that trick a while ago?

-
   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] making formats troubled

2007-09-24 Thread Hans Hagen
Hans van der Meer wrote:
 In This Way #12 of august 2007 I read on page 1:
 
 Since you update, make sure to remake the pdfTeX and XeTeX formats:
 texexec --make --all --pdftex
 
 I updated to 2007-09-10 and then an error with message:
 
 This is pdfTeX, Version 3.141592-1.40.5 (Web2C 7.5.6) (INITEX)
 \write18 enabled.
 (/usr/local/texlive/texmf-local/web2c/natural.tcx)
 entering extended mode
 ! I can't write on file `cont-en.log'.
 (Enter the null string to re-try, or eof to exit Default file 
 extension is `.log')
 
 Where is it that the file cont-en.log will be written?
 And how can I change this location systematically (or can it be changed) 
 to a place under my home directory?
 Maybe the problem is that I install my formats locally under a user name 
 not being super user or system administrator (just a simple security 
 precaution).
 Is the texexec script assuming here write rights need not in generally 
 be granted to the script executing user? If so, can the script be adapted.
 
 By the way, cont-tfm.zip comes with script files not having a+x 
 executing rights. It is a bit of nuisance to change these everytime an 
 update comes along -- quite frequently thus. Is it possible to change this?

not now, i use zip to make the files and windows bits are not unix bits; 
  afaik, when a file is overwritten during unzip, the old bits are used;

concerning fmt paths ... you can set the variable texformats to some value

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] colors in luatex

2007-09-25 Thread Hans Hagen
Thomas A. Schmitz wrote:
 Hi,
 
 this minimal example compiles fine in mkii:
 
 \setupcolors[state=start]
 
 \starttext
 
 \starttabulate
 \startcolor[red]
 \NC One \NC A \NC \NR
 \NC Two \NC B \NC \NR
 \stopcolor
 \NC Three \NC C \NC \NR
 \stoptabulate
 
 \stoptext

well, with mkii you're just lucky, since this is not supposed to work 
anyway; you're mixing grouping models and it's pure luck if an 
aftergroup trick then injects the right egroup

you need to switch inside the cells

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] still waiting for mswincontext

2007-09-26 Thread Hans Hagen
Mojca Miklavec wrote:

 Note that also three really important fixes have been added to XeTeX
 recently, so ConTeXt works much better with XeTeX 0.997.

the bottom line is, that we need to make sure that we hav ethe most 
recent bins for all platforms before we can generate minimals

 It's the ConTeXt distribution, not the binaries which are broken.

i'm a bit puzzled ... for pdftex, nothing changed, for luatex, indeed 
bins and zips need to be in sync (esp because there have been changes in 
the lua font code that needed adaptions in the mkiv code) and xetex ... 
well, that's an interplay between engine and macros and trying to adapt

i think that luatex and xetex are fast moving targets so in most cases 
one needs to have updates of them and macro packages in sync; xetexs 
font syntax has changed over time, currently a feature was added to 
intercept problems but this is only on the latest bins, font searching 
is very engine dependent and also to some extend os dependent 
(upper/lowercase) etc etc

anyhow, the dust will probably settle in a few weeks (new bins available 
everywhere)

a tricky area is metapost ... since mp cannot handle open type we need 
to bend the rules sometimes and do ugly workarounds but we're getting there

 But note that there are still some problems:
 - wrong font size in XeTeX

more a xetex problem

 - textext(...) in metapost doesn't work

will never work completely if one uses different fonts in xetex and 
metapost in one document (well, it can work, but one had to make sure 
that the map stuff is sorted out then)

 - most probably others, not yet discovered

we'll try to keep them hidden -)

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] still waiting for mswincontext

2007-09-26 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello Hans,
 
 Could you please answer my questions about recent Windows minimal? 
 
 1) Why we need to set almost all in setuptex.bat, while the same vars (except 
 Windows' PATH) are already set in texmf.cnf? 

well, this is not recent, but has aways been the case; in setuptex i 
make sure that no conflicts can arise between different trees; so one 
can have multiple trees installed, without clashed; you don't wanna know 
what can happen (and how much time it costs to find out and fix) if some 
installer has set variables at the outer shell level; i just don't want 
to take any risk here

 2) How can I get rid of LM (and other) fonts completely? I want to use solely 
 luatex and system fonts, but bound to have those monsters too. 

just delete them but i would not delete the lm since they're used as 
fallbacks; if you want to default to something else, you need to tweak 
the initializations (maybe some day when the gyre math fonts are there 
i'll provide something for that); keep in mind that many tex users use 
tex for math and not having set up math will break al lot then

 My area of interest is luatex only, since it is progressive, font-tolerant 
 and powerful. :o)

well, the overhead of lm is not that large (maybe someday i'll ship zips 
and run the fonts from zips); a few cjk fonts in your system font path 
take more space -)

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] got win mimimals at last

2007-09-26 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello,
 
 Hurray!!! The recent Windows minimals work fine for me! Thank you, Mojca, for 
 showing a hidden place in the garden!  :)  And my a kind of installer works 
 too, how nice! :)))
 
 A few words about my 'installer' (maybe someone is interested). It does the 
 same job as setuptex.bat, but sets variables globally by writing into 
 registry instead of dos box. So I can call binaries from any application and 
 it all works!.
 
 (Remark: merely setting the PATH variable is not enough, dozen other are 
 needed. Vars were typically defined in texmf.cnf files, but I was surprised 
 to find that those files are explicitly ignored by luatex. )

not by luatex, but by mkiv ... kpse is not used at all, some day mkiv 
will use its own configuration files, currently, if you change a cfn 
file (or add files ot the tree) you need to run

luatools --generate

(a configuration file will be written to the cache then)

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] got win mimimals at last

2007-09-27 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello Hans,
 
 not by luatex, but by mkiv ... kpse is not used at all, some day mkiv 
 will use its own configuration files, currently, if you change a cfn 
 file (or add files ot the tree) you need to run luatools --generate 
 
 But what for I could change a cnf file if it is ignored by mkiv? 

it's not ignored, if you do luatools --generate, it is read, converted 
into a lua table, adapted a bit, saved in the cache, and read each run

 And what luatools --generate does? Does it perform a subset of texexec --make 
 --luatex functions, or makes something slightly different? I always run the 
 latter command to resolve any problem. :)

it replaces kpsewhich + some more (you can run/generate formats, where 
it will take care of bootstrapping issues)

what the --generate does ... well, it tells you ... creating file 
databases, preparing configurations, storing them for fast access, etc

(the same code is used in mkiv, but there we also can access other 
resouces like zip files)


LuaTools | loading c:/data/develop/tex/texmf-mine/web2c/texmf.cnf
LuaTools | preparing configuration in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/36cfaf81cc343ab858e892f7cc
bb5039.tma
LuaTools | saving configuration in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/36cfaf81cc343ab858e892f7ccbb5
039.tma
LuaTools | compiling configuration to 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/36cfaf81cc343ab858e892f7cc
bb5039.tmc
LuaTools | locating list of c:/data/develop/tex/texmf-project
LuaTools | locating list of c:/data/develop/tex/texmf-fonts
LuaTools | locating list of c:/data/develop/tex/texmf-local
LuaTools | locating list of c:/data/develop/tex/texmf-extra
LuaTools | locating list of c:/data/develop/tex/texmf
LuaTools | scanning path c:/data/develop/tex/texmf-fonts
LuaTools | 4939 files found on 276 directories with 62 uppercase remappings
LuaTools | scanning path c:/data/develop/tex/texmf-local
LuaTools | 6349 files found on 355 directories with 3 uppercase remappings
LuaTools | scanning path c:/data/develop/tex/texmf-extra
LuaTools | 58 files found on 117 directories with 0 uppercase remappings
LuaTools | scanning path c:/data/develop/tex/texmf
LuaTools | 59048 files found on 5112 directories with 2079 uppercase 
remappings
LuaTools | preparing files in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/9d7d4301715a734deee39f8c8235fb6e.t
ma
LuaTools | saving files in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/9d7d4301715a734deee39f8c8235fb6e.tma
LuaTools | compiling files to 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/9d7d4301715a734deee39f8c8235fb6e.t
mc
LuaTools | preparing files in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/e2b439093637a43a1e06dad11b9acfd4.t
ma
LuaTools | saving files in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/e2b439093637a43a1e06dad11b9acfd4.tma
LuaTools | compiling files to 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/e2b439093637a43a1e06dad11b9acfd4.t
mc
LuaTools | preparing files in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/04ba8d80d787b2df2d374aa2eb175600.t
ma
LuaTools | saving files in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/04ba8d80d787b2df2d374aa2eb175600.tma
LuaTools | compiling files to 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/04ba8d80d787b2df2d374aa2eb175600.t
mc
LuaTools | preparing files in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/30c7af0b47d2e1295ccf508a92e2b307.t
ma
LuaTools | saving files in 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/30c7af0b47d2e1295ccf508a92e2b307.tma
LuaTools | compiling files to 
c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/30c7af0b47d2e1295ccf508a92e2b307.t
mc





-
   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] still have a problem in using luatools

2007-09-27 Thread Hans Hagen
Dalyoung Jeong wrote:
 Hi,
 
 Again I'd like to ask you some help.
 
 Since I have no idea what is wrong in my TeX(gwTeX), I tried from the  
 beginning.
 I removed installed gwTeX, and reinstalled MacTeX-2007 package.
 I checked the followings:
 
 $ kpsewhich texmf.cnf
 /usr/local/texlive/2007/texmf/web2c/texmf.cnf
 
 $ kpsewhich  --expand-var='$TEXMFCNF'
 {/usr/local/texlive/2007/bin/powerpc-darwin,/usr/local/texlive/2007/ 
 bin,/usr/local/texlive/2007}{,{/share,}/texmf{-local,}/web2c}:/.
 
 $ kpsewhich  --expand-var='$TEXMF'
 {/Users/dalyoung/.texlive2007/texmf-config,/Users/ 
 dalyoung/.texlive2007/texmf-var,/Users/dalyoung/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}
 
 I also copied luatex and mtxrun in the folder /usr/texbin.
 
 texexec --make --all {--pdftex, --xetex} worked fine and make formats  
 properly.
 
 After that I run luatools --generate, then it is not working  
 properly. The messages are
 
 $ luatools --generate
 
 LuaTools | skipping /usr/texbin/texmf-local/web2c/texmf.cnf
 LuaTools | skipping /usr/texbin/texmf/web2c/texmf.cnf
 LuaTools |
 LuaTools | runtime: 0.03 seconds
 
 I don't know why it is looking for texmf.cnf under the binary folder(/ 
 usr/texbin).
 
 Would you please tell me what is wrong in my installation?

what does luatools --variables say


-
   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 for random numbers

2007-09-27 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello friends,
 
 I have a small but urgent question. 
 
 How to call luatex commands in the document? (I heard there were some recent 
 changes.) More specifically, how to generate integer random numbers in given 
 range? I'm preparing a quiz on numbering systems for my students on tomorrow, 
 so your fast help would be greatly appreciated! :)

\startluacode

\stopluacode

\ctxlua{...}

whatever you like

tex.sprint(someresult) pipes back into tex


-
   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 for random numbers

2007-09-27 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello Hans,
 
 Thanks. Is there any way to print a number in hex or bin form? (Either using 
 lua or tex facilities?) I already know how to generate random integer 
 numbers, 
 \ctxlua{tex.print(math.random(30,60)) ;}
 now I need to represent them as binary or hexadecimal.

you can use string.format

if you wanna use lua seriously, it makes sense to buy the book ... easy 
reading, very complete and inexpensive

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] SciTE under Windows and Metapost

2007-09-29 Thread Hans Hagen
Michal Kvasnička wrote:

 However, when I try to compile a metapost/metafun source from the SciTE
 editor, it fails. It tries to run mpost directly, and it's not found. I can
 run texmfstart texexec --mptex ... in the SciTE's command promt, and it
 works, but it's annoying. Can I somehow reconfigure the SciTE to run the
 metapost properly (I mean to run texexec --mptex)?

you can set the commands in context.properties file (or overload t hen 
in your user.properties file)

 P.S. Hans, would it be possible to add the Metafont into the minimal
 distribution? I like it so much I'd like to make it my major distribution
 even in Linux, but I need the Metafont since from time to time I still use
 some bitmapped font (like Concrete Math). Many thanks.

only the binary i assume? you also have to convince mojca, the minimal 
gardener

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] still waiting for mswincontext

2007-09-30 Thread Hans Hagen
Joel C. Salomon wrote:
 On 9/26/07, Hans Hagen [EMAIL PROTECTED] wrote:
 1) Why we need to set almost all in setuptex.bat, while the same vars 
 (except Windows' PATH) are already set in texmf.cnf?
 well, this is not recent, but has aways been the case; in setuptex i
 make sure that no conflicts can arise between different trees; so one
 can have multiple trees installed, without clashed; you don't wanna know
 what can happen (and how much time it costs to find out and fix) if some
 installer has set variables at the outer shell level; i just don't want
 to take any risk here
 
 So what environment variables can I set globally to avoid the need for
 running setuptex.bat?  My first guess is:
 
 OSFONTDIR=%SystemRoot%\fonts

if you want to use platform fonts indeed

 SETUPTEX=done
 CTXMINIMAL=yes

not if setuptex is not used


 TEXPATH=C:\...whatever the path is...\context\tex\
 TEXMFMAIN=%TEXPATH%\texmf
 
 TEXMFOS=%TEXPATH%\texmf-mswin
 TEXMFPROJECT=%TEXPATH%\texmf-project
 TEXMFFONTS=%TEXPATH%\texmf-fonts
 TEXMFLOCAL=%TEXPATH%\texmf-local
 TEXMFEXTRA=%TEXPATH%\texmf-extra

depends on your trees

 TEXMFCNF=%TEXPATH%\texmf{-local,}\web2c

handy indeed

 TEXPOOL=%TEXMFOS%/web2c\{$engine,}

not for luatex/xetex

 TEXFORMATS=%TEXMFOS%\web2c\{$engine,}

not for luatex

 MPMEMS=%TEXMFOS%\web2c\{$engine,}

depends

 MPPOOL=%TEXMFOS%\web2c\{$engine,}

not needed any more

 Path=%TEXMFOS%\BIN;%Path%

sure

 TEXMFCACHE=%TEMP%

yes or use the defaults

 VARTEXMF=%TEXMFCACHE%\texmf-var

not really used

 TEXMF={$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN}

yes

 TEXMFDBS=$TEXMF

dependes on kpse version i think

 
 RUBYLIB=%TEXMFLOCAL%\SCRIPTS\CONTEXT\RUBY;

often not needed

-
   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] still waiting for mswincontext

2007-09-30 Thread Hans Hagen
Joel C. Salomon wrote:

 CTXMINIMAL is also not needed?

depends on if it used, not if you go real minimal (more for calling scripts)

 But setuptex still sets these.  What does it mean, that TEXPOOL al.
 aren't needed for luatex/xetex?  Does MKII need them?

not related to mkiv/mkii but to engines ... liatex has no pool file, 
xetex neither, pdftex soon will have no pool file and modern metaposts 
also lacks such a file


 I've been using %var% notation for parts that Windows expands when the
 variable is defined, but I see UNIX-style $var here and there.  Should
 these be expanded at define-time also, or are these for the programs
 that use them to understand?

$whatever is kpse syntax (which is some derivate to unix scripting)

anyhow. %whatever% will be xpanded by the env var handler, and $whatever 
not, (on linux it may expand depending on escaping

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] placefigure[hang] in columns

2007-10-01 Thread Hans Hagen
Christof Meigen wrote:
 
 Hi,
 
 I'm quite new to ConTeXT, so excuse me if the solution is obvious.  
 
 I'm trying to typeset a document with three columns which contains _a
 lot_ of graphics, most of which are pretty small, about one third of a
 column.
 
 Unfortunately, while \placefigure[left,hang] works fine with one
 column, the text doesn't float around the picture when using two or
 more columns, so when I do

this is not supported in column mode

Hans

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

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


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

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

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

well, i have no mac -)

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

hm, is there something weird in the cnf file?

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

i remember problems with parsing filenames that had weird chars

what is in line 1108 of your luatools?

Hans

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

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


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

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

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

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

Hans

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

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


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

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

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

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

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


Re: [NTG-context] [dev-context] Call for test documents

2007-10-02 Thread Hans Hagen
Norbert Preining wrote:
 Dear all,
 
 I am currently testing the installation of ConTeXt/MkIV on Debian and
 thus being in search for test documents using MkIV features/luatex
 stuff. Or at least document which I can/should be able to process with
 luatex/context.
 
 If you have any documents it would be great if you could send me them,
 best together with a short line on HOW to process the documents, and
 even better with a correct pdf output.

http://context.aanhet.net/svn/manuals/

-
   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] quote characters in luatex

2007-10-02 Thread Hans Hagen
Thomas A. Schmitz wrote:
 In my experiments with luatex, there's one thing that may be  
 surprising for many users: we have come to expect that the characters  
 ` and ' in our input files map to single left and single right  
 quotation marks. luatex just typesets them verbatim, so to speak.  
 It converts the combination `` and '' to double quotation marks,  
 however. So my question: wouldn't it make sense to convert the single  
 marks as well? (And please don't tell me Oh but you should use \quote 
 {} instead of ` '. I know that, but I guess that many users have  
 hundreds of old documents where they use `'. Moreover, ' also creates  
 the apostrophe character, which cannot be avoided.)

there is a feature:

texligatures=yes

for the rest, we can consider mappings but i fear that we end up in a 
quote mess

-
   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] quote characters in luatex

2007-10-02 Thread Hans Hagen
Thomas A. Schmitz wrote:
 On Oct 2, 2007, at 5:36 PM, Hans Hagen wrote:
 
 there is a feature:

 texligatures=yes

 for the rest, we can consider mappings but i fear that we end up in a
 quote mess

 
 is that the same as tlig=yes ? This doesn't effect the single quote.  

these quote thingies were actually font hacks, and depended on the 
fontencoding and such, which makes files non portable

 I see the problem with the quote mess; in the old pdfTeX, it wasn't  
 even possible to get the ' character at all. But it is a minor  
 anoyance in terms of backward compatibility, I think.

well, we can make a converter, much simpler than the greek debabelizer -)

Hans

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

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


Re: [NTG-context] LuaTeX and Unicode Math

2007-10-03 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,
 
 While trying to convert some stuff from HTML to PDF (using LuaTeX) I
 have noticed some minor problems: unicode math characters work OK in
 text mode (under assumption that the font has them), but not in math
 mode. In pdfTeX they work OK in both cases. (That behaviour is
 expected, but not necessary desired.)
 
 I know about this, and this is one of the main reason that I am still 
 using pdftex for day to day work.  I have become used to typing most 
 of my math in unicode, and now none of it works (with luatex). But I 
 have been too busy to actually try to understand what is happening 
 behind the scences.

we just need to initialize the mappings,and i had no time for that yet,
when done, we can get rid of most existing math definitions

 AFAIK, luatex has not toched on the math handling of tex yet. There 
 are some old ideas on how TeX's math support can be improved, and with 
 luatex that is a real possibility. I am sure that at some stage, once 
 some aspects of the lua functionality are more stable, this will be 
 looked into. It makes sense to finalize mkiv support only after that.

sure, but adding definitions for unicode math is not that complex and
should work ok

 I would normally say something like
   \chardef`φ=\active
   \defφ{\phi}
 to solve the problem, but that doesn't work when doing XML conversion.

indeed, no option

 Actually, for a unicode aware engine it should be the other way around
 
 \def\phi{φ}
 
 That is, all definemathcommand be changed to something like
 
 \definemathcharacter[φ][font:location]

well, we can start thinking of virtal fonts; on the other hand, a year
from now we will have math in the tex gyre fonts so maybe it's not worth
the effort

 and so on. But my guess is that this will need a overhaul of the math 
 character encoding. Again, that is something which I do not understand 
 at the moment.

Hans

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

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


Re: [NTG-context] LuaTeX and Unicode Math

2007-10-03 Thread Hans Hagen
Mojca Miklavec wrote:
 Hello,
 
 While trying to convert some stuff from HTML to PDF (using LuaTeX) I
 have noticed some minor problems: unicode math characters work OK in
 text mode (under assumption that the font has them), but not in math
 mode. In pdfTeX they work OK in both cases. (That behaviour is
 expected, but not necessary desired.)
 
 Is there any cure to it?

we need to start thinking about unicode math support ... see char-mth
for a starting point, i want to use that file for initializing math,
once i know the rules

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] \enableregime[cp1250] and missing upper Greek letters in math mode.

2007-10-03 Thread Hans Hagen
Mojca Miklavec wrote:

 I needed hours of searching to figure out that ugly trick with
 --translate-file=cp1250pl, but please, please: do not use it. Around
 2005 support for
 \enableregime[cp1250]
 has been added and that one is much more reliable.

indeed, translate file is real messy because there isno clus in the 
document then about what happens and all tools in the chaine then need 
that kind of magic; for me that input translation qualifies as one of 
the worst ideas implemented ever

  and it works. Almost. I have found that using with
  \setupbodyfont[plr,12pt]
  makes replacing of polish character ± - ¼ (at least).
 
 Why do you need plr?
 
 Doesn't it work fine if you simply use
 \setupbodyfont[12pt]
 
 or, perhaps one needs
 
 \usetypescript[modern][qx]
 \setupbodyfont[modern,12pt]

indeed, plr is obsolete, qx is the replacement (actually, plr, csr, vnr, 
aer fonts are already obsolete since lm showed up)

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] [dev-context] Call for test documents

2007-10-03 Thread Hans Hagen
Norbert Preining wrote:
 On Di, 02 Okt 2007, Hans Hagen wrote:
 http://context.aanhet.net/svn/manuals/
 
 Is there svn access? I have a checkout (very old) but the svn address
 has changed.

taco fetches from our internal svn server so he can give you the magic 
lines (sounds stupid, but since there's a firewall in between that 
redirects ports so any magic line i give is untested)

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
___


[NTG-context] beta

2007-10-03 Thread Hans Hagen
Hi,

beware, i uploaded a new beta but when you use mkiv, you really need the 
latest luatex, so best wait til that one is available or compile yourself

(no pattern preloading, runtime loading of patterns)

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] [dev-context] integrating context mkiv, luatex, and fmtutil, mktexlsr, etc

2007-10-03 Thread Hans Hagen
Norbert Preining wrote:

 Are these megabytes kept and are they useful for later runs? If yes,
 then it is ok to put them in a separate cache (I assume the stuff is
 useful, it is the font stuff).

not sure yet, maybe later; but there is a cache cleaner (i may even 
thrash by date and usage)

 Hmm, but if the caches would be in TEXMFTREE/lcache/ then the only thing
 necessary would be a change of
   TEXMFCNF
 referencing other trees.
 
 (Sorry, only trying to understand the details ...)

sure, all depends on what the cache var is set too (too many variants so 
i play safe and hash (but i can make that piece configurable if needed)

the beta is on the website and on the ftp

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] [dev-context] integrating context mkiv, luatex, and fmtutil, mktexlsr, etc

2007-10-03 Thread Hans Hagen
Norbert Preining wrote:
 On Mi, 03 Okt 2007, Hans Hagen wrote:
 formats go to the paths defined in texmf.cnf (TEXFORMATS) and the 
 filedatabses go alongside the ls-R files, so basically it then behaves 
 like any other tex
 
 ???  file databases go alongside the ls-R files what do you mean? I
 thought the stuff generated by luatools is something like the ls-R
 database for luatex. But it is placed NOT alongside the ls-R files,
 right?

well, TEXMFSHARECACHE=yes makes sure that it is put in the same path 
as the ls-r file

 the cache path is only used and populated at runtime, so
 
 So every time I run a luatex/context document it has to read ALL the
 trees again??? Cannot be, that was the whole point of ls-R/cache. It
 should be generated once (the cache).

no, not the trees, but if one uses a font, say lmroman10-regular.otf, 
then the 'converterd/prepared/whatever' datatable is cached so only that 
file ends up in the cache (flat structure, so, when one needs 
lmroman10-regular.otf, i first look in the cache (no database needed) 
for a tmc/a file, if not present i generate one, using the otf file from 
the normal tree, looked up in a kpse like way)

 LUATEXCACHE=$TEXMFVAR/luacache:...
 TEXMFSHARECACHE=yes

 should be ok then; if needed, later i can look into a way to share other 
 cache stuff (say that you generate tmc files for 300 fonts at 
 installation time) but if i understoof right, the main reason was 
 formats and file databases
 
 Yes, currently the main reason is for ls-R replacement and format
 location. But font data could be useful, too. My system has quite a lot
 of fonts ...

sure, but that demands some deep thinking because currently i use 
version numbers in the cached data and i don't want to open all cached 
files with the same name in order to check

 
 
 On Mi, 03 Okt 2007, Hans Hagen wrote:
 texexec --make --luatex en
 [...]
 this depends on the value of TEXFORMATS nd what path is first writable
 
 Hmm,
 $ export TEXFORMATS=/home/norbert/.texmf-var/web2c
 $ texexec --make --luatex en
 
 TeXExec | using tex engine luatex
 TeXExec | using tex format path /home/norbert/.texmf-var/web2c/luatex
 TeXExec | generating tex format cont-en
 
 Transcript written on cont-en.log.

i know -) texexec only looks there and reports what it finds; texexec 
itself is unaware of lua and caches and ... i need to fix that

 LuaTools |
 LuaTools | runtime: 0.18 seconds
 TeXExec | no lua compilations needed
 TeXExec |
 TeXExec | tex engine path: /home/norbert/.texmf-var/web2c/luatex
 TeXExec |
 TeXExec |
 TeXExec | runtime: 9.486118
 $ ls ~/.texmf-var/web2c/luatex
 $ ls -l ~/luatex-cache/context/f7d1b3c25487ab1e1035aff1c53b90da/formats/
 -rw-r--r-- 1 norbert norbert 5669003 2007-10-03 14:07 cont-en.fmt
 -rw-r--r-- 1 norbert norbert   38786 2007-10-03 14:07 cont-en.log
 -rw-r--r-- 1 norbert norbert  159484 2007-10-03 14:07 cont-en.lua
 -rw-r--r-- 1 norbert norbert  112438 2007-10-03 14:07 cont-en.luc
 $
 
 So the format is placed in some strange ;-) place under luatex-cache.

hm, also with the new version and the env var set? here it nicely goes 
to texmf-linux/web2c/luatex

btw, the 'strange' is just an md2 of the tree

 To sum it up: It is a bit unclear what purpose the cache is used for:
 - ls-R replacement, ie some sort of file database

indeed, more flexible, faster etc, and in the future we can use it for more

 - preprocessed font data cache so that loading the stuff is done faster

indeed, only at runtime, so normally in the users path someplace

 - formats??? what is saved for this

a cont-en.fmt as well as a cont-en.luc file, the format and it sstub

 But all of this is somehow static. On a normal system a normal user
 shouldn't have the necessity to change anything of the above. That
 should be done at install time of the respective stuff.

no, the font cache is not pregenerated at all, think of it like this:

- luatex loads otf font (takes time)
- provides it as table to mkiv (takes more time)
- mkiv adds a few things, preprocesses the font a bit
- then saves it as table (compiled) so that loading goes in an eyeblink

 Furthermore, the cache could be used (no idea whether this is true) for:
 - single job caching of data
   wouldn't it be better to keep generated files like this in the
   cwd, like .aux, etc files

we're talking of megabytes here

btw, context has no aux, toc etc file but a tuo file where all multi 
pass data goes into; in mkiv there is a lua companion because much of 
that data is not stored in lua tables (i still have to do the table of 
contents)

 What was the reason to do the hashing somewhere else but add the md5sums
 etc for these trees?

lengths of paths and such; i run luatex on the unix web/etc servers and 
have multiple trees in parallel, so now i can with one variable changed 
access all data;

/temp/luatex/context/treeroot/whatever


/temp/luatex/context/c:/blabla/tex/blabla/whatever


does not work that well, so i hash the treeroot

Hans

Re: [NTG-context] beta

2007-10-03 Thread Hans Hagen
Arthur Reutenauer wrote:
 beware, i uploaded a new beta but when you use mkiv, you really need the 
 latest luatex, so best wait til that one is available or compile yourself
 
   Oh, so that's the problem I had when I installed the new beta today: I
 had one error in lang-ini.lua, and later two errors for each language
 defined ;-)
 
   It works fine with the latest revision.
 
 (no pattern preloading, runtime loading of patterns)
 
   Sounds great indeed :-)

btw loading all languages at runtime is faster than preloading

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

2007-10-03 Thread Hans Hagen
Thomas A. Schmitz wrote:
 On Oct 3, 2007, at 4:35 PM, Arthur Reutenauer wrote:
 
 beware, i uploaded a new beta but when you use mkiv, you really  
 need the
 latest luatex, so best wait til that one is available or compile  
 yourself
   Oh, so that's the problem I had when I installed the new beta  
 today: I
 had one error in lang-ini.lua, and later two errors for each language
 defined ;-)

   It works fine with the latest revision.
 
 Same here, after compiling the latest trunk, it works.
 
 (no pattern preloading, runtime loading of patterns)
   Sounds great indeed :-)

  Arthur

 
 Yes, this is great, but can we somehow reduce the verbosity of the  
 output? My bit bucket is already full with lines like
 
 processing
 found a word (lang=2): hier
 clean hyphens: 00

that's the price for using an alpha versions -)

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] Problem with XML entities in titles [2]

2007-10-04 Thread Hans Hagen
Richard Gabriel wrote:
 Hello once again,
 
 I've puzzled my brain for a while ;-)
 and then I came to the following solution:
 
 \def\ExChapter#1{
   \expanded{\chapter{#1}}
 }
 
 \defineXMLcommand[chapter]{
   \defineXMLargument[title]\ExChapter
 }


in mkiv ... this becomes:


(1) register handler in setup ssection

\xmlsetsetups {main} {chapter} {*}

(2) access child element using lpath

\startxmlsetups chapter
\expanded{\chapter{
\xmlfirst{#1}{title}
}}
\stopxmlsetups



-
   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 with XML entities in titles [2]

2007-10-05 Thread Hans Hagen
Richard Gabriel wrote:
 Hans,
 
 \xmlsetsetups throws Undefined control sequence... 

as said ...

   in mkiv ... this becomes:

so you need luatex

btw, you can then also do things like:

\xmlfirst{#1}{b[position()  2 and position()  5 and text() == 'ok']}
\xmlfirst{#1}{b[position()  2 and position()  5 and text() == 
upper('ok')]}
[EMAIL PROTECTED]'03' or @n=='08']}
\xmlall  {#1}{b[number(@n)2 and number(@n)6]}
\xmlfirst{#1}{b[find(text(),'ALSO')]}

and other complex path stuff



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] Problem with XML entities in titles [2]

2007-10-05 Thread Hans Hagen
Thomas A. Schmitz wrote:
 On Oct 5, 2007, at 12:06 PM, Richard Gabriel wrote:
 
 Hans,

 \xmlsetsetups throws Undefined control sequence...
 (ConTeXt 2007.09.28)

 ?!

 R.

 
 With --luatex?

see wiki .. you also need luatex itself


-
   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 with XML entities in titles [2]

2007-10-05 Thread Hans Hagen
Richard Gabriel wrote:
 Thanks Hans. Please excuse me for my impertinence, but why is any backward 
 compatibility not kept? Why suddenly stopped working what did work for years? 
 :-( 
 
 Well, OK, I'm going to start with luatex... ;-)

the new mechanism is not replacing the old ... can even be used mixed

the new one is based on loading the tree and selective flushing; more 
manipulative power and much faster too (the xml interpreter is written 
in lua and (on my machine) loads 5meg/sec into a tree

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] problem with alignment

2007-10-10 Thread Hans Hagen
Jean Magnan de Bornier wrote:
 Hi all,
 Playing with right alignments this morning, I discovered that
 
 \setupalign
 [left]
 
  ipsum in  elit
 
 Duis placerat
 
 nec augue 
 
 
 puts text *on the right*, while 
 
 \setupalign
 [right]
 
  ipsum in  elit
 
 Duis placerat
 
 nec augue 
 
 
 puts text *on the left*.

raggedleft -)

use flushright or flushleft if you like that more


-
   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] Stepping through PDF-Layers

2007-10-10 Thread Hans Hagen
Wolfgang Schuster wrote:
 Hi,
 
 I want to animate layers in a pdf like we can do at the moment with
 fieldstacks to show always the next picture after the click on a button.

\usemodule[pre-60]

and look into s-pre-6* to see how to enable 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] Feature request for backgrounds

2007-10-11 Thread Hans Hagen
Wolfgang Schuster wrote:
 Hi Hans,
 
 can you provide a backgroundimage key for localframed (ot use it in framed)
 and fastlocalframed (to use it in \setupbackgrounds) to create something like:
 
 \setupexternalfigures[location=global]
 \setupcolors[state=start]
 
 \starttext
 
 \defineoverlay
   [Wallpaper]
   [\backgroundimage{1}{\paperwidth}{\paperheight}{\externalfigure[cow]}]
 
 \setupbackgrounds
   [page]
   [background={color,Wallpaper},
backgroundcolor=orange]
 
 \startstandardmakeup
 \stopstandardmakeup
 
 \stoptext
 
 I want to write the above example in the following way,
 
 \setupbackgrounds
   [page]
   [background={color,image},
backgroundcolor=orange,
backgroundimage=cow]
 
 The same mechanism should be also possible for \framed.
 
 It should be possible to enable a image and a backgroundcolor at the same
 time to have a fallback mechanism for the case there is no image available
 or I want a colored background behind the image.

- you can use background anc backgroundcolor at the same time
- you can have multiple backgrounds

\defineoverlay[one][\overlayfigure{name}]
\defineoverlay[two][abcdef]

\setupbackgrounds[page][background={one,two}]

\setupbackgrounds[page][background={one,foreground,two}]


etc

 I have also a few wishes for \backgroundimage command in core-box,
 is it possible let the graphics start in the left top corner and crop it only
 at the ride side and at the bottom like the default bahaviour in html.

i think that there is some code in the x-fo file for that

 Shouldn't the \scratchbox in the \nextboxwd test be a \nextbox.

where?

-
   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] 'TeX capacity exceeded' problem

2007-10-11 Thread Hans Hagen
Jeong Dalyoung wrote:
 Dear all,
 
 Finally, luatools is working(gwTeX, Mac OSX  10.4).
 
 Following the instruction given by Thomas, I succeeded to run  
 'luatools --generate'
 but I got an error when I run 'luatools --ini --compile --verbose  
 cont-en'.
 There is a memory problem for the languages.
 Following the suggestion, I add a line 'trie_size = 40' at the  
 end of texmf.cnf in the folder /usr/local/gwTeX/texmf.cnf.
 After that  'luatools --ini --compile --verbose cont-en' is running  
 without error and the format file is created in the folder /tmp/ 
 luatex-cache/context/...
 
 I test it using a simple file like
 \starttext
 some texts
 \startlua
 a = 1.5
 b = 1.8
 c = a*b
 tex.print(c)
 \stoplua
 \stoptext
 
 and it was working nicely.

problems like this will go away with the next release, since mkiv will 
load patterns at runtime (smaller format, faster loading of format, 
faster generation of format, neglectable load time of patterns at runtime)

 ..
 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-siz.tex) (/usr/ 
 local/gwTeX/texmf.pkgs/tex/context/base/type-otf.tex) (/usr/local/ 
 gwTeX/texmf.pkgs/tex/context/base/type-tmf.tex) (/usr/local/gwTeX/ 
 texmf.pkgs/tex/context/base/type-siz.tex
 ! TeX capacity exceeded, sorry [parameter stack size=60].

strange ... looks like the config file is not read (generated by luatools)

Hans

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

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


Re: [NTG-context] Feature request for backgrounds

2007-10-11 Thread Hans Hagen
Wolfgang Schuster wrote:

 I know and I used a backgroundcolor and a background simultaneously
 in my posted example but what I want is a interface in localframed without
 the overlay solution, the background should also repeated horizontal and
 vertical and not streched in both directions.

\defineoverlay[image][\backgroundimage1\overlaywidth\overlayheight{\externalfigure[\framedparameter{backgroundimage}]}]

\framed[width=15cm,height=25cm,backgroundimage=cow.pdf,background=image]{test}

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

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


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

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

--luatex

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

looks like pdftex is called

Hans

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

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


Re: [NTG-context] Feature request for backgrounds

2007-10-12 Thread Hans Hagen
Aditya Mahajan wrote:
 On Thu, 11 Oct 2007, Hans Hagen wrote:
 
 Wolfgang Schuster wrote:

 I know and I used a backgroundcolor and a background simultaneously
 in my posted example but what I want is a interface in localframed without
 the overlay solution, the background should also repeated horizontal and
 vertical and not streched in both directions.
 \defineoverlay[image][\backgroundimage1\overlaywidth\overlayheight{\externalfigure[\framedparameter{backgroundimage}]}]

 \framed[width=15cm,height=25cm,backgroundimage=cow.pdf,background=image]{test}
 
 Wow, I never thought of this before. This is a really nice way to 
 generate and use key-value pairs on the fly.

whenever i see a reason i provide a \xxxparameter now, but beware of 
potential clashes, i can imagine prefixes in some cases,

\framed[width=15cm,height=25cm,x:backgroundimage=cow.pdf,background=image]{test}

Hans

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

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


Re: [NTG-context] luatex on debian

2007-10-12 Thread Hans Hagen
George N. White III wrote:
 debian (unstable,testing?) users can get a snapshot release of luatex in
 apt package form.
 
 This works for me, but there are a few things that needed slight adjustment, 
 so
 I wanted to report them here to encourage others to start testing it.
 
 I needed to set TEXMF=/etc/texmf.  Luatools doesn't seem to handle the {..}
 in the variables that are combined in TEXMF.   Also, when it didn't find

hm, it should handle the {} ok (well, i did rewrite that part a bit 
because it didn't handle some cases; can you send me the TEXMF spec that 
failed?)

 AlProTex.sty, the message indicated that it couldn't find AlProTeX.sty
 ('x'--'X')!

 ls c:/data/develop/tex/texmf/tex/generic/dratex/AlProTeX.sty
/dev/fs/C/data/develop/tex/texmf/tex/generic/dratex/AlProTex.sty

 kpsewhich  AlProTeX.sty
c:/data/develop/tex/texmf/tex/generic/dratex/AlProTeX.sty

 luatools AlProTeX.sty
c:/data/develop/tex/texmf/tex/generic/dratex/AlProTex.sty

so, the file actually is named with an 'x' ; luatools (i.e. the file 
handler written in lua) can handle mixed cases in a way that it will 
always resolve to the syetem filename, here the one with th elower case 
x; so i guess that kpse is reporting wrong

is there an alias file involved (i ignore that one, actually alias files 
are not supposed to exist any longer)

 For testing, you can just set some simplified TEXMF, e.g.,:
 
 export 
 TEXMF={$HOME/texmf,/usr/local/texmf,/usr/share/texmf-texlive,/usr/share/texmf}
 
 or you can edit /etc/texmf/texmf.d/05TeXMF.cnf to simplify things like:
 
 TEXMFDIST = /usr/share/texmf-{texlive,tetex}
 
 In my case, I no longer have texmf-textex, so this became just
 
 TEXMFDIST = /usr/share/texmf-texlive
 
 Then run: update-texmf and luatools --generate
 
 You can check the TEXMF variable with:
 
 $ luatools --expand-var TEXMF
 
 More tests to make sure the configuration is working:
 
 $ luatools  msam7.afm
 /usr/share/texmf-texlive/fonts/afm/bluesky/ams/msam7.afm
 
 Then build the format:
 
 $ luatools --ini --verbose --compile cont-en
 
 and compile something:
 
 $ texexec --luatex foo
 TeXExec | processing document 'foo'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file foo.top
 TeXExec | using randomseed 967
 TeXExec | tex engine: luatex
 TeXExec | tex format: cont-en
 
 This is luaTeX, Version 3.141592-beta-0.11.2-2007092410 (Web2C 7.5.6)
 (./foo.tex
 
 ConTeXt  ver: 2007.09.28 16:52 MKIV  fmt: 2007.10.12  int: english/english
 [...]

btw, i have to find a way to report that a cache path is not present of 
writable

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
___


[NTG-context] problems with luatex

2007-10-15 Thread Hans Hagen
Hi,

there has been reported problems with luatex and mem settings; this is a 
  result from a problem in the path interpreter and is fixed in a next 
release (i cannot release now due to fundamental changes in luatex)

a temp solution is to make sure that TEXMFCNF is a simple path (no {} mess)

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] Compatiblity option in pdf

2007-10-22 Thread Hans Hagen
Wolfgang Schuster wrote:
 2007/10/22, John Culleton [EMAIL PROTECTED]:
 
 I created a short document
 http://wexfordpress.com/tex/shortlist.pdf
 using Context and with a clickable TOC and one thumbnail. The thumbnail
 was
 created with the Han The Thanh pdftex macro code I mentioned recently.
 Some
 users view it fine, others with earlier versions of  Acrobat Reader have
 problems. A friend ftom the InDesign/Distiller world suggests that I
 recreate
 the pdf with the compatibility option turned on.  Does this suggestion
 have
 any meaning in the Context/pdftex world?

 Can interested readers read the above url OK?
 --
 John Culleton
 
 
 Hi John,
 
 the output looks fine to me, I see your document on Acrobat 8.1 at a Windows
 machine and have no problems.
 
 Your friend could mean to reduce the PDF version of your document, you could
 use PDFTeX's \pdfminorversion for this purpose.

indeed if one has a full acrobat one can convert it hwile preflighting

the document is ok for acrobat = 6; for acrobat 4/5 transparency 
flattening and/or layer info is to be discarded;


-
   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] metapost question

2007-10-23 Thread Hans Hagen
Thomas A. Schmitz wrote:
 Just wanted to renew my thanks. I used the code from these pages to 
 produce the slides for my lecture, and I really liked the way the 
 polyhedra came out. I always got an error about a redundant equation 
 when compiling, but the pdf looks fine. So here's the link (the image 

use := instead of = 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] luatex

2007-10-23 Thread Hans Hagen
Thomas A. Schmitz wrote:
 Hi,
 
 at the risk of sounding rude or impatient: I'd love to know when new  
 releases of luatex and ConTeXt mkiv can be expected. The latest  
 luatex trunk has some problems (no ligatures, hyphenation flaky) and  
 doesn't work with some of my fonts. Latest ConTeXt beta only works  
 with trunk of luatex. Hans mentioned some fundamental changes in  
 luatex, so I was just wondering.

later this week there will be a new beta

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] 14th century music (Mensuralnotation)

2007-10-23 Thread Hans Hagen
Steffen Wolfrum wrote:
 Hi Jelle,
 
 
 Am 23.10.2007 um 14:58 schrieb Jelle Huisman:
 Steffen Wolfrum wrote:
 Hi,

 I'd like to typeset various symbols (as examples included in normal
 text lines) from musical notation from the 14th century
 (Mensuralnotation). These symbols can be seen in

 http://www.unicode.org/charts/PDF/U1D100.pdf

 I just have absolutely no idea e.g. which font these symbols  
 support ...
 Hi Steffen,

 You might want to have a look at this font:
 http://openfontlibrary.org/media/files/Eimai/191 (though I'm not sure
 this font covers all the symbols you need.)

 A good resource for finding fonts is:
 http://www.alanwood.net/unicode/fonts.html
 
 
 Indeed: via this link (alanwood.net) I found http://users.teilar.gr/ 
 ~g1951d/ and there
 
 http://users.teilar.gr/~g1951d/Musical.pdf
 (plus the corresponding font)
 
 Unbelievable stuff! Byzantine notation!! I never dared to hope that  
 all this is available (and even non-commercial) with fonts ...

indeed

how about adding such top level links to the wiki (some font resource page)

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] MKIV: encoding for pdf-strings

2007-10-23 Thread Hans Hagen
Peter Münster wrote:
 Hello,
 
 When using luatex, utf encoding is not taken into account in
 pdf-strings. Minimal example:
 
 % engine=luatex
 \enableregime[utf]
 \setupinteraction[state=start,author=Peter Münster]
 \starttext
 Peter Münster
 \stoptext
 
 Output of pdfinfo:
 Author: Peter Münster

some day soon i will rewrite the pdf backend for mkiv

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
___


[NTG-context] wikifyable

2007-10-25 Thread Hans Hagen
in such cases \dontleavehmode is neede

\starttext
 \placefigure[left]{}{}
 \startlinecorrection \dontleavehmode \bTABLE
 \bTR  \bTD oeps \eTD  \eTR
 \eTABLE
 \stoplinecorrection
 \placefigure[right]{}{}
 \startlinecorrection \dontleavehmode \bTABLE
 \bTR  \bTD oeps \eTD  \eTR
 \eTABLE
 \stoplinecorrection
\stoptext


-
   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

2007-10-25 Thread Hans Hagen
John Culleton wrote:
 On Tuesday 23 October 2007 10:49:44 am Hans Hagen wrote:
 Thomas A. Schmitz wrote:
 Hi,

 at the risk of sounding rude or impatient: I'd love to know when new
 releases of luatex and ConTeXt mkiv can be expected. The latest
 luatex trunk has some problems (no ligatures, hyphenation flaky) and
 doesn't work with some of my fonts. Latest ConTeXt beta only works
 with trunk of luatex. Hans mentioned some fundamental changes in
 luatex, so I was just wondering.
 later this week there will be a new beta

 Hans
 
 What will a luatex based Context do for us that the current stable Context 
 doesn't?

open type to start with, robustly grouped features, better and more 
robust spacing some day soon, more efficient and flexible xml, a new 
sectioning implementation, instant metapost processing (next year), and 
much more; eventually fundamental new features will only be written for 
luatex and pdftex (traditional tex) will be frozen.

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
___


[NTG-context] [Fwd: natural table splitting problems]

2007-10-29 Thread Hans Hagen


--

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

I've tried to post this to the list several times, but it doesn't show up...

In our XML-ConTeXt-PDF workflow, we've encountered a few intermittent 
problems when using split natural tables.  I'm not able to post the original 
documents in which the problems are manifesting, but below is a document that 
reproduces one of the problems.  The first page of the document is full of 
text, pushing a split natural table with five rows and a header to the top of 
the second page.  However, only the first row appears on the second page, and 
the rest of the table is continued on the third page.

I'm using a stock ConTeXt 9/28 distribution, but this problem can also be 
reproduced on live.contextgarden.net.

Can someone please tell me what I'm doing wrong or help me debug this problem?  
These natural table bugs are the only thing stopping us from deploying our 
ConTeXt workflow.

Cheers,
Mike Santy


\setuppapersize[letter][letter]

\showframe

\starttext

\def\blah{
  Now is the time for all good men to come to the aid of their %
  country.  The quick brown fox jumped over the lazy dog.
}
\dorecurse{28}{\blah}

\placetable[split]{Broken Split Table}{
\setupTABLE[split=repeat]
\bTABLE
\bTABLEhead
  \bTR[style=\bf]
\bTD Header A \eTD
\bTD Header B \eTD
  \eTR
\eTABLEhead
\bTABLEbody
  \dorecurse{5}{
\bTR
  \bTD A \eTD
  \bTD B \eTD
\eTR
  }
\eTABLEbody
\eTABLE
}

\stoptext
---End Message---
___
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] linebreak NOT in section title BUT in content

2007-10-30 Thread Hans Hagen
Steffen Wolfrum wrote:
 Hi,
 
 \chapter{First line\\second line}
 
 gives a linebreak in the chapter's title but not in the corresponding  
 toc entry.
 
 
 I need it the other way round: a line break at a specific point of  
 the toc entry *and not* in the chapters title.
 
 Is this possible?

\crlf if i remember right
-- 

-
   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] natural table splitting problems

2007-10-30 Thread Hans Hagen
Santy, Michael wrote:
 Thanks Peter for the pointer to the multipage table in the wiki.  I don't 
 know how I overlooked that example.  However, I was still able to duplicate 
 the problem with this sample table by including a page full of text before 
 the table (see below).  
 
 If the dorecurse is set to 62 or 63, the contents slightly overflow the first 
 page text area and only the first row of the table is rendered on the second 
 page.  If dorecurse on blah is performed 61 or 64 times, the table is 
 rendered properly.

it's always a problem to determine what's left on a page

\def\blah{The quick brown fox jumped over the lazy stupid dog.}
\dorecurse{62}{\blah} \synchronizeoutput

this will force the otr but is not always fails safe (i.e. vertical 
spacing may be messed)

... one of the reasons why we work on luatex -)

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] \enableregime [utf] or [utf-8]?

2007-10-30 Thread Hans Hagen
Matija Šuklje wrote:
 I've been reading a bit the docs and it seems they're a bit ambigious when it 
 (at least wiki) comes to regimes — is it \enableregime[utf] or 
 \enableregime[utf-8] ...both? All three??

see regi-syn.tex for synonyms


-
   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] beware: some patches loaded from cont-new.tex

2007-10-31 Thread Hans Hagen
Joel C. Salomon wrote:
 Testing a new installation of mswincontext, I got this message when
 texexecing the first example from the wiki:
 
 (c:/Users/chesky/Programs/context/tex/texmf-local/tex/context/base/cont-new.tex
 systems : beware: some patches loaded from cont-new.tex
 
 Is this normal?

yes

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] natural table splitting problems

2007-10-31 Thread Hans Hagen
Peter Rolf wrote:
 just some further tests. i was wrong, as there is no table breaking
 without the \placetable[split] option. seems my command reference is
 outdated :(
 
 if you don't use \placetable at all, things work again. so there must be
 some vspace mess with the splitting option of placetable and the one of
 TABLE.
 adding \blank[line,medium,force] or some other forced blank in front of
 the table should help to get the correct offset to the text.
 
 what a mess...

as said ... the problem is that we need to know what place is available 
and there is no robust way to determine this ... esp when we're around a 
potential pagebreak

i can look into it when i have enough examples (a bit busy now so i 
cannot give it priority)

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] beware: some patches loaded from cont-new.tex

2007-10-31 Thread Hans Hagen
Joel C. Salomon wrote:
 On 10/31/07, Hans Hagen [EMAIL PROTECTED] wrote:
 beware: some patches loaded from cont-new.tex

 Is this normal?
 yes
 
 What does the warning mean, and if it's normal why is there a warning for it?

you can put local fixes there but currently the file also have some 
pending fixzes / extensions

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
___


  1   2   3   4   5   6   7   8   9   10   >