ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thangalin <thangalin@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: image across 2 page spread
Date: Wed, 29 Apr 2020 18:45:09 -0700	[thread overview]
Message-ID: <CAANrE7rsyY=DZO5GnfZStJ4VBfYmG7ZgNMLivdY4SWE-E1zQjw@mail.gmail.com> (raw)
In-Reply-To: <757279ab-15c8-51ec-0089-62933b838214@gmail.com>

Would something like this work?

\setupbackgrounds[page][
  background={BookIllustrationLayer},
]

\definelayer[BookIllustrationLayer][
  width=\paperwidth,
  height=.5\paperheight,
  y=.5\paperheight,
  position=no,
  repeat=no,
]

  \setlayer[BookIllustrationLayer]{%
    \clip[x=\doifelseoddpage{2}{1}]{%
      \externalfigure[filename][
        width=2\paperwidth,
        height=.5\paperheight]%
    }%
  }%

On Wed, Apr 29, 2020 at 5:05 PM jbf <roma83537@gmail.com> wrote:
>
> Hi list,
>
> With 99% of work complete on a book, including single page images, I now find myself confronted with a final problem: how to run one image across facing pages or in other words, one image (plus its caption) across a two-page spread, such that there is no gap.
>
> I have tried a number of fairly crass attempts (obviously too simple) to see if I could get somewhere near what I want, e.g.
>
> \externalfigure[plate12.jpg][width=\paperwidth, height=.7\paperheight, frame=none] {\tfx \sc Plates 12, 13. \tfx Twenty trucks from the Netherlands setting off}
>
> \externalfigure[plate13.jpg][width=\paperwidth, height=.7\paperheight, frame=none] {\tfx for their first mission amongst the German diaspora.}
>
> My thinking here was that \paperwidth might help extend the image to the inner edge on the left-hand page, but it doesn't work that way for the right-hand page, since there it extends to the outer edge, not the inner edge! The .7\paperheight was to provide room for the caption. But all in all, this is no solution!
>
> If it is any help, the setup dimensions for the book are US Digest:
>
> \definepapersize
>   [ACN][width=5.5in,height=8.5in] %  w140mm x h216mm
>
> I then looked up how one might do it in LaTeX, and found the following link: https://tex.stackexchange.com/questions/23860/how-to-include-a-picture-over-two-pages-left-part-on-left-side-right-on-right
>
> How much of that would be transferable to ConTeXt? (I am thinking particularly of the \newcommand*{\twopagepicture}[4] bit.
>
> There are explanations for how to do this in InDesign, and since it is something someone might often want to do (e.g. in magazines), I also thought it might be easier to find reference to it on Contextgarden, yet haven't found anything there. But I am sure ConTeXt has a way to do this.
>
> Could someone point me in the right direction with this please?
>
> Julian
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2020-04-30  1:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30  0:05 jbf
2020-04-30  1:45 ` Thangalin [this message]
2020-04-30  9:11 ` Henning Hraban Ramm
2020-04-30 10:02 ` 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='CAANrE7rsyY=DZO5GnfZStJ4VBfYmG7ZgNMLivdY4SWE-E1zQjw@mail.gmail.com' \
    --to=thangalin@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).