From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97787 Path: news.gmane.org!.POSTED!not-for-mail From: Florian Grammel Newsgroups: gmane.comp.tex.context Subject: Re: side caption top aligned on grid -- not implemented? Date: Sat, 8 Apr 2017 13:33:07 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/mixed; boundary="===============7979050034740135204==" X-Trace: blaine.gmane.org 1491651239 32052 195.159.176.226 (8 Apr 2017 11:33:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Apr 2017 11:33:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 08 13:33:54 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwock-000721-32 for gctc-ntg-context-518@m.gmane.org; Sat, 08 Apr 2017 13:33:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 80ACB84D93; Sat, 8 Apr 2017 13:33:24 +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 v6aPPkamKW6l; Sat, 8 Apr 2017 13:33:22 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 9A16684D8F; Sat, 8 Apr 2017 13:33:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3470484D8F for ; Sat, 8 Apr 2017 13:33:21 +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 M94LqVI2Mr-O for ; Sat, 8 Apr 2017 13:33:20 +0200 (CEST) Original-Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 45E7084D8E for ; Sat, 8 Apr 2017 13:33:10 +0200 (CEST) Original-Received: by mail-lf0-f50.google.com with SMTP id q141so22654371lfe.2 for ; Sat, 08 Apr 2017 04:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=NGBa30EmUcyL3uHGfb4706zIvLxdttFEVTdLtbqoQFg=; b=lw+0kcxQxfTvGxCCYOJTs0jPiwtEF7QlIkn9XqWvqE3Ml75+c6AtXdy/Df9r1gUlj5 JJ8dC+8BYXxyO1plxfmtdYb/Q6Ty1PNwUXhUMKKgE7GYrNOBldC+yOrvmDGshuvJU4IO HtqhweAjEAA5c/0iH5OOgYxPgbdoTFBK4jot+xojnWJoA1uP6CveGx7a8Pz7jMh7JJX+ gkq29fCup2EXr3jjV2FTT+0hmKuJbfRrtPdKz44BN8ePwPrWzNUWnvkA+o9/OLRd71TX U6Uybo+7V2ywr7VLJx5mK9M1XnyLvCkYTau14d2tm77t1EDrRB8keSnT7KoTXilooqof Jrsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=NGBa30EmUcyL3uHGfb4706zIvLxdttFEVTdLtbqoQFg=; b=UdjA7qJKGSasZgolbo+yrlIKEq0/k66PLfU84/ucIYvXNt88AGUaL/DshmgJZnaA1K mJtojj4iGn52RvmDcheI6JWUDRhZ+xXhGHIQLlh8o6frj+4oHVv9zitasAQ+dJUrcxNL OPg6M5xoahNhZ2r1w+MX+kKgLbW28VVQySTHpUEvQOH5SRpO8V4YEl3veL25aeHmz5dO 6o4G7hig3m5Wi1hr0Kiby6Tcdc8gUEIROjDqL4C32hEDgO2+C9jjBYNGtWfFfuPVaCPv M+RNsp2PHeZBsAQAP3u1fuJretk05arMI6tqz4ZBQFkmtJlXXe0dBG30yV3ooiYfLSeI u2pA== X-Gm-Message-State: AN3rC/4wNEILvd+unT21nRq/zn5tLrtayBlkDH2VSGzkl6jf1O4TRtTKZvkXxnSQ+ClXyg== X-Received: by 10.25.19.160 with SMTP id 32mr1777726lft.79.1491651189306; Sat, 08 Apr 2017 04:33:09 -0700 (PDT) Original-Received: from [192.168.1.2] (n9pl6h.static.netgroup.dk. [83.221.156.121]) by smtp.gmail.com with ESMTPSA id i136sm1532128lfg.61.2017.04.08.04.33.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Apr 2017 04:33:08 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:97787 Archived-At: --===============7979050034740135204== Content-Type: multipart/alternative; boundary="Apple-Mail=_4C0841A0-A1EA-4315-BF2C-234F1D0CB9C4" --Apple-Mail=_4C0841A0-A1EA-4315-BF2C-234F1D0CB9C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 By trial-and-error I=E2=80=99ve come up with the following. It seems = like a hack but both variants are close enough to my requirements that I = would be able to work with one of them. There=E2=80=99s still one catch: When I change the caption key = =E2=80=9Elocation=E2=80=9C to =E2=80=9Ebottom=E2=80=9C together with = =E2=80=9Einbetween=3D{\blank[-\strutdepth]}=E2=80=9C the picture is = aligned with the black line (top of the first text line).=20 This would actually be the preferred solution also for = =E2=80=9E{left,high}=E2=80=9C. Yet I couldn=E2=80=99t find a possibility = to shift the picture vertically by some millimeters. Is there? Best regards, Florian. \useMPlibrary [dum] \setuplayout [grid=3Dyes] \setupinterlinespace [line=3D20pt] \setupcaption [figure] [ location=3D{left,high},=20= %% location=3D{bottom}, = %different alignment number=3Dno, % = inbetween=3D{\blank[-.01mm]}, %Variant 1: picture top-aligned, caption = on grid = inbetween=3D{\blank[-\strutdepth]}, %Variant 2: picture and caption = top-aligned, caption not on grid ] \starttext \showgrid \startplacefigure [location=3Dtop,none,title=3D{There is not so much basic = instruction, as of now, as there was in the old days, showing the differences between good and bad = typographic design.}, ] \placeongrid[max]{ \externalfigure [dummy] [width=3D.6\textwidth] } \stopplacefigure \input zapf \stoptext > Den 6. apr. 2017 kl. 10.12 skrev Florian Grammel = : >=20 > At http://tex.stackexchange.com/q/362215/6819 I asked: How can I place = the top line of the caption (location=3D{left, high}) on the grid and = have it align with the figure at same height. >=20 > I hoped this to be solvable by some simple instructions that I just = haven=E2=80=99t been able to figure out. But Henri Menke suggested in a = comment that the mechanism might not be implemented. > Is this really the case? > And if so: is there any way to achieve the alignment anyway? >=20 > I=E2=80=99d greatly appreciate any help as this is an important = requirement for my present project! >=20 > Best regards, > Florian. >=20 ____________________________________________ Florian Grammel Copenhagen, Denmark --Apple-Mail=_4C0841A0-A1EA-4315-BF2C-234F1D0CB9C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
By trial-and-error I=E2=80=99ve come up with = the following. It seems like a hack but both variants are close enough = to my requirements that I would be able to work with one of = them.

There=E2=80= =99s still one catch: When I change the caption key =E2=80=9Elocation=E2=80= =9C to =E2=80=9Ebottom=E2=80=9C together with = =E2=80=9Einbetween=3D{\blank[-\strutdepth]}=E2=80=9C the picture is = aligned with the black line (top of the first text = line). 
This would actually be the preferred = solution also for =E2=80=9E{left,high}=E2=80=9C. Yet I couldn=E2=80=99t = find a possibility to shift the picture vertically by some = millimeters.
Is there?


Best= regards,
Florian.




\useMPlibrary        [dum]
\setuplayout         [grid=3Dyes]
\setupinterlinespace [line=3D20pt]


\setupcaption [figure] [
= location=3D{left,high}, 
%% = location=3D{bottom}, %different = alignment
= number=3Dno,
% = inbetween=3D{\blank[-.01mm]}, %Variant 1: picture top-aligned, = caption on grid
= inbetween=3D{\blank[-\strutdepth]}, %Variant 2: picture and = caption top-aligned, caption not on grid
= ]


\starttext
\showgrid

\startplacefigure
  = [location=3Dtop,none,title=3D{There is not so much basic = instruction, as of now, as there was
    = in the old days, showing the differences between good and bad = typographic design.},
]
  = \placeongrid[max]{
  \externalfigure [dummy] = [width=3D.6\textwidth]
  }
\stopplacefigure

\input zapf


\stoptext







Den 6. apr. 2017 kl. 10.12 skrev Florian = Grammel <florian.grammel@gmail.com>:

At = http://tex.stackexchange.com/q/362215/6819 I asked: How = can I place the top line of the caption (location=3D{left, high}) on the = grid and have it align with the figure at same height.

I hoped this to be solvable by some simple instructions that = I just haven=E2=80=99t been able to figure out. But Henri Menke = suggested in a comment that the mechanism might not be implemented.
Is this really the case?
And if so: is there = any way to achieve the alignment anyway?

I=E2=80=99d greatly appreciate any help as this is an = important requirement for my present project!

Best regards,
Florian.


____________________________________________

Florian Grammel

Copenhagen, = Denmark

= --Apple-Mail=_4C0841A0-A1EA-4315-BF2C-234F1D0CB9C4-- --===============7979050034740135204== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============7979050034740135204==--