ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Florian Grammel <florian.grammel@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: side caption top aligned on grid -- not implemented?
Date: Sat, 8 Apr 2017 13:33:07 +0200	[thread overview]
Message-ID: <F4A60C47-0644-408A-A57C-A1149349506E@gmail.com> (raw)
In-Reply-To: <E43235FC-7835-4648-901B-81BDF63E1A9D@gmail.com>


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

By trial-and-error I’ve 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’s still one catch: When I change the caption key „location“ to „bottom“ together with „inbetween={\blank[-\strutdepth]}“ the picture is aligned with the black line (top of the first text line). 
This would actually be the preferred solution also for „{left,high}“. Yet I couldn’t find a possibility to shift the picture vertically by some millimeters.
Is there?


Best regards,
Florian.




\useMPlibrary        [dum]
\setuplayout         [grid=yes]
\setupinterlinespace [line=20pt]


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


\starttext
\showgrid

\startplacefigure
  	[location=top,none,title={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=.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={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’t 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’d greatly appreciate any help as this is an important requirement for my present project!
> 
> Best regards,
> Florian.
> 

____________________________________________

Florian Grammel

Copenhagen, Denmark


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

[-- Attachment #2: Type: text/plain, Size: 492 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:[~2017-04-08 11:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-06  8:12 Florian Grammel
2017-04-08 11:33 ` Florian Grammel [this message]
2017-04-08 13:05   ` Florian Grammel

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=F4A60C47-0644-408A-A57C-A1149349506E@gmail.com \
    --to=florian.grammel@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).