ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <hraban@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: multi-page floats
Date: Mon, 28 May 2012 21:47:44 +0200	[thread overview]
Message-ID: <B5B0FDFC-2619-4FC1-99A5-C02AD6BC4B55@fiee.net> (raw)
In-Reply-To: <4FC3B571.3090109@wxs.nl>

Am 2012-05-28 um 19:27 schrieb Hans Hagen:

> \startpostponing
>
> might help (you can add [pagenumber] or [+pagenumber] if needed)

Oh, of course, Philipp Gesang recently reminded me.
I would like to use \startpostponing[right], but fixed pages are ok.


This works:

\starttext

\startpostponing[3]
	\section{Tufte}
	\input tufte
	\strut
	
	\page
	\strut
	
	\page
	
	\section{More Tufte}
	\input tufte
	
	\page
\stoppostponing

\dorecurse{30}{
	\section{Knuth \recurselevel}
	\input knuth
}

\stoptext


But if I try to put graphics in layers within the postponing, I get  
empty pages.
Further, if I put that postponing stuff into a macro (see below), I  
get errors about \par ending the buffer. I guess I’d need some  
unexpanding, but where?
Without \def, I get 2 (instead of 3) empty pages, but with page  
numbers. I need to switch off the pagenumbering for the first two  
pages (because it’s a transparent page that doesn’t count); it’s  
probably also a problem fixed-page postponing...

\def\DoublePicAt#1#2{
	\startpostponing[#2]
	\setuppagenumbering[state=stop]\setuppagenumber[state=stop]
	
	\resetlayer[bg]
	\setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]}
	\setupbackgrounds[page][background=bg]
	\strut
	
	\page %[right] doesn’t work
	\strut
	
	\page
	
	\setuppagenumber[state=start]
	
	\resetlayer[bg]
	\setlayer[bg]{\externalfigure[#1-hg][height=\dimexpr(\paperheight 
+6mm)]}
	\setupbackgrounds[page][background=bg]
	\strut
	
	\page
	\setuppagenumbering[state=start]
	\stoppostponing
}

Thanks in advance!

Greetlings, Hraban

___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2012-05-28 19:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-27 14:06 Henning Hraban Ramm
2012-05-28 17:27 ` Hans Hagen
2012-05-28 19:47   ` Henning Hraban Ramm [this message]
2012-05-31 18:25     ` Henning Hraban Ramm
2012-05-31 21:48       ` Hans Hagen
2012-06-04 12:03         ` Henning Hraban Ramm
2012-06-05 12:00           ` Henning Hraban Ramm
2012-06-05 12:33             ` luigi scarso
2012-06-05 12:42               ` luigi scarso
2012-06-05 16:01                 ` Henning Hraban Ramm
2012-06-05 16:08                   ` luigi scarso
2012-06-05 16:17                     ` luigi scarso
2012-06-05 18:25                       ` Henning Hraban Ramm
2012-06-06  7:37                         ` luigi scarso
2012-06-06  9:39                           ` luigi scarso
2012-06-06  9:52                             ` luigi scarso
2012-06-07 12:51                               ` Henning Hraban Ramm
2012-06-05 15:59               ` Henning Hraban Ramm
2012-06-05 17:55             ` Wolfgang Schuster
2012-06-05 18:35               ` Henning Hraban Ramm
  -- strict thread matches above, loose matches on Subject: below --
2001-09-03  7:52 Multi-page floats Giuseppe Bilotta
2001-09-04  9:14 ` 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=B5B0FDFC-2619-4FC1-99A5-C02AD6BC4B55@fiee.net \
    --to=hraban@fiee.net \
    --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).