1TANGLE(1)                   General Commands Manual                  TANGLE(1)
2
3
4

NAME

6       tangle - translate WEB to Pascal
7

SYNOPSIS

9       tangle [options] webfile[.web] [{changefile[.ch]|-} [outfile[.p]]]
10

DESCRIPTION

12       This  manual page is not meant to be exhaustive.  The complete documen‐
13       tation for this version of TeX can be found in the info file or  manual
14       Web2C: A TeX implementation.
15
16       The tangle program converts a Web source document into a Pascal program
17       that may be compiled in the usual way with the on-line Pascal  compiler
18       (e.g.,  pc(1)).   The output file is packed into lines of 72 characters
19       or less, with the only concession to readability being the  termination
20       of lines at semicolons when this can be done conveniently.
21
22       The Web language allows you to prepare a single document containing all
23       the information that is needed both to produce a compilable Pascal pro‐
24       gram and to produce a well-formatted document describing the program in
25       as much detail as the writer may desire.  The user of Web must  be  fa‐
26       miliar  with  both TeX and Pascal.  Web also provides a relatively sim‐
27       ple, although adequate, macro facility that permits a Pascal program to
28       be written in small easily-understood modules.
29
30       The  command line should have one, two or three names on it.  The first
31       is taken as the Web file (and .web is added if there is no  extension).
32       If there is second name, it is a change file (and .ch is added if there
33       is no extension).  The change file overrides parts of the Web file,  as
34       described in the Web system documentation.
35
36       If there is a third name, it is the Pascal output file (and .p is added
37       if there is no extension). In this case you can specify an empty change
38       file with '-' as the second argument.  Otherwise the name of the Pascal
39       file is formed by adding .p to the root of the Web file name.
40
41       An optional second output file is a string pool  file,  whose  name  is
42       formed by adding .pool to the root of the Pascal file name.
43

OPTIONS

45       This  version  of  tangle understands the following options.  Note that
46       some of these options may render the output unsuitable  for  processing
47       by a Pascal compiler.
48
49       --help Print help message and exit.
50
51       --length number
52              Compare  only  the  first  number characters of identifiers when
53              checking for collisions.  The default is 32, the original tangle
54              used 7.
55
56       --loose
57              When checking for collisions between identifiers, honor the set‐
58              tings of the --lowercase, --mixedcase, --uppercase, and --under‐
59              line options. This is the default.
60
61       --lowercase
62              Convert all identifiers to lowercase.
63
64       --mixedcase
65              Retain the case of identifiers.  This is the default.
66
67       --strict
68              When  checking  for collisions between identifiers, strip under‐
69              lines and convert all identifiers to uppercase first.
70
71       --underline
72              Retain underlines (also known as underscores) in identifiers.
73
74       --uppercase
75              Convert all identifiers to uppercase.  This is the behaviour  of
76              the original tangle.
77
78       --version
79              Print version information and exit.
80

ENVIRONMENT

82       The  environment  variable  WEBINPUTS  is  used to search for the input
83       files, or the system default if WEBINPUTS is not set.  See  tex(1)  for
84       the details of the searching.
85

SEE ALSO

87       pc(1), pxp(1) (for formatting tangle output when debugging), tex(1).
88
89       Donald E. Knuth, The Web System of Structured Documentation.
90
91       Donald  E.  Knuth,  Literate  Programming, Computer Journal 27, 97-111,
92       1984.
93
94       Wayne Sewell, Weaving a Program,  Van  Nostrand  Reinhold,  1989,  ISBN
95       0-442-31946-0.
96
97       Donald  E.  Knuth, TeX: The Program (Volume B of Computers and Typeset‐
98       ting), Addison-Wesley, 1986, ISBN 0-201-13437-3.
99
100       Donald E. Knuth, Metafont: The Program (Volume D of Computers and Type‐
101       setting), Addison-Wesley, 1986, ISBN 0-201-13438-1.
102
103       These last two are by far the largest extant examples of Web programs.
104
105       There is an active Internet electronic mail discussion list on the sub‐
106       ject of literate programming; send a subscription request  to  litprog-
107       request@shsu.edu to join.
108

AUTHORS

110       Web  was designed by Donald E. Knuth, based on an earlier system called
111       DOC (implemented by Ignacio Zabala).  The tangle and weave programs are
112       themselves  written in Web. The system was originally ported to Unix at
113       Stanford by Howard Trickey, and at Cornell by Pavel Curtis.
114
115
116
117Web2C 2023                       02 March 2022                       TANGLE(1)
Impressum