ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* interaction query
@ 2008-02-14 18:35 Alan Bowen
  2008-02-14 22:39 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Bowen @ 2008-02-14 18:35 UTC (permalink / raw)
  To: mailing ConTeXt users list for

In my preface, I have

\setupinteraction[state=start,color=blue,style=rm]

\definehead[LevelBHead][subject]
\setupsectionblock[LevelBHead][number=no,page=right]
\setuphead[LevelBHead][style={\tf\rm},interaction=yes]

and in the source file proper,

\LevelBHead{Comment 3: {\em In de caelo} {\tf 481.12--15}\hfill
							ref.\ \at[fnComment3]n\in[fnComment3]}

When I compile the file I get the proper heading and the cross- 
reference works as it should. What is odd is that this reference is  
not in blue. All my other kinds of cross-references look and behave as  
they should.

Any remedies for this admittedly minor problem will be greatly  
appreciated.

Cheers, Alan

PS I am using mkii. A.

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction query
  2008-02-14 18:35 interaction query Alan Bowen
@ 2008-02-14 22:39 ` Hans Hagen
  2008-02-14 23:13   ` Alan Bowen
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2008-02-14 22:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Alan Bowen wrote:
> In my preface, I have
> 
> \setupinteraction[state=start,color=blue,style=rm]

add contrastcolor=blue

> When I compile the file I get the proper heading and the cross- 
> reference works as it should. What is odd is that this reference is  
> not in blue. All my other kinds of cross-references look and behave as  
> they should.

same page refs get contrastcolor

-----------------------------------------------------------------
                                           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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction query
  2008-02-14 22:39 ` Hans Hagen
@ 2008-02-14 23:13   ` Alan Bowen
  2008-02-15 13:07     ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Bowen @ 2008-02-14 23:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks, Hans, but i still cannot get this to work.

Here is a simple file that conveys the problem (working link, but  
wrong color).

Alan

~~~~~~~~~~~~~

\setupinteraction[state=start,contrastcolor=blue,color=blue,style=rm]

\definehead[LevelBHead][subject]
\setupsectionblock[LevelBHead][number=no,page=right]
\setuphead[LevelBHead][style={\tf\rm},interaction=yes]

\starttext
\dorecurse{2}{\input knuth}\reference[Reference]{} \dorecurse{3} 
{\input knuth}.

\LevelBHead{B{-}Header\hfill\at[Reference]}
\dorecurse{2}{\input knuth}
\stoptext

~~~~~~~~~~~~~



On Feb 14, 2008, at 17;39,01 , Hans Hagen wrote:

> Alan Bowen wrote:
>> In my preface, I have
>>
>> \setupinteraction[state=start,color=blue,style=rm]
>
> add contrastcolor=blue
>
>> When I compile the file I get the proper heading and the cross-
>> reference works as it should. What is odd is that this reference is
>> not in blue. All my other kinds of cross-references look and behave  
>> as
>> they should.
>
> same page refs get contrastcolor
>
> -----------------------------------------------------------------
>                                           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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction query
  2008-02-14 23:13   ` Alan Bowen
@ 2008-02-15 13:07     ` Hans Hagen
  2008-02-15 13:35       ` Alan Bowen
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2008-02-15 13:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Alan Bowen wrote:

> \dorecurse{2}{\input knuth}
                             ^ add a space here, or \relax


\input whatever \relax

-----------------------------------------------------------------
                                           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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction query
  2008-02-15 13:07     ` Hans Hagen
@ 2008-02-15 13:35       ` Alan Bowen
  2008-02-15 14:05         ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Bowen @ 2008-02-15 13:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks, Hans. That is good to know.

The cross-reference however is still in the wrong color. Is it a  
problem just on my box?

Alan

On Feb 15, 2008, at 08;07,27 , Hans Hagen wrote:

> Alan Bowen wrote:
>
>> \dorecurse{2}{\input knuth}
>                             ^ add a space here, or \relax
>
>
> \input whatever \relax
>
> -----------------------------------------------------------------
>                                           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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction query
  2008-02-15 13:35       ` Alan Bowen
@ 2008-02-15 14:05         ` Wolfgang Schuster
  2008-02-15 15:02           ` Hans Hagen
  2008-02-15 20:16           ` Alan Bowen
  0 siblings, 2 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2008-02-15 14:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Feb 15, 2008 at 2:35 PM, Alan Bowen <acbowen@princeton.edu> wrote:
> Thanks, Hans. That is good to know.
>
>  The cross-reference however is still in the wrong color. Is it a
>  problem just on my box?

What do you want is not supported but you define your own command
with a colored pagenumber.

\setupcolors[state=start]

\setupinteraction[state=start,contrastcolor=blue,color=blue,style=rm]

\definereferenceformat
  [givepage]
  [command=\at,
   left={\color[blue]}]

\definehead[LevelBHead][subject]
\setupsectionblock[LevelBHead][number=no,page=right]
\setuphead[LevelBHead][style={\tf\rm},interaction=yes]

\starttext
\dorecurse{2}{\input knuth\par}\reference[Reference]{}
\dorecurse{3}{\input knuth\par}

\LevelBHead{B{-}Header\hfill\givepage[Reference]}
\dorecurse{2}{\input knuth\par}
\stoptext

Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction query
  2008-02-15 14:05         ` Wolfgang Schuster
@ 2008-02-15 15:02           ` Hans Hagen
  2008-02-15 20:16           ` Alan Bowen
  1 sibling, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2008-02-15 15:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster wrote:
> On Fri, Feb 15, 2008 at 2:35 PM, Alan Bowen <acbowen@princeton.edu> wrote:
>> Thanks, Hans. That is good to know.
>>
>>  The cross-reference however is still in the wrong color. Is it a
>>  problem just on my box?
> 
> What do you want is not supported but you define your own command
> with a colored pagenumber.
> 
> \setupcolors[state=start]
> 
> \setupinteraction[state=start,contrastcolor=blue,color=blue,style=rm]
> 
> \definereferenceformat
>   [givepage]
>   [command=\at,
>    left={\color[blue]}]

hm, this left=comecolor is kind of tricky ... efectively you can get

\color[blue]123 == \color[blue]{1}


> \definehead[LevelBHead][subject]
> \setupsectionblock[LevelBHead][number=no,page=right]
> \setuphead[LevelBHead][style={\tf\rm},interaction=yes]
> 
> \starttext
> \dorecurse{2}{\input knuth\par}\reference[Reference]{}
> \dorecurse{3}{\input knuth\par}
> 
> \LevelBHead{B{-}Header\hfill\givepage[Reference]}
> \dorecurse{2}{\input knuth\par}
> \stoptext
> 
> Wolfgang
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction query
  2008-02-15 14:05         ` Wolfgang Schuster
  2008-02-15 15:02           ` Hans Hagen
@ 2008-02-15 20:16           ` Alan Bowen
  2008-02-16  9:25             ` Wolfgang Schuster
  1 sibling, 1 reply; 10+ messages in thread
From: Alan Bowen @ 2008-02-15 20:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang,

Many thanks for this. It does the job perfectly. I supplemented your  
suggestion (following your lead) with

\definereferenceformat
[givenote]
[command=\in,
left={\color[blue]}]

which gives me references formatted exactly as I need.

All best, Alan

On Feb 15, 2008, at 09;05,18 , Wolfgang Schuster wrote:

> On Fri, Feb 15, 2008 at 2:35 PM, Alan Bowen <acbowen@princeton.edu>  
> wrote:
>> Thanks, Hans. That is good to know.
>>
>> The cross-reference however is still in the wrong color. Is it a
>> problem just on my box?
>
> What do you want is not supported but you define your own command
> with a colored pagenumber.
>
> \setupcolors[state=start]
>
> \setupinteraction[state=start,contrastcolor=blue,color=blue,style=rm]
>
> \definereferenceformat
>  [givepage]
>  [command=\at,
>   left={\color[blue]}]
>
> \definehead[LevelBHead][subject]
> \setupsectionblock[LevelBHead][number=no,page=right]
> \setuphead[LevelBHead][style={\tf\rm},interaction=yes]
>
> \starttext
> \dorecurse{2}{\input knuth\par}\reference[Reference]{}
> \dorecurse{3}{\input knuth\par}
>
> \LevelBHead{B{-}Header\hfill\givepage[Reference]}
> \dorecurse{2}{\input knuth\par}
> \stoptext
>
> Wolfgang
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction query
  2008-02-15 20:16           ` Alan Bowen
@ 2008-02-16  9:25             ` Wolfgang Schuster
  2008-02-16 12:17               ` Alan Bowen
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2008-02-16  9:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Feb 15, 2008 at 9:16 PM, Alan Bowen <acbowen@princeton.edu> wrote:
> Wolfgang,
>
>  Many thanks for this. It does the job perfectly. I supplemented your
>  suggestion (following your lead) with
>
>  \definereferenceformat
>  [givenote]
>  [command=\in,
>  left={\color[blue]}]
>
>  which gives me references formatted exactly as I need.

you should better use, as Hans told in his mail the simple color command
could cause a unwanted result.

\definereferenceformat
  [givenote]
  [command=\in,
  left={\startcolor[blue]},
   right=\stopcolor]

Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: interaction query
  2008-02-16  9:25             ` Wolfgang Schuster
@ 2008-02-16 12:17               ` Alan Bowen
  0 siblings, 0 replies; 10+ messages in thread
From: Alan Bowen @ 2008-02-16 12:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Again, thanks, Wolfgang. I was not quite sure what Hans was driving  
at, and so appreciate your further help.

Best, Alan
On Feb 16, 2008, at 04;25,14 , Wolfgang Schuster wrote:

> On Fri, Feb 15, 2008 at 9:16 PM, Alan Bowen <acbowen@princeton.edu>  
> wrote:
>> Wolfgang,
>>
>> Many thanks for this. It does the job perfectly. I supplemented your
>> suggestion (following your lead) with
>>
>> \definereferenceformat
>> [givenote]
>> [command=\in,
>> left={\color[blue]}]
>>
>> which gives me references formatted exactly as I need.
>
> you should better use, as Hans told in his mail the simple color  
> command
> could cause a unwanted result.
>
> \definereferenceformat
>  [givenote]
>  [command=\in,
>  left={\startcolor[blue]},
>   right=\stopcolor]
>
> Wolfgang
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-02-16 12:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-14 18:35 interaction query Alan Bowen
2008-02-14 22:39 ` Hans Hagen
2008-02-14 23:13   ` Alan Bowen
2008-02-15 13:07     ` Hans Hagen
2008-02-15 13:35       ` Alan Bowen
2008-02-15 14:05         ` Wolfgang Schuster
2008-02-15 15:02           ` Hans Hagen
2008-02-15 20:16           ` Alan Bowen
2008-02-16  9:25             ` Wolfgang Schuster
2008-02-16 12:17               ` Alan Bowen

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