* floats spanning columns?
@ 2006-04-11 15:26 Karsten Heymann
2006-04-11 21:25 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Karsten Heymann @ 2006-04-11 15:26 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 488 bytes --]
Hi there,
a simple one: Is it possible to span a \placetable float over multiple
columns defined with \startcolumns ...\ stopcolumns? Or do I have to
switch to column sets for that?
Yours,
Karsten
--
| ~ Karsten Heymann ~ | Christian-Albrecht-Universität zu Kiel |
| Fon: +49 431 880-1186 | Netzwerkteam des Ökologiezentrum |
| Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de |
| ----- Selbständiger EDV-Dienstleister im Auftrag des ÖZK ----- |
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: floats spanning columns?
2006-04-11 15:26 floats spanning columns? Karsten Heymann
@ 2006-04-11 21:25 ` Hans Hagen
2006-04-12 7:29 ` Karsten Heymann
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2006-04-11 21:25 UTC (permalink / raw)
Karsten Heymann wrote:
> Hi there,
>
> a simple one: Is it possible to span a \placetable float over multiple
> columns defined with \startcolumns ...\ stopcolumns? Or do I have to
> switch to column sets for that?
>
if a float is too wide it will be moved around; wide floats spanning columns and text flowing around it is not one of the strong points of normal columns
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: floats spanning columns?
2006-04-11 21:25 ` Hans Hagen
@ 2006-04-12 7:29 ` Karsten Heymann
2006-04-13 12:23 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Karsten Heymann @ 2006-04-12 7:29 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 705 bytes --]
Hello Hans,
Hans Hagen wrote:
> if a float is too wide it will be moved around; wide floats spanning
> columns and text flowing around it is not one of the strong points of
> normal columns
At least I didn't overlook something simple :)
Is there any easy fix to prevent the "table" from disapperaring when I
uncomment the \input knuth?
% -*- mode: context; coding: latin-9-unix; -*-
\setuplayout [grid=yes]
\definecolumnset[example]
\setupfloat[table][width=\makeupwidth]
\starttext
\startcolumnset[example]
\input knuth
%\input knuth
\placetable{Tabelle}
\framed[width=\makeupwidth,height=4cm]{Hallo}
\input knuth
\input knuth
\stopcolumnset
\stoptext
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: floats spanning columns?
2006-04-12 7:29 ` Karsten Heymann
@ 2006-04-13 12:23 ` Hans Hagen
2006-04-14 7:08 ` Karsten Heymann
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2006-04-13 12:23 UTC (permalink / raw)
Karsten Heymann wrote:
> Hello Hans,
>
> Hans Hagen wrote:
>
>> if a float is too wide it will be moved around; wide floats spanning
>> columns and text flowing around it is not one of the strong points of
>> normal columns
>>
>
> At least I didn't overlook something simple :)
>
> Is there any easy fix to prevent the "table" from disapperaring when I
> uncomment the \input knuth?
>
> % -*- mode: context; coding: latin-9-unix; -*-
>
> \setuplayout [grid=yes]
>
> \definecolumnset[example]
> \setupfloat[table][width=\makeupwidth]
>
> \starttext
> \startcolumnset[example]
>
> \input knuth
> %\input knuth
>
> \placetable{Tabelle}
> \framed[width=\makeupwidth,height=4cm]{Hallo}
>
> \input knuth
>
> \input knuth
>
> \stopcolumnset
> \stoptext
>
>
well, you can't blame knuth for that one ... the problem is that the
graphix is oved to a next page already but that page has no content
\unprotect
\def\OTRSETflushleftovers
{\OTRSETdoifcellelse{1}{1}
{\bgroup
\OTRSETcentergridcells
\chardef\OTRSETbalancemethod\plusone
\OTRSETreducegridbox
\global\setbox\OTRfinalpagebox\OTRSETmakegridbox
\global\ht\OTRfinalpagebox\textheight % signals output
\OTRSETdofinaloutput
\globallet\OTRSETbalht\zeropoint
\egroup}
{}}
\def\stopcolumnset
{\relax
\ifnum\columnsetlevel=\plusone
\endgraf % needed, else wrong vsize in one par case
\global\chardef\OTRSETfinish\plusone
% no, extra page \pagebreak % (test on pascal toc)
\dostopcolumnset
\egroup
\global\notelimittrue % brrr, untested and fuzzy
\setvsize
\sethsize
\ifvoid\OTRfinalpagebox\else
% probably balanced
\ifdim\ht\OTRfinalpagebox<\textheight
\snaptogrid[\v!page]\hbox{\box\OTRfinalpagebox}%
\else
\box\OTRfinalpagebox
\fi
\fi
\global\chardef\OTRSETfinish\zerocount
\ifsomefloatwaiting \setvsize \pagebreak \setvsize \fi
\OTRSETflushleftovers %% ADDED
\else
\egroup
\fi
\decrement\columnsetlevel\relax}
\protect
\setuplayout[grid=yes] \definecolumnset[example] \showgrid
\starttext
\startcolumnset[example]
\input knuth \endgraf \input knuth
\placetable
{Tabelle}
{\framed[width=\makeupwidth,height=4cm]{Hallo}}
\input knuth \endgraf \input knuth
\stopcolumnset
\input knuth \endgraf \input knuth
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-14 7:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-11 15:26 floats spanning columns? Karsten Heymann
2006-04-11 21:25 ` Hans Hagen
2006-04-12 7:29 ` Karsten Heymann
2006-04-13 12:23 ` Hans Hagen
2006-04-14 7:08 ` Karsten Heymann
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).