Code Monkey home page Code Monkey logo

skillnad's Introduction

Skillnad

Create visual diffs of PDF files created by LaTeX using SyncTeX.

Skillnad (english pronunciation chill-nud) is the Swedish word for difference and is a Python script for creating visual diffs of PDF files that have been created using LaTeX.

Unlike latexdiff, skillnad does not make changes to your original TeX-files to visually mark up the differences. Instead it uses the original PDF files and marks differences by overlaying color coded rectangles.

The positions of these rectangles in the PDF file are found using SyncTeX from the textual differences in the original TeX-files.

Dependencies

  • Python 2
    • joblib (optional: for running SyncTeX in parallel)
  • SyncTeX
  • pdflatex

How to run

This is an early version and unfortunately the options are currently changed by editing the python script itself. At this stage only a single TeX file can be handled per run.

The script expects the following file structure in the current working directory:

old/
	main.tex
	main.pdf
	main.synctex.gz
new/
	main.tex
	main.pdf
	main.synctex.gz

After running python skillnad.py in the parent directory you will obtain (among others)

diff/
	diff.pdf
	merge.pdf

The results can then be viewed in a PDF reader by either opening merge.pdf or, alternatively, diff.pdf in "Two pages side by side" mode.

When the option compact is enabled (default) only the pages with changes on them are included in the final PDF.

See script file for further options.

skillnad's People

Contributors

hgustafsson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.