From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stig Brautaset Subject: Export to pdf when path name has ~ Date: Tue, 24 May 2016 17:59:27 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5FvE-0000gU-Jn for emacs-orgmode@gnu.org; Tue, 24 May 2016 13:15:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5FvA-0006yi-SR for emacs-orgmode@gnu.org; Tue, 24 May 2016 13:15:11 -0400 Received: from plane.gmane.org ([80.91.229.3]:46534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5FvA-0006wc-LR for emacs-orgmode@gnu.org; Tue, 24 May 2016 13:15:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b5Fv7-0001pL-72 for emacs-orgmode@gnu.org; Tue, 24 May 2016 19:15:05 +0200 Received: from 185.59.181.102 ([185.59.181.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 May 2016 19:15:05 +0200 Received: from stig by 185.59.181.102 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 May 2016 19:15:05 +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 Hello! I'm on OS X and use their iCloud Drive to sync Org documents. I save my documents to =~/Org=, which is a symlink to =~/Library/Mobile Documents/com~apple~CloudDocs/Org=. This generally work fine, but launching pdflatex fails. The *Messages* buffer has this to say: #+BEGIN_EXAMPLE Saving file /Users/stig/Org/TODO.tex... Wrote /Users/stig/Org/TODO.tex Processing LaTeX file ./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" (Press Enter to retry, or Control-D to exit) Please type another input file name ! Emergency stop. \protect <*> "/Users/stig/Library/Mobile Documents/com~ apple~CloudDocs/Org/TODO.tex" [...] ! ==> Fatal error occurred, no output PDF file produced! Transcript written on .//texput.log. org-latex-compile: PDF file ./TODO.pdf wasn't produced #+END_EXAMPLE However, looking at the directory the =.tex= file is created: #+begin_example 17:03:45 ~> ls -l ~/Library/Mobile\ Documents/com~apple~CloudDocs/Org/TODO* -rw-r--r-- 1 stig staff 8080 24 May 16:07 /Users/stig/Library/Mobile Documents/com~apple~CloudDocs/Org/TODO.org -rw-r--r-- 1 stig staff 10870 24 May 17:02 /Users/stig/Library/Mobile Documents/com~apple~CloudDocs/Org/TODO.tex #+end_example And, indeed, running pdflatex on that file works perfectly fine from the shell: #+BEGIN_EXAMPLE 17:37:57 /tmp> /Library/TeX/texbin/pdflatex ~/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 (/Users/stig/Org/TODO.tex LaTeX2e <2015/01/01> [...] Output written on TODO.pdf (10 pages, 206446 bytes). Transcript written on TODO.log. #+END_EXAMPLE ... except if you use the full path (rather than the symlink), in which case 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" (Press Enter to retry, or Control-D to exit) Please type another input file name: ^D ! Emergency stop. \protect <*> "/Users/stig/Library/Mobile Documents/com~ apple~CloudDocs/Org/TODO.tex" ! ==> Fatal error occurred, no output PDF file produced! Transcript written on texput.log. #+END_EXAMPLE Any suggestions for making =C-c C-e l p= work? I suppose I could migrate to use DropBox rather than iCloud Drive, but I would really like to avoid that, so any suggestions for work-arounds that lets me continue to use iCloud Drive would be nice :-) Stig