From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] XEmacs format string needs "%%" to produce "%" on output. Date: Sun, 21 Dec 2008 12:49:20 +0100 Message-ID: <9869A86B-B103-492B-A441-AA6ACE82B912@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: multipart/mixed; boundary="===============0463741868==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LEMoI-0001HJ-FP for emacs-orgmode@gnu.org; Sun, 21 Dec 2008 06:49:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LEMoG-0001Es-N0 for emacs-orgmode@gnu.org; Sun, 21 Dec 2008 06:49:26 -0500 Received: from [199.232.76.173] (port=44181 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LEMoG-0001Eh-0S for emacs-orgmode@gnu.org; Sun, 21 Dec 2008 06:49:24 -0500 Received: from ug-out-1314.google.com ([66.249.92.172]:32821) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LEMoF-0003dk-Gn for emacs-orgmode@gnu.org; Sun, 21 Dec 2008 06:49:23 -0500 Received: by ug-out-1314.google.com with SMTP id 36so792819uga.17 for ; Sun, 21 Dec 2008 03:49:23 -0800 (PST) In-Reply-To: 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: Hugh Daschbach Cc: emacs-orgmode@gnu.org --===============0463741868== Content-Type: multipart/alternative; boundary=Apple-Mail-2-297373964 --Apple-Mail-2-297373964 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Applied, thanks. - Carsten On Dec 21, 2008, at 1:49 AM, Hugh Daschbach wrote: > 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 > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-2-297373964 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Applied, = thanks.

- Carsten

On Dec 21, = 2008, at 1:49 AM, Hugh Daschbach wrote:

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


_______________________________________________
= Emacs-orgmode mailing list
Remember: use `Reply All' to send replies = to the list.
Emacs-orgmode@gnu.org
http://= lists.gnu.org/mailman/listinfo/emacs-orgmode
<= br>
= --Apple-Mail-2-297373964-- --===============0463741868== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0463741868==--