From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Splitting a float that isn't a table
Date: Fri, 03 Nov 2006 19:01:27 +0100 [thread overview]
Message-ID: <454B83F7.80805@wxs.nl> (raw)
In-Reply-To: <454B6ABD.9090305@capdm.com>
Duncan Hothersall wrote:
> I define a floating block called Exhibit
>
> \definefloat[Exhibit][table]
>
> which just contains paragraphs of text. I'd like to be able to split it
> using the \splitfloat mechanism but that only seems to work if the
> content of the float is a table, not paragraphs.
>
> ----
> \definefloat[Exhibit][table]
> \starttext
> \input tufte\par
> \splitfloat[lines=auto]{\placeExhibit{Knuth}}
> {\dorecurse{4}{\input knuth \par}}
> \input tufte\page[yes]
> \stoptext
> ----
>
> This outputs "there is nothing to split" in the resultant PDF.
>
> Is there any way to achieve the equivalent of
>
> ----
> \definefloat[Exhibit][table]
> \starttext
> \input tufte\par
> \splitfloat[lines=auto]{\placeExhibit{Knuth}}
> {\bTABLE[frame=off]\dorecurse{4}{\bTR\bTD\input knuth \eTD\eTR}
> \eTABLE}
> \input tufte\page[yes]
> \stoptext
> ----
>
> without having to make every paragraph a table cell?
>
>
for simple texts:
\def\startsometext
{\beginshapebox}
\def\stopsometext
{\endshapebox
\reshapebox{\ruledhbox{\strut\box\shapebox}}
\setbox\tsplitcontent\vbox{\flushshapebox}
\handletsplit}
\starttext
\input tufte
\splitfloat
[lines=auto]
{\placefigure{}}
{\startsometext
\dorecurse{4}{\input knuth \par}
\stopsometext}
\input tufte
\showframe
\splitfloat
[lines=auto]
{\placefigure{}}
{\starttabulate[|p|]
\NC \dorecurse{4}{\input knuth }\NC\NR
\stoptabulate}
\starttabulate[|p|]
\NC \input knuth \NC\NR
\stoptabulate
\stoptext
wikifyable (hm, could even be a nice article ...)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
prev parent reply other threads:[~2006-11-03 18:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-03 16:13 Duncan Hothersall
2006-11-03 18:01 ` Hans Hagen [this message]
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=454B83F7.80805@wxs.nl \
--to=pragma@wxs.nl \
--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).