[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Export to pdf when path name has ~
From: |
Stig Brautaset |
Subject: |
[O] Export to pdf when path name has ~ |
Date: |
Tue, 24 May 2016 17:59:27 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
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"'.
<to be read again>
\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.
<to be read again>
\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"'.
<to be read again>
\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.
<to be read again>
\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
- [O] Export to pdf when path name has ~,
Stig Brautaset <=