EnglishFrenchSpanish

OnWorks favicon

texdiff - Online in the Cloud

Run texdiff in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command texdiff that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


texdiff - Compares two (La)TeX documents to create a merged version showing changes,
similar to that of 'Change Tracking' in some word processors.

SYNOPSIS


texdiff [--nofloats⎪-n] old.tex new.tex [diff.tex]

DESCRIPTION


The first two files are compared and a new TeX file is output. When the output file is
processed with (La)TeX it marks new changes with blue and old text with red with a strike-
through line. Furthermore, passages with changes are marked at the margin with grey bars
by the LaTeX "changebar" package (although only after running "dvips", in "xdvi" the bars
are one inch too far left to compensate the one inch offset inserted by TeX printer
drivers).

"texdiff" uses and therefore requires the "wdiff" command to insert these marks. If LaTeX
macros are included in those striked out or underlined passages, the latex run will most
likely fail. The source of most problems lies in "wdiff" tearing apart pairs of braces.
Therefore "texdiff" is a perl script that calls "wdiff" internally and fixes "wdiff"'s
output by re-pairing braces again and handling some commonly used LaTeX macros.

For texdiff to work, the following LaTeX code must be inserted in the preamble of the
LaTeX document:

\usepackage{xcolor} \usepackage{ulem} \usepackage{changebar}
\newcommand\TLSins[1]{\cbstart{}\textcolor{ins}{\uline{#1}}\cbend{}}
\newcommand\TLSdel[1]{\cbdelete{}\textcolor{del}{\sout{#1}}}

Define editing colors "ins" and "del" with existing "xcolor" color names:
\colorlet{ins}{blue} \colorlet{del}{red}

Or from scratch:
\definecolor{ins}{rgb}{0, 0.5, 0}

These macros are NOT automatically interted at \begin{document} like the original scripts
did (see the ACKNOWLEDGMENTS section below), because this will not work on files of a
multi-file document (those included by \include or \input). Furthermore, if you insert
the macros manually, you can tune them as you like, i. e. change text color or position of
changebars. Have a look at the documentation of the ulem and changebar packages on how to
do this!

OPTIONS


--nofloats, -n
If given, skips contents of figure environments, but does show insertions and
deletions in the caption commands. This is done to avoid complex messups in subfloat
or complex figure environments.

--debug, -d
Turns on debugging. Temporary files that contain numbered braces are kept and a raw
difference file is written as output file name appended with '-wdiff.tex'. In
addition, several regular expression diagnostics are printed. Warning: produces a lot
of output.

Use texdiff online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

Ad