[[TeXstudio]] > [[設定>TeXstudio/設定]] > Windows

**コマンド [#zdc6ab74]
----
&color(Black,#3F43EF){%%%  &color(White){''TeXstudioの設定''};            %%%};&br;
#contents
----

#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_general.png,left,around,nolink,37x37,一般)
一般&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_commands.png,left,around,nolink,37x37,コマンド)
&color(Black,#DAEAFF){コマンド            };&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_quickbuild.png,left,around,nolink,37x37,ビルド)
ビルド&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_shortcut.png,left,around,nolink,37x37,キーボードショートカット)
キーボードショートカット&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_latexmenus.png,left,around,nolink,37x37,メニュー)
メニュー&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_toolbars.png,left,around,nolink,37x37,ツールバー)
ツールバー&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_editor.png,left,around,nolink,37x37,エディタ)
エディタ&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_advancededitor.png,left,around,nolink,37x37,詳細なエディタ設定)
詳細なエディタ設定&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_highlighting.png,left,around,nolink,37x37,構文の強調表示)
構文の強調表示&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_highlighting.png,left,around,nolink,37x37,カスタム強調表示)
カスタム強調表示&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_completion.png,left,around,nolink,37x37,コマンドの補完)
コマンドの補完&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_editor.png,left,around,nolink,37x37,文法)
文法&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_preview.png,left,around,nolink,37x37,プレビュー)
プレビュー&br;
#ref(http://svn.code.sf.net/p/texstudio/code/trunk/images/config_svn.png,left,around,nolink,37x37,SVN)
SVN&br;
&br;
&br;
&br;
&br;
&br;
 ☑ 高度なオプションの表示
&br;
**コマンド [#zdc6ab74]
-コマンドの LaTeX に設定されている latex.exe を uplatex.exe に変更して -src を -synctex=1 に変更します.
-コマンドの DviPdf に設定されている dvipdfm.exe を dvipdfmx.exe に変更します.
-コマンドの BibTeX に設定されている bibtex.exe を bibtexu.exe に変更します.
-コマンドの Biber に設定されている biber を biber --bblencoding=utf8 -u -U --output_safechars に変更します.
-詳細な設定をする場合は高度なオプションの表示を ON にします.
----
&color(Black,#3F43EF){%%%                                                                        &color(Black,#2F33DF){%%%[ &color(White){''?''}; ]%%%};&color(Black,#CC3333){%%%[  &color(White){''✕''};  ]%%%}; %%%};&br;

:LaTeX|platex.exe -guess-input-enc -synctex=1 -interaction=nonstopmode -jobname=% %.tex&br;platex.exe -no-guess-input-enc -kanji=utf8 -synctex=1 -interaction=nonstopmode -jobname=% %.tex&br;uplatex.exe -no-guess-input-enc -kanji=utf8 -synctex=1 -interaction=nonstopmode %.tex&br;latex.exe -synctex=1 -interaction=nonstopmode %.tex
:PdfLaTeX|pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex
:XeLaTeX|xelatex.exe -synctex=1 -interaction=nonstopmode %.tex
:LuaLaTeX|lualatex.exe -synctex=1 -interaction=nonstopmode %.tex&br;luajitlatex.exe -synctex=1 -interaction=nonstopmode %.tex
:DVIビューア|dde:///"C:\w32tex\dviout\dviout.exe":dviout/dviout/[WinNormal][FileOpen("?am.dvi")]
:PSビューア|"C:\Program Files\SumatraPDF\SumatraPDF.exe" -reuse-instance "?am.ps"&br;"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -reuse-instance "?am.ps"&br;dde:///"C:\Program Files\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[Open("?am.ps",0,1,1)]&br;dde:///"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[Open("?am.ps",0,1,1)]&br;dde:///"C:\Program Files\Ghostgum\gsview\gsview32.exe":GSview/GSview/[Command("?am.ps")][ShowWindow(1)]&br;dde:///"C:\Program Files (x86)\Ghostgum\gsview\gsview32.exe":GSview/GSview/[Command("?am.ps")][ShowWindow(1)]
:外部PDFビューア|"C:\w32tex\share\texworks\TeXworks.exe" "?am.pdf"&br;"C:\Program Files\SumatraPDF\SumatraPDF.exe" -reuse-instance "?am.pdf" -forward-search "?c:am.tex" @&br;"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -reuse-instance "?am.pdf" -forward-search "?c:am.tex" @&br;dde:///"C:\Program Files\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,1)]&br;dde:///"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,1)]&br;"C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe" "?am.pdf"&br;"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" "?am.pdf"
:DviPs|dvips.exe -Ppdf -o %.ps %.dvi
:DviPng|dvipng.exe -T tight -D 120 %.dvi
:Ps2Pdf|ps2pdf.bat %.ps
:DviPdf|dvipdfmx.exe %.dvi
:BibTeX|pbibtex.exe %&br;pbibtex.exe -kanji=utf8 %&br;upbibtex.exe %&br;bibtexu.exe %&br;bibtex.exe %
:BibTex 8ビット|bibtex8.exe %
:Biber|biber.exe %
:Makeindex|mendex.exe %.idx&br;mendex.exe -U %.idx&br;makeindex.exe %.idx
:Texindy|texindy.exe
:Makeglossary|makeglossaries.exe
:Metapost|pmpost.exe -interaction=nonstopmode ?me)&br;pmpost.exe -kanji=utf8 -interaction=nonstopmode ?me)&br;upmpost.exe -interaction=nonstopmode ?me)&br;mpost.exe -interaction=nonstopmode ?me)
:Asymptote|asy.exe %m*.asy
:Ghostscript|"C:\gs\gs9.07\bin\gswin32c.exe"
:Latexmk|latexmk -pdf -silent -pdflatex="pdflatex -synctex=1 %%O %%S" %
:SVN|svn.exe
:SVNADMIN|svnadmin.exe
:LaTeX|
:|uplatex.exe -no-guess-input-enc -kanji=utf8 -synctex=1 -interaction=nonstopmode %.tex
:PdfLaTeX|
//:|latexmk.exe -e "$latex=q/uplatex %%O -kanji=utf8 -no-guess-input-enc -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.exe -synctex=1 -interaction=nonstopmode %.tex
:XeLaTeX|
:|xelatex.exe -synctex=1 -interaction=nonstopmode %.tex
:LuaLaTeX|
:|lualatex.exe -synctex=1 -interaction=nonstopmode %.tex
:外部PDFビューア|
:|"C:\Users\<ユーザー名>\AppData\Local\SumatraPDF" -reuse-instance -inverse-search """"C:\Program Files\texstudio\texstudio.exe""" """&#x25;&#x25;f""" -line &#x25;&#x25;l" "?am.pdf" -forward-search "?c:am.tex" @
:|"C:\Program Files\SumatraPDF\SumatraPDF.exe" -reuse-instance -inverse-search """"C:\Program Files\texstudio\texstudio.exe""" """&#x25;&#x25;f""" -line &#x25;&#x25;l" "?am.pdf" -forward-search "?c:am.tex" @
:|dde:///"C:\Program Files\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,1)]
:|dde:///"C:\Program Files\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,0)]
:|synctex view -i "@:0:?c:am.tex" -o "?am.pdf" -x "texworks --position=&#x25;&#x25;{page+1} '&#x25;&#x25;{output}'"
:DviPs|
:|ruby.exe -e "cmd='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|
:|dvipng.exe -T tight -D 120 %.dvi
:Ps2Pdf|
:|ps2pdf.exe %.ps
:DviPdf|
:|dvipdfmx.exe %.dvi
:BibTeX|
:|bibtexu.exe %
// TeX Live 2019 の upbibtex では修正されています。
// ↓
// 2019-02-05 以前に書かれていた "upbibtex.exe %" では,日本語を含むbibファイルで
// 文字化けまたはフリーズなどすることがあります.
// 参考: https://texwiki.texjp.org/?upTeX%2CupLaTeX#p35560b1
:BibTex 8ビット|
:|bibtex8.exe %
:Biber|
:|biber.exe --bblencoding=utf8 -u -U --output_safechars %
:Makeindex|
:|upmendex.exe %.idx
:Texindy|
//:|ptexindy.exe %.idx
:|texindy.exe %.idx
:Makeglossary|
:|makeglossaries.exe
:Metapost|
:|upmpost.exe -interaction=nonstopmode ?me)
:Asymptote|
:|asy.exe %m*.asy
:Ghostscript|
:|rungs.exe
:Latexmk|
:|latexmk.exe -e "$latex=q/uplatex &#x25;&#x25;O -kanji=utf8 -no-guess-input-enc -synctex=1 -interaction=nonstopmode &#x25;&#x25;S/" -e "$bibtex=q/bibtexu &#x25;&#x25;O &#x25;&#x25;B/" -e "$biber=q/biber &#x25;&#x25;O --bblencoding=utf8 -u -U --output_safechars &#x25;&#x25;B/" -e "$makeindex=q/upmendex &#x25;&#x25;O -o &#x25;&#x25;D &#x25;&#x25;S/" -e "$dvipdf=q/dvipdfmx &#x25;&#x25;O -o &#x25;&#x25;D &#x25;&#x25;S/" -norc -gg -pdfdvi -silent %
//:|latexmk -pdf -silent -latexoption="-synctex=1" %
:SVN|
:|svn.exe
:SVNADMIN|
:|svnadmin.exe
:GIT|
:|git.exe
:外部ターミナル|
:|C:\Windows\System32\cmd.exe
----

*[[SumatraPDF]] との連携 [#h75a4e4d]

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

**forward and inverse search [#m8df4b15]

***SumatraPDF を前面に表示したい場合 [#ofb25574]

forward and inverse search は 外部PDFビューア に以下のように設定します.~

SumatraPDF をデフォルトでインストールした場合は

 "C:\Users\<ユーザー名>\AppData\Local\SumatraPDF" -reuse-instance -inverse-search """"C:\Program Files\texstudio\texstudio.exe""" """%%f""" -line %%l" "?am.pdf" -forward-search "?c:am.tex" @

SumatraPDF を全てのユーザーに対してインストールした場合は

 "C:\Program Files\SumatraPDF\SumatraPDF.exe" -reuse-instance -inverse-search """"C:\Program Files\texstudio\texstudio.exe""" """%%f""" -line %%l" "?am.pdf" -forward-search "?c:am.tex" @

**forward search [#xd4d4cea]

***SumatraPDF を前面に表示したい場合 [#fb37c098]

forward search は 外部PDFビューア に
forward search は 外部PDFビューア に以下のように設定します.~

■ 32bit Windows の場合

 "C:\Program Files\SumatraPDF\SumatraPDF.exe" -reuse-instance "?am.pdf" -forward-search "?c:am.tex" @
または
 dde:///"C:\Program Files\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,1)]

■ 64bit Windows の場合
***SumatraPDF を前面に表示したくない場合 [#pa03cf5d]

 "C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -reuse-instance "?am.pdf" -forward-search "?c:am.tex" @
または
 dde:///"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,1)]
forward search は 外部PDFビューア に以下のように設定します.~

です.
 dde:///"C:\Program Files\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,0)]

***SumatraPDF を前面に表示したくない場合 [#pa03cf5d]
**inverse search [#bbb88480]
inverse search は SumatraPDF の [☰]-[設定(S)]-[オプション(O)...] の逆順検索コマンドラインの設定に以下のように設定します.~

forward search は 外部PDFビューア に
 "C:\Program Files\texstudio\texstudio.exe" "%f" -line %l

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

 dde:///"C:\Program Files\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,0)]
*[[TeXworks]] との連携 [#nbf2fe80]

■ 64bit Windows の場合
**forward search [#rd52a42f]

 dde:///"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,0)]
forward search は 外部PDFビューア に以下のように設定します.~

です.
 synctex view -i "@:0:?c:am.tex" -o "?am.pdf" -x "texworks --position=%%{page+1} '%%{output}'"

**inverse search [#bbb88480]
inverse search は SumatraPDF の [設定(S)]-[オプション(O)...]-[逆順検索コマンドラインの設定] に
*Adobe Acrobat Reader との連携 [#b8db9f79]

 C:\TeXstudio\texstudio.exe "%f" -line %l
**forward search [#qc0a4b5f]

です.
***pdfupLaTeXA [#v47e9095]

ダブルクリックで対応する TeX 文書の該当箇所にジャンプします.
pdfuplatexA-nonstopmode.bat を作成します.

----
-pdfuplatexA-nonstopmode.bat
----
 @echo off
 tasklist /fi "IMAGENAME eq Acrobat.exe" /nh | ^
 findstr "Acrobat.exe" > nul && ^
 pdfopen --file "%~n1.pdf" && ^
 pdfclose --file "%~n1.pdf" & ^
 ptex2pdf -u -l -ot "-kanji=utf8 -no-guess-input-enc -synctex=1 -interaction=nonstopmode" %1 && ^
 synctex view -i "%~n3:0:%~n2.tex" -o "%~n1.pdf" -x "pdfopen --file '%%{output}' --page %%{page+1}"
----

ユーザーコマンドに
 pdfuplatexA-nonstopmode.bat % "?c:am.tex" @
を入力します.

***LuaLaTeXA [#q18a41f2]

lualatexA-nonstopmode.bat を作成します.

----
-lualatexA-nonstopmode.bat
----
 @echo off
 tasklist /fi "IMAGENAME eq Acrobat.exe" /nh | ^
 findstr "Acrobat.exe" > nul && ^
 pdfopen --file "%~n1.pdf" && ^
 pdfclose --file "%~n1.pdf" & ^
 lualatex -synctex=1 -interaction=nonstopmode %1 && ^
 synctex view -i "%~n3:0:%~n2.tex" -o "%~n1.pdf" -x "pdfopen --file '%%{output}' --page %%{page+1}"
----

ユーザーコマンドに
 lualatexA-nonstopmode.bat % "?c:am.tex" @
を入力します.