ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] problem with symbols in index
Date: Mon, 17 Jul 2023 23:37:46 +0200	[thread overview]
Message-ID: <c9c486fc-46ff-a484-d01c-63f9fd319d90@fiee.net> (raw)

I hunted for two days after an index error in my book:

"""
structure       > sectioning > chapter @ level 2 : 0.1 -> Sachregister
tex error       > tex error on line 95 in file ./prd_test.tex: The file 
ended when scanning an argument.

{\startregisterentries {1}\startregisterentry {0}\registerentry 
{index}{}{21}{}{[[special cmd: lua call]]}\startregisterpages 
\registeronepage {index}{}{21}{2}{[[special cmd: lua 
call]]}\stopregisterpages \stopregisterentry \stopregisterentries 
\stopregistersection \stopregisteroutput \relax \stopmixedcolumns \else 
\strc_registers_place_indeed {index}\fi \endgroup \fi \stopchapter \par 
\par \par \par \par \stopproduct
"""

It boiled down to \index{\%} that used to work but doesn’t any more in 
current LMTX.

Also, "context --purge" doesn’t delete the tuc file (don’t know if that 
changed), so the wrong entry stuck in there, and my code changes didn’t 
affect it.

MWE:

\starttext
%\index{\%}
\index[ ]{\backslash}
\index[ ]{\percent}
\index[ ]{\tex{}}
\index[ ]{\tex{}\tex{}}
\index[ ]{\tex{\%}}

\page
\completeindex

\stoptext

For my command index, \index[something]{\tex{something}} works, but is 
there a better way to put \\ in there than \index[ ]{\tex{}\tex{}} ?


Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2023-07-17 21:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-17 21:37 Henning Hraban Ramm [this message]
2023-07-18 12:21 ` [NTG-context] " Floris van Manen via ntg-context

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=c9c486fc-46ff-a484-d01c-63f9fd319d90@fiee.net \
    --to=texml@fiee.net \
    --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).