ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: "Idris Samawi Hamid ادريس سماوي حامد" <ishamid@colostate.edu>
Cc: ntg-context@ntg.nl, "dev-context@ntg.nl" <dev-context@ntg.nl>
Subject: Re: Feature request: criterium=component
Date: Fri, 25 Nov 2011 11:34:07 +0100	[thread overview]
Message-ID: <4ECF6F1F.2080406@wxs.nl> (raw)
In-Reply-To: <op.v5g5zwcbpw6hmh@ishamid-pc>

On 25-11-2011 00:53, Idris Samawi Hamid ادريس   سماوي حامد wrote:
> Dear inner circle,
>
> I have two components, each a book in its own right, and each with
> multiple \part's, \chapter's, \section's etc. Through products and
> components I have all crossreferences between the two books set up,
> thanks to the mechanisms put in place this fall by Hans.
>
> I compile both components through the product file. Problem: I cannot
> separate the list of Tables in component~1 from those in component~2. So
> a list of Tables in component~1 contains the tables in component~ and
> vice versa.
>
> For TOC I was able to get around this by defining, for component~2,
> mirror section heads with different names but identical functionality to
> those in component~1. But for tables I have not been able to get this
> work-around to work:
>
> http://archive.contextgarden.net/message/20111124.203204.79333c77.en.html
>
> So, in any case, it sames that adding a criterium=component option would
> be the most user-friendly way to handle this kind of case. Is it
> feasible? Thnx in advance and

Incredible what users come up with ... anyhow, it's that I can provide 
this with 10 lines of code, otherwise it was a no-go (unless for a 
project).

\startproduct example-1-product

    \component example-1-component-a
    \component example-1-component-b

\stopproduct

\startcomponent example-1-component-a

     \starttitle[title=Contents]
         \placelist[chapter][criterium=component]
     \stoptitle

     \startchapter[title=Ward]
         \input ward
     \stopchapter

\stopcomponent

\startcomponent example-1-component-b

     \starttitle[title=Contents]
         \placelist[chapter][criterium=component]
     \stoptitle

     \startchapter[title=Zapf]
         \input zapf
     \stopchapter

\stopcomponent

Will be in the next beta. And *you* are going to wikify it!

Hans
-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context

  reply	other threads:[~2011-11-25 10:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24 23:53 Idris Samawi Hamid ادريس   سماوي حامد
2011-11-25 10:34 ` Hans Hagen [this message]
2011-11-26  2:24   ` Idris Samawi Hamid ادريس   سماوي حامد

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=4ECF6F1F.2080406@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=dev-context@ntg.nl \
    --cc=ishamid@colostate.edu \
    --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).