Debian Codegraph @

texk/web2c/man/twill.man

raw ◀ ▶
1 Debian patch touch this file
•1 .TH TWILL 1 "22 March 2026" "Web2C @VERSION@"
2 .\"=====================================================================
3 .if n .ds TX TeX
4 .if t .ds TX \fRT\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X\fP
5 .\"=====================================================================
6 .SH NAME
•7 twill, twill-refsort \- translate a literate programming WEB to \*(TX with mini-indexes
8 .SH SYNOPSIS
9 .PP
10 \f[B]twill\f[R] [\f[B]-x\f[R]]
11 \f[I]webfile\f[R][\f[B].web\f[R]]
12 [{\f[I]changefile\f[R][\f[B].ch\f[R]]|\f[B]-\f[R]}
13 [\f[I]outfile\f[R][\f[B].tex\f[R]]]]
14 .PD 0
15 .PP
16 \f[B]twill-refsort\f[R] <
17 \f[I]reffile\f[B].ref\f[R] >
18 \f[I]sreffile\f[B].sref\f[R]
19 .PD
20 .\"=====================================================================
21 .SH DESCRIPTION
22 The
23 .B twill
24 program is used to create a \*(TX file for viewing a literate program
25 written in WEB. The output \*(TX file name is formed by adding
26 .I .tex
•27 to the root of the WEB file name.
28 .PP
29 \fBtwill\fP is like
30 .BR weave (1),
31 but also supplies cross-reference information in the form of
32 `mini-indexes' for each spread of pages, for identifiers used on that
33 spread, and a `master index' at the end that it gathers automatically.
34 .PP
35 You need to run
36 .B twill
37 twice, once to prime the pump and once to get decent answers.
38 Moreover, you must run the output twice through \*(TX.
39 .PP
40 For a program \fIfoo.web\fP, after a first
41 .I tex foo
42 you will have output that looks like final pages
43 except that the entries of mini-indexes will not be alphabetized.
44 The first run produces an auxiliary file named
45 .IR foo.ref .
46 .br
47 Run
48 .I twill-refsort <foo.ref >foo.sref
49 and then another
50 .I tex foo
51 will produce alphabetized output.
52 .\"=====================================================================
53 .SH OPTIONS
54 See
55 .BR tex (1)
56 for details of command-line parsing, and
57 .BR weave (1)
58 for options accepted.
59 .\"=====================================================================
60 .SH ENVIRONMENT
61 The environment variable WEBINPUTS is used to search for the input files,
62 If it is not set, it uses the system default. See the
63 Kpathsea manual at https://tug.org/kpathsea for the details of the
64 searching.
65 .\"=====================================================================
66 .SH BUGS
67 The table of contents file, \fICONTENTS.tex\fP, is generated but ignored
68 (unless macros in \fItwimac-web.tex\fP are redefined).
69 .\"=====================================================================
70 .SH FILES
71 .TP \w'@@'u+2n
72 .I $TEXMFMAIN/tex/plain/cweb/cwebbin/twimac-web.tex
73 \*(TX macros used by
74 .B twill
75 output.
76 .\"=====================================================================
77 .SH "SEE ALSO"
78 .BR tangle (1)
79 for references, authors, and other information about WEB in general.
80 .PP
81 Donald E. Knuth, Mini-indexes for literate programs,
82 Software\-Concepts and Tools, 15(1):2-11, 1994.
83 .br
84 https://arxiv.org/abs/cs/9401102
85 .PP
86 CTWILL program source, section 287:
87 .br
88 https://mirror.ctan.org/info/knuth-pdf/cweb/ctwill.pdf
89 .br
90 (Not all features described there are available in the older
91 \fBtwill\fP system, but you will get the gist.)
92 .PP
93 Public discussion list and bug reports: https://lists.tug.org/tex-k