From: Prashanth <prash.n.rao@gmail.com>
To: ntg-context@ntg.nl
Subject: Nested floats
Date: Fri, 09 Mar 2012 17:38:03 +0100 [thread overview]
Message-ID: <4F5A31EB.40209@gmail.com> (raw)
Hi,
I need to create some small tables that are (possibly) next to each other.
Though I could make text flow around tables and appear to the left or
to the right of the table, I could not manage something like this:
+--------------------------------------+
| | |
| Table 1 content | Table 2 content |
| | |
| Table 1 TITLE | Table 2 TITLE |
| | |
+------------------|-------------------+
So I tried to use nested floats to achieve this (floats because I want each
to have its own number and title).
Below my mail, I have pasted the code I used to accomplish this. I don't
understand why, but it starts numbering with 7 onwards. Is there a way I can
fix the numbering?
Best regards,
Prash
\setupheads[chapter][page=no]
\starttext
\chapter{first}
\section{1st section}
hello
\section{2nd section}
hello again
\placetable[here,none][]{}{
\bTABLE[frame=off] \bTR \bTD
\placetable[force][tab:first]{derivation for sentence}{
\bTABLE[frame=off,align=center]
\bTR \bTD abc \eTD \bTD def \eTD \eTR
\bTR \bTD ghi \eTD \bTD jkl \eTD \eTR
\eTABLE
}
\eTD \bTD
\placetable[force][tab:second]{derivation for sentence}{
\bTABLE[frame=off,align=center]
\bTR \bTD abc \eTD \bTD def \eTD \eTR
\bTR \bTD ghi \eTD \bTD jkl \eTD \eTR
\eTABLE
}
\eTD \eTR \eTABLE
}
\chapter{Second}
\placetable[here,none][]{}{
\bTABLE[frame=off] \bTR \bTD
\placetable[force][tab:third]{derivation for sentence}{
\bTABLE[frame=off,align=center]
\bTR \bTD abc \eTD \bTD def \eTD \eTR
\bTR \bTD ghi \eTD \bTD jkl \eTD \eTR
\eTABLE
}
\eTD \bTD
\placetable[force][tab:fourth]{derivation for sentence}{
\bTABLE[frame=off,align=center]
\bTR \bTD abc \eTD \bTD def \eTD \eTR
\bTR \bTD ghi \eTD \bTD jkl \eTD \eTR
\eTABLE
}
\eTD \eTR \eTABLE
}
\placetable[here,none][]{}{
\bTABLE[frame=off] \bTR \bTD
\placetable[force][tab:fifth]{derivation for sentence}{
\bTABLE[frame=off,align=center]
\bTR \bTD abc \eTD \bTD def \eTD \eTR
\bTR \bTD ghi \eTD \bTD jkl \eTD \eTR
\eTABLE
}
\eTD \bTD
\placetable[force][tab:sixth]{derivation for sentence}{
\bTABLE[frame=off,align=center]
\bTR \bTD abc \eTD \bTD def \eTD \eTR
\bTR \bTD ghi \eTD \bTD jkl \eTD \eTR
\eTABLE
}
\eTD \eTR \eTABLE
}
\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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2012-03-09 16:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 16:38 Prashanth [this message]
2012-03-10 13:29 ` Marco
2012-03-10 22:21 ` Prashanth
2012-03-10 13:49 ` Wolfgang Schuster
2012-03-10 14:47 ` Marco
2012-03-10 22:33 ` Prashanth
2012-03-11 8:57 ` Wolfgang Schuster
2012-03-12 21:55 ` Hans Hagen
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=4F5A31EB.40209@gmail.com \
--to=prash.n.rao@gmail.com \
--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).