From: Michael Eidenbenz <eidenbenz@arch.ethz.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: caption in margin
Date: Mon, 22 Aug 2016 12:08:51 +0200 [thread overview]
Message-ID: <A7229A82-532B-4BA9-850D-D2E5AB7AA8C2@arch.ethz.ch> (raw)
In-Reply-To: <D1942212-9CA5-4A22-BEFE-CC0D6B49204F@arch.ethz.ch>
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
___________________________________________________________________________________
prev parent reply other threads:[~2016-08-22 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 15:25 eidenbenz
2016-08-22 10:08 ` Michael Eidenbenz [this message]
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=A7229A82-532B-4BA9-850D-D2E5AB7AA8C2@arch.ethz.ch \
--to=eidenbenz@arch.ethz.ch \
--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).