Giter Site home page Giter Site logo

auto-latexdiff's Introduction

auto-latexdiff

auto-latexdiff compiles your LaTeX file as you are typing and creates a differential PDF. It can be used to easily spot what you changed in your file because it uses red and blue to mark the modifications.


Installation

All you have to do is to clone the repository and go there:

git clone https://github.com/xorob0/auto-latexdiff
cd auto-latexdiff

It's not difficult, is it?


Usage

Usage: auto-latexdiff.sh [-hw] [-d OUTFILE] [DIR] [-f OUTFILE] [FILE]...
Compiles your LaTeX file as you are typing and creates a differential PDF.

    -d OUTFILE  specify the output directory (default to current)
    -f OUTFILE  specify the output file
    -h          display this help and exit
    -r INTEGER  specify the refresh time
    -w          compile without differential indications

The most classic case of use:

./auto-latexdiff -f latex_file

By default, auto-latexdiff will look for the LaTeX file in the current tree. However, you can change the default folder very simply:

./auto-latexdiff -d ~/Documents/LaTeX/ -f latex_file

Similarly, you can change the compilation refresh when you make different changes:

./auto-latexdiff -d ~/Documents/LaTeX/ -f latex_file -r 5

Finally, you can ignore the differential indicators with:

./auto-latexdiff -d ~/Documents/LaTeX/ -f latex_file -r 5 -w

Functioning

The script constantly checks the md5 of the given file. If it detects a change, it will compile the file again with xelatex and latexdiff.

latexdiff generates the differential by comparing the edited file with a cached version.

NOTE: you can guess that it only sees the change when the file is saved. If you want the changes to appear as you type, enable your text editor's automatic save function.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.