Changes

Jump to navigation Jump to search
2,685 bytes added ,  14:07, 8 June 2020
m
no edit summary
<div style="color(This module is currently not in die distribution. Until it is, you can download it from [http: red">Page in progress//zenlima.com/context/t-crossref-0.9.3.zip here]).</div>
References Cross references in a (academic) text are either interal internal (linking to an other point inside the same document) or external (linking to a entity of the bibliography that points to a different document).
Here are some concrete example examples of cross references:
{| class=wikitable
Here a simple usage example:
<texcode>
\setupcolors[state=start]
\definecolor[red][r=1]
\definecolor[green][g=1]
\definecolor[blue][b=1]
 
\setupinteraction[state=start,style=normal,color=red,contrastcolor=red]
% color and contrastcolor must be the the final color of the refref area in crossref
 
\usemodule[crossref][refColor=green,reffixColor=blue,refrefColor=red]
 
\starttext
 
\textreference[ref1]{1.1/3}
 
Should be: 1.1/3 and is: \crossref[ref1]
 
Should be: (Abs. 1.1/3) and is: \crossref[type=internal,left={(},label=Abs.,right={)}][ref1]
 
Should be: [Zen12, p 23] and is: \crossref[type=external,detail={p. 23}][ref2]
 
Should be: (nach [Zen12, S. 32-33] und weitere) and is: \crossref[type=external, left={(nach }, right={ und weitere)},detail={S. 32-33}][ref2]
 
\textreference[ref2]{Zen12} Biblio blabla fasel
 
\stoptext
</texcode>
==Settings==
 
Often references (or links) are printed in a different color than the normal text. In pararef the colors can be set via three paramters:
* <code>refColor</code> for the entire reference text,
* <code>reffixColor</code> for the color of the prefix and suffix if different from <code>refColor</code>
* <code>refrefColor</code> for the detail, ref itself and ref details if different from <code>refColor</code>
 
They are defined as parameters of the [https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=1253027735/action=view/id=67 module]:
<texcode>
\usemodule[crossref][refColor=...,reffixColor=...,refrefColor=...]
...
</texcode>
 
The brackets and text part for <code>\crossref</code> can also be adjusted or extended with other languages:
 
<texcode>
\setupcrossreftext[internalPrefix={}]
\setupcrossreftext[internalSuffix={}]
\setupcrossreftext[externalPrefix={[}]
\setupcrossreftext[externalSuffix={]}]
\setupcrossreftext[refDetailDivider={\textcomma\space}]
\setupcrossreftext[cz][atpageLeft={ na straně }]
\setupcrossreftext[cz][atpageRight={ }]
\setupcrossreftext[de][atpageLeft={ auf Seite }]
\setupcrossreftext[de][atpageRight={}]
\setupcrossreftext[en][atpageLeft={ on page }]
\setupcrossreftext[en][atpageRight={}]
\setupcrossreftext[ru][atpageLeft={ на странице }]
\setupcrossreftext[ru][atpageRight={}]
\setupcrossreftext[uk][atpageLeft={ на сторінці }]
\setupcrossreftext[uk][atpageRight={}]
 
</texcode>
 
If you want to change the "classic" style of referencing to the "new" style you only need to add:
 
<texcode>
\setupcrossreftext[internalPrefix={↗}]
\setupcrossreftext[internalSuffix={}]
\setupcrossreftext[externalPrefix={↑}]
\setupcrossreftext[externalSuffix={}]
</texcode>
 
[[Category:Basics]]
[[Category:Interaction]]

Navigation menu