---
name: "ctie"
section: "1"
platform: "linux"
package: "texlive-doc"
version: "2026.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ctie"
---

# ctie(1)

merge or apply CWEB change files

## NAME

ctie - merge or apply CWEB change files

## SYNOPSIS

**ctie** **-c**\|**-m** *outputfile masterfile* *changefile*...

## DESCRIPTION

The **ctie** program is used to process multiple change files used with the CWEB system for literate programming.  The CWEB programs allow one to apply patches to a source file (the *masterfile*) by means of a single change file. **ctie** can be used to either merge up to 32 change files into a single one or to apply the changes to the *masterfile* in order to create a new master file.  Output of either the new change file or the patched master file goes into *outputfile*. Any include files (indicated using the CWEB **@i** command) are fully expanded during **ctie** processing, which means that the change files are able to modify the contents of any included files.

## OPTIONS

- **-c**

  Create a single change file from the given *changefile*s.

- **-m**

  Create a new master file by applying the given *changefile*s.

## ENVIRONMENT

The environment variable CWEBINPUTS is used to search for the input files, or the system default if CWEBINPUTS is not set.  See [**tex**(1)](/tex/1.md) for the details of the searching. To avoid conflicts with other programs that also use the CWEBINPUTS environment, you can be more specific and use CWEBINPUTS\_ctie for special requirements in CTIE.

## SEE ALSO

[**cweb**(1)](/cweb/1.md), *ctiedoc.tex*, [**tie**(1)](/tie/1.md), **web**(1).

## AUTHOR

Julian Gilbey, jdg@debian.org.  The original TIE program was by Klaus Guntermann, TH Darmstadt, Institut f. Theoretische Informatik.  The TIE man page was by Joachim Schnitter, TH Darmstadt, Phys. Chemie I, and was modified for CTIE by Julian Gilbey.
