ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \placeregister[index][compress=yes]  BROKEN  ??
Date: Tue, 29 Jan 2008 17:45:37 +0100	[thread overview]
Message-ID: <479F5831.3080208@elvenkind.com> (raw)
In-Reply-To: <C6AB2C24-2A6D-43CA-A872-B4324C77AD5B@st.estfiles.de>

Steffen Wolfrum wrote:
> In context version 20070417 it works. The next one (2007-07-24) fails.

And here is a document-level patch (mkii mode) that fixes it.
I leave it up to Hans to formalize this properly.

\unprotect

% The standard \mkloadregister takes one 1 argument, not enough
% because the before and after placeregister commands are then
% not executed. Xtended definition:
\def\mkloadregisterX#1#2#3%
   {\doutilities{#1}{\registerparameter\c!file}{#1}{#2}{#3}}

\def\doplaceregister[#1][#2]%
   {\iffirstargument
      \begingroup
      \edef\currentregister{#1}%
      \setupregister[\currentregister][#2]%
      \doifelse{\registerparameter\c!compress}\v!yes % new
         {\chardef\collapseregisterpages\plusone}
         {\chardef\collapseregisterpages\zerocount}%
      \raggedright
      \startcolumns
        [\c!n=\registerparameter\c!n,
         \c!balance=\registerparameter\c!balance,
         \c!align=\registerparameter\c!align]%
      \dontcomplain
      \startpacked[\v!blank]%
      \mkloadregisterX % TH this does it
         \currentregister\dobeforeplaceregister\doafterplaceregister
      \stoppacked
      \stopcolumns
      \endgroup
    \fi}
\protect


Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2008-01-29 16:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-16  9:47 Steffen Wolfrum
2008-01-28 17:45 ` Taco Hoekwater
2008-01-28 19:46   ` Steffen Wolfrum
2008-01-29 16:17   ` Steffen Wolfrum
2008-01-29 16:45     ` Taco Hoekwater [this message]
2008-02-06 21:00       ` 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=479F5831.3080208@elvenkind.com \
    --to=taco@elvenkind.com \
    --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).