[NTG-context] how to set figure label ?

Alan BRASLAU alan.braslau at cea.fr
Thu Apr 16 18:11:12 CEST 2015


On Thu, 16 Apr 2015 17:27:17 +0200
Harald Koenig <koenig at 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


More information about the ntg-context mailing list