ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
Cc: ConTeXt users <ntg-context@ntg.nl>
Subject: Re: how to set figure label ?
Date: Thu, 16 Apr 2015 18:11:12 +0200	[thread overview]
Message-ID: <20150416181112.183aa098@iram-ha-003587.extra.cea.fr> (raw)
In-Reply-To: <20150416152717.GA30611@hl.fh-stralsund.de>

On Thu, 16 Apr 2015 17:27:17 +0200
Harald Koenig <koenig@tat.physik.uni-tuebingen.de> wrote:

> how can I set a "label" for a figure without 
> 
>     \placefigure[][fig:...]{} 
> 
> for some "figures" I use strange macros -- and at those places I get
> errors when calling \placefigure BUT I'd like to check the page
> numbers of those places using
> 
>       \doifreferencefoundelse{fig:bild\the\bildnr}%
> 
> and right now I get 
> 
>       references      > unknown reference '[][fig:bild5]'
> 
> for those pictures...

I much prefer the syntax

\startplacefigure [reference=fig:,location={here,force},title={}]
   \externalfigure[]...
\stopplacefigure

Depending on the "strange macros" that you want to use,
this should generally work. I find that this gives one many more
options.

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

  reply	other threads:[~2015-04-16 16:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-16 15:27 Harald Koenig
2015-04-16 16:11 ` Alan BRASLAU [this message]
2015-04-17  6:45   ` Harald Koenig

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=20150416181112.183aa098@iram-ha-003587.extra.cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=koenig@tat.physik.uni-tuebingen.de \
    --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).