ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: clds and nesting
Date: Thu, 11 Mar 2010 10:40:41 +0100	[thread overview]
Message-ID: <20100311094041.GB28075@aides> (raw)
In-Reply-To: <4B980F7A.9040305@wxs.nl>


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

      reply	other threads:[~2010-03-11  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-10 10:50 Philipp Gesang
2010-03-10 21:30 ` Hans Hagen
2010-03-11  9:40   ` Philipp Gesang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100311094041.GB28075@aides \
    --to=pgesang@ix.urz.uni-heidelberg.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).