* Side-by-side floats?
@ 2001-07-12 16:43 Giuseppe Bilotta
2001-07-13 20:37 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2001-07-12 16:43 UTC (permalink / raw)
Well, I begun playing with tables too. And of course I have a
question: is it possible to have side-by-side tables (more in
general, floats), each with its caption? I tried placing the two
table with different requirements (one left, one right), but it's
not *that* easy. How could I do it?
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Side-by-side floats?
2001-07-12 16:43 Side-by-side floats? Giuseppe Bilotta
@ 2001-07-13 20:37 ` Hans Hagen
2001-07-13 21:59 ` Re[2]: " Giuseppe Bilotta
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2001-07-13 20:37 UTC (permalink / raw)
Cc: ntg-context
At 04:43 PM 7/12/2001 +0000, Giuseppe Bilotta wrote:
>Well, I begun playing with tables too. And of course I have a
>question: is it possible to have side-by-side tables (more in
>general, floats), each with its caption? I tried placing the two
>table with different requirements (one left, one right), but it's
>not *that* easy. How could I do it?
Since you love to read the sourse:
\startcombination
or
\placesidebyside
aor candidates,
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re[2]: Side-by-side floats?
2001-07-13 20:37 ` Hans Hagen
@ 2001-07-13 21:59 ` Giuseppe Bilotta
2001-07-14 21:08 ` Johannes Huesing
0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2001-07-13 21:59 UTC (permalink / raw)
Cc: ntg-context
Friday, July 13, 2001 Hans Hagen wrote:
HH> At 04:43 PM 7/12/2001 +0000, Giuseppe Bilotta wrote:
>>Well, I begun playing with tables too. And of course I have a
>>question: is it possible to have side-by-side tables (more in
>>general, floats), each with its caption?
HH> Since you love to read the sourse:
HH> \startcombination
HH> or
HH> \placesidebyside
HH> aor candidates,
But don't these set a single caption for both tables?
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Side-by-side floats?
2001-07-13 21:59 ` Re[2]: " Giuseppe Bilotta
@ 2001-07-14 21:08 ` Johannes Huesing
2001-07-15 10:00 ` Re[2]: " Giuseppe Bilotta
0 siblings, 1 reply; 8+ messages in thread
From: Johannes Huesing @ 2001-07-14 21:08 UTC (permalink / raw)
On Fri, Jul 13, 2001 at 11:59:48PM +0200, Giuseppe Bilotta wrote:
>
> Friday, July 13, 2001 Hans Hagen wrote:
>
> HH> \startcombination
>
> But don't these set a single caption for both tables?
>
They set a single caption for each figure. You can put the \startcombination
and \stopcombination within the argument of \placefigure if you want the
whole thing to float, but you can set the caption argument of \placefigure
to {none} to avoid a common caption. Unfortunately, you will lose the
ability to assign a number to each of your members of the combination.
Greetings
Johannes
--
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen
| (erwin_meier) und einer Endung (zum Beispiel
| .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re[2]: Side-by-side floats?
2001-07-14 21:08 ` Johannes Huesing
@ 2001-07-15 10:00 ` Giuseppe Bilotta
2001-07-18 15:24 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2001-07-15 10:00 UTC (permalink / raw)
Cc: ntg-context
Saturday, July 14, 2001 Johannes Huesing wrote:
JH> On Fri, Jul 13, 2001 at 11:59:48PM +0200, Giuseppe Bilotta wrote:
>>
>> Friday, July 13, 2001 Hans Hagen wrote:
>>
>> HH> \startcombination
>>
>> But don't these set a single caption for both tables?
>>
JH> They set a single caption for each figure. You can put the \startcombination
JH> and \stopcombination within the argument of \placefigure if you want the
JH> whole thing to float, but you can set the caption argument of \placefigure
JH> to {none} to avoid a common caption. Unfortunately, you will lose the
JH> ability to assign a number to each of your members of the combination.
But the latter (one number for each) is one of the things I want.
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re[2]: Side-by-side floats?
2001-07-15 10:00 ` Re[2]: " Giuseppe Bilotta
@ 2001-07-18 15:24 ` Hans Hagen
2001-07-19 10:38 ` Re[3]: " Giuseppe Bilotta
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2001-07-18 15:24 UTC (permalink / raw)
Cc: Johannes Huesing, ntg-context
At 12:00 PM 7/15/2001 +0200, Giuseppe Bilotta wrote:
>Saturday, July 14, 2001 Johannes Huesing wrote:
>
>JH> On Fri, Jul 13, 2001 at 11:59:48PM +0200, Giuseppe Bilotta wrote:
> >>
> >> Friday, July 13, 2001 Hans Hagen wrote:
> >>
> >> HH> \startcombination
> >>
> >> But don't these set a single caption for both tables?
> >>
>
>JH> They set a single caption for each figure. You can put the
>\startcombination
>JH> and \stopcombination within the argument of \placefigure if you want the
>JH> whole thing to float, but you can set the caption argument of \placefigure
>JH> to {none} to avoid a common caption. Unfortunately, you will lose the
>JH> ability to assign a number to each of your members of the combination.
>
>But the latter (one number for each) is one of the things I want.
Ah, how demanding. how about:
\starttext
\startbuffer
\startcombination
{\externalfigure[koe.pdf][height=1cm,width=5cm]}
{\placefloatcaption[figure]{Just a cow}}
{\externalfigure[koe.pdf][height=1cm,width=5cm]}
{\placefloatcaption[figure]{Just another cow}}
\stopcombination
\stopbuffer
\placefigure{none}{\getbuffer}
\placefigure{none}{\getbuffer}
\placefigure{none}{\getbuffer}
\placefigure{none}{\getbuffer}
\stoptext
The next piece of code should go into cont-new.tex. It is a new thing that
i needed for pop of superscaled floats [click on float and get the big one]
in a style i made recently [meant for a userguide for a blood pressure
measuring device]. As the comment says: it's experimental code.
% Quite experimental !
% the split is needed when for instance the float goes into
% a multi page field and the list of figs becomes larger than
% one page: cycle between 'only flush when object ref ok'
% and 'one/many page fig list'; see "uguide finometer"
\def\placefloatcaption
{\dodoubleempty\doplacefloatcaption}
\def\doplacefloatcaption[#1][#2]#3%
{\setfloatcaption[#1][#2]{#3}%
\placefloatcaptiontext[#1]%
\placefloatcaptionreference[#1]}
\def\setfloatcaption
{\dodoubleempty\dodosetfloatcaption} % beware, name clash
\def\dodosetfloatcaption[#1][#2]#3% to do namespace for number/ascii
{\doifelsevalue{\??kj#1\c!nummer}{\v!ja} % also handle trialtypesetting
{\verhoognummer[#1]%
\maakhetnummer[#1]%
\global\let\flhetnummer\hetnummer
\setgvalue{@fl@r@#1}%
{\dofloatreference
\redofloatorder{#1}%
\doschrijfnaarlijst{#1}{\flhetnummer}{#3}{#1}%
\doglobal\convertargument#3\to\flasciititle % \asciititle is global?
\doifsomething{#2}{\rawreference{\s!flt}{#2}{{\flhetnummer}{\flasciititle}}}%
\global\letvalue{@fl@r@#1}\relax}% nills
\setgvalue{@fl@t@#1}%
{\doattributes{\??kj#1}\c!kopletter\c!kopkleur
{\labeltexts{#1}{\flhetnummer}}%
\doattributes{\??kj#1}\c!letter\c!kleur
{\tfskip#3}}}
{\global\letvalue{@fl@r@#1}\relax
\global\letvalue{@fl@t@#1}\relax}}
\def\placefloatcaptiontext [#1]{\getvalue{@fl@t@#1}}
\def\placefloatcaptionreference[#1]{\getvalue{@fl@r@#1}}
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re[3]: Side-by-side floats?
2001-07-18 15:24 ` Hans Hagen
@ 2001-07-19 10:38 ` Giuseppe Bilotta
2001-07-19 11:20 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2001-07-19 10:38 UTC (permalink / raw)
Cc: ntg-context
Wednesday, July 18, 2001 Hans Hagen wrote:
>>
>>But the latter (one number for each) is one of the things I want.
HH> Ah, how demanding. how about:
[snip]
Almost there! Now we only need a way to be able to refer to each
of the tables on its own. I have this sort of suggestion: sort of
"swapping" combination and floats. That is, instead of having a
float of combinations, provide a (different) command that gives a
combination of floats. So the user could do:
\startfloatcombo
\placefigure[fig1]{A cow}{\externalfigure[koe]}
\placetable[tab1]{A table}\starttable ... \stoptable
\stopfloatcombo
If you want to try something even more complex (or simpler) then
you could just provide for multiple floats on the same paragraph.
IIRC, floats are also used to "shape" paragraph, because they give
layouts like
+----+ Text Text Text Text Text Text
| | Text Text Text Text Text Text
| | Text Text Text Text Text Text
+----+ Text Text Text Text Text Text
Text Text Text Text Text Text a Text
Text Text Text Text Text Text a Text
or
Text Text Text Text Text Text +----+
Text Text Text Text Text Text | |
Text Text Text Text Text Text | |
Text Text Text Text Text Text +----+
Text Text Text Text Text Text a Text
Text Text Text Text Text Text a Text
Now, what about providing for
+----+ Text Text Text Text Text +----+
| | Text Text Text Text Text | |
| | Text Text Text Text Text | |
+----+ Text Text Text Text Text +----+
Text Text Text Text Text Text Text Txt
Text Text Text Text Text Text Text Txt
Or other "fancy" things like that?
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re[3]: Side-by-side floats?
2001-07-19 10:38 ` Re[3]: " Giuseppe Bilotta
@ 2001-07-19 11:20 ` Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2001-07-19 11:20 UTC (permalink / raw)
Cc: ntg-context
At 12:38 PM 7/19/2001 +0200, Giuseppe Bilotta wrote:
>Almost there! Now we only need a way to be able to refer to each
>of the tables on its own. I have this sort of suggestion: sort of
it's there already: just add an second arg [with a nice ref]
>"swapping" combination and floats. That is, instead of having a
>float of combinations, provide a (different) command that gives a
>combination of floats. So the user could do:
>
>\startfloatcombo
>\placefigure[fig1]{A cow}{\externalfigure[koe]}
>\placetable[tab1]{A table}\starttable ... \stoptable
>\stopfloatcombo
would be weird to implement
>Now, what about providing for
>
>+----+ Text Text Text Text Text +----+
>| | Text Text Text Text Text | |
>| | Text Text Text Text Text | |
>+----+ Text Text Text Text Text +----+
>Text Text Text Text Text Text Text Txt
>Text Text Text Text Text Text Text Txt
>
>Or other "fancy" things like that?
i have been thinking of that when doing the tex flow following backgrounds
and it is possible, but first i want to fresh up the side float otr
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-07-19 11:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-12 16:43 Side-by-side floats? Giuseppe Bilotta
2001-07-13 20:37 ` Hans Hagen
2001-07-13 21:59 ` Re[2]: " Giuseppe Bilotta
2001-07-14 21:08 ` Johannes Huesing
2001-07-15 10:00 ` Re[2]: " Giuseppe Bilotta
2001-07-18 15:24 ` Hans Hagen
2001-07-19 10:38 ` Re[3]: " Giuseppe Bilotta
2001-07-19 11:20 ` 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).