Okular は KDE に搭載されている,PDF, PS, DVI ファイルが表示可能なドキュメント・ビューアです. SyncTeX に対応しています. ファイルの自動更新機能もあります.
Windows, macOS, Linux
Development News を参照.
https://binary-factory.kde.org/job/Okular_Nightly_win64/ から Okular のインストーラーをダウンロードしてインストールできます.
Chocolatey でインストールすることもできます. Chocolatey を使用する場合は https://chocolatey.org/packages/okular を参照してください.
Windows PowerSlhell を管理者として実行して
choco install okular
を実行します.
ほとんどのディストリビューションではパッケージ管理システムからインストールできます.
$ okular --help Usage: okular [options] urls Okular, 汎用文書ビューア Options: -h, --help Displays this help. -v, --version Displays version information. --author Show author information. --license Show license information. --desktopfile <file name> The base file name of the desktop entry for this application. -p, --page <number> 表示する文書のページ --presentation 文書をプレゼンテーションモードで開く --print Start with print dialog --print-and-exit Start with print dialog and exit after printing --unique 1 つのインスタンスのみ許可 --noraise Not raise window Arguments: urls Documents to open. Specify '-' to read from stdin.
TeX ファイルの 30 行目に対応する PDF ファイルの該当する箇所にジャンプしたい場合は
$ okular --unique "file:hoge.pdf#src:30 `pwd`/hoge.tex"
のように実行します.
[設定(S)] > [Okular を設定(O)...] > [エディタ]
例えば TeXstudio の場合は エディタ の項目に
カスタム
texstudio "%f" -line %l
を設定します.
Okular 上で Shift + 左クリックを実行すると TeXstudio が起動して TeX 文書の対応する行にジャンプします.