Hi, I have troubles with referencing images. At first \in does not show a figure number but \at shows the correct page of the figure. In the archives I found a post from Wolfgang Schuster [1] with a sample that worked for him. I tried this, but there is no figure number visible in my document. %========================== \starttext \startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic \placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}} \in{figure}[fig:ref] \stoptext %========================== How can I fix that? Further \about{figure}[fig:ref] brings an error "Use of \about doesn't match its definition.". I used the syntax from the manual on page 205. How can I use the caption of a figure in an reference? My last question is how I can remove the color of links to references in a document. I am using MkIV 2009.08.30 12:25. Thanks for your help Wolfgang Murth [1] http://www.ntg.nl/pipermail/ntg-context/2007/025653.html
On Sun, 11 Oct 2009, Wolfgang Miurth wrote:
Hi,
I have troubles with referencing images.
At first \in does not show a figure number but \at shows the correct page of the figure.
In the archives I found a post from Wolfgang Schuster [1] with a sample that worked for him. I tried this, but there is no figure number visible in my document.
%========================== \starttext
\startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic
\placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}}
\in{figure}[fig:ref]
\stoptext %==========================
How can I fix that?
This works fine for me with ConTeXt ver: 2009.10.02 13:14 MKIV fmt: 2009.10.4 int: english/english and also with ConTeXt ver: 2009.09.28 09:02 MKIV fmt: 2009.10.3 int: english/english So you probably need to upgrade.
Further \about{figure}[fig:ref] brings an error "Use of \about doesn't match its definition.". I used the syntax from the manual on page 205. How can I use the caption of a figure in an reference?
\about works with the above versions. The usage is \about[fig:ref] (without the curly brackets)
My last question is how I can remove the color of links to references in a document.
\setupinteraction[color=] Aditya
Hi, Thanks for your help. Two of three problems are solved.
So you probably need to upgrade. Yes. That was solved the problem.
\about works with the above versions. The usage is \about[fig:ref] (without the curly brackets) Yes, also this works. I used the syntax from the cont-eni.pdf on page 205 \about{...}[ref]
\setupinteraction[color=] That does not work in the latest version. The style parameter is recognized, but ot the color parameter. Following produces red links, even if green is selected.
%========================= \setupinteraction [state=start, color=green, style=] \starttext \startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic \placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}} \in{figure}[fig:ref] \at{figure}[fig:ref] \stoptext %========================= Best wishes Wolfgang Murth
On Sun, 11 Oct 2009, Wolfgang Miurth wrote:
\setupinteraction[color=] That does not work in the latest version. The style parameter is recognized, but ot the color parameter. Following produces red links, even if green is selected.
%========================= \setupinteraction [state=start, color=green, style=] \starttext
\startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic
\placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}}
\in{figure}[fig:ref]
\at{figure}[fig:ref]
\stoptext
%=========================
This is a bug in mkiv. It works correctly in mkii. Aditya
Aditya Mahajan wrote:
On Sun, 11 Oct 2009, Wolfgang Miurth wrote:
\setupinteraction[color=] That does not work in the latest version. The style parameter is recognized, but ot the color parameter. Following produces red links, even if green is selected.
%========================= \setupinteraction [state=start, color=green, style=] \starttext
\startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic
\placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}}
\in{figure}[fig:ref]
\at{figure}[fig:ref]
\stoptext
%=========================
This is a bug in mkiv. It works correctly in mkii.
you also need to set the contrastcolor=green % color of link on same page since it's independent ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi Wolfgang,
\setupinteraction[color=] That does not work in the latest version. The style parameter is recognized, but ot the color parameter. Following produces red links, even if green is selected. I've been fiddling with this a bit as well, and found that the color parameter is only used for links to other pages. Links to the same page use the contrastcolor parameter. I'm not completely sure that this is the actual criterum, but at least contrastcolor is involved as well.
The following makes all links black again for me: \setupinteraction[state=start,color=,contrastcolor=] Gr. Matthijs
Hi all,
The following makes all links black again for me: \setupinteraction[state=start,color=,contrastcolor=]
Thank you. That was the trick. For completeness, I've documented the setupinteraction command a bit better at http://wiki.contextgarden.net/Interaction as well.
Gr. Matthijs
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Matthijs Kooijman
-
Wolfgang Miurth