auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: latexmk default compilation


From: Igor Sosa Mayor
Subject: Re: latexmk default compilation
Date: Sun, 13 Sep 2020 22:44:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

François Patte <francois.patte@mi.parisdescartes.fr> writes:

> Le 11/09/2020 à 14:05, Arash Esbati a écrit :
>> Denis Bitouzé <dbitouze@wanadoo.fr> writes:
>> 
>>> Le 11/09/20 à 12h50, François Patte a écrit :
>>>
>>>> Is it possible to run latexmk as the default compilator while using
>>>> Ctrl-c-c in auctex?
>>>
>>> Maybe with this (don't know if it is enough):
>>>
>>> (add-hook 'LaTeX-mode-hook '(lambda () (setq TeX-command-default 
>>> "Latexmk")))
>> 
>> You also need an entry for "Latexmk" in `TeX-command-list', something
>> like this should do the job:
>> 
>> (eval-after-load "tex"
>>   '(add-to-list 'TeX-command-list
>>              '("Latexmk" "latexmk -pdf %s" TeX-run-TeX nil t
>>                   :help "Run latexmk on file")
>>              t))
>> 
>
> As I previously said, this  together with Denis' suggestion works fine,
> but invoking C-c C-c after compilation cannot launch the pdf viewer: "No
> matching viewer found" in the mini-buf.
>
> Is it possible to correct this?

Maybe I'm missing something, but in my case latexmk launches the pdf
viewer, as it is configured in .latexmkrc with

$pdf_previewer = 'start atril';


-- 
:: Igor Sosa Mayor     :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::




reply via email to

[Prev in Thread] Current Thread [Next in Thread]