ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <hansm@science.uva.nl>
Subject: indexing suggestion
Date: Tue, 17 Jan 2006 14:09:22 +0100	[thread overview]
Message-ID: <EF2E061A-D231-4181-9DB6-C02C80C1E7C8@science.uva.nl> (raw)

When I started to do my syllabus again but in ConTeXt, I also began  
to set up an index.
Readily it became a nuisance to type each time:
	in this sentence \index{sentence} etc.

Making this into a macro I am now typing:
	in this \indexed{sentence} etc.
It is a small difference but not only is it less typing, it also  
keeps the text more readable.
I coded this macro:
	\def\indexed#1{\index{#1}#1}
Note, \index{#1} preceeds typesetting of the text #1, otherwise the  
next space is eaten by \index.

Of course the full macro would be something like \indexed[whatever] 
{sentence}, and all the other options in \index[]{}.
However if have not enough experience with the way such things are  
cooked in ConTeXt and do not want to pollute the code with halfbaked  
code of my own.

Maybe Hans and Taco feel this suggestion useful enough to pick it up.

yours sincerely,
dr. H. van der Meer

             reply	other threads:[~2006-01-17 13:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-17 13:09 Hans van der Meer [this message]
2006-01-17 14:43 ` Taco Hoekwater

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=EF2E061A-D231-4181-9DB6-C02C80C1E7C8@science.uva.nl \
    --to=hansm@science.uva.nl \
    --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).