ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* caption in margin
@ 2016-08-19 15:25 eidenbenz
  2016-08-22 10:08 ` Michael Eidenbenz
  0 siblings, 1 reply; 2+ messages in thread
From: eidenbenz @ 2016-08-19 15:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I want to place the caption of floats in the margin. 
I thought the locationparameter of setupcaption can be used to do this. 
But it doesnt work.

What am I missing? Thanks Michael


\useMPlibrary[dum]

\starttext

\showframe

\setupcaption [figure][]
\placefloat[][]{default}{\externalfigure[dummy][]}

\setupcaption [figure][location=inner]
\placefloat[][]{inner}{\externalfigure[dummy][]}

\setupcaption [figure][location=outer]
\placefloat[][]{outer}{\externalfigure[dummy][]}

\setupcaption [figure][location=innermargin]
\placefloat[][]{innermargin}{\externalfigure[dummy][]}

\setupcaption [figure][location=outermargin]
\placefloat[][]{outermargin}{\externalfigure[dummy][]}

\setupcaption [figure][location=leftmargin]
\placefloat[][]{leftmargin}{\externalfigure[dummy][]}

\setupcaption [figure][location=rightmargin]
\placefloat[][]{rightmargin}{\externalfigure[dummy][]}

\setupcaption [figure][location=lefthanging]
\placefloat[][]{lefthanging}{\externalfigure[dummy][]}

\setupcaption [figure][location=righthanging]
\placefloat[][]{righthanging}{\externalfigure[dummy][]}

\setupcaption [figure][location=hang]
\placefloat[][]{hang}{\externalfigure[dummy][]}

\stoptext 
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: caption in margin
  2016-08-19 15:25 caption in margin eidenbenz
@ 2016-08-22 10:08 ` Michael Eidenbenz
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Eidenbenz @ 2016-08-22 10:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

self-answering (for the record)

rightmargin / leftmargin has to be used in combination with an additional position keyword (low, middle, key), otherwise the caption is missing. 
I think a default position (low) would be nice in this case.

Best Michael

this works:

\useMPlibrary[dum]

\starttext

\showframe

\setupcaption [figure][]
\placefloat[][]{default}{\externalfigure[dummy][]}

\setupcaption [figure][location={rightmargin,low}]
\placefloat[][]{right}{\externalfigure[dummy][]}



> On 19 Aug 2016, at 17:25, eidenbenz <eidenbenz@arch.ethz.ch> wrote:
> 
> I want to place the caption of floats in the margin. 
> I thought the locationparameter of setupcaption can be used to do this. 
> But it doesnt work.
> 
> What am I missing? Thanks Michael
> 
> 
> \useMPlibrary[dum]
> 
> \starttext
> 
> \showframe
> 
> \setupcaption [figure][]
> \placefloat[][]{default}{\externalfigure[dummy][]}
> 
> \setupcaption [figure][location=inner]
> \placefloat[][]{inner}{\externalfigure[dummy][]}
> 
> \setupcaption [figure][location=outer]
> \placefloat[][]{outer}{\externalfigure[dummy][]}
> 
> \setupcaption [figure][location=innermargin]
> \placefloat[][]{innermargin}{\externalfigure[dummy][]}
> 
> \setupcaption [figure][location=outermargin]
> \placefloat[][]{outermargin}{\externalfigure[dummy][]}
> 
> \setupcaption [figure][location=leftmargin]
> \placefloat[][]{leftmargin}{\externalfigure[dummy][]}
> 
> \setupcaption [figure][location=rightmargin]
> \placefloat[][]{rightmargin}{\externalfigure[dummy][]}
> 
> \setupcaption [figure][location=lefthanging]
> \placefloat[][]{lefthanging}{\externalfigure[dummy][]}
> 
> \setupcaption [figure][location=righthanging]
> \placefloat[][]{righthanging}{\externalfigure[dummy][]}
> 
> \setupcaption [figure][location=hang]
> \placefloat[][]{hang}{\externalfigure[dummy][]}
> 
> \stoptext 
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-08-22 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-19 15:25 caption in margin eidenbenz
2016-08-22 10:08 ` Michael Eidenbenz

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