Difference between revisions of "Paragraph Referencing"

From Wiki
Jump to navigation Jump to search
m
Line 7: Line 7:
 
One or more paragraphs can be summarized by a low level title which is displayed as a margin note (margin title) via the optional parameter <code>title=...</code>.
 
One or more paragraphs can be summarized by a low level title which is displayed as a margin note (margin title) via the optional parameter <code>title=...</code>.
  
 +
<texcode>
 
  \startParagraph[reference=...,title=...]
 
  \startParagraph[reference=...,title=...]
  \input tufte
+
  ...
 
  \stopParagraph
 
  \stopParagraph
 +
</texcode>
  
 
<div style="background: #FFFFDD">Singe paragraph: code and result</div>
 
<div style="background: #FFFFDD">Singe paragraph: code and result</div>
 +
 +
<texcode>
 +
\usemodule[pararef]
 +
 +
\starttext
 +
\startParagraph[title={Paragraph heading}]
 +
\input tufte
 +
\stopParagraph
 +
\stoptext
 +
</texcode>
  
 
<div style="background: #FFFFDD">Multi paragraphs and references: code and result</div>
 
<div style="background: #FFFFDD">Multi paragraphs and references: code and result</div>

Revision as of 20:01, 12 October 2012

Page in progress

This module understands a paragraph as a full closed block of one thought. This means that inside a paragraph enumerations, formulas etc. can apear. That is why a paragraph must be defined manuelly via \startParagraph and \stopParagraph.

Each paragraph gets numbered started by each title. In order to link to a paragraph it can be reference by the optional parameter reference=... as a text reference.

One or more paragraphs can be summarized by a low level title which is displayed as a margin note (margin title) via the optional parameter title=....

 \startParagraph[reference=...,title=...]
 ...
 \stopParagraph
Singe paragraph: code and result
\usemodule[pararef]

\starttext
\startParagraph[title={Paragraph heading}]
\input tufte
\stopParagraph
\stoptext
Multi paragraphs and references: code and result