gdiffmk compares two groff, nroff, or troff documents, file1 and file2, and creates an output which is file2 with added `margin character' (.mc) commands that indicate the differences.