From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hugh Daschbach" Subject: [PATCH] XEmacs format string needs "%%" to produce "%" on output. Date: Sat, 20 Dec 2008 16:49:39 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LECVt-0005Vi-1X for emacs-orgmode@gnu.org; Sat, 20 Dec 2008 19:49:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LECVq-0005VW-AA for emacs-orgmode@gnu.org; Sat, 20 Dec 2008 19:49:43 -0500 Received: from [199.232.76.173] (port=51695 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LECVq-0005VT-6j for emacs-orgmode@gnu.org; Sat, 20 Dec 2008 19:49:42 -0500 Received: from rv-out-0708.google.com ([209.85.198.241]:65117) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LECVp-0004cl-Qq for emacs-orgmode@gnu.org; Sat, 20 Dec 2008 19:49:42 -0500 Received: by rv-out-0708.google.com with SMTP id k29so1790014rvb.6 for ; Sat, 20 Dec 2008 16:49:39 -0800 (PST) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org In XEmacs, The comment line at the top of LaTex output generated by org-export-as-pdf doesn't contain the leading '%'. This causes latex to bark about "! LaTeX Error: Missing \begin{document}." --- lisp/org-export-latex.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el index 9af4d0a..fa6a0e4 100644 --- a/lisp/org-export-latex.el +++ b/lisp/org-export-latex.el @@ -689,7 +689,7 @@ OPT-PLIST is the options plist for current buffer." (author (plist-get opt-plist :author))) (concat (if (plist-get opt-plist :time-stamp-file) - (format-time-string "% Created %Y-%m-%d %a %H:%M\n")) + (format-time-string "%% Created %Y-%m-%d %a %H:%M\n")) ;; insert LaTeX custom header org-export-latex-header "\n" -- 1.5.6.3