ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Luca Mauri <luca.mauri@gmx.com>
To: Alan Braslau <braslau.list@comcast.net>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Figure labels in combinations
Date: Tue, 30 Jul 2019 18:32:46 +0200	[thread overview]
Message-ID: <327ED687-9DBF-4DE2-82EF-EB56F0F9806A@getmailspring.com> (raw)
In-Reply-To: <20190730085227.52ea3885@poo.hsd1.co.comcast.net>


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

Thank you Alan. Yes, I have seen the possibility of generating automatically the labels but unfortunately the problem remains when you move the subfigure. In the meantime, I have tried this:

\startplacefigure [number=no]
\startcombination [nx=3]
{figure 1} {\incrementcounter[figure]\textreference[pic1]{\getnumber[figure]}\in[pic1]}
{figure 2} {...similar...}
{figure 3} {...similar...}
\stopcombination
\stopplacefigure

and then
\in[pic1]
in the body of the text, which looked very promising; the trouble is that for some reason that i do not understand, the \in[pic1] in the label of the picture works ok, but anywhere else in the text, either before of after the placefigure environment, it generates a reference to the last picture produced, that is pic3 after and pic0, say, before. I though it was aproblem of expanding the figure counter and added \expanded either before \getnumber of \textreference, but with no luck...
Luca
On Jul 30 2019, at 4:52 pm, Alan Braslau <braslau.list@comcast.net> wrote:
> On Tue, 30 Jul 2019 11:20:03 +0200
> Luca Mauri <luca.mauri@gmx.com> wrote:
>
> > I am trying to typeset two or more figures next to each other, inside a floating environment, each with its own label. I am familiar with a mechanism of the form
> > \startplacefigure[reference=pic]
> > \startcombination[3*1]
> > {figure 1}{a}
> > {figure 2}{b}
> > {figure 3}{c}
> > \stopcombination
> > \stopplacefigure
>
>
> This does not answer your question, but do you know about:
> \startplacefigure
> \startcombination [nx=3,alternative=label]
> {figure 1}
> {figure 2}
> {figure 3}
> \stopcombination
> \stopplacefigure
>
> Alan

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

[-- Attachment #2: Type: text/plain, Size: 493 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:[~2019-07-30 16:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-30  9:20 Luca Mauri
2019-07-30 14:52 ` Alan Braslau
2019-07-30 16:32   ` Luca Mauri [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=327ED687-9DBF-4DE2-82EF-EB56F0F9806A@getmailspring.com \
    --to=luca.mauri@gmx.com \
    --cc=braslau.list@comcast.net \
    --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).