From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24295 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: float over both text and margin Date: Mon, 12 Dec 2005 23:02:49 +0100 Message-ID: <439DF389.6040206@seznam.cz> References: <4398B7E9.4020608@seznam.cz> <439DBB41.1030401@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134425178 31454 80.91.229.2 (12 Dec 2005 22:06:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Dec 2005 22:06:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 12 23:06:16 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Elvl6-00018Y-Ot for gctc-ntg-context-518@m.gmane.org; Mon, 12 Dec 2005 23:03:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F9EB127F0; Mon, 12 Dec 2005 23:03:00 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26451-06; Mon, 12 Dec 2005 23:02:57 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C02CD127CB; Mon, 12 Dec 2005 23:02:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 28EED127CB for ; Mon, 12 Dec 2005 23:02:56 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26556-01 for ; Mon, 12 Dec 2005 23:02:54 +0100 (CET) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 6E3B4127B7 for ; Mon, 12 Dec 2005 23:02:54 +0100 (CET) Original-Received: (qmail 20731 invoked from network); 12 Dec 2005 22:02:52 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@62.240.166.134) by cetus.go.seznam.cz with ESMTPA; 12 Dec 2005 22:02:52 -0000 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <439DBB41.1030401@wxs.nl> X-Antivirus: avast! (VPS 0549-3, 07.12.2005), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24295 Archived-At: Hans Hagen wrote: > Vit Zyka wrote: > >> Hi. >> >> 1) I am unsuccessfully solving the problem of making float spanning >> both text and margin. More over, it is inside columnset... Example >> follows. Is there some solution? >> >> 2) As a side effect I discover that in the following example the float >> is over the text (so some text is disappeared). > > don't use \placefloat. > > \definefloat > [pagefigure] > [figure] > \setupfloat > [pagefigure] > [default={page,none}, > location=inner] OK, I thought \placefloat[page] is defined like this, but now I see this is more flexible. Thank you for your patch it behaves better but still the float is over the text, see page 2 in the example. I also do not see the influence of location argument. Vit --------------------------------------------------------- \showframe \setupcolors[state=start] \setuplayout[margin=0pt,rightmargin=1.5cm,width=13cm] \setuppagenumbering[alternative=doublesided] \definefloat [pagefigure] [figure] \setupfloat [pagefigure] [default={page,none}, location=outer] \unprotect \def\dogetfloat{ \ifsomefloatwaiting \global\setbox\floatlist\vbox{% \unvbox\floatlist \global\setbox\globalscratchbox\lastbox }% \ifcenterfloatbox \ifdim\wd\globalscratchbox<\hsize \setbox\floatbox\hbox to \hsize{\hss\box\globalscratchbox\hss}% \else \setbox\floatbox\box\globalscratchbox % local ! \wd\floatbox\makeupwidth \fi \else \setbox\floatbox\box\globalscratchbox % local ! \fi \global\advance\savednoffloats \minusone \ifcase\savednoffloats \global\somefloatwaitingfalse \fi \else \global\savednoffloats\zerocount \global\setbox\floatbox\box\voidb@x \fi} \protect \starttext \startcolumnset \dorecurse{2}{\input knuth \endgraf\blank} \placepagefigure{none} {\framed [width=\dimexpr\makeupwidth+\rightmarginwidth+\rightmargindistance\relax,height=\textheight] {Here I would like to be a float over both text and margin. How?} } \dorecurse{10}{\input knuth \endgraf\blank} \stopcolumnset \stoptext ------------------------------------------------------------- > > \dorecurse{3}{\input knuth \endgraf\blank} > \placepagefigure > {} > {...} > > etc > > maybe the next helps, but i hesitate to include this patch too fast > > def\dogetfloat > {\ifsomefloatwaiting > \global\setbox\floatlist\vbox > {\unvbox\floatlist > \global\setbox\globalscratchbox\lastbox}% > \ifcenterfloatbox > \ifdim\wd\globalscratchbox<\hsize > \setbox\floatbox\hbox to \hsize{\hss\box\globalscratchbox\hss}% > \else > \setbox\floatbox\box\globalscratchbox % local ! > \wd\floatbox\makeupwidth > \fi > \else > \setbox\floatbox\box\globalscratchbox % local ! > \fi > \global\advance\savednoffloats \minusone > \ifcase\savednoffloats > \global\somefloatwaitingfalse > \fi > \else > \global\savednoffloats\zerocount > \global\setbox\floatbox\box\voidb@x > \fi} > > Hans > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context