[OS X Emacs] Re: Can't Make Doc-View Work
Peter_Dyballa at Web.DE
Sun Mar 21 12:03:44 EDT 2010
Am 12.03.2010 um 09:05 schrieb Axel E. Retif:
> I still have to make it work, but I'm not giving up.
In the meantime you could try this hack:
(defun split-for-tikz2pdf ()
(compile (format "tikz2pdf -v %S \n" buffer-file-name))
(sit-for 4) ;; adjust the number of seconds the compilation
finishes before PDF file is loaded
The sit-for function is the "clue" – it lets Emacs wait for the given
amount of seconds. The value can be different, depending on the
processor, the file system, the job to perform, other CPU usage. It
might fail when the system has more than one processor...
The proper solution would be to use some call-process* function. I am
not yet understanding why it always fails for me.
BTW, I have a small init file for TeX related experiments (setting up
AUCTeX particularly plus some convenience). I launch Emacs from the
command line like:
.../Emacs -T 'TeX Live 2009' -geometry 92x50+375+25 -q -l ~/.emacs-
TeXLive.el --no-desktop --debug-init ..../PGF-file.tex -f split-for-
The split-for-tikz2pdf function is in ~/.emacs-TeXLive.el.
Isn't vi that text editor with two modes... one that beeps and one
that corrupts your file?
– Dan Jacobson, on comp.os.linux.advocacy
More information about the MacOSX-Emacs