ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Problem with pages
@ 2002-06-05 16:09 Gilles Pérez-Lambert
  2002-06-05 16:50 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Gilles Pérez-Lambert @ 2002-06-05 16:09 UTC (permalink / raw)


Le mercredi 5 juin 2002, Hans Hagen a écrit :
> (1) you have enabled the grid (say \showgrid to see what happens) and your 
> \CIT thing uses another interlineskip and is not snapped.

OK...: I was believing that \blank was taking care of all these when using 
grids... I put:

\long\def\CIT#1{%
	\blank
	\moveongrid[both]
			\startnarrower[1*left]\relax\setupindenting[none]
				\ix\setupinterlinespace\relax #1
			\stopnarrower%
	\blank
}

and it worked!

> (2) specify lines=41 in 'setuplayout' in order to avoid rounding errors

Thanks very much for your time!

Gilles.


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

* Re: Problem with pages
  2002-06-05 16:09 Problem with pages Gilles Pérez-Lambert
@ 2002-06-05 16:50 ` Hans Hagen
  2002-06-06  9:17   ` Gilles Pérez-Lambert
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2002-06-05 16:50 UTC (permalink / raw)
  Cc: ntg-context

At 06:09 PM 6/5/2002 +0200, you wrote:
>Le mercredi 5 juin 2002, Hans Hagen a écrit :
>>(1) you have enabled the grid (say \showgrid to see what happens) and 
>>your \CIT thing uses another interlineskip and is not snapped.
>
>OK...: I was believing that \blank was taking care of all these when using 
>grids... I put:
>
>\long\def\CIT#1{%
>         \blank
>         \moveongrid[both]
>                         \startnarrower[1*left]\relax\setupindenting[none]
>                                 \ix\setupinterlinespace\relax #1
>                         \stopnarrower%
>         \blank
>}
>
>and it worked!

actually, you should use :

\snaptogrid\vbox{...}

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: Problem with pages
  2002-06-05 16:50 ` Hans Hagen
@ 2002-06-06  9:17   ` Gilles Pérez-Lambert
  2002-06-06 10:03     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Gilles Pérez-Lambert @ 2002-06-06  9:17 UTC (permalink / raw)
  Cc: ntg-context

Hello,

Le mercredi 5 juin 2002, Hans Hagen a écrit :
>> Le mercredi 5 juin 2002, Hans Hagen a écrit :
>>> (1) you have enabled the grid (say \showgrid to see what happens) and 
>>> your \CIT thing uses another interlineskip and is not snapped.
>>
>>         \moveongrid[both]
>
> actually, you should use :
>
> \snaptogrid\vbox{...}

Yes, but my--long--citations then become unbreakable at the end of the page.
.. I don't know what to do since \moveongrid effectively does not what I 
want (I didn't see it first because I was doing it on a test document).

Thanks,

Gilles.


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

* Re: Problem with pages
  2002-06-06  9:17   ` Gilles Pérez-Lambert
@ 2002-06-06 10:03     ` Hans Hagen
  2002-06-06 13:48       ` Gilles Pérez-Lambert
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2002-06-06 10:03 UTC (permalink / raw)
  Cc: ntg-context

At 11:17 AM 6/6/2002 +0200, you wrote:
>Hello,
>
>Le mercredi 5 juin 2002, Hans Hagen a écrit :
>>>Le mercredi 5 juin 2002, Hans Hagen a écrit :
>>>>(1) you have enabled the grid (say \showgrid to see what happens) and 
>>>>your \CIT thing uses another interlineskip and is not snapped.
>>>
>>>         \moveongrid[both]
>>
>>actually, you should use :
>>
>>\snaptogrid\vbox{...}
>
>Yes, but my--long--citations then become unbreakable at the end of the page.
>.. I don't know what to do since \moveongrid effectively does not what I 
>want (I didn't see it first because I was doing it on a test

moveongrid affects the next grid placement command

>  document).

right, this is something i'm working on

so, i suggest that either you don't use grid mode (no problem since you 
don't use the grid as such) or stick to fixed interlinespace

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: Problem with pages
  2002-06-06 10:03     ` Hans Hagen
@ 2002-06-06 13:48       ` Gilles Pérez-Lambert
  0 siblings, 0 replies; 7+ messages in thread
From: Gilles Pérez-Lambert @ 2002-06-06 13:48 UTC (permalink / raw)
  Cc: ntg-context

Hello,

>> Yes, but my--long--citations then become unbreakable at the end of the 
>> page.
>> .. I don't know what to do since \moveongrid effectively does not what I 
>> want (I didn't see it first because I was doing it on a test
>
> moveongrid affects the next grid placement command
>
>>  document).
>
> right, this is something i'm working on

OK.

> so, i suggest that either you don't use grid mode (no problem since you 
> don't use the grid as such)

It depends on what you call `not using the grid as such'...

>  or stick to fixed interlinespace

I'll disable the grid for now.

Thanks,

Gilles.


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

* Re: Problem with pages
  2002-06-05  8:43 Gilles Pérez-Lambert
@ 2002-06-05 14:32 ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2002-06-05 14:32 UTC (permalink / raw)
  Cc: ntg-context

At 10:43 AM 6/5/2002 +0200, you wrote:
>Hello,
>
>I still have problems with some pages having one or two lines available at 
>the end but the text goes anyway on the next page (and it's not a 
>widow-orphan problem apparently).
>
>I use the last beta. I join a file showing the problem (page 3 and 5 e.g.)
>.

(1) you have enabled the grid (say \showgrid to see what happens) and your 
\CIT thing uses another interlineskip and is not snapped.

(2) specify lines=41 in 'setuplayout' in order to avoid rounding errors

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Problem with pages
@ 2002-06-05  8:43 Gilles Pérez-Lambert
  2002-06-05 14:32 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Gilles Pérez-Lambert @ 2002-06-05  8:43 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 281 bytes --]

Hello,

I still have problems with some pages having one or two lines available at 
the end but the text goes anyway on the next page (and it's not a 
widow-orphan problem apparently).

I use the last beta. I join a file showing the problem (page 3 and 5 e.g.)
.

Thanks,

Gilles.

[-- Attachment #2: Page-problem.tex.gz --]
[-- Type: application/x-gzip, Size: 10579 bytes --]

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

end of thread, other threads:[~2002-06-06 13:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-05 16:09 Problem with pages Gilles Pérez-Lambert
2002-06-05 16:50 ` Hans Hagen
2002-06-06  9:17   ` Gilles Pérez-Lambert
2002-06-06 10:03     ` Hans Hagen
2002-06-06 13:48       ` Gilles Pérez-Lambert
  -- strict thread matches above, loose matches on Subject: below --
2002-06-05  8:43 Gilles Pérez-Lambert
2002-06-05 14:32 ` Hans Hagen

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