Ashish Panigrahi wrote (Thu, Mar 20, 2025 at 12:46:02PM +0200):
> Hi Arash and Rens,
>
> Thanks for your suggestions. I'm using zathura as my pdf viewer. It's
> interesting that this isn't the case with other viewers (I haven't
> personally checked it).
I use zathura too. For me, both C-c C-a (TeX-command-run-all) and C-c C-v
(TeX-view) simply update the display in an existing instance of zathura; these
commands don't create a new instance of the viewer.
In my init file, I have
(add-to-list 'TeX-view-program-selection '(output-pdf "Zathura"))
and TeX-view-program-list-builtin has the following entry:
("Zathura"
("zathura %o"
(mode-io-correlate
" --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{line} %{input}\""))
"zathura")
-mandar