ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Namespacing again
@ 2001-12-13 21:45 Marco Kuhlmann
  2001-12-14 11:13 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Kuhlmann @ 2001-12-13 21:45 UTC (permalink / raw)


    Hi again,

that namespacing stuff really confuses me. Now I wanted to
provide a default layout for an article, with

\def\setuparticle{%
  \dosingleargument\dosetuparticle}

\def\dosetuparticle[#1]{%
  \getparameters[article@][#1]}

\setuparticle
  [title=,
   author=,
   date={\currentdate[year,--,month,--,day]}]

I always thought that this would create values article@title,
article@author and article@date, which could be accessed by a
command like \getvalue{article@date}. However, this does not
seem to be the case (cf. my previous mails about letters). Why?

    Cheers,
    Marco

-- 
Marco Kuhlmann                             marco.kuhlmann@gmx.net


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

* Re: Namespacing again
  2001-12-13 21:45 Namespacing again Marco Kuhlmann
@ 2001-12-14 11:13 ` Hans Hagen
  2001-12-15 23:45   ` Marco Kuhlmann
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2001-12-14 11:13 UTC (permalink / raw)
  Cc: ConTeXt ML

At 09:45 PM 12/13/2001 +0000, Marco Kuhlmann wrote:
>     Hi again,
>
>that namespacing stuff really confuses me. Now I wanted to
>provide a default layout for an article, with
>
>\def\setuparticle{%
>   \dosingleargument\dosetuparticle}
>
>\def\dosetuparticle[#1]{%
>   \getparameters[article@][#1]}
>
>\setuparticle
>   [title=,
>    author=,
>    date={\currentdate[year,--,month,--,day]}]
>
>I always thought that this would create values article@title,
>article@author and article@date, which could be accessed by a
>command like \getvalue{article@date}. However, this does not
>seem to be the case (cf. my previous mails about letters). Why?

because behind the screens title becomes titel (currently low level context 
is dutch, but the principle is the same for any low level interface language).

just use \getrawparameters to bypass this translation:

   \def\setuparticle{\dodoubleempty\getrawparameters[article@]}

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: Namespacing again
  2001-12-14 11:13 ` Hans Hagen
@ 2001-12-15 23:45   ` Marco Kuhlmann
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Kuhlmann @ 2001-12-15 23:45 UTC (permalink / raw)


Hans Hagen wrote (2001-12-14 12:13:46 +0100):

> just use \getrawparameters to bypass this translation:
> 
>   \def\setuparticle{\dodoubleempty\getrawparameters[article@]}

Thank you very much, that works. :-)

    Marco

-- 
Marco Kuhlmann                             marco.kuhlmann@gmx.net


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

end of thread, other threads:[~2001-12-15 23:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-13 21:45 Namespacing again Marco Kuhlmann
2001-12-14 11:13 ` Hans Hagen
2001-12-15 23:45   ` Marco Kuhlmann

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).