From: Steffen Wolfrum <context@st.estfiles.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: where to put an \index{foo} ?
Date: Tue, 24 May 2011 11:28:03 +0200 [thread overview]
Message-ID: <E9E726D5-5808-42E0-9436-49A2725110FC@st.estfiles.de> (raw)
Hi,
either I set an \index{foo} in front of the word it refers to, or after that word:
The second can lead to wrong line wrapping when a full stop follows (see Case 1),
and the first can lead into a line ending with a space before wrapping (see Case 2).
:o(
Is there a third option?
Thanks,
Steffen
-------
\showframe
\setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]
\definetolerancemethod
[horizontal]
[MySpace]
{\spaceskip3.02pt plus1.99998pt minus1.0pt\relax}
\setupalign[line,block,hanging]
\setuptolerance[MySpace]
\setupindenting[10pt,yes]
\definepapersize[stw][width=14.7cm,height=22.3cm]
\setuppapersize[stw][stw]
\setuplayout
[width=113mm,height=572pt,
backspace=17mm,topspace=17mm,
header=12pt,headerdistance=6pt,
footer=36pt,footerdistance=0pt,
location=middle,marking=off]
\starttext
{\em Case 1: line wrap before dot}
\noindent dieses ist dabei typisch für den Bereich der Architekten- oder
Ingenieurleistungen\index{Ingenieurleistungen}. Warum?
\blank
{\em Case 2: line wrap after visible space}
Bei den Grünen werden neben den beiden Fraktionsvorsitzenden, Renate \index{Künast}Künast und Jürgen Trittin ...
\stoptext
___________________________________________________________________________________
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:[~2011-05-24 9:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=E9E726D5-5808-42E0-9436-49A2725110FC@st.estfiles.de \
--to=context@st.estfiles.de \
--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).