ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Preventing page break in register between reference and page number
@ 2012-11-09  8:08 "H. Özoguz"
  2012-11-09  9:19 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: "H. Özoguz" @ 2012-11-09  8:08 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 708 bytes --]

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:

|\definepapersize[MyBook][A6]
\setuppapersize[MyBook][A6]  % Prints on paper the size of MyBook

\starttext      
\index{A}  blub
\index{B}  blub
\index{C}  blub
\index{D}  blub
\index{E}  blub
\index{F}  blub
\index{G}  blub
\index{H}  blub
\index{I}  blub
\index{J}  blub
\index{K}  blub
\index{Long Long Long}  blub
\index{M}  blub
\index{N}  blub

\completeindex
\stoptext

|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?
  





[-- Attachment #1.2: Type: text/html, Size: 3309 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Preventing page break in register between reference and page number
  2012-11-09  8:08 Preventing page break in register between reference and page number "H. Özoguz"
@ 2012-11-09  9:19 ` Hans Hagen
  2012-11-09 10:05   ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2012-11-09  9:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: "H. Özoguz"

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:
>
> |\definepapersize[MyBook][A6]
> \setuppapersize[MyBook][A6]  % Prints on paper the size of MyBook
>
> \starttext
> \index{A}  blub
> \index{B}  blub
> \index{C}  blub
> \index{D}  blub
> \index{E}  blub
> \index{F}  blub
> \index{G}  blub
> \index{H}  blub
> \index{I}  blub
> \index{J}  blub
> \index{K}  blub
> \index{Long Long Long}  blub
> \index{M}  blub
> \index{N}  blub
>
> \completeindex
> \stoptext
>
> |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

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Preventing page break in register between reference and page number
  2012-11-09  9:19 ` Hans Hagen
@ 2012-11-09 10:05   ` Wolfgang Schuster
  2012-11-09 12:43     ` "H. Özoguz"
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2012-11-09 10:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: "H. Özoguz"


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Preventing page break in register between reference and page number
  2012-11-09 10:05   ` Wolfgang Schuster
@ 2012-11-09 12:43     ` "H. Özoguz"
  2012-11-09 12:50       ` luigi scarso
  2012-11-10  8:08       ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: "H. Özoguz" @ 2012-11-09 12:43 UTC (permalink / raw)
  To: ntg-context

Am 09.11.2012 11:05, schrieb Wolfgang Schuster:
> 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
I don't find this macro in

strc-reg.mkiv

I am using

current version: 2012.05.30 11:26

What do I have to change?

Grüße
Huseyin

strc-reg.mkiv

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Preventing page break in register between reference and page number
  2012-11-09 12:43     ` "H. Özoguz"
@ 2012-11-09 12:50       ` luigi scarso
  2012-11-10  8:08       ` Wolfgang Schuster
  1 sibling, 0 replies; 6+ messages in thread
From: luigi scarso @ 2012-11-09 12:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 322 bytes --]

On Fri, Nov 9, 2012 at 1:43 PM, "H. Özoguz" <h.oezoguz@mmnetz.de> wrote:

> I don't find this macro in
>
> strc-reg.mkiv
>
> I am using
>
> current version: 2012.05.30 11:26
>
> What do I have to change?
>
> Grüße
> Huseyin
>
> strc-reg.mkiv
>
> update to the new release is an option ?

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 787 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Preventing page break in register between reference and page number
  2012-11-09 12:43     ` "H. Özoguz"
  2012-11-09 12:50       ` luigi scarso
@ 2012-11-10  8:08       ` Wolfgang Schuster
  1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2012-11-10  8:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 09.11.2012 um 13:43 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:

> I don't find this macro in
> 
> strc-reg.mkiv
> 
> I am using
> 
> current version: 2012.05.30 11:26
> 
> What do I have to change?

You need the beta version but before you do this make a copy of your current version.

Even then don’t try to modify the macro in the file itself because the next update
changes this back to the old definition with the next update and you can never
say how long this would work because it’s a internal macro which could change/disappear.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-10  8:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-09  8:08 Preventing page break in register between reference and page number "H. Özoguz"
2012-11-09  9:19 ` Hans Hagen
2012-11-09 10:05   ` Wolfgang Schuster
2012-11-09 12:43     ` "H. Özoguz"
2012-11-09 12:50       ` luigi scarso
2012-11-10  8:08       ` Wolfgang Schuster

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).