ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Align table (framed) top
@ 2022-01-04 10:54 Mikael Sundqvist via ntg-context
  2022-01-04 11:12 ` kauśika via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-01-04 10:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

Hi,

This is probably simple, but I cannot combine the right keys to get it
to work. What is the correct way to get the last line, "The last foo",
to automatically be placed below the second table?
I still want the first line of the table to align vertically with the text Bar.

/Mikael

\starttext
Foofoo

Bar\bTABLE[width=2cm,location=top]
\bTR \bTD This is a long sentence \eTD \eTR
\eTABLE

The last foo
\stoptext
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Align table (framed) top
  2022-01-04 10:54 Align table (framed) top Mikael Sundqvist via ntg-context
@ 2022-01-04 11:12 ` kauśika via ntg-context
  2022-01-04 12:21   ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: kauśika via ntg-context @ 2022-01-04 11:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: kauśika, Mikael Sundqvist

On Tuesday, January 4, 2022 4:24:22 PM IST Mikael Sundqvist via ntg-context 
wrote:
> What is the correct way to get the last line, "The last foo",
> to automatically be placed below the second table?

There is only one table in your example.

> I still want the first line of the table to align vertically with the text
> Bar.

If you don't need a table, the following achieves the same:

\starttext
Foofoo

Bar
\framed[width=2cm,align=normal,location=top]{this is a long sentence}\par
The last foo
\stoptext

Best,
kauśika


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Align table (framed) top
  2022-01-04 11:12 ` kauśika via ntg-context
@ 2022-01-04 12:21   ` Mikael Sundqvist via ntg-context
  2022-01-04 16:22     ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-01-04 12:21 UTC (permalink / raw)
  To: kauśika; +Cc: Mikael Sundqvist, mailing list for ConTeXt users

Oh, thanks!

I can simply wrap my table in a framed environment, then. If it is
still possible to solve without the surrounding framed I'm interested
to hear how.

/Mikael

On Tue, Jan 4, 2022 at 12:12 PM kauśika <citturs@gmail.com> wrote:
>
> On Tuesday, January 4, 2022 4:24:22 PM IST Mikael Sundqvist via ntg-context
> wrote:
> > What is the correct way to get the last line, "The last foo",
> > to automatically be placed below the second table?
>
> There is only one table in your example.
>
> > I still want the first line of the table to align vertically with the text
> > Bar.
>
> If you don't need a table, the following achieves the same:
>
> \starttext
> Foofoo
>
> Bar
> \framed[width=2cm,align=normal,location=top]{this is a long sentence}\par
> The last foo
> \stoptext
>
> Best,
> kauśika
>
>
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Align table (framed) top
  2022-01-04 12:21   ` Mikael Sundqvist via ntg-context
@ 2022-01-04 16:22     ` Wolfgang Schuster via ntg-context
  2022-01-04 18:00       ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-01-04 16:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Mikael Sundqvist via ntg-context
  Cc: Wolfgang Schuster, Mikael Sundqvist

Mikael Sundqvist via ntg-context schrieb am 04.01.2022 um 13:21:
> Oh, thanks!
>
> I can simply wrap my table in a framed environment, then. If it is
> still possible to solve without the surrounding framed I'm interested
> to hear how.

You have to put the table in a box to change the vertical position.

\starttext

a\tbox{\bTABLE \bTR \bTD xxx\par yyy \eTD \eTR \eTABLE}b

\stoptext

Wolfgang

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Align table (framed) top
  2022-01-04 16:22     ` Wolfgang Schuster via ntg-context
@ 2022-01-04 18:00       ` Mikael Sundqvist via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-01-04 18:00 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: Mikael Sundqvist, Mikael Sundqvist via ntg-context

Oh, I should have thought of that. Thanks (again) Wolfgang!

/Mikael

On Tue, Jan 4, 2022 at 5:22 PM Wolfgang Schuster
<wolfgang.schuster.lists@gmail.com> wrote:
>
> Mikael Sundqvist via ntg-context schrieb am 04.01.2022 um 13:21:
> > Oh, thanks!
> >
> > I can simply wrap my table in a framed environment, then. If it is
> > still possible to solve without the surrounding framed I'm interested
> > to hear how.
>
> You have to put the table in a box to change the vertical position.
>
> \starttext
>
> a\tbox{\bTABLE \bTR \bTD xxx\par yyy \eTD \eTR \eTABLE}b
>
> \stoptext
>
> Wolfgang
>
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2022-01-04 18:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 10:54 Align table (framed) top Mikael Sundqvist via ntg-context
2022-01-04 11:12 ` kauśika via ntg-context
2022-01-04 12:21   ` Mikael Sundqvist via ntg-context
2022-01-04 16:22     ` Wolfgang Schuster via ntg-context
2022-01-04 18:00       ` Mikael Sundqvist via ntg-context

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