Skip to content

BenBol/UntrackChanges

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UntrackChanges

Removes trackchanges from LaTeX

The LaTeX package trackchanges is great! However, sometimes I want to quickly convert all the commands to plain LaTeX. This sometimes happens if I don't have trackchanges installed somewhere, or if it's interfering with the wordcount. This is where this python script comes in!

Features

This script does three things:

  1. Replaces \added{...} with the interior text.
  2. Deletes \removed{...}.
  3. Replaces \changed{...}{...} with the interior text of the second {...}.

Warning: This script will not check if the trackchanges commands are valid. I.e. if the curly brackets are unbalanced, this code will error.

Usage

Currently, this is used as a script on a plain .tex file, e.g.

python untrackchanges.py file.tex

This will produce a new file with a -untrack.txt extension.

Todo

  • Complete tests
  • Add options for changes
  • Add checking before computations
  • Better file naming

About

Removes trackchanges from LaTeX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 85.6%
  • TeX 14.4%