Bläddra i källkod

Make PDF export work under windows.

Carsten Dominik 16 år sedan
förälder
incheckning
a669549843
2 ändrade filer med 5 tillägg och 1 borttagningar
  1. 1 0
      lisp/ChangeLog
  2. 4 1
      lisp/org-export-latex.el

+ 1 - 0
lisp/ChangeLog

@@ -1,6 +1,7 @@
 2008-10-18  Carsten Dominik  <dominik@science.uva.nl>
 
 	* org-export-latex.el (org-latex-entities-regexp): New constant.
+	(org-export-as-pdf): Use two calls to `shell-command'.
 
 2008-10-17  Carsten Dominik  <dominik@science.uva.nl>
 

+ 4 - 1
lisp/org-export-latex.el

@@ -490,7 +490,10 @@ when PUB-DIR is set, use this as the publishing directory."
 	 (pdffile (concat base ".pdf")))
     (and (file-exists-p pdffile) (delete-file pdffile))
     (message "Processing LaTeX file...")
-    (shell-command (format "pdflatex -interaction nonstopmode %s;pdflatex -interaction nonstopmode %s" file file))
+    (shell-command (format "pdflatex -interaction nonstopmode %s"
+			   (shell-quote-argument file)))
+    (shell-command (format "pdflatex -interaction nonstopmode %s"
+			   (shell-quote-argument file)))
     (message "Processing LaTeX file...done")
     (if (not (file-exists-p pdffile))
 	(error "PDF file was not produced")