*[[Okular:https://okular.kde.org/]] [#x3070edc] Okular は KDE に搭載されている,PDF, PS, DVI ファイルが表示可能なドキュメント・ビューアです. [[SyncTeX]] に対応しています. ファイルの自動更新機能もあります. ---- #contents ---- **公式 Web サイト [#jde0a0e5] -[[Okular - The Universal Document Viewer:https://okular.kde.org/]] **動作環境 [#ca9192aa] Windows, macOS, Linux **ライセンス [#qbc60c11] [[GPLv2:https://github.com/KDE/okular/tree/master/LICENSES]] **リリース情報 [#v4dc0489] [[Development News:https://okular.kde.org/news.php]] を参照. **ChangeLog [#h7a9328d] -https://github.com/KDE/okular/commits/master *インストール [#xecad964] -https://okular.kde.org/download/ **Windows [#h8e4fcbd] https://cdn.kde.org/ci-builds/graphics/okular/master/windows/ または https://cdn.kde.org/ci-builds/graphics/okular/release-23.08/windows/ または https://apps.microsoft.com/detail/9n41msq1wnm8?rtc=1&hl=ja-jp&gl=JP から Okular のインストーラーをダウンロードしてインストールできます. winget でインストールすることもできます.https://winget.run/pkg/KDE/Okular や https://github.com/microsoft/winget-pkgs/tree/master/manifests/k/KDE/Okular を参照してください. Scoop でインストールすることもできます.https://scoop.sh/#/apps?q=okular&s=0&d=1&o=true を参照してください. Chocolatey でインストールすることもできます.https://chocolatey.org/packages/okular を参照してください. **macOS [#ye831736] -https://github.com/KDE/homebrew-kde/blob/master/Formula/okular.rb -https://cdn.kde.org/ci-builds/graphics/okular/master/macos-arm64/ -https://cdn.kde.org/ci-builds/graphics/okular/master/macos-x86_64/ **Linux [#c209770f] ほとんどのディストリビューションではパッケージ管理システムからインストールできます. *代替フォントの設定 [#o2eb9a55] -[[Evince#代替フォントの設定>Evince#fallback]] -[[KDE-Okular や Texmaker で和文フォント非埋め込みPDFを表示させるには:http://fusion0202.blog.jp/archives/603103.html]] *使い方 [#jf24f8bb] **コマンドラインオプション [#md2d6a7f] -https://github.com/KDE/okular/blob/master/shell/main.cpp -https://github.com/KDE/okular/blob/master/po/ja/okular.po $ 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 開く文書。標準入力から読む場合は “-” を指定してください。 *SyncTeX [#ya8f4753] **forward search [#i560a338] TeX ファイルの 30 行目に対応する PDF ファイルの該当する箇所にジャンプしたい場合は $ okular --unique "file:hoge.pdf#src:30 `pwd`/hoge.tex" のように実行します. **inverse search [#ja9305fc] [設定(%%%S%%%)] > [Okular を設定(%%%O%%%)...] > [エディタ] 例えば [[TeXstudio]] の場合は エディタ の項目に :エディタ| カスタム :コマンド| texstudio "%f" -line %l を設定します. Okular 上で Shift + 左クリックを実行すると TeXstudio が起動して TeX 文書の対応する行にジャンプします.