On Sun, Jul 11, 2021 at 4:19 AM Tassilo Horn <t...@gnu.org> wrote: > > Hongyi Zhao <hongyi.z...@gmail.com> writes: > > > On Ubuntu 20.04, I compiled this project: > > <https://gitlab.kwant-project.org/jbweston/thesis>, with xelatex + > > xdvipdfmx via latexmk. When I open the tex master file in Emacs > > integrated with the auctex and pdf-tools, I can skip from the pdf file > > to the corresponding tex source file, but failed vice versa, as shown > > below: > > > > ``` > > epdfinfo: Error opening > > /home/werner/Public/hpc/tools/thesis/gitlab.kwant-project.org/jbweston/thesis.git/content/conclusion.pdf:No > > such file or directory > > What would be the right filename? The project looks like thesis.tex is > the master file so I'd assume the pdf would be thesis.pdf and not > conclusion.pdf which is just some included chapter in content/. >
Yes. "thesis.tex" is the master file, and "thesis.pdf" is the generated pdf file name. > > I tried with the following two options, but all failed with the same > > error mentioned above: > > > > (setq-default TeX-master nil) > > or > > (setq-default TeX-master 'dwim) > > > > Any hints for solving this problem? > > What are your TeX-master values? It should be t in thesis.tex and > "../thesis" in the sub-files in content/. From the error above, I'd > guess you've told AUCTeX that conclusion.tex was the master file and > pdf-tools uses the value of TeX-master and thus assumes conclusion.pdf > was the generated pdf. > See below: $ tail -5 ./thesis.tex %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: $ tail -5 content/publications.tex %%% Local Variables: %%% mode: latex %%% TeX-master: ../thesis %%% End: But still meet the error: ``` epdfinfo: Error opening /home/werner/Public/hpc/tools/thesis/gitlab.kwant-project.org/jbweston/thesis.git/content/publications.pdf:No such file or directory (New file) File mode specification error: (error epdfinfo: Error opening /home/werner/Public/hpc/tools/thesis/gitlab.kwant-project.org/jbweston/thesis.git/content/publications.pdf:No such file or directory) ``` > Bye, > Tassilo > -- Assoc. Prof. Hongyi Zhao <hongyi.z...@gmail.com> Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province