ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* trouble with indices
@ 2008-02-17 19:10 Jesse Alama
  2008-02-17 19:39 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse Alama @ 2008-02-17 19:10 UTC (permalink / raw)
  To: ntg-context

I've noticed that with the most recent ConTeXt release I'm unable to
make indices.  This example fails:

  \starttext
  Hello, this \index{copula}is an index.
  \completeindex
  \stoptext

The error I get is:

  chapter         : 1 \headtext {index}
  ! Extra }, or forgotten \endgroup.
  \stoppacked ->\par \ifvmode \egroup 
                                      \ifdim \lastskip =\noparskipsignal \rela...
  
  \doutilities ...protectutilities \unprotect \fi #4
                                                    \the \everybeforeutilityre...
  
  \doplaceregister ...ster \stoppacked \stopcolumns 
                                                    \endgroup \fi 
  \docompleteregister ...ter [\currentregister ][#2]
                                                    \page [\v!yes ]\endgroup \fi 
  <to be read again> 
                     \par 
  l.6 
      
  ? 

The error arises both with pdftex or xetex.  I think that some recent
change must be responsible for this, because I didn't notice any
problems with indices, say, a couple months ago.  What might be going
on?

Thanks,

Jesse

-- 
Jesse Alama (alama@stanford.edu)

___________________________________________________________________________________
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] 2+ messages in thread

* Re: trouble with indices
  2008-02-17 19:10 trouble with indices Jesse Alama
@ 2008-02-17 19:39 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2008-02-17 19:39 UTC (permalink / raw)
  To: ntg-context

On Sun, 17 Feb 2008 11:10:14 -0800
Jesse Alama <alama@stanford.edu> wrote:

> I've noticed that with the most recent ConTeXt release I'm unable to
> make indices.  This example fails:
> 
>   \starttext
>   Hello, this \index{copula}is an index.
>   \completeindex
>   \stoptext

Add the following path for the moment to your document.

\unprotect

\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}%
% TH: disable next line
%     \raggedright
% /TH
     \startcolumns
       [\c!n=\registerparameter\c!n,
        \c!balance=\registerparameter\c!balance,
        \c!align=\registerparameter\c!align,
        tolerance=stretch]%
     \dontcomplain
     \startpacked[\v!blank]%
     \mkloadregister\currentregister\dobeforeplaceregister\doafterplaceregister
     \stoppacked
     \stopcolumns
     \endgroup
   \fi}

\protect

> The error arises both with pdftex or xetex.  I think that some recent
> change must be responsible for this, because I didn't notice any
> problems with indices, say, a couple months ago.  What might be going
> on?

The values for the second and third argument for \mkloaddregister got lost
in the last beta, the responsible person could be found in the macro above ;-)

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


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

end of thread, other threads:[~2008-02-17 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-17 19:10 trouble with indices Jesse Alama
2008-02-17 19:39 ` Wolfgang Schuster

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