*[[Kile:http://kile.sourceforge.net/]] [#pab65dd4]
*[[Kile:https://kile.sourceforge.io/]] [#pab65dd4]

#ref(http://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Kile.svg/240px-Kile.svg.png,right,around,nolink,Kile)

&color(White,#5F2F2F){  ''◆目次◆''  };&br;

----
#contents
----

*Kile とは [#v4a214a0]

Kile は TeX の統合環境です.~
SyncTeX に対応しています.~
エディタ部分は [[Kate:http://kate-editor.org/]] を使用しています.~
Kile は LaTeX の統合環境です.

-[[Kile:http://kile.sourceforge.net/]]
-[[SourceForge.net: kile:http://sourceforge.net/apps/mediawiki/kile/]]
--[[Live Preview:http://sourceforge.net/apps/mediawiki/kile/index.php?title=Live_Preview]]
SyncTeX に対応しています.

エディタ部分は [[KTextEditor:https://api.kde.org/frameworks/ktexteditor/html/]] を使用しています.

-[[Kile - an Integrated LaTeX Environment:https://kile.sourceforge.io/]]

**動作環境 [#fc95c26d]

KDE
Windows, Linux

**License [#bd454552]

[[GPL:https://projects.kde.org/projects/extragear/office/kile/repository/revisions/master/entry/COPYING]]
[[GPLv2:https://github.com/KDE/kile/blob/master/COPYING]]

**リリース情報 [#qfb7e12c]

[[News:http://kile.sourceforge.net/news.php]]
https://github.com/KDE/kile/releases

**ChangeLog [#k30d45b0]

-[[Kile - Overview - KDE Projects:https://projects.kde.org/projects/extragear/office/kile]]
--[[Activity:https://projects.kde.org/projects/extragear/office/kile/activity]]
-[[Repository:https://projects.kde.org/projects/extragear/office/kile/repository]]
--[[ChangeLog:https://projects.kde.org/projects/extragear/office/kile/repository/revisions/master/entry/ChangeLog]]
-https://github.com/KDE/kile
--https://github.com/KDE/kile/commits/master

*ダウンロード/インストール [#a3a3000b]
*設定 [#g12179be]

**Windows [#dba81ec6]
[設定(%%%S%%%)]-[Kile を設定(%%%C%%%)...]-[ツール]-[ビルド]

-[[KDE on Windows:http://windows.kde.org/]] のインストーラーを使用してインストールできます.
**QuickBuild [#t46a75f7]

**OS X [#ra4ed7b1]
***LaTeX+DVItoPDF+ViewPDF の場合 [#l170063d]

-[[kde4-kile:http://trac.macports.org/browser/trunk/dports/tex/kde4-kile/Portfile]]
-[[How to install Kile on Mac OS X Mountain Lion:http://www.tosnos.com/?p=28]]
LaTeX+DVItoPDF+ViewPDF を選択します.~

**Ubuntu [#b7368c5d]
:選択:|LaTeX+DVItoPDF+ViewPDF

-[[Ubuntu -- パッケージ検索結果 -- kile:http://packages.ubuntu.com/ja/kile]]
***LaTeX+DVItoPDF+ForwardPDF の場合 [#l39af91a]

**Debian [#te2ad223]
PDF ファイルを表示するときに forward search をしたい場合は

-[[Debian -- パッケージ検索結果 -- kile:http://packages.debian.org/ja/kile]]
[新規...]

**Fedora [#zdfde6e5]
LaTeX+DVItoPDF+ForwardPDF

-[[Fedora Package Database -- kile:https://admin.fedoraproject.org/pkgdb/acls/name/kile]]
[全般] タブで

**openSUSE [#d4893a59]
LaTeX&br;
DVItoPDF&br;
ForwardPDF&br;

-http://software.opensuse.org/package/kile
を設定して LaTeX+DVItoPDF+ForwardPDF を選択します.~

**Arch Linux [#z65493ff]
:選択:|LaTeX+DVItoPDF+ForwardPDF

-https://www.archlinux.org/packages/?q=kile

*設定 [#g12179be]

[Settings]-[Configure Kile...]-[Tools]-[Build]

**QuickBuild [#t46a75f7]

:Select:|LaTeX+DVItoPDF+ViewPDF

**LaTeX [#hec49503]

***platex の場合 [#vab528b1]
:コマンド(%%%M%%%):|uplatex
:オプション:|-synctex=1 -interaction=nonstopmode '%source'

:Command:|platex
:Options:|-synctex=1 -interaction=nonstopmode '%source'

***uplatex の場合 [#w257ee86]

:Command:|uplatex
:Options:|-synctex=1 -interaction=nonstopmode '%source'

**BibTeX [#kd1bef77]

***pbibtex の場合 [#j092a932]
:コマンド(%%%M%%%):|bibtexu
:オプション:|'%S'

:Command:|pbibtex
:Options:|'%S'

***upbibtex の場合 [#febb1ff7]

:Command:|upbibtex
:Options:|'%S'

**MakeIndex [#o588ae80]

:Command:|mendex
:Options:|'%S.idx'
:コマンド(%%%M%%%):|upmendex
:オプション:|'%S.idx'

**DVItoPDF [#kf18eec8]

:Command:|dvipdfmx
:Options:|'%S.dvi'
:コマンド(%%%M%%%):|dvipdfmx
:オプション:|'%S.dvi'

**ViewPDF [#fdeebbcf]

***Okular Unique の場合 [#d5998916]

:Select:|Okular Unique
:Command:|okular
:Options:|--unique '%target'
:選択:|Okular Unique
:コマンド(%%%M%%%):|okular
:オプション:|--unique '%target'

***Evince の場合 [#c83cd000]

:Select:|Evince
:Command:|evince
:Options:|'%target'
:選択:|Evince
:コマンド(%%%M%%%):|evince
:オプション:|'%target'

***qpdfview Unique の場合 [#x84dd0b8]

[新規...]

qpdfview Unique

:選択:|qpdfview Unique
:コマンド(%%%M%%%):|qpdfview
:オプション:|--unique '%target'

*使い方 [#ub2acf7c]

**QuickBuild [#o3d47735]

メニューの [Build]-[QuickBuild] でビルドして PDF ファイルを表示します.
メニューの [ビルド(%%%U%%%)]-[%%%Q%%%uickBuild] でビルドして PDF ファイルを表示します.

*Okular との連携 [#q0949a00]

**forward search [#ad302b58]

[Settings]-[Configure Kile...]-[Tools]-[Build]
[設定(%%%S%%%)]-[Kile を設定(%%%C%%%)...]-[ツール]-[ビルド]

***ForwardPDF [#a8c50040]

:Select:|Okular
:Command:|okular
:Options:|--unique '%absolute_target'
:選択:|Okular
:コマンド(%%%M%%%):|okular
:オプション:|--unique '%absolute_target'

Kile のメニューの [Build]-[View]-[ForwardPDF] で forward search ができます.
Kile のメニューの [ビルド(%%%U%%%)]-[表示(%%%V%%%)]-[ForwardPDF] で forward search ができます.

**inverse search [#t261af4f]

Okular のメニューの [Settings]-[Configure Okular...]-[Editor] の項目から Kile を選択します.
:Editor:|Kile
:Command:|kile --line %l
Okular のメニューの [設定(S)]-[Okular を設定(O)...]-[エディタ] の項目から Kile を選択します.
:エディタ:|Kile
:コマンド:|kile --line %l

Shift + 左クリックで対応する TeX 文書の該当箇所にジャンプします.

*Evince との連携 [#f6cbca7e]

**forward search [#ob62a5ad]

fwdevince は [[Evince - TeX Wiki#fwdevince>Evince#ie18c015]] の fwdevince を使用します.
fwdevince は [[Evince/fwdevince]] の fwdevince を使用します.

----
-kile2fwdevince
----
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
 import sys
 import re
 import subprocess
 
 if __name__ == '__main__':
     m = re.match(r'file:(\S*)#src:(\S*) (\S*)', sys.argv[1])
     if m:
         pdf = m.group(1)
         line = m.group(2)
         tex = m.group(3)
         subprocess.call(['fwdevince', pdf, line, tex])
----

 $ chmod +x kile2fwdevince
 $ sudo cp -p kile2fwdevince /usr/local/bin

[Settings]-[Configure Kile...]-[Tools]-[Build]
[設定(%%%S%%%)]-[Kile を設定(%%%C%%%)...]-[ツール]-[ビルド]

***ForwardPDF [#ace63589]

[New...] をクリックして Evince を入力します.
[新規...] をクリックして Evince を入力します.

:Select:|Evince
:Command:|kile2fwdevince
:Options:|'%target'
:選択:|Evince
:コマンド(%%%M%%%):|kile2fwdevince
:オプション:|'%target'

Kile のメニューの [Build]-[View]-[ForwardPDF] で forward search ができます.
Kile のメニューの [ビルド(%%%U%%%)]-[表示(%%%V%%%)]-[ForwardPDF] で forward search ができます.

*PdfViewer との連携 [#p9f6aff5]
*qpdfview との連携 [#u024daea]

**forward search [#iff757fb]
**forward search [#o5906f94]

[Settings]-[Configure Kile...]-[Tools]-[Build]
----
-kile2qpdfview
----
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
 import sys
 import re
 import subprocess
 
 if __name__ == '__main__':
     m = re.match(r'file:(\S*)#src:(\S*) (\S*)', sys.argv[1])
     if m:
         pdf = m.group(1)
         line = m.group(2)
         tex = m.group(3)
         args = pdf + '#src:' + tex + ':' + line + ':0'
         subprocess.call(['qpdfview', '--unique', args])
----

***ForwardPDF [#c86416d5]
 $ chmod +x kile2qpdfview
 $ sudo cp -p kile2qpdfview /usr/local/bin

[New...] をクリックして PdfViewer を入力します.
[設定(%%%S%%%)]-[Kile を設定(%%%C%%%)...]-[ツール]-[ビルド]

:Select:|PdfViewer
:Command:|pdfviewer
:Options:|'%target'
***ForwardPDF [#p9b7fdb1]

Kile のメニューの [Build]-[View]-[ForwardPDF] で forward search ができます.
[新規...] をクリックして qpdfview を入力します.

**inverse search [#t261af4f]
:選択:|qpdfview
:コマンド(%%%M%%%):|kile2qpdfview
:オプション:|'%target'

[Tools]-[Settings]-[Configure PdfViewer...]
:Editor:|kile --line %l "%f"
Kile のメニューの [ビルド(%%%U%%%)]-[表示(%%%V%%%)]-[ForwardPDF] で forward search ができます.

Ctrl + 左クリックで対応する TeX 文書の該当箇所にジャンプします.
**inverse search [#i42c49b9]

[Edit]-[Settings...]-[Behaviour]

:Source editor:|kile --line %2 "%1"

ダブルクリックで対応する TeX 文書の該当箇所にジャンプします.

*zathura との連携 [#k6bc7213]

**forward and inverse search [#k321c508]

-[[Wikipedia.en:Zathura_(document_viewer)]]

の Forward/Inverse Search with Kile を参照.

*関連リンク [#o6aee049]

-[[Newest 'kile' Questions - TeX - LaTeX:http://tex.stackexchange.com/questions/tagged/kile]]
--[[Configure kile to enable inverse search function:http://tex.stackexchange.com/questions/11528/configure-kile-to-enable-inverse-search-function]]
-[[LinuxでSyncTeXを使う:http://kubuser.blog.fc2.com/blog-entry-26.html]]
-[[KileをWindowsで使ってみる:http://d.tnose.net/?p=1654]]
-[[app-editors/kile-2.9.91:http://fusion0202.blog.jp/archives/609136.html]]
-[[Kile | Kubuntuにっき(仮):http://kubuser.blog.fc2.com/?q=Kile&charset=utf-8]]
-[[latex | Kubuntuにっき(仮):http://kubuser.blog.fc2.com/blog-category-2.html]]
-[[TeX Live 2013 on Gentoo Linux:http://fusion0202.blog.jp/archives/603893.html]]