latexmkrc 配置文件检查错误(清理和 synctex.gz)

latexmkrc 配置文件检查错误(清理和 synctex.gz)

清理过程无效,并且synctex.gz未生成 main.。我试图在编译后清理文件夹,并且还想有一个synctex.gz文件从 .pdf 跳转到源文件。似乎未生成。

  • 使用:lualatex
  • 操作系统:Windows 10
  • Perl:已安装
# This shows how to use lualatex (http://en.wikipedia.org/wiki/LuaTeX)
# with latexmk.  
#
#   WARNING: The method shown here is suitable only for ver. 4.51 and
#            later of latexmk, not for earlier versions.
#
#
@default_files = ("*.tex");
$recorder = 1;
$show_time = 1;
$pdf_mode = 4;
$biber = 'biber %O %S';
$latex = "pdflua -shell-escape -interaction=nonstopmode -file-line-error -synctex=1 %O %S";
push @generated_exts, 'synctex.gz';
$pdf_previewer = 'start "D:\PortableApp\SumatraPDF\SumatraPDF.exe" %O %S';
$makeindex = "makeindex %O -o %D %S";
$cleanup_mode = 2;
$clean_ext = " %R-mod.blg %R-mod.aux %R-mod.bbl";

add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');

sub run_makeglossaries {
  if ( $silent ) {
    system "makeglossaries -q '$_[0]'";
  }
  else {
    system "makeglossaries '$_[0]'";
  };
}

push @generated_exts, 'glo', 'gls', 'glg';
push @generated_exts, 'acn', 'acr', 'alg';
$clean_ext = ' %R.ist %R.xdy';

相关内容