ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Placing a float flushleft
@ 2026-02-17 22:10 Willi Egger
  2026-02-18  9:11 ` [NTG-context] " Marco Patzer
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2026-02-17 22:10 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

Hi all,

I would like to put a series of tables leftaligned without the text to
flow around it when the table is small.
I tried different settings, but can not get it working.

\startdocument

\input tufte


% left right middle flushleft flushright center max inner outer
innermargin outermargin inneredge outeredge backspace cutspace
leftmargin rightmargin leftedge rightedge

\startplacetable
  [location={right},
   reference=tab:test,
   title= Test table]
  {\bTABLE
    \bTABLEhead
      \bTR \bTD Command  \eTD \bTD Description \eTD \eTR
    \eTABLEhead
    \bTABLEbody
      \bTR \bTD test \eTD \bTD whatever \eTD \eTR
      \bTR \bTD test \eTD \bTD whatever \eTD \eTR
      \bTR \bTD test \eTD \bTD whatever \eTD \eTR
      \bTR \bTD test \eTD \bTD whatever \eTD \eTR
    \eTABLEbody
  \eTABLE}
\stopplacetable

\input knuth

\stopdocument

Thaks fdor hints!
Willi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Placing a float flushleft
  2026-02-17 22:10 [NTG-context] Placing a float flushleft Willi Egger
@ 2026-02-18  9:11 ` Marco Patzer
  2026-02-18 11:59   ` Willi Egger
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Patzer @ 2026-02-18  9:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 17 Feb 2026 23:10:13 +0100
Willi Egger <w.egger@boede.nl> wrote:

> I would like to put a series of tables leftaligned without the text to
> flow around it when the table is small.

Like this?

\startdocument
\samplefile{tufte}

\startplacetable
  [width=\textwidth,
   title= Test table]
  \startlinealignment [left]
    \bTABLE
      \bTABLEhead
        \bTR \bTD Command  \eTD \bTD Description \eTD \eTR
      \eTABLEhead
      \bTABLEbody
        \bTR \bTD test \eTD \bTD whatever \eTD \eTR
        \bTR \bTD test \eTD \bTD whatever \eTD \eTR
        \bTR \bTD test \eTD \bTD whatever \eTD \eTR
        \bTR \bTD test \eTD \bTD whatever \eTD \eTR
      \eTABLEbody
    \eTABLE
  \stoplinealignment
\stopplacetable

\samplefile{knuth}
\stopdocument

Marco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Placing a float flushleft
  2026-02-18  9:11 ` [NTG-context] " Marco Patzer
@ 2026-02-18 11:59   ` Willi Egger
  0 siblings, 0 replies; 3+ messages in thread
From: Willi Egger @ 2026-02-18 11:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: mailing list for ConTeXt users

Hello Marco,

this is an interesting solution. I would not have thaught of using the
width parameter to consume the textwidth which of course prevents other
text flowing around the table.
Thank you!
Willi

On Feb 18 2026, at 10:11 am, Marco Patzer <lists@homerow.info> wrote:

> On Tue, 17 Feb 2026 23:10:13 +0100
> Willi Egger <w.egger@boede.nl> wrote:
> 
>> I would like to put a series of tables leftaligned without the text to
>> flow around it when the table is small.
> 
> Like this?
> 
> \startdocument
> \samplefile{tufte}
> 
> \startplacetable
>  [width=\textwidth,
>   title= Test table]
>  \startlinealignment [left]
>    \bTABLE
>      \bTABLEhead
>        \bTR \bTD Command  \eTD \bTD Description \eTD \eTR
>      \eTABLEhead
>      \bTABLEbody
>        \bTR \bTD test \eTD \bTD whatever \eTD \eTR
>        \bTR \bTD test \eTD \bTD whatever \eTD \eTR
>        \bTR \bTD test \eTD \bTD whatever \eTD \eTR
>        \bTR \bTD test \eTD \bTD whatever \eTD \eTR
>      \eTABLEbody
>    \eTABLE
>  \stoplinealignment
> \stopplacetable
> 
> \samplefile{knuth}
> \stopdocument
> 
> Marco
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry
> to the Wiki!
> 
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________
> 
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-18 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-17 22:10 [NTG-context] Placing a float flushleft Willi Egger
2026-02-18  9:11 ` [NTG-context] " Marco Patzer
2026-02-18 11:59   ` Willi Egger

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).