Skip to content

Instantly share code, notes, and snippets.

@uchida
Last active September 30, 2015 09:28
Show Gist options
  • Select an option

  • Save uchida/1759930 to your computer and use it in GitHub Desktop.

Select an option

Save uchida/1759930 to your computer and use it in GitHub Desktop.
latexmkrc sample for Japanese LaTeX documents
# -*- cperl -*-
# ~/.latexmkrc
# setting for pdflatex
$pdflatex = 'pdflatex -8bit -etex -halt-on-error -synctex=1 %O %S';
# setting for Japanese
$latex = 'platex -synctex=1 -halt-on-error %O %S';
$bibtex = 'pbibtex %O %B';
$makeindex = 'mendex %O -o %D %S';
$dvipdf = 'dvipdfmx %O -o %D %S';
# use bibtex as default
$bibtex_use = 1;
# pdf with pdflatex
#$pdf_mode = 1;
# pdf with dvipdf
$pdf_mode = 3;
# files to clean
$clean_ext = '%R_flymake.aux %R_flymake.dvi %R_flymake.log %R_flymake.out';
$clean_full_ext = 'bbl synctex.gz';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment