ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: jbf <roma83537@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: long caption in 2-page spread
Date: Thu, 7 May 2020 20:13:43 +1000	[thread overview]
Message-ID: <2f3bbdea-4fbb-1fd3-3090-b0ae656b4b70@gmail.com> (raw)
In-Reply-To: <8CB4DA67-6F85-4CBC-A1C0-B1FF9138A670@fiee.net>


[-- Attachment #1.1: Type: text/plain, Size: 4065 bytes --]

After trying Hraban's two suggestions to resolve the problem of a 
caption ('title=') for an image across a two-page spread (and I have 
tried a variety of adaptations of those two possible solutions), I still 
have not resolved the issue.

To repeat what Hans gave me, to resolve the 2-page spread in the first 
instance:

\startpostponing
     \setuppagenumbering[state=stop]
     \startspread
         \startplacefigure[location=here,title={This is a cow!}]
         \externalfigure[cow.pdf][height=\textheight]%
         \stopplacefigure
     \stopspread
     \setuppagenumbering[state=start]
\stoppostponing

The problem I have is that the figure has a title/caption much longer 
than 'This is a cow', and the end result is that it commences on the 
verso page but then runs across (repeats, part of it) on the recto page. 
Hraban suggests, first of all:

title={\hbox to \textwidth{\vbox{Your lengthy caption}}}

but this results in the first part of the caption properly located 
left-flushed on the verso page, and the other part right-flushed (and to 
the right of the figure, so running off the page) on the recto page.

The second solution is

title={\framedtext[width=\textwidth,frame=off,align=right]{Your lengthy caption}}

and this almost works, but this time part of the caption repeats on the 
left  of the recto page more or less within the inner margin, so I can 
live with that, knowing that it will not be visible ultimately at the 
binding stage.

Of course, what I really want to achieve is that the caption (aka 
'title') appears either on the verso or the recto page, but not both. Is 
that achievable? The actual coding for all this as I have it at the 
moment is as follows:

\startpostponing
     \setuppagenumbering[state=stop]
     \startspread
         \startplacefigure[location=here,title={{\sc Plates 12/13.} 
\switchtobodyfont[9.5pt] My very, very,_very long\\ caption for this_ 
figure}]
         \externalfigure[plate12-13.jpg][height=.8\textheight]%
         \stopplacefigure
     \stopspread
     \setuppagenumbering[state=start]
\stoppostponing

but

..._very long caption_
_for this _...

is repeated on the recto page. This is what I want to avoid.
Julian

On 5/5/20 4:18 pm, Henning Hraban Ramm wrote:
>> Am 05.05.2020 um 03:31 schrieb jbf <roma83537@gmail.com>:
>>
>> The following excellent solution (see below) to a 2-page spread of an image was given me by Hans (I had been completely unaware of the command \startspread. It appears to be recent and undocumented, but it certainly simplifies matters).
>>
>> But in my case the title is a lengthy sentence, rather than the 4-word 'This is a cow'. And even though I have been able to split the line, e.g. title={this is my very, very, very,\\ very etc. etc. long title}, what happens is that part of the caption still appears on the right-hand page of the spread.
>>
>> Is there a way that I can limit the appearance of the caption to just one (the left-hand) page? In other words, so the figure is spread but not the caption? Or alternatively, have the caption neatly split across the two pages with appropriate space inbetween? I tried various combinations, including an \hfill halfway through the title, but to no avail. Perhaps this is asking too much, but there may be a workaround.
> I guess you need something like
>
> title={\hbox to \textwidth{\vbox{Your lengthy caption}}}
>
> or
>
> title={\framedtext[width=\textwidth,frame=off,align=right]{Your lengthy caption}}
>
>
> HTH
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 6291 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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-05-07 10:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-05  1:31 jbf
2020-05-05  6:18 ` Henning Hraban Ramm
2020-05-07 10:13   ` jbf [this message]

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=2f3bbdea-4fbb-1fd3-3090-b0ae656b4b70@gmail.com \
    --to=roma83537@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).