From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bleeding pictures as floats?
Date: Mon, 11 May 2015 13:53:36 +0200 [thread overview]
Message-ID: <7DFC1ED6-009A-4B73-9775-1A3757468F1E@gmail.com> (raw)
In-Reply-To: <3625750A-949E-48C9-93EC-B3EAAC6AFC72@fiee.net>
> Am 06.05.2015 um 07:06 schrieb Henning Hraban Ramm <texml@fiee.net>:
>
> […]
>
> \definemeasure[Bleed][3mm]
> \definemeasure[maxWidth][\dimexpr \paperwidth + \measure{Bleed}\relax]
> \definemeasure[maxHeight][\dimexpr \paperheight + 2\measure{Bleed}\relax]
> \definemeasure[topOffset][\dimexpr \topspace + \measure{Bleed}\relax]
You don’t have to use \dimexpr because the measure macros already us it.
> […]
>
> \definefloat[bleedfigure][figure]
> \setupfloat[bleedfigure][
> outermargindistance=-2\measure{Bleed},
> %leftmargindistance=-2\measure{Bleed},
> %rightmargindistance=-2\measure{Bleed},
> maxwidth=\measure{maxWidth}
> ]
There is only a “outermargin” key but not “outermargindistance”.
> […]
>
> With this (perhaps not minimal) example I get nearly what I want, but the image starts with the paper and is centered (x/y -1,5mm/0mm) where I want it to start on -3mm/-3mm on a left page, 0mm/-3mm on a right page. I thought my definitions should do that…
The space before the image isn’t fixed when you use \setuplayout[grid=yes] because ConTeXt has to change it to ensure the text after the floats stays on the page.
%\setuplayout[grid=yes] % uncomment to see how the space before the images changes
\showframe
\starttext
\chapter{Test}
\placefigure[top]{Dummy}{\externalfigure[dummy]}
\input tufte
\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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-05-11 11:53 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
2015-05-04 20:59 ` Wolfgang Schuster
2015-05-06 5:06 ` Henning Hraban Ramm
2015-05-11 11:53 ` Wolfgang Schuster [this message]
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=7DFC1ED6-009A-4B73-9775-1A3757468F1E@gmail.com \
--to=schuster.wolfgang@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).