From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: place figures at the end of document
Date: Fri, 18 Jan 2008 20:56:32 +0100 [thread overview]
Message-ID: <20080118205632.ffafbb16.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <b11f605c0801180836x243072eu428c407b3d2c6fcb@mail.gmail.com>
On Fri, 18 Jan 2008 17:36:26 +0100
"Peter I. Hansen" <peterih@gmail.com> wrote:
> Hi,
>
> Is there a way in ConTeXt to place figures (and other floats) at the
> very end of the document?
>
> More specifically I would like to keep on having to placefigure code
> at the relevant place in the text where I would normally typeset with
> the option [here], but sometimes readers want all figures moved to the
> end of the document and it would be handy if this could be done by
> changing a keyword.
>
> thanks, Peter
Interesting but very hard topic, I found a solution but it did only
work for a few pictures.
\unprotect
\installfloathandler {save} \somesavefloat
\def\placesomesavefloat{\OTRcommand\somesavefloat}
%\def\somesavefloat[#1]{\dosavefloat}
\def\somesavefloat{\placesomesavefloat}
\def\somesavefloat[#1]%
{\global\setbox\floatlist\vbox
{\nointerlineskip
\unvbox\floatlist
\uncenteredfloatbox}}
%\def\OTRONEsomesavefloat[#1]{\savefloat}
\def\OTRONEsomesavefloat[#1]{\setbox\floatbox\vbox{\box\floatbox}}
\def\placesavedfloats{\box\floatlist}
%\def\placesavedfloats
% {\loop\ifdim\ht\floatlist>0pt
% \vsplit\floatlist to\lineheight
% \repeat}
\protect
\starttext
\dorecurse{4} % 5 and more did fail
{\input knuth\par
\expanded{\placefigure[save]{Figure \recurselevel}{\blackrule[width=6cm,height=4cm]}}}
\page
\placesavedfloats
\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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-01-18 19:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-18 16:36 Peter I. Hansen
2008-01-18 19:56 ` Wolfgang Schuster [this message]
2008-01-19 18:59 ` Carsten Fechtmann
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=20080118205632.ffafbb16.schuster.wolfgang@googlemail.com \
--to=schuster.wolfgang@googlemail.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).