Latexdiff.el is a backend in Emacs for Latexdiff.
latexdiff.el requires Emacs-24.4 or later and optionnaly Helm.
Install latexdiff
from your package manager or from
the official website.
latexdiff.el uses `latexdiff-vc' so make sure it is available.
If you already use MELPA, all you have to do is:
M-x package-install RET latexdiff RET
For help installing and using MELPA, see these instructions.
- Clone the
latexdiff
repository:
$ git clone https://github.com/galaunay/latexdiff.el.git /path/to/latexdiff/directory
- Add the following lines to
.emacs.el
(or equivalent):
(add-to-list 'load-path "/path/to/latexdiff/directory")
(require 'latexdiff)
latexdiff.el faces and behaviour can be customized through the customization panel :
(customize-group 'latexdiff)
latexdiff.el does not define default keybindings, so you may want to add some :
(define-key latex-mode-map (kbd "C-c l d") 'helm-latexdiff)
or for Evil users:
(evil-leader/set-key-for-mode 'latex-mode "ld" 'helm-latexdiff)
latexdiff
will ask for two tex files and generates a tex diff between them (that you will need to compile).
latexdiff-vc
(andhelm-latexdiff-vc
) will ask for a previous commit number and make a pdf diff between this version and the current one.latexdiff-vc-range
(andhelm-latexdiff-vc-range
) will ask for two commits number and make a pdf diff between those two versions.
The project is hosted on github. You can report issues or make pull requests here.
To run the tests you will need to install cask, then:
$ make test
- Add support for other version-control software (currently only git repositories are supported, while latexdiff can handle more).