* postponing broken?
@ 2012-07-11 12:58 Alan BRASLAU
2012-07-11 13:38 ` Hans Hagen
2012-07-11 13:53 ` Hans Hagen
0 siblings, 2 replies; 3+ messages in thread
From: Alan BRASLAU @ 2012-07-11 12:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello,
In the latest beta, postponing seems to be broken (or changed).
Minimal example:
\starttext
\input tufte
(see \in{figure}[fig:cow].)
\startpostponing [+0]
\startplacefigure [location=here,reference={fig:cow},
title={A cow that does not break the paragraph}]
\externalfigure [cow] [width=.5\textwidth]
\stopplacefigure
\stoppostponing
\input tufte
\stoptext
Explanation:
In order to have figures placed near their first reference in the text, and to avoid the paragraph break that results from placefigure, I enclose it in between \startpostponing[+0]\stoppostponing.
In the latest beta, all the figures (and their references) disappear.
Using a slightly older version
ConTeXt ver: 2012.06.28 10:00 MKIV fmt: 2012.6.28 int: english/english
this works (but the figure in the minimal example above gets pushed to the following page?).
Alan
___________________________________________________________________________________
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] 3+ messages in thread
* Re: postponing broken?
2012-07-11 12:58 postponing broken? Alan BRASLAU
@ 2012-07-11 13:38 ` Hans Hagen
2012-07-11 13:53 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2012-07-11 13:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11-7-2012 14:58, Alan BRASLAU wrote:
> Hello,
>
> In the latest beta, postponing seems to be broken (or changed).
>
> Minimal example:
>
> \starttext
> \input tufte
> (see \in{figure}[fig:cow].)
> \startpostponing [+0]
> \startplacefigure [location=here,reference={fig:cow},
> title={A cow that does not break the paragraph}]
> \externalfigure [cow] [width=.5\textwidth]
> \stopplacefigure
> \stoppostponing
> \input tufte
> \stoptext
quick hack (in cont-new.mkiv):
unexpanded\def\page_postponed_blocks_flush
{\setfalse\c_page_postponed_busy
\ifconditional\c_page_postponed_busy
% probably a nested flush
\else\ifnum\c_page_postponed_blocks_next_page=\zerocount
% nothing in cache
\else\ifnum\c_page_postponed_blocks_next_page<\zerocount
% generic cache
\page_postponed_blocks_flush_indeed
\else\ifnum\c_page_postponed_blocks_next_page>\realpageno
% future content
\else
% pending content
\page_postponed_blocks_flush_indeed
\fi\fi\fi\fi}
-----------------------------------------------------------------
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] 3+ messages in thread
* Re: postponing broken?
2012-07-11 12:58 postponing broken? Alan BRASLAU
2012-07-11 13:38 ` Hans Hagen
@ 2012-07-11 13:53 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2012-07-11 13:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11-7-2012 14:58, Alan BRASLAU wrote:
> Hello,
>
> In the latest beta, postponing seems to be broken (or changed).
in page-pst.mki a constant should be a conditional:
\newconditional\c_page_postponed_busy
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] 3+ messages in thread
end of thread, other threads:[~2012-07-11 13:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-11 12:58 postponing broken? Alan BRASLAU
2012-07-11 13:38 ` Hans Hagen
2012-07-11 13:53 ` 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).