Re: [NTG-context] clds and nesting

2010-03-11 Thread Philipp Gesang
On 2010-03-10 22:30:34, Hans Hagen wrote:
 On 10-3-2010 11:50, Philipp Gesang wrote:
 Hi all,
 
 
 how do I get proper nesting with clds?  Consider this:
 
 --8--
 
 context.placefigure(
  none,
  function()
  context.framed( {
  frame=on,
  align=middle
  },
  function() context.input(knuth) end
  )
  end
 )
 
 context.par()
 
 function text ()
  context.framed( {
  frame=on,
  align=middle
  },
  function() context.input(knuth) end
  )
 end
 
 context.placefigure(
  none,
  function () text() end
 )
 
 --8--
 
 in both cases the text is displayed but framed() doesn't seem to be
 evaluated.  What did I miss?
 
 I changed the implementation so that nesting is better supported ...
 can you test the beta? (I probably need to fix some other things
 now)

Thanks, works flawlessly!


Philipp

PS: The example is on the wiki now.

PPS:Where is demo-cld.cld gone?  I have one on my disk because it
came with texlive, but according to the wiki
(http://wiki.contextgarden.net/Context_2009.10.27#Deleted_files)
you threw it out the other day.



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

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpseG8zGfaqh.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] clds and nesting

2010-03-10 Thread Philipp Gesang
Hi all,


how do I get proper nesting with clds?  Consider this:

--8--

context.placefigure(
none,
function() 
context.framed( {
frame=on,
align=middle
},
function() context.input(knuth) end
)
end
)

context.par()

function text ()
context.framed( {
frame=on,
align=middle
},
function() context.input(knuth) end
)
end

context.placefigure(
none,
function () text() end  
   
)

--8--

in both cases the text is displayed but framed() doesn't seem to be
evaluated.  What did I miss?

Thanks for any hints, and big thanks to Hans for creating the cld
interface.


Philipp


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpd8quWOfx3p.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] clds and nesting

2010-03-10 Thread Hans Hagen

On 10-3-2010 11:50, Philipp Gesang wrote:

Hi all,


how do I get proper nesting with clds?  Consider this:

--8--

context.placefigure(
 none,
 function()
 context.framed( {
 frame=on,
 align=middle
 },
 function() context.input(knuth) end
 )
 end
)

context.par()

function text ()
 context.framed( {
 frame=on,
 align=middle
 },
 function() context.input(knuth) end
 )
end

context.placefigure(
 none,
 function () text() end
)

--8--

in both cases the text is displayed but framed() doesn't seem to be
evaluated.  What did I miss?

Thanks for any hints, and big thanks to Hans for creating the cld
interface.


I changed the implementation so that nesting is better supported ... can 
you test the beta? (I probably need to fix some other things now)


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