From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107245 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: jbf Newsgroups: gmane.comp.tex.context Subject: Re: long caption in 2-page spread Date: Thu, 7 May 2020 20:13:43 +1000 Message-ID: <2f3bbdea-4fbb-1fd3-3090-b0ae656b4b70@gmail.com> References: <9d274508-8d44-0b41-d907-05b483b22bf6@gmail.com> <8CB4DA67-6F85-4CBC-A1C0-B1FF9138A670@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5660963234242051112==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="2892"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu May 07 12:14:12 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWdXg-0000ds-G0 for gctc-ntg-context-518@m.gmane-mx.org; Thu, 07 May 2020 12:14:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2143118362D; Thu, 7 May 2020 12:13:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yvzTxbmagxWu; Thu, 7 May 2020 12:13:52 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1549F183B5B; Thu, 7 May 2020 12:13:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1DEA2183B55 for ; Thu, 7 May 2020 12:13:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G1SRe3qmnkZy for ; Thu, 7 May 2020 12:13:50 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.214.169; helo=mail-pl1-f169.google.com; envelope-from=roma83537@gmail.com; receiver= Original-Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E3FD218362D for ; Thu, 7 May 2020 12:13:49 +0200 (CEST) Original-Received: by mail-pl1-f169.google.com with SMTP id s10so1895353plr.1 for ; Thu, 07 May 2020 03:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=8hY3AJmcd6pLqW5eyQ0iiZVrQYRAKqlgZ1tk18fmDQk=; b=U1Rj5LwmEfgv3UHOqbqS1s+AE0d643ZQSJG96fIJrZTbUdNHqhz7oUbgcCE/ZkKBe+ YuopuMpQN4SMYrl68xbJYQxcPu6D3Jo0Oq8HC385A/LR1i7BVSuMhRuiTCEdP9qrC0Mm Gqnela622IaZjn9XiwAk6tb59oAawrNzEdcpPR/oEfzhnI5atVhtEJuIahfdRHJVLwKA iqDERBD5kGR0grmcI+vfZpamanjLIl7X45zYUfkQhzs2J0PqX8tuX62yuz8K+mh4/qsL t4QJ7kkuf6ekr7mn1bWvZQOZKPRy4Grhc1NkSzDMoABDvKoo4RgEUVxS7AdbBDRDPV1D SLqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=8hY3AJmcd6pLqW5eyQ0iiZVrQYRAKqlgZ1tk18fmDQk=; b=nHGdD5plYyAuoKR3ML4E5bjb7ZKRPw+poZ2jjjGzLavvJltGgoGQCmTE/hQdD9+ggv GUz9nDMAGCNnEOMTRkbOpZz0ed56F4YUOLmdSZjhbTcEdXQw4k/RjFnaLxUCKRPMdo65 5ldjJ+bbQxQjrxDngJlYma/U0ARaz9IWCN98YH5zvgTBSDR4OlVu3plZql2xsPiNqdAl bXczItYgg2+aFYG3th51ThTPdrOiBgxXJTaov2Wf1RHNy3jVIVtvUu5XgFLJF3rUrmDA OoHBhitn8EEqS9uC6kgUnB8Me98gLBPg2ZMxAGc+vsntmDskUGIAxk2MubhpvUxauunW 742w== X-Gm-Message-State: AGi0PuYsxu3sTDDf4Wh+bX7BTtkYs0P/drYxN1QjawkekqA3SEDIRANi uYwe5HMhPDDmvN0Vi9miOOQ= X-Google-Smtp-Source: APiQypLEvX9BsE0OOM0Hqp+Y9kaHjJ9xMtxMatAssyn/BMi28piSkZiDvKM037W+/WCgqRjF8XsQsg== X-Received: by 2002:a17:902:b712:: with SMTP id d18mr11541833pls.143.1588846427833; Thu, 07 May 2020 03:13:47 -0700 (PDT) Original-Received: from [192.168.0.100] ([120.18.15.13]) by smtp.gmail.com with ESMTPSA id u12sm4486521pfc.15.2020.05.07.03.13.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 May 2020 03:13:47 -0700 (PDT) In-Reply-To: <8CB4DA67-6F85-4CBC-A1C0-B1FF9138A670@fiee.net> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:107245 Archived-At: This is a multi-part message in MIME format. --===============5660963234242051112== Content-Type: multipart/alternative; boundary="------------2DCE0C227E3AFC94EBE7EB38" Content-Language: en-US This is a multi-part message in MIME format. --------------2DCE0C227E3AFC94EBE7EB38 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 : >> >> 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 > ___________________________________________________________________________________ --------------2DCE0C227E3AFC94EBE7EB38 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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
___________________________________________________________________________________
--------------2DCE0C227E3AFC94EBE7EB38-- --===============5660963234242051112== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5660963234242051112==--