typo-par.mkxl /size: 1743 b    last modification: 2023-12-21 09:44
1%D \module
2%D   [       file=typo-par,
3%D        version=2008.09.30,
4%D          title=\CONTEXT\ Typesetting Macros,
5%D       subtitle=Paragraph Building,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Node Macros / Paragraph Building}
15
16%D This is very experimental, undocumented, subjected to changes, etc. just as
17%D the underlying interfaces. But at least it's cleaned as part of the status-mkiv
18%D cleanup.
19
20% \startparbuilder[basic]
21%     \input tufte \par
22% \stopparbuilder
23
24\unprotect
25
26%registerctxluafile{node-ltp}{optimize}
27\registerctxluafile{node-ltp}{autosuffix} % this one has to be updated!
28\registerctxluafile{trac-par}{}
29\registerctxluafile{typo-par}{}
30
31%D Just a reminder:
32%D
33%D \starttyping
34%D \def\whatever#1{#1mm \dimexpr\hsize-#1mm\relax}
35%D
36%D \parshape
37%D     14
38%D     options 1 % repeat
39%D     \whatever{0} \whatever {2}\whatever {4}\whatever{6}\whatever{8}\whatever{10}\whatever{12}\whatever{14}
40%D     \whatever{12}\whatever{10}\whatever{8}\whatever{6}\whatever {4}\whatever {2}
41%D \pushparagraphtweak {repeat}
42%D     \dorecurse{10}{\samplefile{tufte} \samplefile{tufte} \par}
43%D \popparagraphtweak
44%D \page
45%D
46%D \dorecurse{2}{
47%D     \parshape 4 5mm 125mm 0mm 120mm 5mm 125mm 0mm 120mm
48%D     \pushparagraphtweak {repeat}
49%D         \dorecurse{10}{
50%D             verse line 1\crlf
51%D             verse line 2\crlf
52%D             verse line 3\crlf
53%D             verse line 4\par
54%D         }
55%D     \popparagraphtweak
56%D     \page
57%D }
58%D \stoptyping
59
60\protect \endinput
61