Skip to content
ae edited this page Nov 21, 2018 · 6 revisions

This page collects some info on custom viewers set-up. Feel free to add you own tips.

qpdfview

qpdfview is available here. It can be integrated with LaTeXTools as a custom viewer.

Forward Search

In Preferences | Package Settings | LaTeXTools | Settings - User:

    "viewer": "command",
    "viewer_settings": {
        "linux" : {
            "forward_sync_command": "qpdfview --unique $pdf_file#src:$src_file:$line:$col",
            "view_command": "qpdfview --unique"
        }
    },

Inverse Search

Edit ~/.config/qpdfview/qpdfview.conf, [documentView] section. Relevant fields:

autoRefresh=true
highlightDuration=3000
sourceEditor=subl \"%1\":%2
  • autoRefresh refresh after compling.
  • highlightDuration set the duration of the (temporary) highlights in microseconds (e.g. 3000 are 3 seconds).
  • sourceEditor control inverse search (from pdf to tex file) (%1 correspond to the absolute path of the TeX file, %2 by line number)