zathura



zathura とは

zathura は高いカスタマイズ性と機能性を備えたドキュメントビューアです. PDF ファイルや PS ファイルが表示できます. SyncTeX に対応しています. ファイルの自動更新機能もあります.

動作環境

macOS, Linux, BSD

Known supported distributions を参照.

License

zlib/libpng License

リリース情報

を参照.

ChangeLog

zathura

girara

ダウンロード/インストール

macOS

Arch Linux

Linux Mint

Debian

Fedora

openSUSE

不具合

使い方

キーボード操作

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

SyncTeX

forward and inverse search

TeX ファイルの 30 行目に対応する PDF ファイルの該当する箇所にジャンプして TeXstudio で inverse search する場合は

$ zathura -x "texstudio '%{input}' -line %{line}" --synctex-forward "30:0:hoge.tex" "hoge.pdf"

のように実行して zathura 上で Ctrl + 左クリックを実行すると TeXstudio が起動して TeX 文書の対応する行にジャンプします.

forward search

TeX ファイルの 30 行目に対応する PDF ファイルの該当する箇所にジャンプしたい場合は

$ zathura --synctex-forward "30:0:hoge.tex" "hoge.pdf"

のように実行します.

inverse search

TeXstudio で inverse search する場合は

$ zathura -x "texstudio '%{input}' -line %{line}" "hoge.pdf"

のように実行して zathura 上で Ctrl + 左クリックを実行すると TeXstudio が起動して TeX 文書の対応する行にジャンプします.

関連リンク


Last-modified: 2023-10-14 (土) 10:03:59 (188d)