*Latexmk [#ra50ed94] &color(White,#5F2F2F){ ''◆目次◆'' };&br; #contents **Latexmk とは [#s94c7ed2] Latexmk は文書を作成するのに必要な回数タイプセットしてくれるツールです.~ -http://www.phys.psu.edu/~collins/software/latexmk-jcc/ **Latexmk-pdfupLaTeX, Latexmk-pdfupLaTeX2 の場合 (TeXworks, YaTeX, AUCTeX (TeX-interactive-mode が ON の場合), tex.vim などの場合) [#q3ee8e1b] ---- ~/.latexmkrc ---- #!/usr/bin/env perl if ($^O eq 'MSWin32') { $latex = 'uplatex %O -kanji=utf8 -no-guess-input-enc -synctex=1 %S'; $bibtex = 'upbibtex %O %B'; $biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B'; $makeindex = 'mendex %O -U -o %D %S'; $dvipdf = 'dvipdfmx %O -o %D %S'; $dvips = 'dvips %O -z -f %S | convbkmk -u > %D'; $ps2pdf = 'ps2pdf.bat %O %S %D'; $pdf_mode = 3; if (-f 'C:/Program Files/SumatraPDF/SumatraPDF.exe') { $pdf_previewer = '"C:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance'; } elsif (-f 'C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe') { $pdf_previewer = '"C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" -reuse-instance'; } else { $pdf_previewer = 'texworks'; } } else { $latex = 'uplatex %O -synctex=1 %S'; $bibtex = 'upbibtex %O %B'; $biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B'; $makeindex = 'mendex %O -o %D %S'; $dvipdf = 'dvipdfmx %O -o %D %S'; $dvips = 'dvips %O -z -f %S | convbkmk -u > %D'; $ps2pdf = 'ps2pdf %O %S %D'; $pdf_mode = 3; if ($^O eq 'darwin') { $pvc_view_file_via_temporary = 0; $pdf_previewer = 'open -ga /Applications/Skim.app'; } else { $pdf_previewer = 'xdg-open'; } } ---- latexmk -gg -pdfdvi hoge.tex latexmk -gg -pdfps hoge.tex **Latexmk-pdfupLaTeX, Latexmk-pdfupLaTeX2 の場合 (TeXstudio, Texmaker, Emacs の TeX mode, AUCTeX (TeX-interactive-mode が OFF の場合) などの場合) [#ke005cd5] ---- ~/.latexmkrc ---- #!/usr/bin/env perl if ($^O eq 'MSWin32') { $latex = 'uplatex %O -kanji=utf8 -no-guess-input-enc -synctex=1 -interaction=nonstopmode %S'; $bibtex = 'upbibtex %O %B'; $biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B'; $makeindex = 'mendex %O -U -o %D %S'; $dvipdf = 'dvipdfmx %O -o %D %S'; $dvips = 'dvips %O -z -f %S | convbkmk -u > %D'; $ps2pdf = 'ps2pdf.bat %O %S %D'; $pdf_mode = 3; if (-f 'C:/Program Files/SumatraPDF/SumatraPDF.exe') { $pdf_previewer = '"C:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance'; } elsif (-f 'C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe') { $pdf_previewer = '"C:/Program Files (x86)/SumatraPDF/SumatraPDF.exe" -reuse-instance'; } else { $pdf_previewer = 'texworks'; } } else { $latex = 'uplatex %O -synctex=1 -interaction=nonstopmode %S'; $bibtex = 'upbibtex %O %B'; $biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B'; $makeindex = 'mendex %O -o %D %S'; $dvipdf = 'dvipdfmx %O -o %D %S'; $dvips = 'dvips %O -z -f %S | convbkmk -u > %D'; $ps2pdf = 'ps2pdf %O %S %D'; $pdf_mode = 3; if ($^O eq 'darwin') { $pvc_view_file_via_temporary = 0; $pdf_previewer = 'open -ga /Applications/Skim.app'; } else { $pdf_previewer = 'xdg-open'; } } ---- latexmk -gg -pdfdvi hoge.tex latexmk -gg -pdfps hoge.tex **中間ファイルの削除 [#ob05c2ba] latexmk -c **中間ファイルと .dvi, .ps, .pdf の削除 [#u43f86f3] latexmk -C **リンク [#yb5452a3] -[[latexmk で楽々 TeX タイプセットの薦め(& biblatex+biberで先進的な参考文献処理) - konn-san.com:http://konn-san.com/prog/why-not-latexmk.html]] -[[【質問】日本語環境における文献処理について:http://qiita.com/mr_konn/items/3f523eb6dcf1d9837c92]] -https://gist.github.com/konn --https://gist.github.com/konn/8234466 -[[latexmk:http://kamae-norihiro.blogspot.jp/2013/06/latexmk.html]] -[[LaTeX on SublimeText 2:http://izumin.hateblo.jp/entry/2013/05/09/230731]] -[[Latexmkのススメ:http://xaro.hatenablog.jp/entry/2013/01/06/125723]] -[[latexmk と ptex2pdf:http://konoyonohana.blog.fc2.com/blog-entry-25.html]] -[[YaTeX#Latexmkを使う場合>YaTeX#naf0d69e]] -[[latexmk を LaTeX コンパイルに使ってみた:http://unvalance.g.hatena.ne.jp/KainokiKaede/20111124/1322117707]] -[[latexmk つかって LaTeX コンパイルしたら簡単すぎて身長が10cm伸びた:http://d.hatena.ne.jp/yambi/20091117/1258452926]]