Changes

Jump to navigation Jump to search
458 bytes removed ,  00:45, 2 November 2012
no edit summary
<div style="color: red">Çorrected version will come soon :-)</div>
 
The {{module|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>.
==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
The brakets and text part for <code>\crossref</code> can also 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>
For now the color and style of the paragraph title has to be set via the normal outer margin settings.
98

edits

Navigation menu