* Floating dimensions that adapts automaticall
@ 2015-08-03 18:02 Fabrice Couvreur
0 siblings, 0 replies; only message in thread
From: Fabrice Couvreur @ 2015-08-03 18:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1085 bytes --]
Hi,
In the code below, we can see that the table overflows.
Of course, one can play on the table dimensions to adjust its position.
However it is possible to define a floating whose dimensions automatically
adapt to the available space ?
Thank you,
Fabrice
\definefloat
[MyFloat]
[figure]
\setupfloat
[MyFloat]
[default={right,none}]
\startsetups[table:initialize]
\setupTABLE[start][align={middle,lohi},width=2cm,offset=1ex]
\setupTABLE[column][first][width=4cm]
\setupTABLE[row][first][background=color,backgroundcolor=lightgray]
\stopsetups
\showframe
\starttext
\placeMyFloat{}{\externalfigure[louvre.jpg][width=5cm]}
Le tableau ci-dessous indique le nombre d'entrées (en milliers) au musée du
Louvre :
\blank[medium]
\startmidaligned
\placeMyFloat{}{
\bTABLE[setups=table:initialize]
\bTR
\bTH \eTH
\bTD \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
\eTR
\bTR
\bTH \eTH
\bTD \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
\eTR
\eTABLE
\stopmidaligned}
\blank[medium]
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 2076 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] only message in thread
only message in thread, other threads:[~2015-08-03 18:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-03 18:02 Floating dimensions that adapts automaticall Fabrice Couvreur
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).