ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* side caption top aligned on grid -- not implemented?
@ 2017-04-06  8:12 Florian Grammel
  2017-04-08 11:33 ` Florian Grammel
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Grammel @ 2017-04-06  8:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: side caption top aligned on grid -- not implemented?
  2017-04-06  8:12 side caption top aligned on grid -- not implemented? Florian Grammel
@ 2017-04-08 11:33 ` Florian Grammel
  2017-04-08 13:05   ` Florian Grammel
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Grammel @ 2017-04-08 11:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: side caption top aligned on grid -- not implemented?
  2017-04-08 11:33 ` Florian Grammel
@ 2017-04-08 13:05   ` Florian Grammel
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Grammel @ 2017-04-08 13:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


> 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?

To whoever might be trying to get this to work, too:
\offset[y=2mm] *inside* \placeongrid will do this.

Best,
Florian.


[-- Attachment #1.2: Type: text/html, Size: 1258 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-08 13:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-06  8:12 side caption top aligned on grid -- not implemented? Florian Grammel
2017-04-08 11:33 ` Florian Grammel
2017-04-08 13:05   ` Florian Grammel

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).