Re: [NTG-context] \getmarking notworking?

2011-01-06 Thread Hans Hagen

On 6-1-2011 4:04, Khaled Hosny wrote:


The following used to work (still working in texlive) but no longer
working (latest minimals), I get the page number and the rule but not
the text. Bug?


sort of ... chapter refers to a section-* name so we need to get the 
parent:


methods[v_current] = function(name,range)
local top = stack[topofstack]
return top and top[parentname(name)] or 
end

(you know where to patch this)

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] \getmarking notworking?

2011-01-06 Thread Khaled Hosny
On Thu, Jan 06, 2011 at 04:53:16PM +0100, Hans Hagen wrote:
 On 6-1-2011 4:04, Khaled Hosny wrote:
 
 The following used to work (still working in texlive) but no longer
 working (latest minimals), I get the page number and the rule but not
 the text. Bug?
 
 sort of ... chapter refers to a section-* name so we need to get the
 parent:
 
 methods[v_current] = function(name,range)
 local top = stack[topofstack]
 return top and top[parentname(name)] or 
 end

Thanks, works now.

 (you know where to patch this)

Indeed :)

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
___