From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stig Brautaset Subject: Re: Export to pdf when path name has ~ Date: Thu, 26 May 2016 23:30:35 +0100 Message-ID: References: <8760u0d2b3.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b63uC-0001YS-Cr for emacs-orgmode@gnu.org; Thu, 26 May 2016 18:37:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b63u6-0008V4-9g for emacs-orgmode@gnu.org; Thu, 26 May 2016 18:37:27 -0400 Received: from plane.gmane.org ([80.91.229.3]:57338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b63u6-0008UE-2U for emacs-orgmode@gnu.org; Thu, 26 May 2016 18:37:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b63u3-0001bX-U9 for emacs-orgmode@gnu.org; Fri, 27 May 2016 00:37:19 +0200 Received: from 85.255.237.144 ([85.255.237.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 May 2016 00:37:19 +0200 Received: from stig by 85.255.237.144 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 May 2016 00:37:19 +0200 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Stig Brautaset writes: [...] >> pdflatex chockes on the filename: >> >> #+begin_example >> 17:27:25 /tmp> pdflatex "/Users/stig/Library/Mobile Documents/com~apple~CloudDocs/Org/TODO.tex" >> This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) >> restricted \write18 enabled. >> entering extended mode >> ! I can't find file `"/Users/stig/Library/Mobile Documents/com"'. >> >> \protect >> <*> "/Users/stig/Library/Mobile Documents/com~ >> apple~CloudDocs/Org/TODO.tex" > > Indeed. It seems pdflatex doesn't like the ~ sign excepted at the > beginning of the filename. It doesn't seem to be Org related though. No, it does not seem to be Org related. I thought that at first, but found it failed in a regular terminal too. > In any case, I'm wondering if we really need to send the full canonical > path (as returned by `file-truename') of the tex file to the pdflatex > process. > > For example, we could set `default-directory' to the directory of the > tex file and provide only relative filename with %f. If needed, %F may > be used for the full path. I don't think it would introduce > incompatibilities. > > WDYT? That sounds like it would solve my issue, and is what I was hoping to hear :-) Stig