*[[gedit:https://wiki.gnome.org/Apps/Gedit]] [#c704b7fa]
*[[gedit:https://gedit-technology.github.io/apps/gedit/]] [#c704b7fa]

//#ref(https://git.gnome.org/browse/gedit/plain/pixmaps/gedit-logo.png,right,around,nolink,gedit)
//#ref(https://gitlab.gnome.org/GNOME/gedit/raw/master/gedit/resources/pixmaps/gedit-logo.png,right,around,nolink,gedit)

----
#contents
----

*gedit とは [#s7f61b9d]

gedit は GNOME 公式のテキストエディタです.
gedit は小型軽量のテキストエディターです.

-[[gedit:https://wiki.gnome.org/Apps/Gedit]]
-https://wiki.gnome.org/action/show/Apps/Gedit
-[[gedit:https://gedit-technology.github.io/apps/gedit/]]

----
&color(#DAF0FE,#DAE0FE){%%%  &color(Black){ファイル(%%%F%%%)};  &color(Black){編集(%%%E%%%)};  &color(Black){表示(%%%V%%%)};  &color(Black){検索(%%%S%%%)};  &color(Black){ツール(%%%T%%%)};  &color(Black){ドキュメント(%%%D%%%)};  &color(Black){ヘルプ(%%%H%%%)};             %%%};&br;
&color(#DAF0FE,#DAE0FE){%%% &color(Black){[開く(O)]}; &color(Black){[+]};         &color(Black){無題のドキュメント1};        &color(Black){[保存(S)]}; &color(Black){[☰]}; &color(Black){×}; %%%};&br;
 \documentclass[12pt]{scrartcl}
 \usepackage{indentfirst}
 \begin{document}
 \section{What is gedit?}
 gedit is the official text editor of the GNOME desktop environment.
 gedit is the GNOME text editor.
 
 While aiming at simplicity and ease of use, gedit is a powerful general purpose text editor.\par
 Currently it features:
 Notable Features
 
 \begin{itemize}
   \item Full support for internationalized text (UTF-8)
   \item Configurable syntax highlighting for various languages (C, C++, Java, HTML, XML, Python, Perl and many others)
   \item Undo/Redo
   \item Editing files from remote locations
   \item File reverting
   \item Print and print preview support
   \item Clipboard support (cut/copy/paste)
   \item Search and replace
   \item Go to specific line
   \item Auto indentation
   \item Text wrapping
   \item Line numbers
   \item Right margin
   \item Current line highlighting
   \item Bracket matching
   \item Backup files
   \item Configurable fonts and colors
   \item A complete online user manual
 \end{itemize}
 
 gedit features also a flexible plugin system which can be used to dynamically add new advanced features to gedit itself. See the plugins page for more info on the existing plugins.
 
 Go to the screenshots page to see gedit in action!
 
 gedit is released under the GNU General Public License (GPL).
 \end{document}
----
**動作環境 [#kd6ded02]

Windows, OS X, Linux
Linux, Windows, macOS

**License [#bf49560f]

[[GPLv2:https://git.gnome.org/browse/gedit/tree/COPYING]]
[[GPLv2:https://gitlab.gnome.org/GNOME/gedit/blob/master/COPYING]]

**リリース情報/ChangeLog [#z39e4e65]

-[[gedit - GNOME Text Editor:https://git.gnome.org/browse/gedit/]] GNOME GIT source code repository
--https://git.gnome.org/browse/gedit/refs/tags
--[[log:https://git.gnome.org/browse/gedit/log/]]
-[[GNOME / gedit · GitLab:https://gitlab.gnome.org/GNOME/gedit]]
--https://gitlab.gnome.org/GNOME/gedit/tags
--https://gitlab.gnome.org/GNOME/gedit/commits/master

*プラグイン [#c01f900c]
-[[geditのプラグイン : いわにぃのブログ:http://blog.livedoor.jp/ti5942/tag/gedit%E3%81%AE%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3]]
-[[LaTeX入門 : いわにぃのブログ:http://blog.livedoor.jp/ti5942/tag/LaTeX%E5%85%A5%E9%96%80]]
**派生版 [#k13d1526]

を参照.~
-[[pluma:https://github.com/mate-desktop/pluma]]
-[[xed:https://github.com/linuxmint/xed]]

*プラグイン [#c01f900c]

**[[gedit-latex:https://wiki.gnome.org/Apps/Gedit/LaTeXPlugin]] [#p2206363]

-https://wiki.gnome.org/Apps/Gedit/LaTeXPlugin
-https://git.gnome.org/browse/gedit-latex/
-https://gitlab.gnome.org/GNOME/gedit-latex
-http://ftp.gnome.org/pub/GNOME/sources/gedit-latex/
-https://aur.archlinux.org/packages/gedit-latex/
-https://packages.ubuntu.com/search?keywords=gedit-latex
-https://packages.debian.org/search?keywords=gedit-latex
-https://apps.fedoraproject.org/packages/gedit-latex
-https://software.opensuse.org/package/gedit-latex

gedit-latex は gedit で LaTeX の文書作成を簡単にできるようにするためのプラグインです.~
[編集(E)]-[設定(E)]-[プラグイン] の LaTeX Plugin にチェックをいれます.~
LaTeX Plugin の [設定(P)] で LaTeX Plugin で使用する Tools の設定ができます.~
Tools の項目の LaTeX → PDF を選択して [プロパティ(P)] をクリックします.~

gedit-latex は gedit で LaTeX の文書作成を簡単にできるようにするためのプラグインです.

[☰] > [設定] > [プラグイン] の LaTeX Plugin にチェックをいれます.

LaTeX Plugin の [設定] で LaTeX Plugin で使用する Tools の設定ができます.

Tools の項目の LaTeX → PDF を選択して [プロパティ] をクリックします.

LaTeX → PDF はデフォルトでは

 rubber --inplace --maxerr -1 --short --force --warn all --pdf "$filename"
 gvfs-open "$shortname.pdf"

に設定されています.~
これらを [削除(R)] して~
に設定されています.

[[ptex2pdf]] を使用する場合は
これらを [削除] して

[[ptex2pdf]]-upLaTeX を使用する場合は

 ptex2pdf -u -l -ot '-synctex=1' "$filename"

Latexmk を使用する場合は
Latexmk-upLaTeX を使用する場合は

 latexmk -e '$latex=q/uplatex %O -synctex=1 %S/' -e '$bibtex=q/upbibtex %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -e '$dvipdf=q/dvipdfmx %O -o %D %S/' -norc -gg -pdfdvi "$filename"
 latexmk -e '$latex=q/uplatex %O -synctex=1 %S/' -e '$bibtex=q/bibtexu %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -e '$dvipdf=q/dvipdfmx %O -o %D %S/' -norc -gg -pdfdvi "$filename"

を [追加(A)] して設定します.~
を [追加] して設定します.

出力した PDF ファイルを表示するようにしたい場合は
  evince "$shortname.pdf"
も [追加(A)] してください.~
LaTeX → PDF は [ツール(T)]-[LaTeX → PDF] で実行できます.~
[表示(V)]-[ボトムパネル(B)] の [Tools] タブをクリックすると Job (処理状況) が表示されます.~
forward and inverse search が必要な場合は SyncTeX プラグインを使用してください.~
も [追加] してください.

**[[gedit-plugins (SyncTeX):https://git.gnome.org/browse/gedit-plugins/tree/plugins/synctex]] [#uc9a113c]
LaTeX → PDF は [☰] > [ツール] > [LaTeX Tools] > [LaTeX → PDF] で実行できます.

-https://git.gnome.org/browse/gedit-plugins/tree/plugins/synctex
//-https://github.com/jaliste/gedit-synctex-plugin
-[[SyncTeX による検索:http://library.gnome.org/users/evince/stable/synctex-search.html.ja]]
[☰] > [表示] > [ボトムパネル] を ON にして [Tools] タブをクリックすると Job (処理状況) が表示されます.

SyncTeX プラグインは gedit-plugins に収録されています.~
SyncTeX プラグインを使用すると gedit と Evince の間で forward and inverse search ができます.~
[編集(E)]-[設定(E)]-[プラグイン] の SyncTeX にチェックをいれます.~
forward and inverse search が必要な場合は SyncTeX プラグインを使用してください.

forward search は gedit で Ctrl+Alt+F または Ctrl + 左クリックを使用すると Evince の該当行にジャンプします.~
inverse search は Evince で Ctrl + 左クリックを使用すると gedit の該当行にジャンプします.~
**[[gedit-plugins (SyncTeX):https://gitlab.gnome.org/GNOME/gedit-plugins/tree/master/plugins/synctex]] --> [[Remove synctex plugin:https://gitlab.gnome.org/GNOME/gedit-plugins/-/commit/7624d8b31e01fce1277c82fd14acf75ee04aa1cd]] [#uc9a113c]

gedit のメニューから [ツール(T)]-[Forward Search] を実行して
 TypeError: forward_search_cb() takes exactly 3 arguments (2 given)
といったエラーメッセージが出力されたり~
gedit の起動時に~
-https://salsa.debian.org/gnome-team/gedit-plugins/tree/debian/master/plugins/synctex/synctex
-https://github.com/jaliste/gedit-synctex-plugin
-[[SyncTeX による検索:https://help.gnome.org/users/evince/stable/synctex-search.html.ja]]
-https://www.archlinux.org/packages/extra/x86_64/gedit-plugins/
-https://packages.ubuntu.com/search?keywords=gedit-plugin-synctex
-https://packages.debian.org/search?keywords=gedit-plugin-synctex
-https://apps.fedoraproject.org/packages/gedit-plugin-synctex --> https://koji.fedoraproject.org/koji/rpminfo?rpmID=19697041
-https://software.opensuse.org/package/gedit-plugin-synctex

 Traceback (most recent call last):
   File "/usr/lib/gedit/plugins/synctex/synctex.py", line 251, in <lambda>
     self.window.connect("tab-added", lambda window, tab: self.add_helper(tab.get_view(), window)),
   File "/usr/lib/gedit/plugins/synctex/synctex.py", line 276, in add_helper
     helper = SynctexViewHelper(view, window, self)
   File "/usr/lib/gedit/plugins/synctex/synctex.py", line 99, in __init__
     self.update_location()
   File "/usr/lib/gedit/plugins/synctex/synctex.py", line 152, in update_location
     modeline_output_file = self.get_output_file()
   File "/usr/lib/gedit/plugins/synctex/synctex.py", line 118, in get_output_file
     for i in range(min(3,line_count)) + range(max(0,line_count - 3), line_count):
 TypeError: unsupported operand type(s) for +: 'range' and 'range'
 Traceback (most recent call last):
   File "/usr/lib/gedit/plugins/synctex/synctex.py", line 112, in on_saved_or_loaded
     self.update_location()
   File "/usr/lib/gedit/plugins/synctex/synctex.py", line 152, in update_location
     modeline_output_file = self.get_output_file()
   File "/usr/lib/gedit/plugins/synctex/synctex.py", line 118, in get_output_file
     for i in range(min(3,line_count)) + range(max(0,line_count - 3), line_count):
 TypeError: unsupported operand type(s) for +: 'range' and 'range'
SyncTeX プラグインは gedit-plugins 2.31.5 から gedit-plugins 3.32.2 までは gedit-plugins に収録されていましたが,[[2019年5月28日にリポジトリから削除された:https://gitlab.gnome.org/GNOME/gedit-plugins/commit/9f59fd8292e1c0cc88824010a61b32a049444632]]ため gedit-plugins 3.33.90, 3.33.92, 3.34.0 には収録されていません。[[2019年9月20日に元に戻された:https://gitlab.gnome.org/GNOME/gedit-plugins/commit/3f135d1719f1e6418fcbf175fdac1b48ca086eb5]]ため gedit-plugins 3.34.1 から gedit-plugins 44.1 までは収録されていましたが [[gedit-plugins 45.0 2023-06-23 で再び削除されました:https://gitlab.gnome.org/GNOME/gedit-plugins/-/commit/7624d8b31e01fce1277c82fd14acf75ee04aa1cd]]。

または
SyncTeX プラグインを使用すると gedit と Evince の間で forward and inverse search ができます.

 Traceback (most recent call last):
   File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 251, in <lambda>
     self.window.connect("tab-added", lambda window, tab: self.add_helper(tab.get_view(), window)),
   File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 276, in add_helper
     helper = SynctexViewHelper(view, window, self)
   File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 99, in __init__
     self.update_location()
   File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 152, in update_location
     modeline_output_file = self.get_output_file()
   File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 118, in get_output_file
     for i in range(min(3,line_count)) + range(max(0,line_count - 3), line_count):
 TypeError: unsupported operand type(s) for +: 'range' and 'range'
 Traceback (most recent call last):
   File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 112, in on_saved_or_loaded
     self.update_location()
   File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 152, in update_location
     modeline_output_file = self.get_output_file()
   File "/usr/lib64/gedit/plugins/synctex/synctex.py", line 118, in get_output_file
     for i in range(min(3,line_count)) + range(max(0,line_count - 3), line_count):
 TypeError: unsupported operand type(s) for +: 'range' and 'range'
[☰] &gt; [設定] &gt; [プラグイン] の SyncTeX にチェックをいれます.

といったエラーメッセージが出力されたりする場合は~
/usr/lib/gedit/plugins/synctex/synctex.py または~
/usr/lib64/gedit/plugins/synctex/synctex.py を~
[[最新版の synctex.py:https://git.gnome.org/browse/gedit-plugins/plain/plugins/synctex/synctex/synctex.py]] で上書きすれば~
forward and inverse search が動作するようになります.~
forward search は gedit で [☰] &gt; [ツール] &gt; [Forward Search] または Ctrl+Alt+F または Ctrl + 左クリックを使用すると Evince の該当行にジャンプします.

**[[gedit-plugins (Code comment):https://git.gnome.org/browse/gedit-plugins/tree/plugins/codecomment]] [#q8313fab]
inverse search は Evince で Ctrl + 左クリックを使用すると gedit の該当行にジャンプします.

-https://git.gnome.org/browse/gedit-plugins/tree/plugins/codecomment
//エラーメッセージが表示される場合は
///usr/lib/gedit/plugins/synctex/synctex.py または
///usr/lib64/gedit/plugins/synctex/synctex.py を
//[[削除される前の最新版の synctex.py:https://gitlab.gnome.org/GNOME/gedit-plugins/blob/8a5676e03499819f483d097def826b0f42fc2396/plugins/synctex/synctex/synctex.py]] で上書きすれば
//forward and inverse search が動作するかもしれません.

Code comment プラグインは gedit-plugins に収録されています.~
Code comment プラグインを使用するとコメントアウト,コメントアウトの解除ができます.~
[編集(E)]-[設定(E)]-[プラグイン] の Code comment にチェックをいれます.~
**[[gedit-plugins (Code Comment):https://gitlab.gnome.org/GNOME/gedit-plugins/tree/master/plugins/codecomment]] [#q8313fab]

-[[geditのプラグイン: Code comment:http://blog.livedoor.jp/ti5942/archives/7584204.html]]
-https://gitlab.gnome.org/GNOME/gedit-plugins/tree/master/plugins/codecomment

**[[gedit-plugins (Bracket Completion):https://git.gnome.org/browse/gedit-plugins/tree/plugins/bracketcompletion]] [#af44b88e]
Code Comment プラグインは gedit-plugins に収録されています.

-https://git.gnome.org/browse/gedit-plugins/tree/plugins/bracketcompletion
Code Comment プラグインを使用するとコメントアウト,コメントアウトの解除ができます.

Bracket Completion プラグインは gedit-plugins に収録されています.~
Bracket Completion プラグインを使用すると閉じかっこを自動的に追加してくれます.~
[編集(E)]-[設定(E)]-[プラグイン] の Bracket Completion にチェックをいれます.~
[☰] &gt; [設定] &gt; [プラグイン] の Code Comment にチェックをいれます.

**コードスニペット [#t852fd66]
-[[geditのプラグイン: Code comment:http://blog.livedoor.jp/ti5942/archives/7584204.html]]

コードスニペットは,よく使用する文字列をすばやく挿入するためのプラグインです.~
[編集(E)]-[設定(E)]-[プラグイン] の コードスニペットにチェックをいれます.~
[ツール(T)]-[スニペットの管理...] からコードスニペットの設定ができます.~
**[[gedit-plugins (Bracket Completion):https://gitlab.gnome.org/GNOME/gedit-plugins/tree/master/plugins/bracketcompletion]] [#af44b88e]

**外部ツール [#qa44ee46]
-https://gitlab.gnome.org/GNOME/gedit-plugins/tree/master/plugins/bracketcompletion

外部ツールは,外部コマンドと Shell スクリプトを実行するためのプラグインです.~
[編集(E)]-[設定(E)]-[プラグイン] の 外部ツールにチェックをいれます.~
[ツール(T)]-[外部ツールの管理...] から外部ツールの設定ができます.~
ツール(T): で [+] をクリックするとツールが追加できます.~
編集(E): の項目にシェルスクリプトを追加します.~
適用範囲(A): で All Languages から LaTeX に変更します.~
[ツール(T)]-[外部ツール] から設定した外部ツールを実行できます.~
[表示(V)]-[ボトムパネル(B)] の [Shell Output] タブをクリックすると処理状況が表示されます.~
Bracket Completion プラグインは gedit-plugins に収録されています.

***pdfupLaTeX [#x4f1ba2c]
Bracket Completion プラグインを使用すると閉じかっこを自動的に追加してくれます.

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 ptex2pdf -u -l -ot '-synctex=1' "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント
[☰] &gt; [設定] &gt; [プラグイン] の Bracket Completion にチェックをいれます.

***pdfupLaTeX2 [#k85e2282]
**コードスニペット [#t852fd66]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 uplatex -synctex=1 "$GEDIT_CURRENT_DOCUMENT_NAME" && \
 dvips -Ppdf -z -f "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.dvi" | \
 convbkmk -u > "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.ps" && \
 ps2pdf "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.ps"
----
:保存(S):|編集中のドキュメント
コードスニペットは,よく使用する文字列をすばやく挿入するためのプラグインです.

***pLaTeX-ng [#m6f8fa02]
[☰] &gt; [設定] &gt; [プラグイン] の コードスニペットにチェックをいれます.

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 platex-ng -synctex=1 "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント
[☰] &gt; [スニペットの管理...] からコードスニペットの設定ができます.

***pdfLaTeX [#f6f3d125]
**外部ツール [#qa44ee46]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 pdflatex -synctex=1 "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント
外部ツールは,外部コマンドと Shell スクリプトを実行するためのプラグインです.

***LuaLaTeX [#dacfdc34]
[☰] &gt; [設定] &gt; [プラグイン] の 外部ツールにチェックをいれます.

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 lualatex -synctex=1 "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント
[☰] &gt; [外部ツールの管理...] から外部ツールの設定ができます.

***LuaJITLaTeX [#p2dffd1c]
[+] をクリックするとツールが追加できます.

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 luajitlatex -synctex=1 "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント
#!/bin/sh が記述されている編集画面にシェルスクリプトを追加します.

***XeLaTeX [#df8a1522]
適用範囲はデフォルトでは All Languages に指定されているので LaTeX に変更します.

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 xelatex -synctex=1 "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント
[☰] &gt; [ツール] &gt; [外部ツール] から設定した外部ツールを実行できます.

***Latexmk [#a2b5d8d4]
[☰] &gt; [表示] &gt; [ボトムパネル] を ON にして [Tool Output] タブをクリックすると処理状況が表示されます.

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 latexmk "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント
***ptex2pdf-upLaTeX [#x4f1ba2c]

***Latexmk-upLaTeX-pdfdvi [#t17eb179]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 latexmk -e '$latex=q/uplatex %O -synctex=1 %S/' -e '$bibtex=q/upbibtex %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -e '$dvipdf=q/dvipdfmx %O -o %D %S/' -norc -gg -pdfdvi "$GEDIT_CURRENT_DOCUMENT_NAME"
 ptex2pdf -u -l -ot '-synctex=1' "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント

***Latexmk-upLaTeX-pdfps [#p3caf947]
***LuaLaTeX [#dacfdc34]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 latexmk -e '$latex=q/uplatex %O -synctex=1 %S/' -e '$bibtex=q/upbibtex %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -e '$dvips=q/dvips %O -z -f %S | convbkmk -u > %D/' -e '$ps2pdf=q/ps2pdf %O %S %D/' -norc -gg -pdfps "$GEDIT_CURRENT_DOCUMENT_NAME"
 lualatex -synctex=1 "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント

***Latexmk-pLaTeX-ng [#s063e57a]
***Latexmk [#a2b5d8d4]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 latexmk -e '$pdflatex=q/platex-ng %O -synctex=1 %S/' -e '$bibtex=q/upbibtex %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -norc -gg -pdf "$GEDIT_CURRENT_DOCUMENT_NAME"
 latexmk "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント

***Latexmk-pdfLaTeX [#q7311d5c]
***Latexmk-upLaTeX [#t17eb179]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 latexmk -e '$pdflatex=q/pdflatex %O -synctex=1 %S/' -e '$bibtex=q/bibtex %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/makeindex %O -o %D %S/' -norc -gg -pdf "$GEDIT_CURRENT_DOCUMENT_NAME"
 latexmk -e '$latex=q/uplatex %O -synctex=1 %S/' -e '$bibtex=q/bibtexu %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -e '$dvipdf=q/dvipdfmx %O -o %D %S/' -norc -gg -pdfdvi "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント

***Latexmk-LuaLaTeX [#gd49f6fd]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 latexmk -e '$pdflatex=q/lualatex %O -synctex=1 %S/' -e '$bibtex=q/upbibtex %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -norc -gg -pdf "$GEDIT_CURRENT_DOCUMENT_NAME"
 latexmk -e '$lualatex=q/lualatex %O -synctex=1 %S/' -e '$bibtex=q/bibtexu %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -norc -gg -pdflua "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント

***Latexmk-LuaJITLaTeX [#of7ecadb]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 latexmk -e '$pdflatex=q/luajitlatex %O -synctex=1 %S/' -e '$bibtex=q/upbibtex %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -norc -gg -pdf "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント

***Latexmk-XeLaTeX [#s2321b30]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 latexmk -e '$pdflatex=q/xelatex %O -synctex=1 %S/' -e '$bibtex=q/upbibtex %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -norc -gg -pdf "$GEDIT_CURRENT_DOCUMENT_NAME"
----
:保存(S):|編集中のドキュメント

***Evince [#t53bc494]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 synctex view -i $GEDIT_CURRENT_LINE_NUMBER:0:"$GEDIT_CURRENT_DOCUMENT_NAME" -o "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf" -x "evince -i %{page+1} %{output}"
----

***fwdevince [#s41c2ddc]

fwdevince は [[Evince/fwdevince]] の fwdevince を使用します.~
fwdevince は [[Evince/fwdevince]] の fwdevince を使用します.

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 fwdevince "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf" $GEDIT_CURRENT_LINE_NUMBER "$GEDIT_CURRENT_DOCUMENT_NAME"
----

***Okular [#gaa0fcf1]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 okular --unique "file:"`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf"#src:$GEDIT_CURRENT_LINE_NUMBER "$GEDIT_CURRENT_DOCUMENT_PATH""
----

***zathura [#db749118]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 zathura -x "gedit "%{input}" +%{line}" --synctex-forward $GEDIT_CURRENT_LINE_NUMBER:0:"$GEDIT_CURRENT_DOCUMENT_NAME" "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf"
----

***qpdfview [#ud4fadf3]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 qpdfview --unique ""`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf"#src:"$GEDIT_CURRENT_DOCUMENT_NAME":$GEDIT_CURRENT_LINE_NUMBER:0"
----

***TeXworks [#b3f685e3]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 texworks "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf"
----

***TeXstudio [#u27bd777]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 texstudio --pdf-viewer-only "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf"
----

***MuPDF [#cdaf098f]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 mupdf "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf"
----

***Mozilla Firefox (PDF.js) [#h50b5c23]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 firefox -new-window "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf"
----

***Chrome PDF Viewer [#l9d9720f]

----
 #!/bin/sh
 
 cd "$GEDIT_CURRENT_DOCUMENT_DIR" && \
 chromium --new-window "`basename "$GEDIT_CURRENT_DOCUMENT_NAME" .tex`.pdf"
----