Skim Displayline Package
Runs displayline from Atom.
Displayline
The displayline is a command line tool of Skim to highlight a line on PDF specified by a line number in the TeX source file.
Usage:
$ /Applications/Skim.app/Contents/SharedSupport/displayline
Usage: displayline [-r] [-b] [-g] LINE PDFFILE [TEXSOURCEFILE]
Options:
-r, -revert Revert the file from disk if it was open
-b, -readingbar Indicate the line using the reading bar
-g, -background Do not bring Skim to the foreground
Setup
Add the path for displayline to $PATH in $HOME/.bash_profile.
export PATH=/Applications/Skim.app/Contents/SharedSupport/:$PATH
Check:
$ type -a displayline
displayline is /Applications/Skim.app/Contents/SharedSupport/displayline
Usage
- Create PDF with
latex -synctex=1 example.tex && dvipdfmx example.dvi. (-synctex=1is required.) - Open
example.pdfby Skim. - Open the command pallet by
shift-cmd-Pon Atom. - Find
Skim:Displaylineand run it.
Or, for example, add the following to keymap.cson.
'.platform-darwin':
'cmd-s cmd-s': 'skim:displayline'