Home
Name Modified Size InfoDownloads / Week
README.rst 2015-11-11 2.9 kB
findclosestline.sh 2015-11-11 2.8 kB
findclosestp.sh 2015-11-11 1.5 kB
gvsc 2015-11-11 3.8 kB
mouseclick.sh 2015-11-11 2.8 kB
pdfsyncer.sh 2015-11-11 5.5 kB
Totals: 6 Items   19.2 kB 0

Forward/Inverse from tex to pdf never quite seems to work out of the box. These scripts aim to ensure that you will be able to do forward/inverse search from emacs to tex. The script pdfsync is used for the synchronization. The scripts and the integration work but there are definitely issues that need to be resolved such as the unique naming of buffers and xpdf remote servers. The code currentlly produces a lot of debugging messages but those will eventually be commented out as bugs are ironed out. If you find please let someone know, so that it can get fixed. The scripts seem to work with pdfs compiled from several tex files.

Installation

Each file should be made executable and placed somewhere in your path. The comments of each file indicate the changes that must be made in the configuration of xpdf and emacs. Changes that must be made include

  1. Add gvsc as viewer in AucTeX
  2. Make gvsc the default viewer for pdf files in AucTeX
  3. Bind mouseclick.sh to shift-mousePress1 in .xpdfrc

Current Bugs

  • Switch to window containing tex file rather than change current window to tex file.
  • mouseclick.sh should do nothing if there is not pdfsync file

Open Bugs

  • Nested tex files are probably not handled correctly. Getting this working will require cleaning up the existing code.
  • More of a bug in xpdf, why can't the desired point on a page be selected directly rather than having to go to the first page then go to the desired page and then go to the desired pixel. Why does going directly cause xpdf to crash????
  • Another xpdf bug, In continuous mode, the page number returned from a mouse click may not be accurate.
  • The xpdf command used for position the view of the pdf puts the select text at the bottom of the screen. It would be nice if it was centered. Could probably add a half inch around selection point. Assuming that the page has margin this isn't too unreasonable.
  • Bibliography can only be done with an inverse search

Changes

  • Added support for multiple files
  • findclosestline.sh was returning additonal strings to stdout that led to incorrect input for xpdf which ultimately led xpdf to crash.
  • Update page number so that the last page is handled correctly
  • Raise xpdf after doing a forward search
  • Handle blank/missing lines, lines for which there aren't any "p" records. Picks the line that is closest in absolute value.
  • Added space in first grep search to ensure that the match is one the last number.
  • Added space in mouseclick.sh to search for line number.

Possible Changes

  • Remove gvsc and call pdfsyncer.sh as gvsc just calls pdfsyncer.sh
  • Rename pdfsyncer.sh to xpdfsync
  • Clean up the scripts, remove all unneeded output
  • Remove any references to the windows manager ratpoison
Source: README.rst, updated 2015-11-11