From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Suspected bug with LaTeX export: the pdf does not open Date: Sun, 19 Aug 2018 12:31:57 +1000 Message-ID: <87h8jr5boi.fsf@gmail.com> References: <23415.42499.834434.715352@frac.u-strasbg.fr> <20180818213452.37a154c8@lt70.mpip-mainz.mpg.de> <23416.35007.231189.876742@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frDVf-0000Ar-EM for emacs-orgmode@gnu.org; Sat, 18 Aug 2018 22:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frDVe-0003df-J7 for emacs-orgmode@gnu.org; Sat, 18 Aug 2018 22:32:07 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:41089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frDVe-0003d8-Cg for emacs-orgmode@gnu.org; Sat, 18 Aug 2018 22:32:06 -0400 Received: by mail-pf1-x431.google.com with SMTP id y10-v6so5126751pfn.8 for ; Sat, 18 Aug 2018 19:32:05 -0700 (PDT) In-reply-to: <23416.35007.231189.876742@frac.u-strasbg.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: alain.cochard@unistra.fr Cc: emacs-orgmode@gnu.org, Robert Klein Given the problem appears to only occur with older setups which are using an external PDF viewer, he problem might be with the xdg settings on the system. The line Running /usr/bin/xdg-open /home/cochard/tmp/scr.pdf...done might be worth more investigation. What program is xdg using to open PDF files? What happens if you try to run that viewer manually on the PDF file? Tim Alain.Cochard@unistra.fr writes: > Hi Robert, thanks much for your time. > > Robert Klein writes on Sat 18 Aug 2018 21:34: > > > Do you have any information in the *Messages* buffer which might > > help? > > For the configuration that opens the pdf, that is: > > Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version > 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: > Org-mode version 8.2.10 (release_8.2.10 @ > /usr/share/emacs/24.5/lisp/org/) > > the *Messages* buffer contains: > > For information about GNU Emacs and the GNU system, type C-h C-a. > Saving file /home/cochard/tmp/scr.tex... > Wrote /home/cochard/tmp/scr.tex > Processing LaTeX file ./scr.tex... > Process completed. > Type C-c C-c to toggle between editing or viewing the document. > > For the configuration that does not open the pdf: > > Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version > 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: > Org mode version 9.1.13 (release_9.1.13-894-gf79545 @ > /home/cochard/Org/Coch-git/org-mode/lisp/) > > the *Messages* buffer contains: > > For information about GNU Emacs and the GNU system, type C-h C-a. > Saving file /home/cochard/tmp/scr.tex... > Wrote /home/cochard/tmp/scr.tex > Processing LaTeX file scr.tex... > PDF file produced. > Running /usr/bin/xdg-open /home/cochard/tmp/scr.pdf...done > > This does not ring any bell for me, but maybe it will for you or > someone else. > > In view of your results, I have now tried with emacs 26 and master: > > Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.18.9) of 2018-05-30 Package: Org mode version 9.1.13 > (release_9.1.13-894-gf79545 @ > /home/cochard/Org/Coch-git/org-mode/lisp/) > > and the pdf does open as expected. The *Messages* buffer contains > > For information about GNU Emacs and the GNU system, type C-h C-a. > Saving file /home/cochard/tmp/scr.tex... > Wrote /home/cochard/tmp/scr.tex > Processing LaTeX file scr.tex... > PDF file produced. > > So I guess this suggests that there is a problem with my emacs 24.5.1, > which is the default on my Fedora 23 distribution. (NB: The emacs > 26.1 used above is built from source and I can't make it fully work > for regular use, i.e., with my normal .emacs.) > > Regards -- Tim Cross