ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jaroslav Hajtmar <hajtmar@gyza.cz>
To: ntg-context@ntg.nl
Subject: Re: Problem with \writebetweenlist
Date: Sat, 25 Feb 2012 12:23:00 +0100	[thread overview]
Message-ID: <4F48C494.1000002@gyza.cz> (raw)
In-Reply-To: <4F48BFAF.3070909@gyza.cz>

Just one a notice.
Using the standalone version can not be resolved even Hans's example in 
wikipedia at
http://wiki.contextgarden.net/Reference/en/writebetweenlist

Jaroslav Hajtmar



Dne 25.2.2012 12:02, Jaroslav Hajtmar napsal(a):
> Thanx Wolfgang
> for reply, but it does not work still.
> I am sending example whitch works in ConTeXt MKIV in TeXlive 2011, but 
> does not work in standalone MKIV (minimals).
> Command \writebetweenlist probably works differently than the previous 
> version.
>
> Here is minimal example:
>
> \setupinteraction[state=start]
>
> \definehead[Ikap][section]
> \definehead[IIkap][subsection]
>
> \definecombinedlist[dpcontent][Ikap, IIkap][criterium=all]
>
> \def\SECTION[#1] #2\par{{\csname#1kap\endcsname{#2}}\par}
>
> \def\RSECTION[#1][#2] #3\par{\reference[#2]{#3}%
>         \writebetweenlist[Ikap][location=here]{\blank}%
>         \writebetweenlist[#1kap][location=here]{\hskip2em {\bf 
> \ref[t][#2]} \hfill \at[#2]}%
>         \writebetweenlist[#1kap][location=here]{\blank[small]}%
>     \title{#3}\par%
> }
>
>
> \starttext
>
> \placedpcontent[alternative=b]
>
> \RSECTION[I][refsextionXXX] Section XXX
>
> \SECTION[I] Section One
>
> \SECTION[II] Subsection
>
> \SECTION[II] Subsection
>
> \SECTION[I] Section One
>
> \SECTION[II] Subsection
>
> \SECTION[II] Subsection
>
> \RSECTION[II][refsextionYYY] Section YYY
>
> \SECTION[I] Subsection
>
> \SECTION[II] Subsection
>
> \SECTION[I] Section Two
>
> \SECTION[II] Subsection
>
> \SECTION[II] Subsection
>
> \SECTION[I] Section Three
>
> \stoptext
>
>
>
> Dne 25.2.2012 8:24, Wolfgang Schuster napsal(a):
>> Am 24.02.2012 um 23:19 schrieb Jaroslav Hajtmar:
>>
>>> Thanks Hans
>>> for the reply. Can you please advise where to stop this group?
>>> That is where to put  \endgroup?
>>> I can not find this place…
>> You don’t \endgroup because it’s are lady in \strc_lists_inject_yes 
>> but the \begingroup
>> has to be at at another place (see below):
>>
>> \def\strc_lists_write_between[#tag][#settings]#command% we can 
>> overload location
>>    {\doif{\namedlistparameter{#tag}\c!state}\v!start
>>      
>> %{\strc_lists_inject_yes[#tag][#settings,\c!type=\s!command][\s!command={#command}]}} 
>>
>>       
>> {\begingroup\strc_lists_inject_yes[#tag][#settings,\c!type=\s!command][\s!command={#command}]}} 
>>
>>
>> Wolfgang
>
> ___________________________________________________________________________________ 
>
> 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
> ___________________________________________________________________________________ 
>
>

___________________________________________________________________________________
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:[~2012-02-25 11:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-24 11:34 Jaroslav Hajtmar
2012-02-24 21:58 ` Hans Hagen
2012-02-24 22:19   ` Jaroslav Hajtmar
2012-02-25  7:24     ` Wolfgang Schuster
2012-02-25 11:02       ` Jaroslav Hajtmar
2012-02-25 11:23         ` Jaroslav Hajtmar [this message]
2012-02-25 16:52         ` Wolfgang Schuster
2012-02-25 17:55           ` Jaroslav Hajtmar
2012-02-25 18:43             ` Wolfgang Schuster
2012-02-25 19:03               ` Jaroslav Hajtmar
2012-02-26 16:28           ` Hans Hagen

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=4F48C494.1000002@gyza.cz \
    --to=hajtmar@gyza.cz \
    --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).