ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Figure referencing problems
@ 2009-10-11 12:35 Wolfgang Miurth
  2009-10-11 13:24 ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Miurth @ 2009-10-11 12:35 UTC (permalink / raw)
  To: ntg-context


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

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Figure referencing problems
  2009-10-11 12:35 Figure referencing problems Wolfgang Miurth
@ 2009-10-11 13:24 ` Aditya Mahajan
  2009-10-11 14:58   ` Wolfgang Miurth
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2009-10-11 13:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Figure referencing problems
  2009-10-11 13:24 ` Aditya Mahajan
@ 2009-10-11 14:58   ` Wolfgang Miurth
  2009-10-11 23:12     ` Aditya Mahajan
  2009-10-12  9:48     ` Matthijs Kooijman
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Miurth @ 2009-10-11 14:58 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'


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

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Figure referencing problems
  2009-10-11 14:58   ` Wolfgang Miurth
@ 2009-10-11 23:12     ` Aditya Mahajan
  2009-10-13 21:17       ` Hans Hagen
  2009-10-12  9:48     ` Matthijs Kooijman
  1 sibling, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2009-10-11 23:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Figure referencing problems
  2009-10-11 14:58   ` Wolfgang Miurth
  2009-10-11 23:12     ` Aditya Mahajan
@ 2009-10-12  9:48     ` Matthijs Kooijman
  2009-10-12 11:46       ` Wolfgang Miurth
  1 sibling, 1 reply; 8+ messages in thread
From: Matthijs Kooijman @ 2009-10-12  9:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Figure referencing problems
  2009-10-12  9:48     ` Matthijs Kooijman
@ 2009-10-12 11:46       ` Wolfgang Miurth
  2009-10-12 12:55         ` Matthijs Kooijman
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Miurth @ 2009-10-12 11:46 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'


Hi Matthijs,

>The following makes all links black again for me:
>  \setupinteraction[state=start,color=,contrastcolor=]

Thank you. That was the trick.

Best regards

Wolfgang Murth

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Figure referencing problems
  2009-10-12 11:46       ` Wolfgang Miurth
@ 2009-10-12 12:55         ` Matthijs Kooijman
  0 siblings, 0 replies; 8+ messages in thread
From: Matthijs Kooijman @ 2009-10-12 12:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Figure referencing problems
  2009-10-11 23:12     ` Aditya Mahajan
@ 2009-10-13 21:17       ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2009-10-13 21:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-10-13 21:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-11 12:35 Figure referencing problems Wolfgang Miurth
2009-10-11 13:24 ` Aditya Mahajan
2009-10-11 14:58   ` Wolfgang Miurth
2009-10-11 23:12     ` Aditya Mahajan
2009-10-13 21:17       ` Hans Hagen
2009-10-12  9:48     ` Matthijs Kooijman
2009-10-12 11:46       ` Wolfgang Miurth
2009-10-12 12:55         ` Matthijs Kooijman

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).