[[Texmaker]] > [[設定>Texmaker/設定]] > [[OS X>Mac]]

----
#contents
----

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

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

動作未確認です.~
PDFビューアは,組み込みビューアと外部ビューアを選択するようになっているので好きな方を選択してください.~
コマンドの LaTeX に設定されている latex を uplatex に変更してコマンドのオプションに -synctex=1 を追加します.~
コマンドの LuaLaTeX に設定されているコマンドのオプションに -synctex=1 を追加します.~
コマンドの Bib(la)tex に設定されている bibtex を biber --bblencoding=utf8 -u -U --output_safechars または upbibtex に変更します.~
コマンドの Dvipdfm に設定されている dvipdfm を dvipdfmx に変更します.~
BibTeX と dvipdfmx がうまく動作しない場合は以下を参照してください.~
-[[TeXmakerでbibTeXとdvipdfmxが動きません:http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=988]]
-[[TeXshopでbibTeXがうまく動かなくなりました:http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=991]]

----
&color(Black,#CCCCCC){%%% &color(#DD0000,#CCCCCC){●}; &color(#DDDDDD,#CCCCCC){●}; &color(#00DD00,#CCCCCC){●};                                       ''Texmaker の設定''                                            %%%};&br;

#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|
:|"/Library/TeX/texbin/uplatex" -synctex=1 -interaction=nonstopmode %.tex
:PdfLaTeX|
:|"/Library/TeX/texbin/pdflatex" -synctex=1 -interaction=nonstopmode %.tex

:|☐ 出力ファイルを "build" サブフォルダーに出力する

:XeLaTeX|
:|"/Library/TeX/texbin/xelatex" -synctex=1 -interaction=nonstopmode %.tex
:LuaLaTeX|
:|"/Library/TeX/texbin/lualatex" -synctex=1 -interaction=nonstopmode %.tex
:|"/Library/TeX/texbin/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)"
:Bib(la)tex|
:|"/Library/TeX/texbin/biber" --bblencoding=utf8 -u -U --output_safechars %
:|"/Library/TeX/texbin/upbibtex" %
:Makeindex|
:|"/Library/TeX/texbin/upmendex" %.idx
:dvips|
:|ruby -e "cmd='/Library/TeX/texbin/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|
:|"/Library/TeX/texbin/dvipdfmx" %.dvi
:ps2pdf|
:|"/Applications/Ghostscript.app/bin/ps2pdf" %.ps
:|"/usr/local/bin/ps2pdf" %.ps
:metapost|
:|"/Library/TeX/texbin/upmpost" -interaction=nonstopmode %
:Asymptote|
:|"/Library/TeX/texbin/asy" %.asy
:ghostscript|
:|"/usr/local/bin/gs"
:R Sweave|
:|R CMD Sweave %.Rnw
:Add to PATH|

:PDF ビューア|
:|&color(White,#0F7FFF){🔘}; 組み込みビューア
:|☑ 埋め込み
:|◯ 外部ビューア
:|"/Applications/Skim.app/Contents/SharedSupport/displayline" @ %.pdf #.tex
#img(,clear)
&br;
                                                                                &color(Black,#EEEEEE){[   OK   ]}; &color(Black,#EEEEEE){[ キャンセル ]};&br;
----

*Skim との連携 [#b05a1a86]

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

**forward search [#jbc32d2d]

forward search は PDFビューアに

 "/Applications/Skim.app/Contents/SharedSupport/displayline" @ %.pdf #.tex

です.

**inverse search [#q51f9015]

:コマンド:|/Applications/texmaker.app/Contents/MacOS/texmaker
:引数:|"%file" -line %line