2007/12/17, Roger Mason
Hello,
I have this definition:
\def\oneplot#1#2#3% {\placefigure [here][#3] {\bfc #2} {\hfil \scale[width=10.5cm]{#1} \hfil} }
(It is modified from an example on the wiki that takes only the first two arguments).
I use it like this:
\oneplot % image % caption % reference {\externalfigure[Fluorita_green]} {Fluorite cleavage} {cleavage}
but the reference is ignored and I get ?? in the compiled document.
Could someone point out my error please?
Cheers, Roger
\define[3]\oneplot {\placefigure[here][#3]{\bfc#2}{\scale[width=10.5cm]{#1}}} \starttext \oneplot{\blackrule[width=1cm,height=1cm]}{Blackrule}{plot:blackrule} See at \in{Plot}[plot:blackrule]. \stoptext Alternative solution with a real ConTeXt definition: \definefloat[plot][plots][figure] \setupfloat[plot][command={\scale[width=5cm]}] \starttext \placefigure{Blackrule}{\blackrule[width=1cm,height=1cm]} \placeplot{Blackrule}{{\blackrule[width=1cm,height=1cm]}} \stoptext Wolfgang