* Strange page breaks
@ 2012-06-18 7:43 Andreas Schneider
2012-06-18 9:54 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Schneider @ 2012-06-18 7:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1.1: Type: text/plain, Size: 476 bytes --]
Hello,
the attached example causes very strange page breaks.
1. The subsubsubject is the last line on the first page. That doesn't
look very nice.
2. The xtable is broken although the whole table fits on that page.
Is there anything I (or you? :-)) can do about these two problems?
#This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX)
#ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english
--
Best Regards,
Andreas
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: test2.tex --]
[-- Type: text/x-tex; name="test2.tex", Size: 652 bytes --]
\starttext
\dorecurse{36}{some text some text some text some text some text\crlf}
\subsubsubject{Some Table}
\placefigure[split,force,here,none]{}{
\startxtable[header=repeat]
\startxtablehead
\startxrow
\startxcell Col1 \stopxcell
\startxcell Col2 \stopxcell
\startxcell Col3 \stopxcell
\stopxrow
\stopxtablehead
\startxtablebody
\startxrow
\startxcell foo \stopxcell
\startxcell bar \stopxcell
\startxcell \stopxcell
\stopxrow
\startxrow
\startxcell test \stopxcell
\startxcell test \stopxcell
\startxcell test \stopxcell
\stopxrow
\stopxtablebody
\stopxtable}
\stoptext
[-- Attachment #1.2: Type: application/pgp-signature, Size: 224 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] 5+ messages in thread
* Re: Strange page breaks
2012-06-18 7:43 Strange page breaks Andreas Schneider
@ 2012-06-18 9:54 ` Hans Hagen
2012-06-18 10:41 ` Andreas Schneider
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2012-06-18 9:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 18-6-2012 09:43, Andreas Schneider wrote:
> Hello,
>
> the attached example causes very strange page breaks.
>
> 1. The subsubsubject is the last line on the first page. That doesn't
> look very nice.
>
> 2. The xtable is broken although the whole table fits on that page.
>
> Is there anything I (or you? :-)) can do about these two problems?
>
> #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX)
> #ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english
not that strange but it's obscured by the fact that you use a float
(which has different spacing and room-for rules) without caption
in this case you can omit the placefloat and do
\startxtable[header=repeat,split=yes]
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] 5+ messages in thread
* Re: Strange page breaks
2012-06-18 9:54 ` Hans Hagen
@ 2012-06-18 10:41 ` Andreas Schneider
2012-06-18 10:48 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Schneider @ 2012-06-18 10:41 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
[-- Attachment #1.1: Type: text/plain, Size: 1162 bytes --]
On Monday, June 18, 2012, at 11:54 Hans Hagen wrote:
> On 18-6-2012 09:43, Andreas Schneider wrote:
>> Hello,
>>
>> the attached example causes very strange page breaks.
>>
>> 1. The subsubsubject is the last line on the first page. That doesn't
>> look very nice.
>>
>> 2. The xtable is broken although the whole table fits on that page.
>>
>> Is there anything I (or you? :-)) can do about these two problems?
>>
>> #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX)
>> #ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english
> not that strange but it's obscured by the fact that you use a float
> (which has different spacing and room-for rules) without caption
> in this case you can omit the placefloat and do
> \startxtable[header=repeat,split=yes]
> Hans
Doesn't quite work, since then the header isn't repeated when the
table is actually split.
With natural tables there seems to be a similar problem. But I guess
that enabling split=yes will actually place it inside a float
automatically which leads back to the initial problem.
--
Best Regards,
Andreas
[-- Attachment #1.2: Type: application/pgp-signature, Size: 224 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] 5+ messages in thread
* Re: Strange page breaks
2012-06-18 10:41 ` Andreas Schneider
@ 2012-06-18 10:48 ` Wolfgang Schuster
2012-06-19 8:31 ` Andreas Schneider
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-06-18 10:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 18.06.2012 um 12:41 schrieb Andreas Schneider:
> On Monday, June 18, 2012, at 11:54 Hans Hagen wrote:
>> On 18-6-2012 09:43, Andreas Schneider wrote:
>>> Hello,
>>>
>>> the attached example causes very strange page breaks.
>>>
>>> 1. The subsubsubject is the last line on the first page. That doesn't
>>> look very nice.
>>>
>>> 2. The xtable is broken although the whole table fits on that page.
>>>
>>> Is there anything I (or you? :-)) can do about these two problems?
>>>
>>> #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX)
>>> #ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english
>
>> not that strange but it's obscured by the fact that you use a float
>> (which has different spacing and room-for rules) without caption
>
>> in this case you can omit the placefloat and do
>
>> \startxtable[header=repeat,split=yes]
>
>> Hans
>
> Doesn't quite work, since then the header isn't repeated when the
> table is actually split.
>
> With natural tables there seems to be a similar problem. But I guess
> that enabling split=yes will actually place it inside a float
> automatically which leads back to the initial problem.
You can tell context to force a page break when there isn’t enough space for the heading.
\setuphead[subsubsubject][before={\testpage[6]\blank[big]}]
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] 5+ messages in thread
* Re: Strange page breaks
2012-06-18 10:48 ` Wolfgang Schuster
@ 2012-06-19 8:31 ` Andreas Schneider
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Schneider @ 2012-06-19 8:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 305 bytes --]
On Monday, June 18, 2012, at 12:48 Wolfgang Schuster wrote:
> You can tell context to force a page break when there isn’t enough space for the heading.
>
> \setuphead[subsubsubject][before={\testpage[6]\blank[big]}]
>
> Wolfgang
Nice, that does the trick! Thank you!
--
Best Regards,
Andreas
[-- Attachment #1.2: Type: application/pgp-signature, Size: 224 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] 5+ messages in thread
end of thread, other threads:[~2012-06-19 8:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-18 7:43 Strange page breaks Andreas Schneider
2012-06-18 9:54 ` Hans Hagen
2012-06-18 10:41 ` Andreas Schneider
2012-06-18 10:48 ` Wolfgang Schuster
2012-06-19 8:31 ` Andreas Schneider
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).