[[Texmaker]] > [[設定>Texmaker/設定]] > [[Linux]]

----
#contents
----

*設定 [#t1b1a7e1]
**コマンド [#cab65285]

[オプション(O)]-[Texmaker の設定]-[コマンド]
%%%O%%%ptions > Configure Texmaker > Commands

PDFビューアは,組み込みビューアと外部ビューアを選択するようになっているので好きな方を選択してください.~
組み込みビューアで和文フォントを埋め込んでいない PDF ファイルを表示したい場合は [[代替フォントの設定>Evince#substitute]] や [[KDE-Okular や Texmaker で和文フォント非埋め込みPDFを表示させるには:http://blogs.yahoo.co.jp/igproj_fusion/16383026.html]]を参照してください.~
コマンドの LaTeX に設定されている latex を uplatex に変更してコマンドのオプションに -synctex=1 を追加します.~
コマンドの LuaLaTeX に設定されているコマンドのオプションに -synctex=1 を追加します.~
コマンドの Bib(la)tex に設定されている bibtex を biber --bblencoding=utf8 -u -U --output_safechars または upbibtex に変更します.~
コマンドの Dvipdfm に設定されている dvipdfm を dvipdfmx に変更します.~
コマンドの LaTeX に設定されている latex を uplatex に変更してコマンドのオプションに -synctex=1 を追加します.

コマンドの LuaLaTeX に設定されているコマンドのオプションに -synctex=1 を追加します.

コマンドの Bib(la)tex に設定されている bibtex を biber --bblencoding=utf8 -u -U --output_safechars または bibtexu に変更します.

コマンドの Dvipdfm に設定されている dvipdfm を dvipdfmx に変更します.

----
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configtools.png,left,around,nolink,コマンド)
&br;
&br;
&br;
&br;
  &color(Black,#DAEAFF){   ''コマンド''   };&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configquick.png,left,around,nolink,クイックビルド)
&br;
&br;
&br;
&br;
   ''クイックビルド''&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configeditor.png,left,around,nolink,エディタ)
&br;
&br;
&br;
&br;
     ''エディタ''&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configkeys.png,left,around,nolink,ショートカット)
&br;
&br;
&br;
&br;
   ''ショートカット''&br;
----
:コマンド (% : 拡張子を除いたファイル名 - @ : 行番号)|

:LaTeX|
:|uplatex -synctex=1 -interaction=nonstopmode %.tex
:PdfLaTeX|
:|pdflatex -synctex=1 -interaction=nonstopmode %.tex

:|☐ 出力ファイルを "build" サブフォルダーに出力する
:|☐ Use a "build" subdirectory for output files

:XeLaTeX|
:|xelatex -synctex=1 -interaction=nonstopmode %.tex
:LuaLaTeX|
:|lualatex -synctex=1 -interaction=nonstopmode %.tex
:|luajitlatex -synctex=1 -interaction=nonstopmode %.tex
:Latexmk|
:|ruby -e "cmd='latexmk -e '+0x22.chr+'$latex=q/uplatex '+0x25.chr+'O'+' -synctex=1 -interaction=nonstopmode '+0x25.chr+'S'+'/'+0x22.chr+' -e '+0x22.chr+'$bibtex=q/upbibtex '+0x25.chr+'O'+' '+0x25.chr+'B'+'/'+0x22.chr+' -e '+0x22.chr+'$biber=q/biber '+0x25.chr+'O'+' --bblencoding=utf8 -u -U --output_safechars '+0x25.chr+'B'+'/'+0x22.chr+' -e '+0x22.chr+'$makeindex=q/upmendex '+0x25.chr+'O'+' -o '+0x25.chr+'D'+' '+0x25.chr+'S'+'/'+0x22.chr+' -e '+0x22.chr+'$dvipdf=q/dvipdfmx '+0x25.chr+'O'+' -o '+0x25.chr+'D'+' '+0x25.chr+'S'+'/'+0x22.chr+' -norc -gg -pdfdvi '+'%.tex';system(cmd)"
:|ruby -e "cmd='latexmk -e '+0x22.chr+'$latex=q/uplatex '+0x25.chr+'O'+' -synctex=1 -interaction=nonstopmode '+0x25.chr+'S'+'/'+0x22.chr+' -e '+0x22.chr+'$bibtex=q/bibtexu '+0x25.chr+'O'+' '+0x25.chr+'B'+'/'+0x22.chr+' -e '+0x22.chr+'$biber=q/biber '+0x25.chr+'O'+' --bblencoding=utf8 -u -U --output_safechars '+0x25.chr+'B'+'/'+0x22.chr+' -e '+0x22.chr+'$makeindex=q/upmendex '+0x25.chr+'O'+' -o '+0x25.chr+'D'+' '+0x25.chr+'S'+'/'+0x22.chr+' -e '+0x22.chr+'$dvipdf=q/dvipdfmx '+0x25.chr+'O'+' -o '+0x25.chr+'D'+' '+0x25.chr+'S'+'/'+0x22.chr+' -norc -gg -pdfdvi '+'%.tex';system(cmd)"
:Bib(la)tex|
:|biber --bblencoding=utf8 -u -U --output_safechars %
:|upbibtex %
:|bibtexu %
:Makeindex|
:|upmendex %.idx
:dvips|
:|ruby -e "cmd='dvips -Ppdf -z -f '+0x22.chr+ARGV[0]+'.dvi'+0x22.chr+' '+0x7c.chr+' '+'convbkmk -u'+' '+0x3e.chr+' '+0x22.chr+ARGV[0]+'.ps'+0x22.chr;system(cmd)" %
:Dvipdfm|
:|dvipdfmx %.dvi
:ps2pdf|
:|ps2pdf %.ps
:metapost|
:|upmpost -interaction=nonstopmode %
:Asymptote|
:|asy %.asy
:ghostscript|
:|gs
:R Sweave|
:|R CMD Sweave %.Rnw
:Add to PATH|

:PDF ビューア|
:|🔘 組み込みビューア
:|☑ 埋め込み
:|◯ 外部ビューア
:PDF Viewer|
:|🔘 Built-in Viewer
:|☑ Embed
:|◯ External Viewer
:|ruby -e "cmd='synctex view -i '+0x27.chr+'"@:0:#.tex"'+0x27.chr+' -o '+0x27.chr+'"%.pdf"'+0x27.chr+' -x '+0x27.chr+'evince -i '+0x25.chr+'{page+1} '+0x22.chr+0x25.chr+'{output}'+0x22.chr+0x27.chr;system(cmd)"
:|fwdevince %.pdf @ #.tex
:|ruby -e "cmd='okular --unique '+0x22.chr+'file:'+'"%.pdf"'+0x23.chr+'src:'+'"@"'+' '+'"!/#.tex"'+0x22.chr;system(cmd)"
:|ruby -e "cmd='synctex view -i '+0x27.chr+'"@:0:#.tex"'+0x27.chr+' -o '+0x27.chr+'"%.pdf"'+0x27.chr+' -x '+0x27.chr+'zathura -P '+0x25.chr+'{page+1} '+0x22.chr+0x25.chr+'{output}'+0x22.chr+0x27.chr;system(cmd)"
:|ruby -e "cmd='zathura -x '+0x22.chr+'texmaker '+0x22.chr++0x25.chr+'{input}'+0x22.chr+' -line '+0x25.chr+'{line}'+0x22.chr+' --synctex-forward '+0x22.chr+'"@"'+':0:'+'"#.tex"'+0x22.chr+' '+0x22.chr+'"%.pdf"'+0x22.chr;system(cmd)"
:|ruby -e "cmd='qpdfview --unique '+0x22.chr+'"%.pdf"'+0x23.chr+'src:'+'"#.tex"'+':'+'"@"'+':0'+0x22.chr;system(cmd)"
:|ruby -e "cmd='synctex view -i '+0x27.chr+'"@:0:#.tex"'+0x27.chr+' -o '+0x27.chr+'"%.pdf"'+0x27.chr+' -x '+0x27.chr+'texworks --position='+0x25.chr+'{page+1} '+0x22.chr+0x25.chr+'{output}'+0x22.chr+0x27.chr;system(cmd)"
#img(,clear)
&br;
                                                                                &color(Black,#EEEEEE){[   OK   ]}; &color(Black,#EEEEEE){[ キャンセル ]};&br;
----

*[[Evince]] との連携 [#xd595a5d]

LaTeX コマンド, PdfLaTeX コマンド, XeLaTeX コマンド, LuaLaTeX コマンドのオプションに -synctex=1 を追加します.

**forward search [#dc58c25f]

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

forward search は PDFビューアに

 fwdevince %.pdf @ #.tex

です.

**inverse search [#zb2ae21e]

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

ユーザーコマンドに invevince を作成して以下のようにコマンドを設定します.~

 ruby -e "cmd='invevince'+' '+0x22.chr+'"%.pdf"'+0x22.chr+' '+0x22.chr+'texmaker '+0x27.chr++0x25.chr+'f'+0x27.chr+' -line '+0x25.chr+'l'+0x22.chr;system(cmd)"

PDFビューアに evince を設定して evince で PDF ファイルを表示してユーザーコマンドを実行します.~
Ctrl + 左クリックで inverse search ができます.~
ユーザーコマンドを実行するタイミングは evince で PDF ファイルを表示する前でも後でもどちらでも OK です.~
Texmaker の動作がおかしくなる場合は使用を中止してください.~

*Okular との連携 [#e1d5124a]

LaTeX コマンド, PdfLaTeX コマンド, XeLaTeX コマンド, LuaLaTeX コマンドのオプションに -synctex=1 を追加します.

**forward search [#rb0da469]

forward search は PDFビューアに

 ruby -e "cmd='okular --unique '+0x22.chr+'file:'+'"%.pdf"'+0x23.chr+'src:'+'"@"'+' '+'"!/#.tex"'+0x22.chr;system(cmd)"

です.

**inverse search [#r820bc14]

[Settings]-[Configure Okular...]-[Editor] の項目から Custom Text Editor を選択します.
:Editor:|Custom Text Editor
:Command:|texmaker "%f" -line %l

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

*zathura との連携 [#k3c22c37]

LaTeX コマンド, PdfLaTeX コマンド, XeLaTeX コマンド, LuaLaTeX コマンドのオプションに -synctex=1 を追加します.

**forward and inverse search [#s8c6284b]

forward and inverse search は PDFビューアに

 ruby -e "cmd='zathura -x '+0x22.chr+'texmaker '+0x22.chr++0x25.chr+'{input}'+0x22.chr+' -line '+0x25.chr+'{line}'+0x22.chr+' --synctex-forward '+0x22.chr+'"@"'+':0:'+'"#.tex"'+0x22.chr+' '+0x22.chr+'"%.pdf"'+0x22.chr;system(cmd)"

です.

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

*qpdfview との連携 [#t3c4682d]

LaTeX コマンド, PdfLaTeX コマンド, XeLaTeX コマンド, LuaLaTeX コマンドのオプションに -synctex=1 を追加します.

**forward search [#dca2869a]

forward search は PDFビューアに

 ruby -e "cmd='qpdfview --unique '+0x22.chr+'"%.pdf"'+0x23.chr+'src:'+'"#.tex"'+':'+'"@"'+':0'+0x22.chr;system(cmd)"

です.

**inverse search [#pac65f46]

[Edit]-[Settings...]-[Behaviour]
:Source editor:|texmaker "%1" -line %2

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