ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* start/stop and sections
@ 2007-08-20 11:18 Hans Hagen
  2007-08-23  4:45 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2007-08-20 11:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

There is now an experimental:

% options :
% dodo    : listtext

\setupsectionworld
   [chapter]
   [before after setups page text number label bookmark]

\startsectionworld[chapter][text={Test}]

\stopsectionworld

Later I will adapt sectioning to working with variables (low level 
issue) but this is what I needed 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: start/stop and sections
  2007-08-20 11:18 start/stop and sections Hans Hagen
@ 2007-08-23  4:45 ` Aditya Mahajan
  2007-08-23  7:16   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2007-08-23  4:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 20 Aug 2007, Hans Hagen wrote:

> Hi,
>
> There is now an experimental:
>
> % options :
> % dodo    : listtext
>
> \setupsectionworld
>   [chapter]
>   [before after setups page text number label bookmark]
>
> \startsectionworld[chapter][text={Test}]
>
> \stopsectionworld
>
> Later I will adapt sectioning to working with variables (low level
> issue) but this is what I needed now -)

Interesting. How do you come up with code like this :)

\def\csnameexpanded#1#2%
{\@EA\@EA\@EA\@EA\@EA\@EA\@EA#1\@EA\@EA\@EA\@EA\@EA\@EA\@EA#2\@EA\@EA\@EA\@EA\@EA\@EA\@EA}


Bookmark does not seem to work correctly. Also can the extra 
grouping (using begingroup) in \startsectionworld be avoided?


\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section]

\def\test{Outside value}
\starttext

\startsectionworld[section][text={Test},bookmark={changed}]

\def\test{Inside value}
This is the first chapter

\stopsectionworld

The value of test is \test.
\stoptext


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


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

* Re: start/stop and sections
  2007-08-23  4:45 ` Aditya Mahajan
@ 2007-08-23  7:16   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2007-08-23  7:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Aditya Mahajan wrote:

> Interesting. How do you come up with code like this :)
> 
> \def\csnameexpanded#1#2%
> {\@EA\@EA\@EA\@EA\@EA\@EA\@EA#1\@EA\@EA\@EA\@EA\@EA\@EA\@EA#2\@EA\@EA\@EA\@EA\@EA\@EA\@EA}

well, i need to make sure that the original title ends up as is

> 
> Bookmark does not seem to work correctly. Also can the extra 
> grouping (using begingroup) in \startsectionworld be avoided?

hm, can you figure out why? anyhow, that will change because the call 
will move elsewhere (key is more there as a reminder)

grouping ... will be optional, but for now i need it; first i need to 
rewrite the core sectioning commands (make them complete var driven)

> \setupinteraction[state=start]
> \placebookmarks[chapter,section,subsection][chapter,section]
> 
> \def\test{Outside value}
> \starttext
> 
> \startsectionworld[section][text={Test},bookmark={changed}]
> 
> \def\test{Inside value}
> This is the first chapter
> 
> \stopsectionworld
> 
> The value of test is \test.
> \stoptext

this is just an exploration -)

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


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

end of thread, other threads:[~2007-08-23  7:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-20 11:18 start/stop and sections Hans Hagen
2007-08-23  4:45 ` Aditya Mahajan
2007-08-23  7:16   ` Hans Hagen

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