[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trigger Tex file compilation with latexmk automatically when its con
From: |
Ikumi Keita |
Subject: |
Re: Trigger Tex file compilation with latexmk automatically when its content is changed and saved. |
Date: |
Sat, 06 May 2023 23:31:12 +0900 |
>>>>> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>> (1) Does "latexmk -pv FILENAME" work as expected when you issue the
>> command on some shell, in the directory the file is located?
> In fact, my latexmk configuration, aka, `/home/werner/.latexmkrc` was
> set by me very long ago.
> See below:
[...]
> It's very strange that I don't have any acroread related config in
> `/home/werner/.latexmkrc`, why does it complain the following:
> sh: 1: acroread: not found
Then it isn't an AUCTeX issue. Unfortunately, I don't know latexmk. I
hope someone familiar with latexmk chimes in. :-)
If no one does, I'd recommend to ask at latexmk support commnunity.
> See below for the real config of latexmk:
> $ grep -Ev '^[ ]*(#|$)' ~/.latexmkrc
> $show_time=1;
> $pdf_mode = 4;
> $postscript_mode = $dvi_mode = 0;
> $lualatex = "lualatex -shell-escape -file-line-error -halt-on-error
> -interaction=nonstopmode -synctex=1 %O %S";
> $bibtex = "bibtex %O %S";
> $bibtex_use = 2;
> $makeindex = "makeindex %O -o %D %S";
> $silence_logfile_warnings = 1;
> add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' );
> add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' );
> $clean_ext .= " acr acn alg glo gls glg";
> sub makeglossaries {
> my ($base_name, $path) = fileparse( $_[0] );
> pushd $path;
> my $return = system "makeglossaries", $base_name;
> popd;
> return $return;
> }
> add_cus_dep( 'svg', 'pdf', 0, 'makesvg2pdf' );
> sub makesvg2pdf {
> system( "inkscape \"$_[0].svg\" --export-pdf=\"$_[0].pdf\"" );
> }
Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine