From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "\"H. Özoguz\"" <h.oezoguz@mmnetz.de>
Subject: Re: Preventing page break in register between reference and page number
Date: Fri, 9 Nov 2012 11:05:01 +0100 [thread overview]
Message-ID: <23777F8D-E592-4C41-BD4E-E489034D0D9C@gmail.com> (raw)
In-Reply-To: <509CCA92.2060002@wxs.nl>
Am 09.11.2012 um 10:19 schrieb Hans Hagen <pragma@wxs.nl>:
> On 11/9/2012 9:08 AM, "H. Özoguz" wrote:
>> Hello there,
>>
>> I am relatively new to ConTeXt, now typing a small book in it. I have a
>> problem with the register (index). This is an example:
>>
>> […]
>>
>> |The page numer of the reference "Long Long Long" is set to the next page. How to prevent this?
>> Maybe the reference "Long Long Long" could break into two lnes or a rule like that?
>
> play with
>
> \index{Long Long Long}blub
>
> and
>
> blub\index{Long Long Long}
>
> an index entry (currently) inserts a node in the list and that one should be bound to the word
The problem is not the \index command but the text in the register, as you can
see in the example below the text and the page number are in separate columns
(or in the long example on separate pages).
\setuppapersize[A6]
\starttext
\index{Too long entry}Long index entry.
\blank
\placeindex
\stoptext
This is caused by this macro in strc-reg.mkiv where you insert only a normal skip
between the the text and page number, changing \hskip to \nobreak\hskip moves
at least a part of the last word in the entry to the next column in the example above.
\unexpanded\def\registerpageseparator% todo: , configurable
{\ifconditional\c_strc_registers_page_done
\registerpageseparatorsymbol
\else
\hskip\d_strc_registers_distance\relax
\settrue\c_strc_registers_page_done
\fi}
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2012-11-09 10:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-09 8:08 "H. Özoguz"
2012-11-09 9:19 ` Hans Hagen
2012-11-09 10:05 ` Wolfgang Schuster [this message]
2012-11-09 12:43 ` "H. Özoguz"
2012-11-09 12:50 ` luigi scarso
2012-11-10 8:08 ` Wolfgang Schuster
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=23777F8D-E592-4C41-BD4E-E489034D0D9C@gmail.com \
--to=wolfgang.schuster@gmail.com \
--cc=h.oezoguz@mmnetz.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).