Carlo Dormeletti <[email protected]> writes:
> That wil make the buffer tex file appear as generated document so the
> zathura window is balnk.
>
> Changing the line with:
>
> ```
> ("Zathura"
> ("zathura %o"
> (mode-io-correlate
> " --synctex-forward %n:0:\"%s\" -x \"emacsclient +%{line}
> %{input}\""))
> "zathura")
> ```
>
> it change the %b with %s will make the View command correctly place
> the master file in the command making synctex working as expected.
I don't use Zathura, but I don't remember we had a report like this
lately. Can you please run this test on your system:
Save this master file called '00-Intro.tex' on your HD:
--8<---------------cut here---------------start------------->8---
\documentclass{report}
\begin{document}
\include{./cap/aa.tex}
\end{document}
%%% Local Variables:
%%% mode: LaTeX
%%% TeX-master: t
%%% TeX-source-correlate-mode: t
%%% End:
--8<---------------cut here---------------end--------------->8---
And this one relative to the above as './cap/aa.tex'
--8<---------------cut here---------------start------------->8---
This is some text in a sub-file.
%%% Local Variables:
%%% mode: LaTeX
%%% TeX-master: "../00-Intro.tex"
%%% TeX-source-correlate-mode: t
%%% End:
--8<---------------cut here---------------end--------------->8---
Restart Emacs as 'emacs -Q' and eval this in the scratch buffer:
--8<---------------cut here---------------start------------->8---
(progn
(package-initialize t)
(package-activate 'auctex)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(setq TeX-view-program-selection '((output-pdf "Zathura"))))
--8<---------------cut here---------------end--------------->8---
Now open your sub-file and see if you can compile and view it correctly,
or any other workflow you have, presuming you're running pdflatex.
I hope we have other Zathura users around who can test this as well.
Best, Arash
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex