- 追加された行はこの色です。
- 削除された行はこの色です。
[[Texmaker]] > [[設定>Texmaker/設定]] > [[Windows>インストール(Windows)]]
[[Texmaker]] > [[設定>Texmaker/設定]] > [[Windows>Microsoft Windows]]
&color(White,#5F2F2F){ ''◆目次◆'' };&br;
----
#contents
----
*設定 [#ha179b3b]
**コマンド [#cab65285]
[オプション(O)]-[Texmaker の設定]-[コマンド]
%%%O%%%ptions > Configure Texmaker > Commands
W32TeX と TeX Live の場合の設定を書きます.~
PDFビューアは,組み込みビューアと外部ビューアを選択するようになっているので好きな方を選択してください.~
PDFビューアに Adobe Reader ではなく,組み込みビューア,TeXworks,SumatraPDF を使用する場合は,LaTeX コマンド, PdfLaTeX コマンドのオプションに -synctex=1 を追加します.~
PDFビューアに TeXworks を使用する場合は [[TeXworks#組み込みの PDF ビューアに日本語を表示させる>TeXworks#t5313ebc]] を参照してフォントの埋め込みの設定を行います.~
[[LuaTeX]] を使用したい場合は,コマンドの PdfLaTeX の pdflatex を lualatex に変更して使用してください.~
[[XeTeX]] を使用したい場合は,コマンドの PdfLaTeX の pdflatex を xelatex に変更して使用してください.~
コマンドの LaTeX に設定されている latex を uplatex に変更してコマンドのオプションに -synctex=1 を追加します.
***[[W32TeX]] (自動判別の場合) [#cd578b1e]
コマンドの LuaLaTeX に設定されているコマンドのオプションに -synctex=1 を追加します.
W32TeX はデフォルトでは [[ptexenc>TeX Live#r2b98f9b]] を用いて自動判別します.
コマンドの Bib(la)tex に設定されている bibtex を biber --bblencoding=utf8 -u -U --output_safechars または bibtexu に変更します.
コマンドの Dvipdfm に設定されている dvipdfm を dvipdfmx に変更します.
----
&color(Black,#9BC527){%%% &color(White){''Texmaker の設定''}; &color(Black,#8BB517){%%%[ &color(White){''?''}; ]%%%};&color(Black,#CC3333){%%%[ &color(White){''✕''}; ]%%%}; %%%};&br;
:コマンド (% : 拡張子を除いたファイル名 - @ : 行番号)|
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configtools.png,left,around,nolink,コマンド)
&color(Black,#F5F5F5){コマンド (% : 拡張子を除いたファイル名 - @ : 行番号)};&br;
&color(Black,#F5F5F5){LaTeX };%%%platex -guess-input-enc -synctex=1 -interaction=nonstopmode -jobname=% %.tex%%%&br;
&color(Black,#F5F5F5){PdfLaTeX };%%%pdflatex -synctex=1 -interaction=nonstopmode %.tex%%% または %%%lualatex -synctex=1 -interaction=nonstopmode %.tex%%% または %%%xelatex -synctex=1 -interaction=nonstopmode %.tex%%%&br;
&color(Black,#F5F5F5){☐ 出力ファイルを "build" サブフォルダーに出力する};&br;
&color(Black,#DAEAFF){ ''コマンド'' }; &color(Black,#F5F5F5){Latexmk };%%%latexmk -gg -pdfdvi %.tex%%% または %%%latexmk -gg -pdfps %.tex%%% または %%%latexmk -e """$pdflatex=q/pdflatex"" ""-synctex=1"" ""-interaction=nonstopmode/""" -norc -gg -pdf %.tex%%% または %%%latexmk -e """$pdflatex=q/lualatex"" ""-synctex=1"" ""-interaction=nonstopmode/""" -norc -gg -pdf %.tex%%% または %%%latexmk -e """$pdflatex=q/xelatex"" ""-synctex=1"" ""-interaction=nonstopmode/""" -norc -gg -xelatex %.tex%%%&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configquick.png,left,around,nolink,クイックビルド)
&color(Black,#F5F5F5){[[Bib(la)tex>BibTeX関連ツール]] };%%%pbibtex %%%% または %%%biber %%%%&br;
&color(Black,#F5F5F5){Makeindex };%%%mendex %.idx%%%&br;
&color(Black,#F5F5F5){[[dvips]] };%%%dvips -Ppdf -o %.ps %.dvi%%%&br;
&color(Black,#F5F5F5){Dvipdfm };%%%dvipdfmx -f dlbase14.map %.dvi%%%&br;
''クイックビルド'' &color(Black,#F5F5F5){ps2pdf };%%%ps2pdf.bat %.ps%%%&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configeditor.png,left,around,nolink,エディタ)
&color(Black,#F5F5F5){[[metapost>MetaPost]] };%%%pmpost -interaction=nonstopmode %%%%&br;
&color(Black,#F5F5F5){[[Asymptote]] };%%%asy %.asy%%%&br;
&color(Black,#F5F5F5){[[ghostscript>Ghostscript]] };%%%gswin32c.exe%%%&br;
&color(Black,#F5F5F5){R Sweave };%%%R CMD Sweave %.Rnw%%%&br;
''エディタ''&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configkeys.png,left,around,nolink,ショートカット)
&br;
&br;
&br;
&br;
''ショートカット''&br;
----
&color(Black,#F5F5F5){''DVI ビューア''};&br;
%%%"C:/w32tex/dviout/dviout.exe" -1 %.dvi%%%&br;
&color(Black,#F5F5F5){''PS ビューア''};&br;
%%%"C:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance %.ps%%% または %%%"C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" -reuse-instance %.ps%%% または %%%"C:/Program Files/Ghostgum/gsview/gsview32.exe" -e %.ps%%% または %%%"C:/Program Files (x86)/Ghostgum/gsview/gsview32.exe" -e %.ps%%%&br;
&color(Black,#F5F5F5){''PDF ビューア''};&br;
&color(Black,#F5F5F5){&color(#3333CC){◎}; 組み込みビューア};&br;
&color(Black,#F5F5F5){☑ 埋め込み};&br;
&color(Black,#F5F5F5){◯ 外部ビューア};&br;
%%%"C:/w32tex/share/texworks/TeXworks.exe" %.pdf%%% または %%%"C:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance %.pdf -forward-search #.tex @%%% または %%%"C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" -reuse-instance %.pdf -forward-search #.tex @%%% または %%%"C:/Program Files/Adobe/Reader 11.0/Reader/AcroRd32.exe" %.pdf%%% または %%%"C:/Program Files (x86)/Adobe/Reader 11.0/Reader/AcroRd32.exe" %.pdf%%%&br;
#img(,clear)
&br;
&color(Black,#EEEEEE){[ OK ]}; &color(Black,#EEEEEE){[ キャンセル ]};&br;
----
:LaTeX|
:|uplatex -no-guess-input-enc -kanji=utf8 -synctex=1 -interaction=nonstopmode %.tex
:PdfLaTeX|
:|pdflatex -synctex=1 -interaction=nonstopmode %.tex
***[[W32TeX]] (UTF-8 の場合) [#q9c95374]
:|☐ Use a "build" subdirectory for output files
Texmaker のデフォルトの文字コードは UTF-8 です.~
OS X, Linux など Windows 以外の OS でファイルを編集したり [[TeXworks]] とファイルを共有したりする場合は UTF-8 がおすすめです.~
: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'+' -kanji=utf8 -no-guess-input-enc -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 %
:|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.exe %.ps
:metapost|
:|upmpost -interaction=nonstopmode %
:Asymptote|
:|asy %.asy
:ghostscript|
:|rungs.exe
:R Sweave|
:|R CMD Sweave %.Rnw
:Add to PATH|
----
&color(Black,#9BC527){%%% &color(White){''Texmaker の設定''}; &color(Black,#8BB517){%%%[ &color(White){''?''}; ]%%%};&color(Black,#CC3333){%%%[ &color(White){''✕''}; ]%%%}; %%%};&br;
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configtools.png,left,around,nolink,コマンド)
&color(Black,#F5F5F5){コマンド (% : 拡張子を除いたファイル名 - @ : 行番号)};&br;
&color(Black,#F5F5F5){LaTeX };%%%platex -no-guess-input-enc -kanji=utf8 -synctex=1 -interaction=nonstopmode -jobname=% %.tex%%% または %%%uplatex -no-guess-input-enc -kanji=utf8 -synctex=1 -interaction=nonstopmode %.tex%%%&br;
&color(Black,#F5F5F5){PdfLaTeX };%%%pdflatex -synctex=1 -interaction=nonstopmode %.tex%%% または %%%lualatex -synctex=1 -interaction=nonstopmode %.tex%%% または %%%xelatex -synctex=1 -interaction=nonstopmode %.tex%%%&br;
&color(Black,#F5F5F5){☐ 出力ファイルを "build" サブフォルダーに出力する};&br;
&color(Black,#DAEAFF){ ''コマンド'' }; &color(Black,#F5F5F5){Latexmk };%%%latexmk -gg -pdfdvi %.tex%%% または %%%latexmk -gg -pdfps %.tex%%% または %%%latexmk -e """$pdflatex=q/pdflatex"" ""-synctex=1"" ""-interaction=nonstopmode/""" -norc -gg -pdf %.tex%%% または %%%latexmk -e """$pdflatex=q/lualatex"" ""-synctex=1"" ""-interaction=nonstopmode/""" -norc -gg -pdf %.tex%%% または %%%latexmk -e """$pdflatex=q/xelatex"" ""-synctex=1"" ""-interaction=nonstopmode/""" -norc -gg -xelatex %.tex%%%&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configquick.png,left,around,nolink,クイックビルド)
&color(Black,#F5F5F5){[[Bib(la)tex>BibTeX関連ツール]] };%%%pbibtex -kanji=utf8 %%%% または %%%upbibtex %%%% または %%%biber %%%%&br;
&color(Black,#F5F5F5){Makeindex };%%%mendex -U %.idx%%%&br;
&color(Black,#F5F5F5){[[dvips]] };%%%dvips -Ppdf -o %.ps %.dvi%%%&br;
&color(Black,#F5F5F5){Dvipdfm };%%%dvipdfmx -f dlbase14.map %.dvi%%%&br;
''クイックビルド'' &color(Black,#F5F5F5){ps2pdf };%%%ps2pdf.bat %.ps%%%&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configeditor.png,left,around,nolink,エディタ)
&color(Black,#F5F5F5){[[metapost>MetaPost]] };%%%pmpost -kanji=utf8 -interaction=nonstopmode %%%% または %%%upmpost -kanji=utf8 -interaction=nonstopmode %%%%&br;
&color(Black,#F5F5F5){[[Asymptote]] };%%%asy %.asy%%%&br;
&color(Black,#F5F5F5){[[ghostscript>Ghostscript]] };%%%gswin32c.exe%%%&br;
&color(Black,#F5F5F5){R Sweave };%%%R CMD Sweave %.Rnw%%%&br;
''エディタ''&br;
#img(,clear)
#ref(https://bitbucket.org/srazi/biditexmaker3/raw/tip/images/configkeys.png,left,around,nolink,ショートカット)
&br;
&br;
&br;
&br;
''ショートカット''&br;
:PDF Viewer|
:|🔘 Built-in Viewer
:|☑ Embed
:|◯ External Viewer
:|powershell -Command "& {$line=[char]0x22+@+[char]0x22;$tex=[char]0x22+'#.tex'+[char]0x22;$pdf=[char]0x22+'%.pdf'+[char]0x22;$texmaker='C:\Program Files\Texmaker\texmaker.exe';$f=[char]0x25+'f';$l=[char]0x25+'l';$inverse_search=[char]0x22+[char]0x5c+[char]0x22+$texmaker+[char]0x5c+[char]0x22+' '+[char]0x5c+[char]0x22+$f+[char]0x5c+[char]0x22+' -line '+$l+[char]0x22;$sumatrapdf=[char]0x22+'C:\Program Files\SumatraPDF\SumatraPDF.exe'+[char]0x22;Start-Process $sumatrapdf -ArgumentList ('-reuse-instance','-inverse-search',$inverse_search,$pdf,'-forward-search',$tex,$line)}"
:|"C:\Program Files\SumatraPDF\SumatraPDF.exe" -reuse-instance %.pdf -forward-search #.tex @
:|powershell -Command "& {$param=[char]0x22+'@:0:#.tex'+[char]0x22; $pdf=[char]0x22+'%.pdf'+[char]0x22; $page=[char]0x25+'{page+1}'; $o=[char]0x27+[char]0x25+'{output}'+[char]0x27; synctex view -i $param -o $pdf -x """texworks --position=$page $o"""}"
//:|texworks %.pdf
//:|cmd /c start firefox -new-window %.pdf
//:|cmd /c start chrome --new-window !/%.pdf
//:|pdfopen --file %.pdf
----
&color(Black,#F5F5F5){''DVI ビューア''};&br;
%%%"C:/w32tex/dviout/dviout.exe" -1 %.dvi%%%&br;
&color(Black,#F5F5F5){''PS ビューア''};&br;
%%%"C:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance %.ps%%% または %%%"C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" -reuse-instance %.ps%%% または %%%"C:/Program Files/Ghostgum/gsview/gsview32.exe" -e %.ps%%% または %%%"C:/Program Files (x86)/Ghostgum/gsview/gsview32.exe" -e %.ps%%%&br;
&color(Black,#F5F5F5){''PDF ビューア''};&br;
&color(Black,#F5F5F5){&color(#3333CC){◎}; 組み込みビューア};&br;
&color(Black,#F5F5F5){☑ 埋め込み};&br;
&color(Black,#F5F5F5){◯ 外部ビューア};&br;
%%%"C:/w32tex/share/texworks/TeXworks.exe" %.pdf%%% または %%%"C:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance %.pdf -forward-search #.tex @%%% または %%%"C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" -reuse-instance %.pdf -forward-search #.tex @%%% または %%%"C:/Program Files/Adobe/Reader 11.0/Reader/AcroRd32.exe" %.pdf%%% または %%%"C:/Program Files (x86)/Adobe/Reader 11.0/Reader/AcroRd32.exe" %.pdf%%%&br;
#img(,clear)
&br;
&color(Black,#EEEEEE){[ OK ]}; &color(Black,#EEEEEE){[ キャンセル ]};&br;
----
***[[TeX Live]] [#p3874cc2]
*[[SumatraPDF]] との連携 [#f10825ae]
-[[TeX Live 2012 と日本語:http://torip.whitesnow.jp/?p=1020]]
-[[TeX Live 2012 on Windows (改訂版):http://blogs.yahoo.co.jp/igproj_fusion/15803621.html]]
LaTeX コマンド, PdfLaTeX コマンド, XeLaTeX コマンド, LuaLaTeX コマンドのオプションに -synctex=1 を追加します.
を参照.
**forward and inverse search [#xf457e6c]
//[[TeX Live 2012 on Windows:http://blogs.yahoo.co.jp/igproj_fusion/15776344.html]] を参照.
***SumatraPDF を前面に表示したい場合 [#r4dc6964]
*[[SumatraPDF]] との連携 [#f10825ae]
forward and inverse search は PDFビューアの外部ビューアに以下のように設定します.~
LaTeX コマンド, PdfLaTeX コマンドのオプションに -synctex=1 を追加します.
powershell -Command "& {$line=[char]0x22+@+[char]0x22;$tex=[char]0x22+'#.tex'+[char]0x22;$pdf=[char]0x22+'%.pdf'+[char]0x22;$texmaker='C:\Program Files\Texmaker\texmaker.exe';$f=[char]0x25+'f';$l=[char]0x25+'l';$inverse_search=[char]0x22+[char]0x5c+[char]0x22+$texmaker+[char]0x5c+[char]0x22+' '+[char]0x5c+[char]0x22+$f+[char]0x5c+[char]0x22+' -line '+$l+[char]0x22;$sumatrapdf=[char]0x22+'C:\Program Files\SumatraPDF\SumatraPDF.exe'+[char]0x22;Start-Process $sumatrapdf -ArgumentList ('-reuse-instance','-inverse-search',$inverse_search,$pdf,'-forward-search',$tex,$line)}"
**forward search [#y08c577b]
***SumatraPDF を前面に表示したい場合 [#id9fc839]
forward search は PDFビューアに
forward search は PDFビューアの外部ビューアに以下のように設定します.~
■ 32bit Windows の場合
"C:\Program Files\SumatraPDF\SumatraPDF.exe" -reuse-instance %.pdf -forward-search #.tex @
"C:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance %.pdf -forward-search #.tex @
■ 64bit Windows の場合
"C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" -reuse-instance %.pdf -forward-search #.tex @
です.
***SumatraPDF を前面に表示したくない場合 [#j0fbd66f]
[[SumatraPDF#fwdsumatrapdf.exe>SumatraPDF#n8da77e2]] の fwdsumatrapdf.exe を使用します.~
[[SumatraPDF/fwdsumatrapdf]] の fwdsumatrapdf.exe を使用します.~
forward search は PDFビューアに
forward search は PDFビューアの外部ビューアに以下のように設定します.~
"C:/w32tex/NDde/Binary/fwdsumatrapdf.exe" %.pdf #.tex @
fwdsumatrapdf.exe %.pdf #.tex @
です.
**inverse search [#p850b553]
inverse search は SumatraPDF の [設定(S)]-[オプション(O)...]-[逆順検索コマンドラインの設定] に
inverse search は SumatraPDF の [☰]-[設定(S)]-[オプション(O)...] の逆順検索コマンドラインの設定に以下のように設定します.~
C:\texmakerwin32usb\texmaker.exe "%f" -line %l
"C:\Program Files\Texmaker\texmaker.exe" "%f" -line %l
です.
ダブルクリックで対応する TeX 文書の該当箇所にジャンプします.
*[[Adobe Reader]] との連携 [#u27e1718]
*[[TeXworks]] との連携 [#o9f4b99c]
**pdfpLaTeXA [#c1deb4e2]
**forward search [#a41fe59c]
pdfplatex1A-nonstopmode.bat を作成します.
forward search は PDFビューアの外部ビューアに以下のように設定します.~
----
-C:\w32tex\bin\pdfplatex1A-nonstopmode.bat
----
@echo off
tasklist /fi "IMAGENAME eq AcroRd32.exe" /nh | ^
findstr "AcroRd32.exe" > nul && ^
pdfopen --rxi --file "%~n1.pdf" && ^
pdfclose --rxi --file "%~n1.pdf" & ^
platex -kanji=utf8 -guess-input-enc -interaction=nonstopmode -jobname="%~n1" %1 && ^
dvipdfmx "%~n1" && ^
echo "%~n1.pdf" | ^
cmd
----
powershell -Command "& {$param=[char]0x22+'@:0:#.tex'+[char]0x22; $pdf=[char]0x22+'%.pdf'+[char]0x22; $page=[char]0x25+'{page+1}'; $o=[char]0x27+[char]0x25+'{output}'+[char]0x27; synctex view -i $param -o $pdf -x """texworks --position=$page $o"""}"
クイックビルドのコマンドのユーザー定義または [ユーザー(U)]-[ユーザー定義コマンド(C)]-[ユーザー定義コマンドの編集(C)] で
pdfplatex1A-nonstopmode.bat %
を入力します.
*Adobe Acrobat Reader との連携 [#u27e1718]
**pdfpLaTeX2A [#x150a7a4]
**forward search [#l5bfe340]
pdfplatex2A-nonstopmode.bat を作成します.
***pdfupLaTeXA [#v915ab85]
----
-C:\w32tex\bin\pdfplatex2A-nonstopmode.bat
----
@echo off
tasklist /fi "IMAGENAME eq AcroRd32.exe" /nh | ^
findstr "AcroRd32.exe" > nul && ^
pdfopen --rxi --file "%~n1.pdf" && ^
pdfclose --rxi --file "%~n1.pdf" & ^
platex -kanji=utf8 -guess-input-enc -interaction=nonstopmode -jobname="%~n1" %1 && ^
dvips -Ppdf -z -f "%~n1.dvi" | ^
convbkmk -g > "%~n1.ps" && ^
ps2pdf.bat "%~n1.ps" && ^
echo "%~n1.pdf" | ^
cmd
----
pdfuplatexA-nonstopmode.bat を作成します.
クイックビルドのコマンドのユーザー定義または [ユーザー(U)]-[ユーザー定義コマンド(C)]-[ユーザー定義コマンドの編集(C)] で
pdfplatex2A-nonstopmode.bat %
を入力します.
**pdfupLaTeXA [#v915ab85]
pdfuplatex1A-nonstopmode.bat を作成します.
----
-C:\w32tex\bin\pdfuplatex1A-nonstopmode.bat
-pdfuplatexA-nonstopmode.bat
----
@echo off
tasklist /fi "IMAGENAME eq AcroRd32.exe" /nh | ^
findstr "AcroRd32.exe" > nul && ^
pdfopen --rxi --file "%~n1.pdf" && ^
pdfclose --rxi --file "%~n1.pdf" & ^
uplatex -kanji=utf8 -no-guess-input-enc -interaction=nonstopmode %1 && ^
dvipdfmx "%~n1" && ^
echo "%~n1.pdf" | ^
cmd
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}"
----
クイックビルドのコマンドのユーザー定義または [ユーザー(U)]-[ユーザー定義コマンド(C)]-[ユーザー定義コマンドの編集(C)] で
pdfuplatex1A-nonstopmode.bat %
pdfuplatexA-nonstopmode.bat % #.tex @
を入力します.
**pdfupLaTeX2A [#pf77769a]
***LuaLaTeXA [#b2053ddc]
pdfuplatex2A-nonstopmode.bat を作成します.
----
-C:\w32tex\bin\pdfuplatex2A-nonstopmode.bat
----
@echo off
tasklist /fi "IMAGENAME eq AcroRd32.exe" /nh | ^
findstr "AcroRd32.exe" > nul && ^
pdfopen --rxi --file "%~n1.pdf" && ^
pdfclose --rxi --file "%~n1.pdf" & ^
uplatex -kanji=utf8 -no-guess-input-enc -interaction=nonstopmode %1 && ^
dvips -Ppdf -z -f "%~n1.dvi" | ^
convbkmk -u > "%~n1.ps" && ^
ps2pdf.bat "%~n1.ps" && ^
echo "%~n1.pdf" | ^
cmd
----
クイックビルドのコマンドのユーザー定義または [ユーザー(U)]-[ユーザー定義コマンド(C)]-[ユーザー定義コマンドの編集(C)] で
pdfuplatex2A-nonstopmode.bat %
を入力します.
**pdfLaTeXA [#j7c9b397]
pdflatexA-nonstopmode.bat を作成します.
----
-C:\w32tex\bin\pdflatexA-nonstopmode.bat
----
@echo off
tasklist /fi "IMAGENAME eq AcroRd32.exe" /nh | ^
findstr "AcroRd32.exe" > nul && ^
pdfopen --rxi --file "%~n1.pdf" && ^
pdfclose --rxi --file "%~n1.pdf" & ^
pdflatex -interaction=nonstopmode %1 && ^
echo "%~n1.pdf" | ^
cmd
----
クイックビルドのコマンドのユーザー定義または [ユーザー(U)]-[ユーザー定義コマンド(C)]-[ユーザー定義コマンドの編集(C)] で
pdflatexA-nonstopmode.bat %
を入力します.
**LuaLaTeXA [#b2053ddc]
lualatexA-nonstopmode.bat を作成します.
----
-C:\w32tex\bin\lualatexA-nonstopmode.bat
-lualatexA-nonstopmode.bat
----
@echo off
tasklist /fi "IMAGENAME eq AcroRd32.exe" /nh | ^
findstr "AcroRd32.exe" > nul && ^
pdfopen --rxi --file "%~n1.pdf" && ^
pdfclose --rxi --file "%~n1.pdf" & ^
lualatex -interaction=nonstopmode %1 && ^
echo "%~n1.pdf" | ^
cmd
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}"
----
クイックビルドのコマンドのユーザー定義または [ユーザー(U)]-[ユーザー定義コマンド(C)]-[ユーザー定義コマンドの編集(C)] で
lualatexA-nonstopmode.bat %
lualatexA-nonstopmode.bat % #.tex @
を入力します.
**XeLaTeXA [#md09c195]
xelatexA-nonstopmode.bat を作成します.
----
-C:\w32tex\bin\xelatexA-nonstopmode.bat
----
@echo off
tasklist /fi "IMAGENAME eq AcroRd32.exe" /nh | ^
findstr "AcroRd32.exe" > nul && ^
pdfopen --rxi --file "%~n1.pdf" && ^
pdfclose --rxi --file "%~n1.pdf" & ^
xelatex -interaction=nonstopmode %1 && ^
echo "%~n1.pdf" | ^
cmd
----
クイックビルドのコマンドのユーザー定義または [ユーザー(U)]-[ユーザー定義コマンド(C)]-[ユーザー定義コマンドの編集(C)] で
xelatexA-nonstopmode.bat %
を入力します.
*[[dviout]] との連携 (非推奨) [#b567571b]
[[dviout#forward and inverse search>dviout#ycc841a2]] を参照.
LaTeX コマンドのオプションに -src-specials を追加します.
**forward search [#lac1b8f8]
dviout-forward-search.bat を作成します.
----
-C:\w32tex\bin\dviout-forward-search.bat
----
@echo off
setlocal
set DVIOUT=C:\w32tex\dviout\dviout.exe
echo "%DVIOUT%" -1 "%~n1.dvi" "# %2 '%~n3.tex'" | ^
cmd
endlocal
----
forward search は DVIビューアに
//
// "C:/w32tex/dviout/dviout.exe" -1 %.dvi "# @ "'#.tex'""
//
dviout-forward-search.bat %.dvi @ #.tex
です.
**inverse search [#u5cef573]
inverse search は dviout の [Option]-[Setup Parameters...]-[Common]-[src:] に
C:\texmakerwin32usb\texmaker.exe^s "%s" -line %d
です.
ダブルクリックで対応する TeX 文書の該当箇所にジャンプします.