ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* clds and nesting
@ 2010-03-10 10:50 Philipp Gesang
  2010-03-10 21:30 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Gesang @ 2010-03-10 10:50 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1116 bytes --]

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

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: clds and nesting
  2010-03-10 10:50 clds and nesting Philipp Gesang
@ 2010-03-10 21:30 ` Hans Hagen
  2010-03-11  9:40   ` Philipp Gesang
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2010-03-10 21:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Philipp Gesang

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: clds and nesting
  2010-03-10 21:30 ` Hans Hagen
@ 2010-03-11  9:40   ` Philipp Gesang
  0 siblings, 0 replies; 3+ messages in thread
From: Philipp Gesang @ 2010-03-11  9:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2570 bytes --]

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

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-11  9:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10 10:50 clds and nesting Philipp Gesang
2010-03-10 21:30 ` Hans Hagen
2010-03-11  9:40   ` Philipp Gesang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).