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.
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 -----------------------------------------------------------------
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 ___________________________________________________________________________________
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 -----------------------------------------------------------------
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 ___________________________________________________________________________________
On Fri, Feb 15, 2008 at 2:35 PM, Alan Bowen
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
Wolfgang Schuster wrote:
On Fri, Feb 15, 2008 at 2:35 PM, Alan Bowen
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 -----------------------------------------------------------------
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
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 ___________________________________________________________________________________
On Fri, Feb 15, 2008 at 9:16 PM, Alan Bowen
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
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
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 ___________________________________________________________________________________
participants (3)
-
Alan Bowen
-
Hans Hagen
-
Wolfgang Schuster