A side by side float that takes advantage of the margin
I have a situation when I have to put side by side two floats (a table and figure). My current code is \placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} } The problem is that sometimes the combined width of table and figure is bigger than the textwidth. I would like the combo to be centered across the page, not starting from the left margin of the text and invading the right margin only. How can I achieve this? -- Giuseppe "Oblomov" Bilotta
Giuseppe Bilotta wrote:
I have a situation when I have to put side by side two floats (a table and figure). My current code is
\placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} }
Have you tried \centerline (may not work)? \placetable[here][label]{caption}% {\centerline{\placesidebyside{table code}{figure code}}} Taco
Taco Hoekwater wrote:
Giuseppe Bilotta wrote:
I have a situation when I have to put side by side two floats (a table and figure). My current code is
\placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} }
Have you tried \centerline (may not work)?
\placetable[here][label]{caption}% {\centerline{\placesidebyside{table code}{figure code}}}
or use \startcombination \stopcombination ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Friday, September 16, 2005 Taco Hoekwater wrote:
Giuseppe Bilotta wrote:
I have a situation when I have to put side by side two floats (a table and figure). My current code is
\placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} }
Have you tried \centerline (may not work)?
\placetable[here][label]{caption}% {\centerline{\placesidebyside{table code}{figure code}}}
It works, but it needs a \scantokens inside the centerline because of the active stuff in the tables setups. Thanks. -- Giuseppe "Oblomov" Bilotta
Giuseppe Bilotta wrote:
Friday, September 16, 2005 Taco Hoekwater wrote:
Giuseppe Bilotta wrote:
I have a situation when I have to put side by side two floats (a table and figure). My current code is
\placetable[here][label]{caption}% {\\placesidebyside {table code}{figure code} }
Have you tried \centerline (may not work)?
\placetable[here][label]{caption}% {\centerline{\placesidebyside{table code}{figure code}}}
It works, but it needs a \scantokens inside the centerline because of the active stuff in the tables setups.
put 'm in buffers: \startbuffer[table] ... \stopbuffer \startbuffer[figure] ... \figure \placetable [here][label] {caption} {\centerline {\placesidebyside {\getbuffer[table]} {\getbuffer[figure]}}} ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Friday, September 16, 2005 Hans Hagen wrote:
\startbuffer[table] ... \stopbuffer
\startbuffer[figure] ... \figure
\placetable [here][label] {caption} {\centerline {\placesidebyside {\getbuffer[table]} {\getbuffer[figure]}}}
Could help, but I've chosen to try a different layout (separate thread). Can you give it a shot? -- Giuseppe "Oblomov" Bilotta
participants (3)
-
Giuseppe Bilotta
-
Hans Hagen
-
Taco Hoekwater