* where to put an \index{foo} ?
@ 2011-05-24 9:28 Steffen Wolfrum
0 siblings, 0 replies; only message in thread
From: Steffen Wolfrum @ 2011-05-24 9:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-24 9:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 9:28 where to put an \index{foo} ? Steffen Wolfrum
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).