ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: ntg-context@ntg.nl
Subject: Re: nomarking function in MKIV (selector)
Date: Wed, 30 Jun 2010 12:03:30 +0200	[thread overview]
Message-ID: <201006301203.30358.alan.braslau@cea.fr> (raw)
In-Reply-To: <20100630090357.GA30697@gaston.couberia.bzh>

On nomarking functionality in MKIV:

I manage short/long figure captions using a selector:
------------------------------------------------------------------------
\defineselector [caption] [max=2,n=2] % alternate {short}{long} captions

...

\placefigure [here] [fig:reference]
  {\select{caption}
    {short}
    {long}
  }
  {figure}

...

\chapter{Liste des figures}
\start
 \setupselector [caption] [n=1]
 \placelistoffigures [criterium=all]
\stop
------------------------------------------------------------------------

Similarly to
\startchapter [title=long,list=short]
could we have:
\placefigure [here] [fig:reference] [caption={long},list={short}]
  {figure}

Could this coexist with the current syntax:
\placefigure [here] [fig:reference]
  {caption}
  {figure}

Alan

By the way, \select{caption} does not follow the general syntax rule
whereas metadata is contained between []
and text to be typeset between {}
One should thus rather have
\select [caption] {short} {long}
or even
\selectcaption {short} {long}
to be coherent.
___________________________________________________________________________________
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-06-30 10:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29 16:14 nomarking function in MKIV John Devereux
2010-06-29 17:33 ` Peter Münster
2010-06-29 21:03   ` John Devereux
2010-06-30  8:19   ` Alan BRASLAU
2010-06-30  9:03     ` Peter Münster
2010-06-30 10:03       ` Alan BRASLAU [this message]
2010-06-30 22:35     ` Wolfgang Schuster
2010-07-01  8:16       ` Alan BRASLAU
2010-07-01  8:30         ` Wolfgang Schuster
2010-07-01  9:23         ` Peter Münster
2010-07-01  9:44           ` Alan BRASLAU
2010-07-01  9:55             ` luigi scarso
2010-07-01 10:00             ` Thomas A. Schmitz
2010-07-01 10:23               ` luigi scarso
2010-07-01 18:59               ` Alan BRASLAU
2010-07-02  8:18                 ` Thomas A. Schmitz
2010-07-02  9:18                   ` luigi scarso
2010-07-02 11:07                   ` Alan BRASLAU
2010-07-01 10:11             ` Henning Hraban Ramm

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=201006301203.30358.alan.braslau@cea.fr \
    --to=alan.braslau@cea.fr \
    --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).