From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Labelling figures
Date: Tue, 16 Sep 2008 11:21:29 +0200 [thread overview]
Message-ID: <115224fb0809160221x21f18aaka0aa8a9dd19d24a3@mail.gmail.com> (raw)
In-Reply-To: <115224fb0806060051q2978192fte1236403407e1f92@mail.gmail.com>
Hi all,
any new news about my question below.
Wolfgang
On Fri, Jun 6, 2008 at 9:51 AM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> Hi,
>
> what is the best method to add labels to a figure; I want them not only on
> the figure but their position should be relative to the figure size.
>
>
> I tried start/stopfigure (mentioned as outdated in the source) but the label
> is not shown.
>
> \setupexternalfigures[location={local,global,default}]
>
> \starttext
>
> \startfigure[kuh][cow]
> \referring(1,1)(1,1)[r:horn]
> \stopfigure
>
> \externalfigure[kuh]
>
> \stoptext
>
>
> After this I tried collector and got with a little extra and a box and to dimens
> what I wanted but it's not very elegant.
>
> \setupexternalfigures[location={local,global,default}]
>
> \starttext
>
> \newbox\labelbox \setbox\labelbox\hbox{\externalfigure[cow]}
>
> \newdimen\labelwidth \labelwidth \wd\labelbox
> \newdimen\labelheight \labelheight\ht\labelbox
>
> \definecollector[label][state=repeat]
>
> \setcollector[label]{\box\labelbox}
>
> \setcollector[label][x=.65\labelwidth,y=.75\labelheight]{udder}
>
> \placefigure
> {A labelled cow}
> {\flushcollector[label]}
>
>
> \stoptext
>
>
> Figurelabel as described in the label manual [1] seem to be the perfect
> solution but the module isn't finished :-(
>
>
> Is there not better way to achieve what I want and do I have to live with
> my second method or could I hope for the future.
>
>
> [1] http://pragma-ade.nl/general/manuals/mlabels.pdf
>
>
> Greetings
> Wolfgang
>
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-09-16 9:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-06 7:51 Wolfgang Schuster
2008-09-16 9:21 ` Wolfgang Schuster [this message]
2008-09-16 14:28 ` Hans Hagen
2008-09-16 15:44 ` Alan BRASLAU
2008-09-17 6:19 ` Wolfgang Schuster
2008-09-17 6:17 ` Wolfgang Schuster
2008-09-17 7:56 ` Hans Hagen
2008-09-18 11:28 ` lang-ita.tex (see=) Alan BRASLAU
2008-10-13 8:01 ` mtxrun TEXINPUTS bug Alan BRASLAU
2008-10-18 9:48 ` Labelling figures olivier Turlier
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=115224fb0809160221x21f18aaka0aa8a9dd19d24a3@mail.gmail.com \
--to=schuster.wolfgang@googlemail.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).