zathura は高いカスタマイズ性と機能性を備えたドキュメントビューアです. PDF ファイルや PS ファイルが表示できます. SyncTeX に対応しています. ファイルの自動更新機能もあります.
macOS, Linux, BSD
Known supported distributions を参照.
を参照.
zathura は Vim キーバインドを採用しています. Emacs ライクなキーバインドにカスタマイズすることもできます. → Emacs like key bindings for zathura
$ zathura --help
Usage: zathura [OPTION...] [file1] [file2] [...] Help Options: -h, --help Show help options Application Options: -e, --reparent=xid Reparents to window specified by xid -c, --config-dir=path Path to the config directory -d, --data-dir=path Path to the data directory --cache-dir=path Path to the cache directory -p, --plugins-dir=path Path to the directories containing plugins --fork Fork into the background -w, --password=password Document password -P, --page=number Page number to go to -l, --debug=level Log level (debug, info, warning, error) -v, --version Print version information -x, --synctex-editor-command=cmd Synctex editor (forwarded to the synctex command) --synctex-forward=position Move to given synctex position --synctex-pid=pid Highlight given position in the given process --mode=mode Start in a non-default mode
TeX ファイルの 30 行目に対応する PDF ファイルの該当する箇所にジャンプして TeXstudio で inverse search する場合は
$ zathura -x "texstudio '%{input}' -line %{line}" --synctex-forward "30:0:hoge.tex" "hoge.pdf"
のように実行して zathura 上で Ctrl + 左クリックを実行すると TeXstudio が起動して TeX 文書の対応する行にジャンプします.
TeX ファイルの 30 行目に対応する PDF ファイルの該当する箇所にジャンプしたい場合は
$ zathura --synctex-forward "30:0:hoge.tex" "hoge.pdf"
のように実行します.
TeXstudio で inverse search する場合は
$ zathura -x "texstudio '%{input}' -line %{line}" "hoge.pdf"
のように実行して zathura 上で Ctrl + 左クリックを実行すると TeXstudio が起動して TeX 文書の対応する行にジャンプします.