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

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

#contents

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

[オプション(O)]-[Texmaker の設定]-[コマンド]

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 を upbibtex に変更します.~
コマンドの Dvipdfm に設定されている dvipdfm を dvipdfmx に変更します.~

----
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configtools.png,left,around,nolink,コマンド)
&color(Black,#F5F5F5){コマンド (% : 拡張子を除いたファイル名 - @ : 行番号)};&br;
&color(Black,#F5F5F5){LaTeX    };%%%uplatex -synctex=1 -interaction=nonstopmode %.tex%%%&br;
&color(Black,#F5F5F5){PdfLaTeX  };%%%pdflatex -synctex=1 -interaction=nonstopmode %.tex%%%&br;
&color(Black,#F5F5F5){☐ 出力ファイルを "build" サブフォルダーに出力する};&br;
  &color(Black,#DAEAFF){   ''コマンド''   };  &color(Black,#F5F5F5){XeLaTeX  };%%%xelatex -synctex=1 -interaction=nonstopmode %.tex%%%     &color(Black,#F5F5F5){LuaLaTeX  };%%%lualatex -synctex=1 -interaction=nonstopmode %.tex%%% または %%%luajitlatex -synctex=1 -interaction=nonstopmode %.tex%%%&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configquick.png,left,around,nolink,クイックビルド)
&color(Black,#F5F5F5){Latexmk   };%%%latexmk -gg -pdfdvi %.tex%%%&br;または %%%latexmk -e "$pdflatex=q/pdflatex -synctex=1 -interaction=nonstopmode/" -norc -gg -pdf %.tex%%%&br;または %%%latexmk -e "$pdflatex=q/lualatex -synctex=1 -interaction=nonstopmode/" -norc -gg -pdf %.tex%%%&br;または %%%latexmk -e "$pdflatex=q/luajitlatex -synctex=1 -interaction=nonstopmode/" -norc -gg -pdf %.tex%%%&br;
   ''クイックビルド''   または %%%latexmk -e "$pdflatex=q/xelatex -synctex=1 -interaction=nonstopmode/" -norc -gg -pdf %.tex%%%&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configeditor.png,left,around,nolink,エディタ)
&color(Black,#F5F5F5){[[Bib(la)tex>BibTeX関連ツール]]   };%%%upbibtex %%%% または %%%bibtex %%%% または %%%bibtexu %%%% または %%%biber --bblencoding=utf8 -u -U --output_safechars %%%%&br;
&color(Black,#F5F5F5){Makeindex  };%%%mendex %.idx%%% または %%%makeindex %.idx%%% または %%%texindy %.idx%%%&br;
&color(Black,#F5F5F5){[[dvips]]     };%%%dvips -Ppdf -o %.ps %.dvi%%%&br;
&color(Black,#F5F5F5){Dvipdfm   };%%%dvipdfmx %.dvi%%%&br;
     ''エディタ''     &color(Black,#F5F5F5){ps2pdf    };%%%ps2pdf %.ps%%%&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configkeys.png,left,around,nolink,ショートカット)
&color(Black,#F5F5F5){[[metapost>MetaPost]]  };%%%upmpost -interaction=nonstopmode %%%% または %%%mpost -interaction=nonstopmode %%%%&br;
&color(Black,#F5F5F5){[[Asymptote]] };%%%asy %.asy%%%&br;
&color(Black,#F5F5F5){[[ghostscript>Ghostscript]] };%%%gs%%%&br;
&color(Black,#F5F5F5){R Sweave  };%%%R CMD Sweave %.Rnw%%%&br;
   ''ショートカット''   &color(Black,#F5F5F5){Add to PATH    };&br;
----
                  &color(Black,#F5F5F5){''DVI ビューア''};&br;
%%%/usr/bin/env ruby -e "system('synctex view -i '+'@:0:#.tex'+' -o '+'%.dvi'+' -x '+0x22.chr+'evince -i '+0x25.chr+'{page+1} '+0x25.chr+'{output}'+0x22.chr)"%%%&br;
%%%/usr/bin/env ruby -e "system('synctex view -i '+'@:0:#.tex'+' -o '+'%.dvi'+' -x '+0x22.chr+'xdvi -nofork -unique -watchfile 1 +'+0x25.chr+'{page+1} '+0x25.chr+'{output}'+0x22.chr)"%%%&br;
%%%/usr/bin/env ruby -e "system('synctex view -i '+'@:0:#.tex'+' -o '+'%.dvi'+' -x '+0x22.chr+'pxdvi -nofork -unique -watchfile 1 +'+0x25.chr+'{page+1} '+0x25.chr+'{output}'+0x22.chr)"%%%&br;
%%%/usr/bin/env ruby -e "system('synctex view -i '+'@:0:#.tex'+' -o '+'%.dvi'+' -x '+0x22.chr+'xdvi -nofork -unique -watchfile 1 +'+0x25.chr+'{page+1} '+0x25.chr+'{output}'+0x22.chr)"%%%&br;
%%%/usr/bin/env ruby -e "system('synctex view -i '+'@:0:#.tex'+' -o '+'%.dvi'+' -x '+0x22.chr+'evince -i '+0x25.chr+'{page+1} '+0x25.chr+'{output}'+0x22.chr)"%%%&br;
                  &color(Black,#F5F5F5){''PS ビューア''};&br;
%%%/usr/bin/env ruby -e "system('synctex view -i '+'@:0:#.tex'+' -o '+'%.ps'+' -x '+0x22.chr+'evince -i '+0x25.chr+'{page+1} '+0x25.chr+'{output}'+0x22.chr)"%%%&br;
                  &color(Black,#F5F5F5){''PDF ビューア''};&br;
&color(Black,#F5F5F5){(●) 組み込みビューア};&br;
&color(Black,#F5F5F5){☑ 埋め込み};&br;
&color(Black,#F5F5F5){◯ 外部ビューア};&br;
%%%/usr/bin/env ruby -e "system('synctex view -i '+'@:0:#.tex'+' -o '+'%.pdf'+' -x '+0x22.chr+'evince -i '+0x25.chr+'{page+1} '+0x25.chr+'{output}'+0x22.chr)"%%%&br;
%%%fwdevince %.pdf @ #.tex%%%&br;
%%%okular --unique %.pdf%%%&br;
%%%texmaker2okular %.pdf @ !/#.tex%%%&br;
%%%zathura %.pdf%%%&br;
%%%texmaker2zathura %.pdf%%%&br;
%%%qpdfview --unique %.pdf%%%&br;
%%%texmaker2qpdfview %.pdf #.tex @%%%&br;
%%%texworks %.pdf%%%&br;
%%%mupdf %.pdf%%%&br;
%%%firefox -new-window %.pdf%%%&br;
%%%chromium --new-window %.pdf%%%&br;
%%%acroread %.pdf%%%&br;
%%%pdfopen -viewer ar9-tab %.pdf%%%&br;
%%%xdg-open %.pdf%%%&br;
#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

です.

*Okular との連携 [#e1d5124a]

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

----
-texmaker2okular
----
 #!/bin/sh
 okular --unique "file:$1#src:$2 $3"
----
 $ chmod +x texmaker2okular
 $ sudo cp -p texmaker2okular /usr/local/bin

**forward search [#rb0da469]

forward search は PDFビューアに

 texmaker2okular %.pdf @ !/#.tex

です.

**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 を追加します.

**inverse search [#s8c6284b]

----
-texmaker2zathura
----
 #!/bin/sh
 zathura -s -x "texmaker "%{input}" -line %{line}" "$1"
----
 $ chmod +x texmaker2zathura
 $ sudo cp -p texmaker2zathura /usr/local/bin

PDFビューアに

 texmaker2zathura %.pdf

を設定します.

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

*qpdfview との連携 [#t3c4682d]

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

**forward search [#dca2869a]

----
-texmaker2qpdfview
----
 #!/bin/sh
 qpdfview --unique "$1#src:$2:$3:0"
----
 $ chmod +x texmaker2qpdfview
 $ sudo cp -p texmaker2qpdfview /usr/local/bin

forward search は PDFビューアに

 texmaker2qpdfview %.pdf #.tex @

です.

**inverse search [#pac65f46]

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

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