diff options
author | Sébastien Delafond <sdelafond@gmail.com> | 2016-03-16 09:54:04 +0100 |
---|---|---|
committer | Sébastien Delafond <sdelafond@gmail.com> | 2016-03-16 09:54:04 +0100 |
commit | 84539dca3aa301ecfe48858eceef1ced0505388b (patch) | |
tree | a3c7c7bcc50e7d7a49b22f0eaf8bd8624ff8d048 /lisp/ox-latex.el | |
parent | 8d8ea67656b95d8528b6cd9b43b2d53b847412b0 (diff) |
Imported Upstream version 8.3.4
Diffstat (limited to 'lisp/ox-latex.el')
-rw-r--r-- | lisp/ox-latex.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 1840a54..121a675 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1,6 +1,6 @@ ;;; ox-latex.el --- LaTeX Back-End for Org Export Engine -;; Copyright (C) 2011-2015 Free Software Foundation, Inc. +;; Copyright (C) 2011-2016 Free Software Foundation, Inc. ;; Author: Nicolas Goaziou <n.goaziou at gmail dot com> ;; Keywords: outlines, hypermedia, calendar, wp @@ -2797,7 +2797,6 @@ contextual information." `(("captionpos" ,(if caption-above-p "t" "b"))) (cond ((assoc "numbers" lst-opt) nil) ((not num-start) '(("numbers" "none"))) - ((zerop num-start) '(("numbers" "left"))) (t `(("firstnumber" ,(number-to-string (1+ num-start))) ("numbers" "left")))))) (let ((local-options (plist-get attributes :options))) @@ -3468,7 +3467,10 @@ Return PDF file name or an error if it couldn't be produced." ;; Check for process failure. Provide collected errors if ;; possible. (if (or (not (file-exists-p pdffile)) - (time-less-p (nth 5 (file-attributes pdffile)) time)) + ;; Only compare times up to whole seconds as some filesystems + ;; (e.g. HFS+) do not retain any finer granularity. + (time-less-p (org-sublist (nth 5 (file-attributes pdffile)) 1 2) + (org-sublist time 1 2))) (error (format "PDF file %s wasn't produced" pdffile)) ;; Else remove log files, when specified, and signal end of ;; process to user, along with any error encountered. |