{
    "mode": "man",
    "parameter": "otangle",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/otangle/1/json",
    "generated": "2026-06-15T13:56:41Z",
    "synopsis": "tangle [options] webfile[.web] [changefile[.ch]]",
    "sections": {
        "NAME": {
            "content": "tangle - translate WEB to Pascal\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "tangle [options] webfile[.web] [changefile[.ch]]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This  manual page is not meant to be exhaustive.  The complete documentation for this version\nof TeX can be found in the info file or manual Web2C: A TeX implementation.\n\nThe tangle program converts a Web source document into a Pascal program that may be  compiled\nin  the  usual way with the on-line Pascal compiler (e.g., pc(1)).  The output file is packed\ninto lines of 72 characters or less, with the only concession to readability being the termi‐\nnation of lines at semicolons when this can be done conveniently.\n\nThe  Web language allows you to prepare a single document containing all the information that\nis needed both to produce a compilable Pascal program and to produce a  well-formatted  docu‐\nment describing the program in as much detail as the writer may desire.  The user of Web must\nbe familiar with both TeX and Pascal.  Web also provides a relatively simple,  although  ade‐\nquate,  macro facility that permits a Pascal program to be written in small easily-understood\nmodules.\n\nThe command line should have either one or two names on it.  The first is taken  as  the  Web\nfile  (and .web is added if there is no extension).  If there is another name, it is a change\nfile (and .ch is added if there is no extension).  The change file overrides parts of the Web\nfile, as described in the Web system documentation.\n\nThe  output  files are a Pascal file and a string pool file, whose names are formed by adding\n.p and .pool respectively to the root of the Web file name.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "This version of tangle understands the following options.  Note that some  of  these  options\nmay render the output unsuitable for processing by a Pascal compiler.\n\n--help Print help message and exit.\n\n--length number\nCompare  only the first number characters of identifiers when checking for collisions.\nThe default is 32, the original tangle used 7.\n",
            "subsections": [
                {
                    "name": "--loose",
                    "content": "When checking for collisions between identifiers, honor the settings of  the  --lower‐‐\ncase, --mixedcase, --uppercase, and --underline options. This is the default.\n",
                    "long": "--loose"
                },
                {
                    "name": "--lowercase",
                    "content": "Convert all identifiers to lowercase.\n",
                    "long": "--lowercase"
                },
                {
                    "name": "--mixedcase",
                    "content": "Retain the case of identifiers.  This is the default.\n",
                    "long": "--mixedcase"
                },
                {
                    "name": "--strict",
                    "content": "When  checking  for  collisions  between identifiers, strip underlines and convert all\nidentifiers to uppercase first.\n",
                    "long": "--strict"
                },
                {
                    "name": "--underline",
                    "content": "Retain underlines (also known as underscores) in identifiers.\n",
                    "long": "--underline"
                },
                {
                    "name": "--uppercase",
                    "content": "Convert all identifiers to uppercase.  This is the behaviour of the original tangle.\n",
                    "long": "--uppercase"
                },
                {
                    "name": "--version",
                    "content": "Print version information and exit.\n",
                    "long": "--version"
                }
            ]
        },
        "ENVIRONMENT": {
            "content": "The environment variable WEBINPUTS is used to search for the input files, or the  system  de‐\nfault if WEBINPUTS is not set.  See tex(1) for the details of the searching.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pc(1), pxp(1) (for formatting tangle output when debugging), tex(1).\n\nDonald E. Knuth, The Web System of Structured Documentation.\n\nDonald E. Knuth, Literate Programming, Computer Journal 27, 97-111, 1984.\n\nWayne Sewell, Weaving a Program, Van Nostrand Reinhold, 1989, ISBN 0-442-31946-0.\n\nDonald  E.  Knuth,  TeX: The Program (Volume B of Computers and Typesetting), Addison-Wesley,\n1986, ISBN 0-201-13437-3.\n\nDonald E. Knuth, Metafont: The Program (Volume D of Computers and Typesetting),  Addison-Wes‐\nley, 1986, ISBN 0-201-13438-1.\n\nThese last two are by far the largest extant examples of Web programs.\n\nThere  is  an active Internet electronic mail discussion list on the subject of literate pro‐\ngramming; send a subscription request to litprog-request@shsu.edu to join.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Web was designed by Donald E. Knuth, based on an earlier system called  DOC  (implemented  by\nIgnacio Zabala).  The tangle and weave programs are themselves written in Web. The system was\noriginally ported to Unix at Stanford by Howard Trickey, and at Cornell by Pavel Curtis.\n\n\n\nWeb2C 2022/dev                              16 June 2015                                   TANGLE(1)",
            "subsections": []
        }
    },
    "summary": "tangle - translate WEB to Pascal",
    "flags": [
        {
            "flag": "",
            "long": "--loose",
            "arg": null,
            "description": "When checking for collisions between identifiers, honor the settings of the --lower‐‐ case, --mixedcase, --uppercase, and --underline options. This is the default."
        },
        {
            "flag": "",
            "long": "--lowercase",
            "arg": null,
            "description": "Convert all identifiers to lowercase."
        },
        {
            "flag": "",
            "long": "--mixedcase",
            "arg": null,
            "description": "Retain the case of identifiers. This is the default."
        },
        {
            "flag": "",
            "long": "--strict",
            "arg": null,
            "description": "When checking for collisions between identifiers, strip underlines and convert all identifiers to uppercase first."
        },
        {
            "flag": "",
            "long": "--underline",
            "arg": null,
            "description": "Retain underlines (also known as underscores) in identifiers."
        },
        {
            "flag": "",
            "long": "--uppercase",
            "arg": null,
            "description": "Convert all identifiers to uppercase. This is the behaviour of the original tangle."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Print version information and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pc",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pc/1/json"
        },
        {
            "name": "pxp",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pxp/1/json"
        },
        {
            "name": "tex",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tex/1/json"
        }
    ]
}