Changes

Jump to navigation Jump to search
372 bytes removed ,  15:10, 8 June 2020
m
no edit summary
(This module is currently not in die distribution. Until it is, you can download it from [http://zenlima.com/context/t-pararef-0.8.2.zip here]). The [https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=1253027735/action=view/id=64 pararef] module understands a paragraph as a full closed block of one thought. This means that inside a paragraph enumerations, formulas etc. can appear. That is why a paragraph must be defined manually via <code>\startParagraph</code> and <code>\stopParagraph</code>.
==Paragraphs==
==References==
Now the more practical part: the paragraph referencing. To reference to an paragraph the package pararef contains makes use of the function <code>\crossref</code> <texcode>\crossref[<reference>]\[Cross Referencing|crossref[brakets=...,text=...][<reference>]</texcode>module.
Here a simple usage example:
<texcode>
\usemodule[pararef]
\usemodule[crossref]
\starttext
Here are two references to destinations on the same page:
\startitemize[nowhite]
\item ref1 should be: para. 1.1/2 and is: \crossref[textlabel={para.}][ref1]\item ref2 should be: sec. 1.2 and is: \crossref[textlabel={sec.}][ref2]
\stopitemize
Here is one references with brakets:
\startitemize[nowhite]
\item ref1 should be: (para. 1.1/2 ) and is: \crossref[braketsleft=yes{(},textright={)},label={para.}][ref1]
\stopitemize
\stopParagraph
Here are two references to destinations on an other page:
\startitemize[nowhite]
\item ref1 should be: para. 1.1/2 on page 1 and is: \crossref[textlabel={para.}][ref1]\item ref2 should be: sec. 1.2 on page 1 and is: \crossref[textlabel={sec.}][ref2]
\stopitemize
\stopParagraph
==Settings==
Often references (or links) are printed in a different color than the normal text. In pararef the colors can be set via three two paramters:* <code>crossrefColor</code> for the entire reference text,
* <code>textpartdividerColor</code> for the color of the line and
* <code>paragraphNumberColor</code> for the number of the paragraph.
They are defined as parameters of the module:
<texcode>
\usemodule[bgcolorpararef][crossrefColor=...,textpartdividerColor=...,paragraphNumberColor=...]
...
</texcode>
The brakets For now the color and text part for <code>\crossref</code> can also style of the paragraph title has to be adjusted or extended with other languages: <texcode>\setupparareftext[en][braketOpen={(}]\setupparareftext[en][braketClose={)}]\setupparareftext[en][atpageLeft={ on page }]\setupparareftext[en][atpageRight={}]\setupparareftext[de][braketOpen={(}]\setupparareftext[de][braketClose={)}]\setupparareftext[de][atpageLeft={ auf Seite }]\setupparareftext[de][atpageRight={}]</texcode>set via the normal outer margin settings.
For now the color and style of the paragraph title has to be set via ......[[Category:Basics]]

Navigation menu