[[TeXstudio]] > [[設定>TeXstudio/設定]] > [[macOS>Mac]] ---- #contents ---- **コマンド [#a32ff532] TeXstudio で日本語 upLaTeX または pLaTeX を使用するためには,以下のように設定します. // まだ pLaTeX しか利用できない環境が大学端末室などに大量に残っている // 現状に配慮し,pLaTeX 用設定の記述も残します.削除しないでください. -LaTeX のコマンドを latex から uplatex または platex に変更し,-src を -synctex=1 に変更します. -DviPdf のコマンドを dvipdf から dvipdfmx に変更します. -BibTeX のコマンドを bibtex から upbibtex または pbibtex に変更します. -Biber のコマンドを biber から biber --bblencoding=utf8 -u -U --output_safechars に変更します. //-Latexmk-upLaTeX-pdfdvi を使用する場合は コマンドの PdfLaTeX に設定されている "/Library/TeX/texbin/pdflatex" -synctex=1 -interaction=nonstopmode %.tex を "/Library/TeX/texbin/latexmk" -e "$latex=q/uplatex %%O -synctex=1 -interaction=nonstopmode %%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 -silent % に変更します.pdfLaTeX を実行したくなった場合は Latexmk の変数 $pdflatex が pdflatex コマンドに設定されていれば [ツール(T)] > [コマンド(C)] > [LaTeXmk] から Latexmk で pdfLaTeX を実行できます. 設定例を以下に示します. #ref(TeXstudio-osx-setting01.png,nolink) 詳細な設定をする場合は高度なオプションの表示を ON にします. ---- :LaTeX| :|"/Library/TeX/texbin/uplatex" -synctex=1 -interaction=nonstopmode %.tex :|"/Library/TeX/texbin/platex" -synctex=1 -interaction=nonstopmode %.tex :PdfLaTeX| //:|"/Library/TeX/texbin/latexmk" -e "$latex=q/uplatex %%O -synctex=1 -interaction=nonstopmode %%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 -silent % :|"/Library/TeX/texbin/pdflatex" -synctex=1 -interaction=nonstopmode %.tex :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 :外部PDFビューア| :|"/Applications/Skim.app/Contents/SharedSupport/displayline" @ "?am.pdf" "?c:am.tex" :DviPs| :|ruby -e "cmd='/Library/TeX/texbin/dvips -Ppdf -z -f '+0x22.chr+'?am.dvi'+0x22.chr+' '+0x7c.chr+' '+'convbkmk -u'+' '+0x3e.chr+' '+0x22.chr+'?am.ps'+0x22.chr;system(cmd)" :DviPng| :|"/Library/TeX/texbin/dvipng" -T tight -D 120 %.dvi :Ps2Pdf| :|"/usr/local/bin/ps2pdf" %.ps :DviPdf| :|"/Library/TeX/texbin/dvipdfmx" %.dvi :BibTeX| :|"/Library/TeX/texbin/upbibtex" % :BibTex 8ビット| :|"/Library/TeX/texbin/bibtex8" % :Biber| :|"/Library/TeX/texbin/biber" --bblencoding=utf8 -u -U --output_safechars % :Makeindex| :|"/Library/TeX/texbin/upmendex" %.idx :|"/Library/TeX/texbin/mendex" -U %.idx :Texindy| //:|"/Library/TeX/texbin/ptexindy" %.idx ← TeX Live に入っていないようなのだが… :|"/Library/TeX/texbin/texindy" %.idx :Makeglossary| :|makeglossaries :Metapost| :|"/Library/TeX/texbin/upmpost" -interaction=nonstopmode % :|"/Library/TeX/texbin/pmpost" -interaction=nonstopmode % :Asymptote| :|"/Library/TeX/texbin/asy" %.asy :Ghostscript| :|"/usr/local/bin/gs" :Latexmk| :|"/Library/TeX/texbin/latexmk" -e "$latex=q/uplatex %%O -synctex=1 -interaction=nonstopmode %%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 -silent % //:|latexmk -pdf -silent -latexoption="-synctex=1" % :SVN| :|svn :SVNADMIN| :|svnadmin ---- *Skim との連携 [#p9518b78] **forward search [#d42e3a79] forward search は 外部PDFビューア に以下のように設定します. "/Applications/Skim.app/Contents/SharedSupport/displayline" @ "?am.pdf" "?c:am.tex" **inverse search [#ea54683f] :コマンド:|/Applications/texstudio.app/Contents/MacOS/texstudio :引数:|"%file" -line %line //*関連リンク [#r167bf94] // //-http://tex.stackexchange.com/questions/38627/commands-paths-in-texstudio-on-mac-os-x-with-could-not-start-the-command-err