summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/typo-par.mkxl
blob: 077d3566c3f5194cc639e0b0a769c1c7e14659f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
%D \module
%D   [       file=typo-par,
%D        version=2008.09.30,
%D          title=\CONTEXT\ Typesetting Macros,
%D       subtitle=Paragraph Building,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Node Macros / Paragraph Building}

%D This is very experimental, undocumented, subjected to changes, etc. just as
%D the underlying interfaces. But at least it's cleaned as part of the status-mkiv
%D cleanup.

% \startparbuilder[basic]
%     \input tufte \par
% \stopparbuilder

\unprotect

%registerctxluafile{node-ltp}{optimize}
\registerctxluafile{node-ltp}{autosuffix} % this one has to be updated!
\registerctxluafile{trac-par}{}
\registerctxluafile{typo-par}{}

%D Just a reminder:
%D
%D \starttyping
%D \def\whatever#1{#1mm \dimexpr\hsize-#1mm\relax}
%D
%D \parshape
%D     14
%D     options 1 % repeat
%D     \whatever{0} \whatever {2}\whatever {4}\whatever{6}\whatever{8}\whatever{10}\whatever{12}\whatever{14}
%D     \whatever{12}\whatever{10}\whatever{8}\whatever{6}\whatever {4}\whatever {2}
%D \pushparagraphtweak {repeat}
%D     \dorecurse{10}{\samplefile{tufte} \samplefile{tufte} \par}
%D \popparagraphtweak
%D \page
%D
%D \dorecurse{2}{
%D     \parshape 4 5mm 125mm 0mm 120mm 5mm 125mm 0mm 120mm
%D     \pushparagraphtweak {repeat}
%D         \dorecurse{10}{
%D             verse line 1\crlf
%D             verse line 2\crlf
%D             verse line 3\crlf
%D             verse line 4\par
%D         }
%D     \popparagraphtweak
%D     \page
%D }
%D \stoptyping

\protect \endinput