HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/sphinx/texinputs/latexmkjarc_t
$latex = '{{ latex_engine }} ' . $ENV{'LATEXOPTS'} . ' -kanji=utf8 %O %S';
$dvipdf = 'dvipdfmx %O -o %D %S';
$makeindex = 'internal mendex %S %B %D';
sub mendex {
  my ($source, $basename, $destination) = @_;
  my $dictfile = $basename . ".dic";
  unlink($destination);
  system("mendex", "-U", "-f", "-d", $dictfile, "-s", "python.ist", $source);
  if ($? > 0) {
    print("mendex exited with error code $? (ignored)\n");
  }
  if (!-e $destination) {
    # create an empty .ind file if nothing
    open(FH, ">" . $destination);
    close(FH);
  }
  return 0;
}
add_cus_dep( "glo", "gls", 0, "makeglo" );
sub makeglo {
 return system( "mendex -J -f -s gglo.ist -o '$_[0].gls' '$_[0].glo'" );
}