ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bleeding pictures as floats?
Date: Mon, 4 May 2015 17:54:18 +0600	[thread overview]
Message-ID: <BB023FE2-845D-44D6-84F7-59EC8949DE1B@fiee.net> (raw)
In-Reply-To: <25C06478-38F6-400E-B8A5-19B67C35BD9F@gmail.com>

Am 2015-05-04 um 17:10 schrieb Wolfgang Schuster <schuster.wolfgang@gmail.com>:

>> Is it possible to use the float placing mechanisms for pictures that go beyond the type area or even beyond the page?
>> 
>> In the book I’m typesetting, most pictures need to fill the whole width of the page (i.e. plus 3mm bleed), but not all cover a full page.
>> 
>> I don’t know how to tell \externalfigure or \placefloat a negative offset.
>> Or can I use layers with floats? Of course the text should flow around the pictures.
> 
> Does the details manual  [1] answer your questions?
> 
> [1] http://pragma-ade.com/show-man-27.htm

Thank you, that helped, but not enough.

I have now:

\def\bleed{3mm}
\def\maxWidth{\dimexpr(\paperwidth+\bleed)}

\definefloat[bleedfigure][figure]
\setupfloat[bleedfigure]
[
outermargindistance=-\bleed, % does that exist?
leftmargindistance=-\bleed,
rightmargindistance=-\bleed,
default={cutspace,none},
maxwidth=\maxWidth
]

\def\topfig#1#2{\placebleedfigure[top]{#1}{\offset[topoffset=\dimexpr(-\topspace-\bleed)]{\externalfigure[#2][width=\maxWidth]}}}

With that my pictures start at 0,-3mm, but they should start at -3mm,-3mm on a left page. Their maximum width is only \paperwidth, without bleed.
Where’s my mistake?

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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:[~2015-05-04 11:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04 10:53 Henning Hraban Ramm
2015-05-04 11:10 ` Wolfgang Schuster
2015-05-04 11:54   ` Henning Hraban Ramm [this message]
2015-05-04 20:59     ` Wolfgang Schuster
2015-05-06  5:06       ` Henning Hraban Ramm
2015-05-11 11:53         ` Wolfgang Schuster
2015-07-30  9:49           ` Henning Hraban Ramm

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=BB023FE2-845D-44D6-84F7-59EC8949DE1B@fiee.net \
    --to=texml@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).