Re: [NTG-context] Lua in LuaLaTeX is diferent??

2010-06-06 Thread Jaroslav Hajtmar

Thanks very much.
It is very unpleasant findings, but, it explains everything.
Can be detected using Lua whether application runs under LuaLaTeX or 
LuaPlain and then load the library?
How can I retrieve LuaLib? Where can I get more information? I did some 
Googling but without success.

Thanx Jaroslav


Dne 6.6.2010 4:46, Khaled Hosny napsal(a):

On Sun, Jun 06, 2010 at 01:35:23AM +0200, Jaroslav Hajtmar wrote:
   

Hi,

I am sending examples of functions:

The first function is functional in ConTeXt MKIV even LuaLaTeX.

-- Global variables for setup in library (it be used when glob. vars
Sep, Ld, Rd is not setting in main aplication):
UserCSVSeparator=';'
UserCSVLeftDelimiter=''
UserCSVRightDelimiter=''




function ParseCSVdata(s)
 local Sep = (Sep == nil) and UserCSVSeparator or Sep
 local Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld
 local Rd = (Rd == nil) and UserCSVRightDelimiter or Rd
 if Ld ~= '' or Rd ~= '' then
local s=string.sub(s, string.find(s, Ld)+1, string.find(s,
Rd,-1)-1)
 end
 local fieldsep=tostring(Rd..Sep..Ld)
 local result = {}
   local from  = 1
   local sep_from, sep_to = string.find( s, fieldsep, from  )
   while sep_from do
 table.insert( result, string.sub( s, from , sep_from-1 ) )
 from  = sep_to + 1
 sep_from, sep_to = string.find( s, fieldsep, from  )
   end
   table.insert( result, string.sub( s, from  ) )
   return result
end


The second is more universal, but it only works in ConTeXt MKIV.
LuaLaTeX report error:  attempt to call field 'split' (a nil value) ... .

function ParseCSVdata(string2parse, separator, leftdelimiter,
rightdelimiter)
 Sep = (Sep == nil) and UserCSVSeparator or Sep
 Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld
 Rd = (Rd == nil) and UserCSVRightDelimiter or Rd
   local separator = (separator == nil) and Sep or separator
 local leftdelimiter = (leftdelimiter == nil) and Ld or leftdelimiter
 local rightdelimiter = (rightdelimiter == nil) and Rd or rightdelimiter
 local result={}
 if leftdelimiter ~= '' and rightdelimiter ~= '' then
 string.gsub(string2parse,
leftdelimiter..(.-)..rightdelimiter, function(a)
table.insert(result,a) end )
 else
   result=string.split(string2parse,separator)
 end
 return result
end


I would like to benefit from the second function, but I want the
application was applicable even LuaLaTeX
 

You need the lualibs package, which imports some of the extended lua
librarires from ConTeXt, since string.split() is not a standad lua
function.

Regards,
  Khaled


   

Thanx Jaroslav




Dne 5.6.2010 22:19, Jaroslav Hajtmar napsal(a):
 

Hi,
I did a Lua application for ConTeXt, and now I wanted to adapt it
to work even LuaLaTeX.
On what needs to be careful? Compiling  by LuaLaTeX specific
messages appear as if the Lua in LuaLaTeX didnt know some Lua
commands (i.e. split, find  ).

On what needs to be careful generaly when programming applications
for LuaLaTeX?

Thanx Jaroslav
___

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


   

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Lua in LuaLaTeX is diferent??

2010-06-06 Thread Jaroslav Hajtmar

Thanks very much.
It is very unpleasant findings, but, it explains everything.
Can be detected using Lua whether application runs under LuaLaTeX or 
LuaPlain and then load the library?
How can I retrieve LuaLib? Where can I get more information? I did some 
Googling but without success.

Thanx Jaroslav




Dne 6.6.2010 4:46, Khaled Hosny napsal(a):

On Sun, Jun 06, 2010 at 01:35:23AM +0200, Jaroslav Hajtmar wrote:

Hi,

I am sending examples of functions:

The first function is functional in ConTeXt MKIV even LuaLaTeX.

-- Global variables for setup in library (it be used when glob. vars
Sep, Ld, Rd is not setting in main aplication):
UserCSVSeparator=';'
UserCSVLeftDelimiter=''
UserCSVRightDelimiter=''




function ParseCSVdata(s)
 local Sep = (Sep == nil) and UserCSVSeparator or Sep
 local Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld
 local Rd = (Rd == nil) and UserCSVRightDelimiter or Rd
 if Ld ~= '' or Rd ~= '' then
local s=string.sub(s, string.find(s, Ld)+1, string.find(s,
Rd,-1)-1)
 end
 local fieldsep=tostring(Rd..Sep..Ld)
 local result = {}
   local from  = 1
   local sep_from, sep_to = string.find( s, fieldsep, from  )
   while sep_from do
 table.insert( result, string.sub( s, from , sep_from-1 ) )
 from  = sep_to + 1
 sep_from, sep_to = string.find( s, fieldsep, from  )
   end
   table.insert( result, string.sub( s, from  ) )
   return result
end


The second is more universal, but it only works in ConTeXt MKIV.
LuaLaTeX report error:  attempt to call field 'split' (a nil value) 
... .


function ParseCSVdata(string2parse, separator, leftdelimiter,
rightdelimiter)
 Sep = (Sep == nil) and UserCSVSeparator or Sep
 Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld
 Rd = (Rd == nil) and UserCSVRightDelimiter or Rd
   local separator = (separator == nil) and Sep or separator
 local leftdelimiter = (leftdelimiter == nil) and Ld or 
leftdelimiter
 local rightdelimiter = (rightdelimiter == nil) and Rd or 
rightdelimiter

 local result={}
 if leftdelimiter ~= '' and rightdelimiter ~= '' then
 string.gsub(string2parse,
leftdelimiter..(.-)..rightdelimiter, function(a)
table.insert(result,a) end )
 else
   result=string.split(string2parse,separator)
 end
 return result
end


I would like to benefit from the second function, but I want the
application was applicable even LuaLaTeX

You need the lualibs package, which imports some of the extended lua
librarires from ConTeXt, since string.split() is not a standad lua
function.

Regards,
  Khaled



Thanx Jaroslav




Dne 5.6.2010 22:19, Jaroslav Hajtmar napsal(a):

Hi,
I did a Lua application for ConTeXt, and now I wanted to adapt it
to work even LuaLaTeX.
On what needs to be careful? Compiling  by LuaLaTeX specific
messages appear as if the Lua in LuaLaTeX didnt know some Lua
commands (i.e. split, find  ).

On what needs to be careful generaly when programming applications
for LuaLaTeX?

Thanx Jaroslav
___ 



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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 




___ 

If your question is of interest to others as well, please add an 
entry to the Wiki!


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 





___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \reference fails in the new beta

2010-06-06 Thread Taco Hoekwater

Michael Saunders wrote:

\starttext
\reference[test]{test}
\stoptext

Has the syntax of \reference changed?


No, it is borked. The same problem was reported in the thread

  dodosetreference undefined

I am quite sure Hans will upload a new beta later today.

Best wishes,
Taco


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Cyrillic in Mark IV

2010-06-06 Thread Yury G. Kudryashov
Hi!

How can I typeset Russian in Mark IV? None of the examples from wiki work. I 
found TeXGyre and (no) Cyrillic thread, but there are no instructions, 
just Cyrillic doesn't work with TeXGyre anymore.

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] git repo is not updated?

2010-06-06 Thread Marius
Midnight passed, but repository still is not updated?

On Sun, Jun 6, 2010 at 9:29 AM, Patrick Gundlach patr...@gundla.ch wrote:

 Am 05.06.2010 um 18:25 schrieb Mojca Miklavec:

 On Sat, Jun 5, 2010 at 11:04, Hans Hagen pra...@wxs.nl wrote:
 On 5-6-2010 10:07, Marius wrote:

 Hello,

 I see that context minimals is at 2010-06-05 version, hovewer git repo
 [1] is last updated on 2010-05-29.


 http://contextgarden.wordpress.com/2009/07/29/news-from-the-git-repository/

 the repos updates at midnight (so, once per day)

 But I'm not sure when Patrick's repository updates.

 at midnight ;-)

 But I am surprised that there is actually a user out there. Beware, the 
 repository is still experimental.

 Patrick

 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Cyrillic in Mark IV

2010-06-06 Thread Wolfgang Schuster

Am 06.06.10 09:55, schrieb Yury G. Kudryashov:

Hi!

How can I typeset Russian in Mark IV? None of the examples from wiki work. I
found TeXGyre and (no) Cyrillic thread, but there are no instructions,
just Cyrillic doesn't work with TeXGyre anymore.
   


You need a font with cyrillic glyphs, e.g. when you have microsofts core 
fonts

installed this example works:

\setupbodyfont[mscore]
\starttext
Немного русского текста для пробы.
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Cyrillic in Mark IV

2010-06-06 Thread Rogutės Sparnuotos
Yury G. Kudryashov (2010-06-06 11:55):
 Hi!
 
 How can I typeset Russian in Mark IV? None of the examples from wiki work. I 
 found TeXGyre and (no) Cyrillic thread, but there are no instructions, 
 just Cyrillic doesn't work with TeXGyre anymore.

Just install some fonts with Cyrillic glyphs to your system and use them.
For example, this is how I (minimally) used CMU Serif [1]:

\definetypeface[cyr][rm][Xserif][CMU Serif]
\definetypeface[cyr][ss][Xsans][CMU Sans Serif]
\definetypeface[cyr][tt][Xmono][CMU Typewriter Text Variable Width]
\setupbodyfont[cyr, 12pt]
\starttext
Калейдоскоп
\stoptext


[1] http://cm-unicode.sourceforge.net/

-- 
--  Rogutės Sparnuotos
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cyrillic in Mark IV

2010-06-06 Thread Wolfgang Schuster

Am 06.06.10 10:39, schrieb Rogutės Sparnuotos:

Yury G. Kudryashov (2010-06-06 11:55):

Hi!

How can I typeset Russian in Mark IV? None of the examples from wiki work. I
found TeXGyre and (no) Cyrillic thread, but there are no instructions,
just Cyrillic doesn't work with TeXGyre anymore.


Just install some fonts with Cyrillic glyphs to your system and use them.
For example, this is how I (minimally) used CMU Serif [1]:

\definetypeface[cyr][rm][Xserif][CMU Serif]
\definetypeface[cyr][ss][Xsans][CMU Sans Serif]
\definetypeface[cyr][tt][Xmono][CMU Typewriter Text Variable Width]


For MkIV you need:

\definetypeface[cyr][rm][specserif][CMU Serif]
\definetypeface[cyr][ss][specsans] [CMU Sans Serif]
\definetypeface[cyr][tt][specmono] [CMU Typewriter Text Variable Width]

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Mojca Miklavec
On Sat, Jun 5, 2010 at 17:13, Yury G. Kudryashov wrote:
 Hi!

 Are there any automatic unit test for ConTeXt distribution?

I'm thinking that we might want to set up one on a server. My idea is
as follows:
- set up one complete repository that's regularly updated
- install ConTeXt from there and try if everything works fine
- only if all tests are passed, sync to another public/default
repository, else send an email to Hans, me  co. notifying about the
failure

Any ideas welcome.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Cyrillic in Mark IV

2010-06-06 Thread Rogutės Sparnuotos
Wolfgang Schuster (2010-06-06 10:44):
 Am 06.06.10 10:39, schrieb Rogutės Sparnuotos:
 Yury G. Kudryashov (2010-06-06 11:55):
 Hi!
 
 How can I typeset Russian in Mark IV? None of the examples from wiki work. I
 found TeXGyre and (no) Cyrillic thread, but there are no instructions,
 just Cyrillic doesn't work with TeXGyre anymore.
 
 Just install some fonts with Cyrillic glyphs to your system and use them.
 For example, this is how I (minimally) used CMU Serif [1]:
 
 \definetypeface[cyr][rm][Xserif][CMU Serif]
 \definetypeface[cyr][ss][Xsans][CMU Sans Serif]
 \definetypeface[cyr][tt][Xmono][CMU Typewriter Text Variable Width]
 
 For MkIV you need:
 
 \definetypeface[cyr][rm][specserif][CMU Serif]
 \definetypeface[cyr][ss][specsans] [CMU Sans Serif]
 \definetypeface[cyr][tt][specmono] [CMU Typewriter Text Variable Width]

I just copied the code from a MkII-XeTeX doc, hoping it will
work...should've tested before sending...could've just worked.

I had no idea what the 'Xserif' option does, and now one more riddle -
'specserif'. But even with this change, MkIV doesn't print anything:

!define font: font with name cmuserif-normal-normal is not found
!define font: unknown font cmuserif-normal-normal, loading aborted
!define font: unable to define cmuserif-normal-normal as \*cyr12ptrmtf*

-- 
--  Rogutės Sparnuotos
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Taco Hoekwater

Mojca Miklavec wrote:

On Sat, Jun 5, 2010 at 17:13, Yury G. Kudryashov wrote:

Hi!

Are there any automatic unit test for ConTeXt distribution?


I'm thinking that we might want to set up one on a server. 


We already have a server for tests:

  http://foundry.supelec.fr/gf/project/contexttest/


Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Mojca Miklavec
On Sun, Jun 6, 2010 at 11:05, Taco Hoekwater wrote wrote:
 Mojca Miklavec wrote:
 On Sat, Jun 5, 2010 at 17:13, Yury G. Kudryashov wrote:

 Are there any automatic unit test for ConTeXt distribution?

 I'm thinking that we might want to set up one on a server.

 We already have a server for tests:

  http://foundry.supelec.fr/gf/project/contexttest/

Yes, but some metadata is missing and some architecture to actually
run those tests (some tests only make sense in MKII and some only in
MKIV etc.).

I would definitely prefer if some function run_the_unit_tests
existed, but we probably need to write one first.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Taco Hoekwater

Mojca Miklavec wrote:

On Sun, Jun 6, 2010 at 11:05, Taco Hoekwater wrote wrote:

Mojca Miklavec wrote:

On Sat, Jun 5, 2010 at 17:13, Yury G. Kudryashov wrote:

Are there any automatic unit test for ConTeXt distribution?

I'm thinking that we might want to set up one on a server.

We already have a server for tests:

 http://foundry.supelec.fr/gf/project/contexttest/


Yes, but some metadata is missing and some architecture to actually
run those tests (some tests only make sense in MKII and some only in
MKIV etc.).

I would definitely prefer if some function run_the_unit_tests
existed, but we probably need to write one first.


Just saying there is no need for yet another server  (you cannot
run tests server-side anyway).

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Yury G. Kudryashov
Taco Hoekwater wrote:

 Mojca Miklavec wrote:
 On Sun, Jun 6, 2010 at 11:05, Taco Hoekwater wrote wrote:
 Mojca Miklavec wrote:
 On Sat, Jun 5, 2010 at 17:13, Yury G. Kudryashov wrote:
 Are there any automatic unit test for ConTeXt distribution?
 I'm thinking that we might want to set up one on a server.
 We already have a server for tests:

  http://foundry.supelec.fr/gf/project/contexttest/
 
 Yes, but some metadata is missing and some architecture to actually
 run those tests (some tests only make sense in MKII and some only in
 MKIV etc.).
 
 I would definitely prefer if some function run_the_unit_tests
 existed, but we probably need to write one first.
 
 Just saying there is no need for yet another server  (you cannot
 run tests server-side anyway).

Why? I was talking about fully automatic tests, not tests like compile and 
open result in the viewer. I understand that there is not too much 
functionality that can be tested automatically (hence, server-side), but at 
least some basic things can be tested.

Probably, more features can be tested server-side analyzing the result pdf 
file using some library (though I don't know the pdf-parsing libraries 
sufficiently good to implement it).

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Lua in LuaLaTeX is diferent??

2010-06-06 Thread Hans Hagen

On 5-6-2010 10:19, Jaroslav Hajtmar wrote:

Hi,
I did a Lua application for ConTeXt, and now I wanted to adapt it to
work even LuaLaTeX.
On what needs to be careful? Compiling by LuaLaTeX specific messages
appear as if the Lua in LuaLaTeX didnt know some Lua commands (i.e.
split, find  ).

On what needs to be careful generaly when programming applications for
LuaLaTeX?


In context there is quite some lua code that can be used by users for 
their applications. The l-*.lua files can considered to be more general 
libraries and most ofthat is unlikely to change (extended for sure). At 
some point I will make a manual for that. Of course you can always load 
such modules using 'require'.


Using other context lua code outside context is more tricky as it also 
assumes the system to be designed in a certain way. I hope to have much 
if that stable within the next few years. As long as one does not mess 
with the namespaces not much harm can be done.


I'm not following lualatex dev but i know that it uses some of the font 
code. The reason that this code can be shared is that it's sort of 
isolated and specific functionality needed is wrapped up in *-dum.lua 
modules. Probbably some stripping down will happen to prevent clashes 
etc. Here the reference is luatex-plain.tex (and luatex-fonts.tex) in 
the context distribution.


Also, the reverse is also tricky: lualatex speicific code is unlikely to 
work in context.


BTW, Sharing macro code between context and latex is non trivial either 
as both are different systems and developed completely independent.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Taco Hoekwater

Yury G. Kudryashov wrote:


Why? I was talking about fully automatic tests, not tests like compile and 
open result in the viewer. I understand that there is not too much 
functionality that can be tested automatically (hence, server-side), but at 
least some basic things can be tested.


But if it fails you will most likely end up with a stuck server.

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Lua in LuaLaTeX is diferent??

2010-06-06 Thread Hans Hagen

On 6-6-2010 8:34, Jaroslav Hajtmar wrote:

Thanks very much.
It is very unpleasant findings, but, it explains everything.
Can be detected using Lua whether application runs under LuaLaTeX or
LuaPlain and then load the library?


something

if not context then
  require l-string
end

(I will provide another way too.)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Lua in LuaLaTeX is diferent??

2010-06-06 Thread Hans Hagen

On 6-6-2010 1:35, Jaroslav Hajtmar wrote:


The second is more universal, but it only works in ConTeXt MKIV.
LuaLaTeX report error: attempt to call field 'split' (a nil value) ... .

function ParseCSVdata(string2parse, separator, leftdelimiter,
rightdelimiter)
Sep = (Sep == nil) and UserCSVSeparator or Sep
Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld
Rd = (Rd == nil) and UserCSVRightDelimiter or Rd
local separator = (separator == nil) and Sep or separator
local leftdelimiter = (leftdelimiter == nil) and Ld or leftdelimiter
local rightdelimiter = (rightdelimiter == nil) and Rd or rightdelimiter
local result={}
if leftdelimiter ~= '' and rightdelimiter ~= '' then
string.gsub(string2parse, leftdelimiter..(.-)..rightdelimiter,
function(a) table.insert(result,a) end )
else
result=string.split(string2parse,separator)
end
return result
end


You probably mean something ...

UserCSVSeparator  = ';'
UserCSVLeftDelimiter  = ''
UserCSVRightDelimiter = ''

function ParseCSVdata(string2parse, separator, leftdelimiter, 
rightdelimiter)

leftdelimiter  = leftdelimiter  or Ld or UserCSVLeftDelimiter  or 
rightdelimiter = rightdelimiter or Rd or UserCSVRightDelimiter or 
if leftdelimiter ~= '' and rightdelimiter ~= '' then
local result = { }
local pattern = string.esc(leftdelimiter) .. (.-) .. 
string.esc(rightdelimiter)

for s in string.gmatch(string2parse,pattern) do
table.insert(result,s)
end
return result
else
return string.split(string2parse,separator or Sep or 
UserCSVSeparator or ;)

end
end

but anyhow, this might (name) clash at some point i guess, for instance 
because of using globals like Ld


In order to be more or less compatible with the context module and third 
party code setup, in context you need to do:


thirddata = thirddata or { }

thirddata.cvs = {
separator  = ';',
leftdelimiter  = '',
rightdelimiter = '',
}

function 
thirddata.cvs.parse(string2parse,separator,leftdelimiter,rightdelimiter)

leftdelimiter  = leftdelimiter  or thirddata.leftdelimiter  or 
rightdelimiter = rightdelimiter or thirddata.rightdelimiter or 
if leftdelimiter ~=  and rightdelimiter ~=  then
local result = { }
local pattern = string.esc(leftdelimiter) .. (.-) .. 
string.esc(rightdelimiter)

for s in string.gmatch(string2parse,pattern) do
table.insert(result,s)
end
return result
else
return string.split(string2parse,separator or 
thirddata.separator or ;)

end
end

-- print(table.serialize(thirddata.cvs.parse(11,ss,cc,,)))
-- print(table.serialize(thirddata.cvs.parse([11] [ss] [cc],,[,])))


but i have no clue how this is used so there might be better approaches

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Peter Münster
On Sun, Jun 06 2010, Yury G. Kudryashov wrote:

 Probably, more features can be tested server-side analyzing the result pdf 
 file using some library (though I don't know the pdf-parsing libraries 
 sufficiently good to implement it).

Perhaps it's just sufficient to convert the pdf to an image, and compare it
pixel by pixel. Then you can test nearly all automatically (hyperlinks will
be difficult though).

Cheers, Peter

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


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Peter Münster
On Sun, Jun 06 2010, Taco Hoekwater wrote:

 But if it fails you will most likely end up with a stuck server.

There is --nonstopmode and kill ... ;)

I would do the test in a post-commit hook, that sends email when there is a
problem.

Cheers, Peter

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


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Taco Hoekwater

Peter Münster wrote:

On Sun, Jun 06 2010, Yury G. Kudryashov wrote:

Probably, more features can be tested server-side analyzing the result pdf 
file using some library (though I don't know the pdf-parsing libraries 
sufficiently good to implement it).


Perhaps it's just sufficient to convert the pdf to an image, and compare it
pixel by pixel. Then you can test nearly all automatically (hyperlinks will
be difficult though).


This is already done by

  a) the contexttest project at supelec
 (although this is incomplete, iirc)
  b) the fontspec v2 package
 (but I don't know where the tests live)

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt unit testing

2010-06-06 Thread Taco Hoekwater

Peter Münster wrote:

On Sun, Jun 06 2010, Taco Hoekwater wrote:


But if it fails you will most likely end up with a stuck server.


There is --nonstopmode and kill ... ;)

I would do the test in a post-commit hook, that sends email when there is a
problem.


Well, I would not object to such a service *existing*, but:

- not on one of my machines
- I don't want to be the maintainer either

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Cyrillic in Mark IV

2010-06-06 Thread Wolfgang Schuster

Am 06.06.10 10:59, schrieb Rogutės Sparnuotos:

I just copied the code from a MkII-XeTeX doc, hoping it will
work...should've tested before sending...could've just worked.

I had no idea what the 'Xserif' option does, and now one more riddle -
'specserif'. But even with this change, MkIV doesn't print anything:

!define font: font with name cmuserif-normal-normal is not found
!define font: unknown font cmuserif-normal-normal, loading aborted
!define font: unable to define cmuserif-normal-normal as \*cyr12ptrmtf*
   


You're right but this is a problem with the regular style of cmu serif,
the font specifies it's own weight as medium but mkiv expects normal.

As you can see here the mechanism works but the results are font dependant.

\definetypeface[cyr][rm][specserif][CMU Serif]
\setupbodyfont[cyr, 12pt]
\starttext
\bf Калейдоскоп
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] git repo is not updated?

2010-06-06 Thread Khaled Hosny
Midnight of which timezone? :)

On Sun, Jun 06, 2010 at 10:57:29AM +0300, Marius wrote:
 Midnight passed, but repository still is not updated?
 
 On Sun, Jun 6, 2010 at 9:29 AM, Patrick Gundlach patr...@gundla.ch wrote:
 
  Am 05.06.2010 um 18:25 schrieb Mojca Miklavec:
 
  On Sat, Jun 5, 2010 at 11:04, Hans Hagen pra...@wxs.nl wrote:
  On 5-6-2010 10:07, Marius wrote:
 
  Hello,
 
  I see that context minimals is at 2010-06-05 version, hovewer git repo
  [1] is last updated on 2010-05-29.
 
 
  http://contextgarden.wordpress.com/2009/07/29/news-from-the-git-repository/
 
  the repos updates at midnight (so, once per day)
 
  But I'm not sure when Patrick's repository updates.
 
  at midnight ;-)
 
  But I am surprised that there is actually a user out there. Beware, the 
  repository is still experimental.
 
  Patrick
 
  ___
  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  : http://foundry.supelec.fr/projects/contextrev/
  wiki     : http://contextgarden.net
  ___
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Lua in LuaLaTeX is diferent??

2010-06-06 Thread Khaled Hosny
Lualibs is available on CTAN, it is a repackages l-*.lua ConTeXt
modules.

On Sun, Jun 06, 2010 at 08:15:23AM +0200, Jaroslav Hajtmar wrote:
 Thanks very much.
 It is very unpleasant findings, but, it explains everything.
 Can be detected using Lua whether application runs under LuaLaTeX or
 LuaPlain and then load the library?
 How can I retrieve LuaLib? Where can I get more information? I did
 some Googling but without success.
 Thanx Jaroslav
 
 
 Dne 6.6.2010 4:46, Khaled Hosny napsal(a):
 On Sun, Jun 06, 2010 at 01:35:23AM +0200, Jaroslav Hajtmar wrote:
 Hi,
 
 I am sending examples of functions:
 
 The first function is functional in ConTeXt MKIV even LuaLaTeX.
 
 -- Global variables for setup in library (it be used when glob. vars
 Sep, Ld, Rd is not setting in main aplication):
 UserCSVSeparator=';'
 UserCSVLeftDelimiter=''
 UserCSVRightDelimiter=''
 
 
 
 
 function ParseCSVdata(s)
  local Sep = (Sep == nil) and UserCSVSeparator or Sep
  local Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld
  local Rd = (Rd == nil) and UserCSVRightDelimiter or Rd
  if Ld ~= '' or Rd ~= '' then
 local s=string.sub(s, string.find(s, Ld)+1, string.find(s,
 Rd,-1)-1)
  end
  local fieldsep=tostring(Rd..Sep..Ld)
  local result = {}
local from  = 1
local sep_from, sep_to = string.find( s, fieldsep, from  )
while sep_from do
  table.insert( result, string.sub( s, from , sep_from-1 ) )
  from  = sep_to + 1
  sep_from, sep_to = string.find( s, fieldsep, from  )
end
table.insert( result, string.sub( s, from  ) )
return result
 end
 
 
 The second is more universal, but it only works in ConTeXt MKIV.
 LuaLaTeX report error:  attempt to call field 'split' (a nil value) ... .
 
 function ParseCSVdata(string2parse, separator, leftdelimiter,
 rightdelimiter)
  Sep = (Sep == nil) and UserCSVSeparator or Sep
  Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld
  Rd = (Rd == nil) and UserCSVRightDelimiter or Rd
local separator = (separator == nil) and Sep or separator
  local leftdelimiter = (leftdelimiter == nil) and Ld or leftdelimiter
  local rightdelimiter = (rightdelimiter == nil) and Rd or rightdelimiter
  local result={}
  if leftdelimiter ~= '' and rightdelimiter ~= '' then
  string.gsub(string2parse,
 leftdelimiter..(.-)..rightdelimiter, function(a)
 table.insert(result,a) end )
  else
result=string.split(string2parse,separator)
  end
  return result
 end
 
 
 I would like to benefit from the second function, but I want the
 application was applicable even LuaLaTeX
 You need the lualibs package, which imports some of the extended lua
 librarires from ConTeXt, since string.split() is not a standad lua
 function.
 
 Regards,
   Khaled
 
 
 Thanx Jaroslav
 
 
 
 
 Dne 5.6.2010 22:19, Jaroslav Hajtmar napsal(a):
 Hi,
 I did a Lua application for ConTeXt, and now I wanted to adapt it
 to work even LuaLaTeX.
 On what needs to be careful? Compiling  by LuaLaTeX specific
 messages appear as if the Lua in LuaLaTeX didnt know some Lua
 commands (i.e. split, find  ).
 
 On what needs to be careful generaly when programming applications
 for LuaLaTeX?
 
 Thanx Jaroslav
 ___
 
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 
 ___
 If your question is of interest to others as well, please add an entry to 
 the Wiki!
 
 maillist : ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] latest bugs (was: dodosetreference undefined)

2010-06-06 Thread Alan BRASLAU
On Saturday 05 June 2010 15:34:11 Alan BRASLAU wrote:
 ! Undefined control sequence.
 \dopagereference [#1]-\dodosetreference
  \s!page {#1}{}{}

is now defined.

Nevertheless, there are many bugs in the new minimals (beta)
indexes, lists, table of contents, bookmarks, references, bibliography...

Alan

! Undefined control sequence.
argument \currentnestedformulasattribute 
   
\theformuladestinationattribute ...ionattribute #1
  \glet #1\relax \fi \fi \fi 
\dohandlecurrentformulareferences ...lasattribute 
  \fi 
\doplacecurrentformulanumber ...formulareferences 
  \labeltexts 
\currentformul...
argument ...spaces \doplacecurrentformulanumber 
  \unskip 
\flushbothlabeltexts #1#2#3-#1#3
 #2
...
l.32\stopalign
\stopformula

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 3. Re: \MPpos, pxy, initialize_box(), oh, my! (Hongwen Qiu)

2010-06-06 Thread Adam Fuller

hmm, that's interesting.  the source of the metafun manual is a logical place 
to look... hadn't thought of that, but where can i find it?  i searched the 
source browser for metafun and metafun.tex to no avail.  the challenge of 
learning a new system like context is like cooking out of someone else's 
kitchen: everything you need is probably there somewhere, it's just a matter of 
knowing where to look.

yes, i'd like to know how this family of macros---\fpos, \tpos, mpos:box and 
mpos:par and friends, etc.---work, and what information you can get from them.  
the only mention of these on this mailing list seems to be that bunch of 
messages you forwarded, which was back in 2008.  if i can get a bit of a 
kickstart toward figuring them out, i'd be compelled to put the basics in the 
wiki.

assuming mpos:box and mpos:par were some sort of built-in MPgraphics, i 
compiled the following short context document, where mpos:box and mpos:par had 
no effect :(

\setupMPvariables[mpos:box][linecolor=darkred]
\setupMPvariables[mpos:par][linecolor=darkred]

\startpositionoverlay{testing_paragraph_outline}
\setMPpositiongraphic{pos1}{mpos:box}{self=pos1}
\setMPpositiongraphic{pos1}{mpos:par}{self=pos1}
\stoppositionoverlay

\defineoverlay[mylayer][\positionoverlay{testing_paragraph_outline}]
\setupbackgrounds[page][background=mylayer]

\starttext
\fpos{pos1}Something special.\tpos{pos1}
\stoptext


On 6/06/2010 12:34 a.m., ntg-context-requ...@ntg.nl wrote:

Date: Sat, 05 Jun 2010 19:12:28 +0800
From: Hongwen Qiuqiuhong...@gmail.com
To:ntg-context@ntg.nl
Subject: Re: [NTG-context] 3. Re: \MPpos, pxy, initialize_box(), oh
my! (Hongwen Qiu)
Message-ID:4c0a311c.6010...@gmail.com
Content-Type: text/plain; charset=iso-8859-1; Format=flowed

? 2010?06?05? 10:56, Adam Fuller ??:

  my initial post had a mistake:  i meant to refer to the/Metafun/
  manual, not the Metapost manual.  that probably didn't help.

Actually, I know that you mean the/Metafun/  manual.

  i guess what i should have said is, i know that pxy can give me the
  bounding/box/  (the rectangle with the maximum horizontal and vertical
  extents of its contents, be they set in horizontal or vertical mode),
  but can it give me the subset of that, the bounding/path/, if you
  will, when the contents are text which flows over several lines.  the
  bounding/path/  may not be rectangular, although it will be something
  like the union of the bounding boxes of the text's individual lines.

So now, I understand what mean.

  i think if you look at the correct reference, the difference of the
  effects is clear.  i think the challenge is that you don't know where
  the line breaks will occur until you typeset it.   --adam

And the source code from the manual may help you:

\setupMPvariables[mpos:box][linecolor=darkred]
\setupMPvariables[mpos:par][linecolor=darkred]

\startpositionoverlay{backgraphics}
\setMPpositiongraphic{A-3}{mpos:box}{self=A-3}
\setMPpositiongraphic{A-4}{mpos:box}{self=A-4}
\setMPpositiongraphic{b:A-5}{mpos:par}{self=A-5}
\setMPpositiongraphic{b:A-6}{mpos:par}{self=A-6}
\stoppositionoverlay

\fpos {A-5} Because the text must be laid on top of
the graphic, the graphic must precede the first word in the
typeset stream or it must be positioned on a separate layer.
In the latter case it can be calculated directly after the
paragraph is typeset, but in the former case a second pass
is needed. \tpos {A-5}

Given the above code, I think you can get some information about the
horizontal and vertical pos of texts from \fpos and \tpos. And the
mpos:par is defined in anch-pgr.mkii and anch-pgr.mkiv. But I haven't
dig into the code which implement mpos:par. Hope you can find useful
information there.

And hope the following message I just searched out will help you too:

http://archive.contextgarden.net/message/20080107.024554.314d9fee.ca.html
-- next part --
An HTML attachment was scrubbed...
URL:http://www.ntg.nl/pipermail/ntg-context/attachments/20100605/66da92a8/attachment-0001.html

attachment: adam_fuller.vcf___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 3. Re: \MPpos, pxy, initialize_box(), oh, my! (Hongwen Qiu)

2010-06-06 Thread Taco Hoekwater

Adam Fuller wrote:
hmm, that's interesting.  the source of the metafun manual is a logical 
place to look... hadn't thought of that, but where can i find it?  


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

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] updating context don´t work anymore on mac os x snow leopard

2010-06-06 Thread Mojca Miklavec
On Sat, Jun 5, 2010 at 14:59, Bernhard Rosensteiner wrote:

 ok, now i get an error: MTXrun | there is something wrong with your system 
 (see attachment)

Weird. I also get:

MTXrun | fileio: variable 'SELFAUTOLOC' set to '/Users/mojca/context/bin'
MTXrun | fileio: variable 'SELFAUTODIR' set to '/Users/mojca/context'
MTXrun | fileio: variable 'SELFAUTOPARENT' set to '/Users/mojca'
MTXrun | fileio: variable 'TEXMFCNF' set to
'{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}'
MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known)
MTXrun | forcing cache reload
MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known)
MTXrun | there is something wrong with your system
MTXrun | using script: ./bin/mtx-update.lua

and there are some other problems. Indeed I get:

MTXrun | run: mktexlsr
sh: mktexlsr: command not found
MTXrun | run: luatools --generate
sh: luatools: command not found
MTXrun | update: done
MTXrun | state: saved

once I remove TeX Live from PATH.

Something seems to be fatally broken. In particular - Hans, I don't
think that the following variable is properly set:
MTXrun | preset : TEXMFOS = /Users/mojca/context/tex//Users/mojca/context

It used to be:

MTXrun | preset : TEXPATH = /Users/mojca/context/tex
MTXrun | preset : TEXOS   = texmf-osx-64
MTXrun | preset : TEXMFOS = /Users/mojca/context/tex/texmf-osx-64

Now it is:

MTXrun | preset : TEXPATH = /Users/mojca/context/tex
MTXrun | preset : TEXOS   = /Users/mojca/context
MTXrun | preset : TEXMFOS = /Users/mojca/context/tex//Users/mojca/context

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] updating context don´t work anymore on mac os x snow leopard

2010-06-06 Thread Mojca Miklavec
On top of all that I also get (using an old mtx-update):

TeXExec | using mp engine mpost
TeXExec | using mps format path /Users/mojca/context/test/tex/texmf-osx-64/web2c
TeXExec | generating mps format metafun
This is MetaPost, version 1.211 (kpathsea version 6.0.0dev) (INIMP)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/metafun.mp
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-base.mp
Preloading the plain mem file, version 0.63)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-tool.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-spec.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-core.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-page.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-text.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-txts.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-shap.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-butt.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-char.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-step.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-grph.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-figs.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-mlib.mp)
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-grid.mp
(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-form.mp
! I can't find file `string'.
l.81 input string

Please type another input file name:

even though (when I go to a new terminal and set the path properly):

 kpsewhich string.mp
/Users/mojca/context/test/tex/texmf/metapost/base/string.mp


This is followed by

loading : ConTeXt Backend Macros / PDF
)
! I can't find file `lpdf-pdx.mkiv'.
to be read again
   \relax
l.90 \loadmarkfile{lpdf-pdx}
 % might be merged into lpdf-ini

But this might only be a side-effect of something else (file exists).

It might be a bit difficult to reproduce - I'm using a slightly older
mtx-update.lua (but I can send it if anyone is interested).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] latest bugs

2010-06-06 Thread Hans Hagen

On 6-6-2010 3:54, Alan BRASLAU wrote:

On Saturday 05 June 2010 15:34:11 Alan BRASLAU wrote:

! Undefined control sequence.
\dopagereference [#1]-\dodosetreference
  \s!page {#1}{}{}


is now defined.

Nevertheless, there are many bugs in the new minimals (beta)
indexes, lists, table of contents, bookmarks, references, bibliography...

Alan

! Undefined control sequence.
argument  \currentnestedformulasattribute

   ^

s needs to be removed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] updating context don´t work anymor e on mac os x snow leopard

2010-06-06 Thread Hans Hagen

On 6-6-2010 4:29, Mojca Miklavec wrote:


MTXrun | preset : TEXPATH =  /Users/mojca/context/tex
MTXrun | preset : TEXOS   =  texmf-osx-64
MTXrun | preset : TEXMFOS =  /Users/mojca/context/tex/texmf-osx-64

Now it is:

MTXrun | preset : TEXPATH =  /Users/mojca/context/tex
MTXrun | preset : TEXOS   =  /Users/mojca/context


strange

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] updating context don´t work anymor e on mac os x snow leopard

2010-06-06 Thread Taco Hoekwater

Mojca Miklavec wrote:

(/Users/mojca/context/test/tex/texmf-context/metapost/context/base/mp-form.mp

/Users/mojca/context/test/tex/texmf/metapost/base/string.mp


This is not the same directory, so probably a path search variable is
wrong. That's about all I can say about it, sorry.

Hans has reworked luatools to be a simple stub to mtx-base.lua (so that
only mtxrun.lua remains as a large lua file) but this is tricky because
of initialization orders etc. He is busy working on the current
problems.


Best wishes,
Taco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Lua in LuaLaTeX is diferent??

2010-06-06 Thread Jaroslav Hajtmar

Hi, Hans
Thanks a lot for advice and inspiration. With your contribution of my 
applications running under LuaPlain well below LuaLaTeX :-).
Application process CSV tables and allows you to easily print the data 
in CSV tables (mailmerges, cards, etc). Now I do not know whether 
somebody else will be interested in my application. ConTeXt uses the few 
people around me. Therefore, I try to modify it to LuaTeXu and LuaPlain. 
I think I'm just a lousy programmer, and therefore do not anticipate 
that the application could become a larger library, you could use 
others.  Thanks again for your time and valuable advice

Have a nice day
Jaroslav




Dne 6.6.2010 13:13, Hans Hagen napsal(a):

On 5-6-2010 10:19, Jaroslav Hajtmar wrote:

Hi,
I did a Lua application for ConTeXt, and now I wanted to adapt it to
work even LuaLaTeX.
On what needs to be careful? Compiling by LuaLaTeX specific messages
appear as if the Lua in LuaLaTeX didnt know some Lua commands (i.e.
split, find  ).

On what needs to be careful generaly when programming applications for
LuaLaTeX?


In context there is quite some lua code that can be used by users for 
their applications. The l-*.lua files can considered to be more 
general libraries and most ofthat is unlikely to change (extended for 
sure). At some point I will make a manual for that. Of course you can 
always load such modules using 'require'.


Using other context lua code outside context is more tricky as it also 
assumes the system to be designed in a certain way. I hope to have 
much if that stable within the next few years. As long as one does not 
mess with the namespaces not much harm can be done.


I'm not following lualatex dev but i know that it uses some of the 
font code. The reason that this code can be shared is that it's sort 
of isolated and specific functionality needed is wrapped up in 
*-dum.lua modules. Probbably some stripping down will happen to 
prevent clashes etc. Here the reference is luatex-plain.tex (and 
luatex-fonts.tex) in the context distribution.


Also, the reverse is also tricky: lualatex speicific code is unlikely 
to work in context.


BTW, Sharing macro code between context and latex is non trivial 
either as both are different systems and developed completely 
independent.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] XITS fonts - second beta

2010-06-06 Thread Khaled Hosny
I just uploaded a second beta of XITS fonts, this mainly introduces XITS
text fonts, regular, bold, italic and bold italic. No changes to the
math font. This release features also a rudimentary user guide.

The text fonts provide to features over STIX fonts:
* oldstyle figures, through 'onum' feature
* text fractions, through 'frac' feature

As usual, it is available from github:
http://github.com/khaledhosny/xits-math/downloads

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Removing Introduction section number

2010-06-06 Thread Vyatcheslav Yatskovsky

Hello,

It might be 100 time this question appears on the list, but I cannot 
find the answer.


I need Introduction to have no number, and next section to have number 
1, so on. My current solution gives me number 2, instead.


Please, look what should be done with my code:

\starttext
\setupindenting[yes, big, first]
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]

\setuphead[section][number=no]
\section{INTRODUCTION} % should have no number

The syllabus on each discipline is a must for successful teaching 
process organization according to the European Credit Transfer System. 
Teachers and students are to be familiarized with it. Grading system is 
an integral part of the syllabus and provides for assessment of 
student’s knowledge and skills during current, module and semester checks.


Grading procedure is performed according to the national grading scale 
and European Credit Transfer System grading scale.


\setuphead[section][number=yes]
\section{REFERENCE NOTES}  % should have number 1

\subsection{Aim of the discipline}  % 1.1

\subsection{Tasks for learning the discipline} % 1.2

\section{DISCIPLINE CONTENT}  % should have number 2

...

\stoptext
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Removing Introduction section number

2010-06-06 Thread Wolfgang Schuster

Am 06.06.10 22:57, schrieb Vyatcheslav Yatskovsky:

Hello,

It might be 100 time this question appears on the list, but I cannot 
find the answer.


I need Introduction to have no number, and next section to have number 
1, so on. My current solution gives me number 2, instead.


1. Use \subject for the introduction.

2. Use ConTeXt’s document strcuture:

\setuphead[section][textstyle=WORD]

\starttext

\startfrontmatter

\section{Introduction}

...

\stopfrontmatter

\startbodymatter

\section{Reference notes}

...

\stopbodymatter

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Removing Introduction section number

2010-06-06 Thread Yury G. Kudryashov
Vyatcheslav Yatskovsky wrote:

 Hello,
 
 It might be 100 time this question appears on the list, but I cannot
 find the answer.
 
 I need Introduction to have no number, and next section to have number
 1, so on. My current solution gives me number 2, instead.
There are two cases:
1. You want Introduction in the table of contents. Then you should copy 
section to another head, and setup it with number=no (have no time to test):

\definehead[secnonum][section]
\setuphead[secnonum][number=no]
\secnonum{Introduction}

2. You don't want Intruduction in the table of contents. Then just use 
\subject{Introduction}.

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cyrillic in Mark IV

2010-06-06 Thread Yury G. Kudryashov
Wolfgang Schuster wrote:

 Am 06.06.10 10:59, schrieb Rogutės Sparnuotos:
 !define font: font with name cmuserif-normal-normal is not found
 !define font: unknown font cmuserif-normal-normal, loading aborted
 !define font: unable to define cmuserif-normal-normal as
 \*cyr12ptrmtf*
 You're right but this is a problem with the regular style of cmu serif,
 the font specifies it's own weight as medium but mkiv expects normal.
Can I workaround this in MKIV?
 As you can see here the mechanism works but the results are font
 dependant.
 
 \definetypeface[cyr][rm][specserif][CMU Serif]
 \setupbodyfont[cyr, 12pt]
 \starttext
 \bf Калейдоскоп
 \stoptext
Thanks, bold font works.

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to not propagate head settings?

2010-06-06 Thread Vyatcheslav Yatskovsky
Interesting, when I set any property of a section, the subsections and 
subsubsections are affected too. This is not bad, but is there a key to 
disable such a propagation?


In the following example I need to turn off textstyle and restore align:

\setuphead[section][textstyle=WORD, style={\bfa}, align=center]
\setuphead[subsection][textstyle={}, style={\bf}, align=right]

Regards,
Vyatcheslav
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Removing Introduction section number

2010-06-06 Thread Alan BRASLAU
On Sunday 06 June 2010 23:20:29 Yury G. Kudryashov wrote:
 1. You want Introduction in the table of contents. Then you should copy
 section to another head, and setup it with number=no (have no time to
 test):
 
 \definehead[secnonum][section]
 \setuphead[secnonum][number=no]
 \secnonum{Introduction}

This is flexible, but is this really elegant?
Would it not be better (i.e. intuitive) to be able to simply type:
\section [number=no] {Introduction}
After all, one feature that I *really* like about ConTeXt is inheritance and 
default options that can be fixed through \setupsomething, or through a case 
by case basis.



Unnumbered sections is the default within
\startfrontmatter
\stopfrontmatter

However, it is quite logical to also have unnumbered Introduction (and 
Conclusions) in the body of the work that are to appear in the table of 
contents as well.

In a work using \part, the same can apply to \chapter.

Alan
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to not propagate head settings?

2010-06-06 Thread Wolfgang Schuster

Am 06.06.10 23:39, schrieb Vyatcheslav Yatskovsky:

Interesting, when I set any property of a section, the subsections and
subsubsections are affected too. This is not bad, but is there a key
to disable such a propagation?

In the following example I need to turn off textstyle and restore align:

\setuphead[section][textstyle=WORD, style={\bfa}, align=center]
\setuphead[subsection][textstyle={}, style={\bf}, align=right]


Not untill Hans change the parameter handling in the section code,
currently parts use the global settings from \setupheads, chapter
the settings from \part etc.

When you make a example you will notice that \subsubsection use
the values from your \subsection setup for style and alignment.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Cyrillic in Mark IV

2010-06-06 Thread Hans Hagen

On 6-6-2010 11:34, Yury G. Kudryashov wrote:

Wolfgang Schuster wrote:


Am 06.06.10 10:59, schrieb Rogutės Sparnuotos:

!define font: font with name cmuserif-normal-normal is not found
!define font: unknown font cmuserif-normal-normal, loading aborted
!define font: unable to define cmuserif-normal-normal as
\*cyr12ptrmtf*

You're right but this is a problem with the regular style of cmu serif,
the font specifies it's own weight as medium but mkiv expects normal.


At some point I will add an mechanism for adding font characteristics 
for fonts that lack them. (Something Wolfgang and I need to discuss some 
time.)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] XITS fonts - second beta

2010-06-06 Thread Hans Hagen

On 6-6-2010 9:43, Khaled Hosny wrote:

I just uploaded a second beta of XITS fonts, this mainly introduces XITS
text fonts, regular, bold, italic and bold italic. No changes to the
math font. This release features also a rudimentary user guide.

The text fonts provide to features over STIX fonts:
* oldstyle figures, through 'onum' feature
* text fractions, through 'frac' feature


and:

* sane filenames


As usual, it is available from github:
http://github.com/khaledhosny/xits-math/downloads


ok, i adapted the typescripts

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to not propagate head settings?

2010-06-06 Thread Vyatcheslav Yatskovsky
Thanks, current state of affairs is not bad (maybe even better then 
not-propagating alternative), but it's always good to have another 
option, like


\setuphead[section][textstyle=WORD, style={\bfa}, align=center, 
propagate=no]

\setuphead[subsection][style={\bf}]

:)


Another question - I try to make a macro for a filled in date.

Empty date is ok
\def \FillInDate {\hl[2]\hl[4]\hskip1mm 20\hl[2]\hskip.5mm}

\starttext
\FillInDate
\stoptext

But my printing date under lines is a mess. In particular, I want to 
add a bit more space around numbers, but anything I do, the space is not 
underlined for some strange reason. In contrary, month and year are 
glued together, while I want them to be separated by space.


\def \FilledDate#1#2#3 {\underbar{ #1 }\hskip5mm\underbar{#2}\hskip5mm 
\underbar{#3}\hskip.5mm}


\starttext
\FilledDate{06}{05}{2010}
\stoptext

--
Best Regards,
Vyatcheslav Yatskovsky
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Removing Introduction section number

2010-06-06 Thread Vyatcheslav Yatskovsky

There are two cases:
1. You want Introduction in the table of contents. Then you should copy
section to another head, and setup it with number=no (have no time to test):

\definehead[secnonum][section]
\setuphead[secnonum][number=no]
\secnonum{Introduction}

2. You don't want Intruduction in the table of contents. Then just use
\subject{Introduction}.


Thank you too!

I do want Introduction to be in the contents! Maybe, its easier to setup 
\subject so that it will be included, then to invent new keywords?


--
Best Regards,
Vyatcheslav Yatskovsky
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Removing Introduction section number

2010-06-06 Thread Vyatcheslav Yatskovsky


+1 for  \section [number=no] {Introduction}

This was my first guess to try, and it is so convinient!

:)


--
Best Regards,
Vyatcheslav Yatskovsky
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to not propagate head settings?

2010-06-06 Thread Hans Hagen

On 7-6-2010 12:17, Vyatcheslav Yatskovsky wrote:

Thanks, current state of affairs is not bad (maybe even better then
not-propagating alternative), but it's always good to have another
option, like

\setuphead[section][textstyle=WORD, style={\bfa}, align=center,
propagate=no]
\setuphead[subsection][style={\bf}]


you can try parent= but it might break other propagation


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] git repo is not updated?

2010-06-06 Thread Marius
On Sun, Jun 6, 2010 at 9:29 AM, Patrick Gundlach patr...@gundla.ch wrote:

 Am 05.06.2010 um 18:25 schrieb Mojca Miklavec:

 On Sat, Jun 5, 2010 at 11:04, Hans Hagen pra...@wxs.nl wrote:
 On 5-6-2010 10:07, Marius wrote:

 Hello,

 I see that context minimals is at 2010-06-05 version, hovewer git repo
 [1] is last updated on 2010-05-29.


 http://contextgarden.wordpress.com/2009/07/29/news-from-the-git-repository/

 the repos updates at midnight (so, once per day)

 But I'm not sure when Patrick's repository updates.

 at midnight ;-)

 But I am surprised that there is actually a user out there. Beware, the 
 repository is still experimental.

So, experimental means no more updates :) It's now passed more then 24
ours from my first email and still the git repository is not updated.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Multiple pleas for help (long)

2010-06-06 Thread Scott Steele

 Am 01.06.10 00:29, schrieb Scott Steele:

 If anyone has any insight on how to keep the footnotes from having

 their numbers in the margin and from having line-breaks after each

 one, that is the only issue from the original email that is still

 unsolved, I think.



 ———



 In Latex, \fancybreak was part of a package called, I believe,

 fancyheader or fancypage. It produced a break frequently seen in

 published prose (I'm currently reading {\em Bluebeard} where Kurt

 Vonnegut uses it liberally) with significant vertical space between

 two paragraphs and, centered both in that vertical space as well as

 horizontally, a number of well-spaced marks. There are usually 3

 marks, and they are frequently asterisks or traditional

 dingbats/fleurons. This sort of break is generally used when the

 author wishes to indicate a break more significant than a change in

 paragraph but short of an outright new chapter.



 \def\FancyBreak{\par\blank\hfill* * *\hfill\hfill\par\blank}

 \starttext

 \input tufte

 \FancyBreak

 \input tufte

 \stoptext



 I don't understand why I need the two consecutive \hfill's at the end

 for the marks to be centered, but the definition works well for me.


 \unprotect


 \def\fb{fb}


 \getparameters

[\fb]

[\c!spacebefore=,

\c!spaceafter=]


 \def\fancybreakparameter#1%



 {\csname\fb\ifcsname\fb\currentfancybreak#1\endcsname\currentfancybreak\fi#1\endcsname}


 \def\setupfancybreak

{\dodoubleempty\dosetupfancybreak}


 \def\dosetupfancybreak[#1][#2]%

{\ifsecondargument

\getparameters[\fb#1][#2]%

\else

\getparameters[\fb][#1]%

\fi}


 \def\definefancybreak

{\dodoubleempty\dodefinefancybreak}


 \def\dodefinefancybreak[#1][#2]%

{\ifsecondargument

\getparameters[\fb#1][#2]%

\fi

\setvalue{#1}{\dofancybreak{#1}}}


 \def\dofancybreak#1%

{\begingroup

\edef\currentfancybreak{#1}%

\everyvbox{\raggedcenter}%

\dowithnextbox

{\blank[\fancybreakparameter\c!spacebefore]%

\flushnextbox

\blank[\fancybreakparameter\c!spaceafter]%

\endgroup}

\normalvbox}


 \definefancybreak[fancybreak]


 \protect


 \starttext

\input knuth

\fancybreak{$* * *$}

\input ward

\stoptext


 Wolfgang



 ___




Thanks a lot for all of that! I'm having trouble getting it to run, though.
I tried copy/pasting it into the Context Live site but get

! Argument of \fancybreakparameter has an extra }.
inserted text
\par
to be read again
   }
\edefconvertedargument #1#2-\edef #1{#2}
 \edef #1{\detokenize \...@ea {#1}}
\docomplexdoblank ...convertedargument \ascii {#1}
  \ifcsname \??bo \??bo \asc...

\dodowithnextbox ...reakparameter \c!spacebefore ]
  \flushnextbox \blank [\fan...
l.52 \fancybreak{$* * *$}

?
! Emergency stop.
inserted text
\par
to be read again
   }
\edefconvertedargument #1#2-\edef #1{#2}
 \edef #1{\detokenize \...@ea {#1}}
\docomplexdoblank ...convertedargument \ascii {#1}
  \ifcsname \??bo \??bo \asc...

\dodowithnextbox ...reakparameter \c!spacebefore ]
  \flushnextbox \blank [\fan...
l.52 \fancybreak{$* * *$}



Thanks,

Scott
-
This is a work of fiction.  Names, characters, places, and incidents either
are the product of the writer's imagination or are used fictitiously, and any
resemblance to actual persons, living or dead, businesses, companies,
events, or locales is entirely coïncidental.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___