* How to avoid that \writetolist becomes a page-breaker
@ 2010-12-14 20:00 Marco Pessotto
2010-12-14 21:32 ` Marco Pessotto
2010-12-15 11:42 ` Hans Hagen
0 siblings, 2 replies; 5+ messages in thread
From: Marco Pessotto @ 2010-12-14 20:00 UTC (permalink / raw)
To: ntg-context
Probably due to my abuse of \writetolist, I noticed that inserting
\writetolist right after \subject makes TeX to think that it can break
the page there without problems.
See the following minimal example:
%===============cut here=============
\definelist[myrandompart]
\starttext
\dorecurse{12}{
\input reich
}
\subject{\bf Wrong!}
\writetolist[myrandompart]{It's a test}
\input knuth
\page
\dorecurse{12}{
\input reich
}
\subject{\bf Correct!}
%\writetolist[myrandompart]{It's a test}
\input knuth
%===============cut here=============
I'm pretty sure the solution is out there.
Some hints would be very welcome.
Thanks in advance
--
Marco
___________________________________________________________________________________
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: How to avoid that \writetolist becomes a page-breaker
2010-12-14 20:00 How to avoid that \writetolist becomes a page-breaker Marco Pessotto
@ 2010-12-14 21:32 ` Marco Pessotto
2010-12-15 11:40 ` Hans Hagen
2010-12-15 11:42 ` Hans Hagen
1 sibling, 1 reply; 5+ messages in thread
From: Marco Pessotto @ 2010-12-14 21:32 UTC (permalink / raw)
To: ntg-context
Marco Pessotto <melmothx@gmail.com> writes:
> Probably due to my abuse of \writetolist, I noticed that inserting
> \writetolist right after \subject makes TeX to think that it can break
> the page there without problems.
>
> See the following minimal example:
>
> %===============cut here=============
>
> \definelist[myrandompart]
>
> \starttext
>
> \dorecurse{12}{
> \input reich
> }
> \subject{\bf Wrong!}
> \writetolist[myrandompart]{It's a test}
>
> \input knuth
>
> \page
>
> \dorecurse{12}{
> \input reich
> }
> \subject{\bf Correct!}
> %\writetolist[myrandompart]{It's a test}
>
> \input knuth
>
> %===============cut here=============
>
> I'm pretty sure the solution is out there.
> Some hints would be very welcome.
>
> Thanks in advance
To answer to my own question, it looks like that
\subject{\bf My title!}
\dontleavehmode
\writetolist[myrandompart]{}{It's a test}
works. The question if is this the right thing to do, still remains,
though
--
Marco
___________________________________________________________________________________
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: How to avoid that \writetolist becomes a page-breaker
2010-12-14 21:32 ` Marco Pessotto
@ 2010-12-15 11:40 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2010-12-15 11:40 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Marco Pessotto
On 14-12-2010 10:32, Marco Pessotto wrote:
>
> \subject{\bf My title!}
> \dontleavehmode
> \writetolist[myrandompart]{}{It's a test}
>
> works. The question if is this the right thing to do, still remains,
> though
it's quite ok as long as you realize that it introduces 'something' in
the text stream, so
xxx
\dontleavehmode\writetolist[myrandompart]{}{It's a test}
xxx
is actually:
xxx
[something written to a list]
xxx
so when whitespace is setup, in some cases you can get some extra
also, the [something ...] can end up on the current page or the next
one, depending on the circumstances
in practice it's no real problem as one will do explicit writes inside
boxes or so
-----------------------------------------------------------------
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: How to avoid that \writetolist becomes a page-breaker
2010-12-14 20:00 How to avoid that \writetolist becomes a page-breaker Marco Pessotto
2010-12-14 21:32 ` Marco Pessotto
@ 2010-12-15 11:42 ` Hans Hagen
2010-12-15 11:47 ` Marco Pessotto
1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2010-12-15 11:42 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Marco Pessotto
On 14-12-2010 9:00, Marco Pessotto wrote:
\doneleavehmode
\writetolist[myrandompart]{It's a test}
\input knuth
i.e. just bind the write to some text
-----------------------------------------------------------------
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: How to avoid that \writetolist becomes a page-breaker
2010-12-15 11:42 ` Hans Hagen
@ 2010-12-15 11:47 ` Marco Pessotto
0 siblings, 0 replies; 5+ messages in thread
From: Marco Pessotto @ 2010-12-15 11:47 UTC (permalink / raw)
To: ntg-context
Hans Hagen <pragma@wxs.nl> writes:
> On 14-12-2010 9:00, Marco Pessotto wrote:
>
> \doneleavehmode
> \writetolist[myrandompart]{It's a test}
> \input knuth
>
> i.e. just bind the write to some text
Thanks for your answer. I'm on my way to the wiki :-)
--
Marco
___________________________________________________________________________________
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:[~2010-12-15 11:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-14 20:00 How to avoid that \writetolist becomes a page-breaker Marco Pessotto
2010-12-14 21:32 ` Marco Pessotto
2010-12-15 11:40 ` Hans Hagen
2010-12-15 11:42 ` Hans Hagen
2010-12-15 11:47 ` Marco Pessotto
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).