From mboxrd@z Thu Jan 1 00:00:00 1970 From: chris.m.malone@gmail.com Subject: org-export-latex-classes issue Date: Wed, 20 Oct 2010 19:11:03 +0000 Message-ID: <00163628393eae15aa0493112b25@google.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0608347759==" Return-path: Received: from [140.186.70.92] (port=56156 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8e48-0006W3-Lb for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 15:11:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8e47-00020z-99 for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 15:11:12 -0400 Received: from mail-yx0-f199.google.com ([209.85.213.199]:35912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8e47-00020o-6U for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 15:11:11 -0400 Received: by yxe1 with SMTP id 1so2151437yxe.6 for ; Wed, 20 Oct 2010 12:11:10 -0700 (PDT) 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 --===============0608347759== Content-Type: multipart/alternative; boundary=00163628393eae159c0493112b22 --00163628393eae159c0493112b22 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Hi, I'ma n00b to Lisp and org-mode so please forgive me if the answer is obvious. I'm using version 7.01h of org-mode. I'm trying to set up a custom Latex class to use for preparing a document. Some Google searching showed that I need to add this class to the org-export-latex-classes symbol. I tried to do this in my .emacs file, for example following what is listed at http://orgmode.org/worg/org-tutorials/org-latex-export.php by adding the following to my .emacs file: (add-to-list 'org-export-latex-classes '("article" "\\documentclass{article}" ("\\section{%s}" . "\\section*{%s}"))) I know that org-export-latex-default-class is already set to "article" but this example already shows that something is wrong. When I load emacs the debugger complains that org-export-latex-classes is an empty list: Debugger entered--Lisp error: (void-variable org-export-latex-classes) add-to-list(org-export-latex-classes ("article" "\\documentclass{article}" ("$ eval-buffer(# nil "/home/cmalone/.emacs" nil t) ; Reading at$ load-with-code-conversion("/home/cmalone/.emacs" "/home/cmalone/.emacs" tt) load("~/.emacs" tt) #[nil "^H\205\276^@ \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\31$ command-line() normal-top-level() As far as I can tell, org-export-latex-classes is set to nil in org-latex.el, but this isn't loaded until the export dispatcher calls org-export-as-latex. Is this correct? Coincidentally, if I export to latex, the appropriate .tex file is created without issue. My original goal was to setup a custom Latex class - I have tried in the same manner as that used above for the "article" class and the debugger produces the same result. However, when I attempt to export to latex I get the error that my custom class isn't in the org-export-latex-classes list, presumably because of the failure in loading the .emacs file. Any advice? Chris --00163628393eae159c0493112b22 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I'm a n00b to Lisp and org-mode so please forgive me if = the answer is obvious. I'm using version 7.01h of org-mode.

I'm trying to set up a custom Latex class to use for preparing a docum= ent. Some Google searching showed that I need to add this class to the org= -export-latex-classes symbol. I tried to do this in my .emacs file, for ex= ample following what is listed at http://orgmode.org/worg/org-tutorials/org= -latex-export.php by adding the following to my .emacs file:

(ad= d-to-list 'org-export-latex-classes
'("artic= le"
"\\documentclass{article}"
= ("\\section{%s}" . "\\section*{%s}")))


I know that org-export-latex-default-class is already set to = "article" but this example already shows that something is wrong.= When I load emacs the debugger complains that org-export-latex-classes is= an empty list:

Debugger entered--Lisp error: (void-variable org= -export-latex-classes)
add-to-list(org-export-latex-classe= s ("article" "\\documentclass{article}" ("$
= eval-buffer(#<buffer *load*> nil "/home/cmalone/.emacs" n= il t) ; Reading at$
load-with-code-conversion("/home/cmalone/.= emacs" "/home/cmalone/.emacs" t t)
load("~/.em= acs" t t) #[nil "^H\205\276^@ \306=3D\203^Q^@\307^H\310Q\202A^@ \311=3D\2= 033^@\312\307\31$
command-line() =
normal-top-level() =

As far as I can tell, or= g-export-latex-classes is set to nil in org-latex.el, but this isn't lo= aded until the export dispatcher calls org-export-as-latex. Is this correc= t? Coincidentally, if I export to latex, the appropriate .tex file is crea= ted without issue.

My original goal was to setup a custom Latex = class - I have tried in the same manner as that used above for the "ar= ticle" class and the debugger produces the same result. However, when= I attempt to export to latex I get the error that my custom class isn'= t in the org-export-latex-classes list, presumably because of the failure i= n loading the .emacs file.

Any advice?

Chris --00163628393eae159c0493112b22-- --===============0608347759== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0608347759==--