From: MF <massifr@fastwebnet.it>
To: ntg-context@ntg.nl
Subject: Re: align natural tables left and right
Date: Fri, 30 Dec 2016 20:42:18 +0100 [thread overview]
Message-ID: <1483126938.1846.1.camel@fastwebnet.it> (raw)
In-Reply-To: <d8a3e80d-0350-fea0-fd6e-ca56c61ebed2@rik.users.panix.com>
[-- Attachment #1.1: Type: text/plain, Size: 3793 bytes --]
> On 2016-12-29 11:31, MF wrote:
>
>
>
> > Hello list,
> > please take a look at this:
> >
> > \setupbackgrounds[text][frame=on]
> >
> > \starttext
> >
> > Preceding text.
> >
> > \startplacetable[location={none,fit,force,here,middle}]
> > \bTABLE
> > \bTR
> > \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD
> > \eTR
> > \bTR
> > \bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD
> > \eTR
> > \eTABLE
> > \stopplacetable
> >
> > Following text.
> >
> > \page
> >
> > Preceding text.
> >
> > \startplacetable[location={none,fit,force,here,left}]
> > \bTABLE
> > \bTR
> > \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD
> > \eTR
> > \bTR
> > \bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD
> > \eTR
> > \eTABLE
> > \stopplacetable
> >
> > Following text.
> >
> > \page
> >
> > Preceding text.
> >
> > \startplacetable[location={none,fit,force,here,right}]
> > \bTABLE
> > \bTR
> > \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD
> > \eTR
> > \bTR
> > \bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD
> > \eTR
> > \eTABLE
> > \stopplacetable
> >
> > Following text.
> >
> > \stoptext
> >
> > It's the same table repeated on three pages, with some preceding
> > text
> > and some following text.
> > Only the "location" option of \startplacetable is modified across
> > pages: "middle" in page 1, "left" in page 2, "right" in page 3.
> >
> > When I use location=middle (page 1), the table is centered and the
> > "Following text" goes after (under) the table. This is what I want
> > to
> > achieve: the following text should be under the table.
> >
> > Using location=left or location=right, the "Following text" is not
> > placed under the table. How can I achieve that?
> >
> > Thanks in advance,
> > Massi
> >
> >
>
> Consider your third example, slightly modified:
>
>
> \startplacetable[location={none,fit,force,here,right}]
> \bTABLE
> \bTR
> \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD
> \eTR
> \bTR
> \bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD
> \eTR
> \eTABLE
> \stopplacetable
>
> Following text.
>
> Following text.
>
> Following text.
>
> Following text.
>
>
> And this example, with a frame around the table:
>
> \startframed[frame=off,align=right]
>
> \startplacetable[location={none,fit,force,here}]
>
> \bTABLE
>
> \bTR
>
> \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD
>
> \eTR
>
> \bTR
>
> \bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD
>
> \eTR
>
> \eTABLE
>
> \stopplacetable
>
> \stopframed
>
>
>
> Following text.
>
>
>
> Following text.
>
>
>
> Following text.
>
>
>
> Following text.
>
>
>
>
> The float location left (right) allows flowing text around the
> float. You do not want that, so do not use it.
>
>
>
> --
>
> Rik Kabel
Thank you Rik,
you solved my problem.
I've realized that \startplacetable is not necessary:
\starttext
\startframed[frame=off, align=flushleft, % table aligned to
the left width=broad, % the frame takes all the text
width offset=overlay, % no space around the
table ]
\bTABLE \bTR \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD \eTR
\bTR \bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD \eTR\eTABLE\stopframed
Following text.
Following text.
Following text.
Following text.
\stoptext
Best greetings,
Massi
[-- Attachment #1.2: Type: text/html, Size: 4827 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2016-12-30 19:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-29 16:31 MF
2016-12-29 17:24 ` Rik Kabel
2016-12-30 19:42 ` MF [this message]
2016-12-30 20:47 ` Rik Kabel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1483126938.1846.1.camel@fastwebnet.it \
--to=massifr@fastwebnet.it \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).