Re: [O] LaTeX export: Unknown LaTeX class `org-article'
Peter Davis p...@pfdstudio.com writes: [...] It does say the variable is define in org-latex.el, and clicking on that name takes me to the definition in org-latex.el.gz. Just to confirm what Nick has said: this file is out of date. There is no org-latex.el in v8 of org. The equivalent file is now ox-latex.el. Check your load-path to ensure you load the right version of org. Maybe put a (require 'ox-latex) in your initialisation as well. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.4-322-gece429
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
On Mon, Jan 27, 2014 at 09:55:52AM +, Eric S Fraga wrote: Peter Davis p...@pfdstudio.com writes: [...] It does say the variable is define in org-latex.el, and clicking on that name takes me to the definition in org-latex.el.gz. Just to confirm what Nick has said: this file is out of date. There is no org-latex.el in v8 of org. The equivalent file is now ox-latex.el. Check your load-path to ensure you load the right version of org. Maybe put a (require 'ox-latex) in your initialisation as well. Thanks! Unfortunately, something seems very screwed up on my system. I installed OS X emacs 24.3.1, which included org-mode 7-something. Last November, I installed org-mode 8-something via git. Earlier this month, I updated to org-mode 8.2.5a via the emacs package installer. Somehow, in the course of this, I must have left remnants lying around which are incorrect. Now org-version tells me it's 8.2.5a. However, the variable org-latex-classes is not defined, so my .emacs file is failing. I'm trying to set this variable in order to use the org-article class, as described here: http://orgmode.org/worg/org-contrib/babel/examples/article-class.html (Earlier today, I explicitly renamed the original org-mode 7 directory that came with emacs so it would no longer be on the search path. I then explicitly added the org-mode 8.2.5a directory to the search path. I guess emacs package management still leaves of lot of manual cleaning up to do.) I'm open to any and all suggestions on how to clean this up. Thanks! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
Peter Davis p...@pfdstudio.com writes: [...] Ok, something weird is going on. This worked on my office MacBook, but when I try on the home one, also with org 8.2.3c, org-export-latex-classes is defined, but org-latex-classes is not. Any clues? this sounds like a mixed installation. do you have an old version of org lying around, maybe as part of the emacs installation? are the two systems running different versions of emacs? Both running emacs 24.3.1, same build Ummm, strange. What happens if you C-h v org-export-latex-classes RET e.g. does it show is a variable defined in some file? If so, where do you end up if you hit RET on that file name? -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.5g-539-g0b67b7
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
Eric S Fraga e.fr...@ucl.ac.uk writes: Peter Davis p...@pfdstudio.com writes: [...] Ok, something weird is going on. This worked on my office MacBook, but when I try on the home one, also with org 8.2.3c, org-export-latex-classes is defined, but org-latex-classes is not. Any clues? this sounds like a mixed installation. do you have an old version of org lying around, maybe as part of the emacs installation? are the two systems running different versions of emacs? Both running emacs 24.3.1, same build Ummm, strange. What happens if you C-h v org-export-latex-classes RET e.g. does it show is a variable defined in some file? If so, where do you end up if you hit RET on that file name? It does say the variable is define in org-latex.el, and clicking on that name takes me to the definition in org-latex.el.gz. Perhaps that one file is out of sync somehow? Strange. Thanks, -pd
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
Peter Davis p...@pfdstudio.com writes: Eric S Fraga e.fr...@ucl.ac.uk writes: Peter Davis p...@pfdstudio.com writes: [...] Ok, something weird is going on. This worked on my office MacBook, but when I try on the home one, also with org 8.2.3c, org-export-latex-classes is defined, but org-latex-classes is not. Any clues? this sounds like a mixed installation. do you have an old version of org lying around, maybe as part of the emacs installation? are the two systems running different versions of emacs? Both running emacs 24.3.1, same build Ummm, strange. What happens if you C-h v org-export-latex-classes RET e.g. does it show is a variable defined in some file? If so, where do you end up if you hit RET on that file name? It does say the variable is define in org-latex.el, and clicking on that name takes me to the definition in org-latex.el.gz. Perhaps that one file is out of sync somehow? Strange. This one file is probably part of the org-mode distributed with your emacs (that's why it is compressed: the files that you get through git, or tar or ELPA are uncompressed[fn:1]). You are picking that up before you pick up the org-latex.el from the 8.2.3c version of org-mode, presumably because you loaded it early before you changed the value of load-path to prefer the 8.2.3c version. What happens if you set load-path properly at the very beginning of your .emacs file? See section 1.2 of the org manual. Footnotes: [fn:1] I'm sure about git, but it's only my belief in the other two cases since I have never used either of those methods. -- Nick
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
Peter Davis p...@pfdstudio.com writes: [...] Ok, something weird is going on. This worked on my office MacBook, but when I try on the home one, also with org 8.2.3c, org-export-latex-classes is defined, but org-latex-classes is not. Any clues? this sounds like a mixed installation. do you have an old version of org lying around, maybe as part of the emacs installation? are the two systems running different versions of emacs? where does M-x find-library RET org RET take you? -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.4-322-gece429
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
Peter Davis p...@pfdstudio.com writes: [...] worked! (NB: the variable names are all lower case.) indeed. the mixed case LaTeX happened because I have latex as an abbrev for LaTeX and, unfortunately, -s terminates the word. I didn't notice the abbrev kicking in. sorry about any confusion! -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.4-322-gece429
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
On Sat, Jan 25, 2014 at 12:34:34PM +, Eric S Fraga wrote: Peter Davis p...@pfdstudio.com writes: [...] Ok, something weird is going on. This worked on my office MacBook, but when I try on the home one, also with org 8.2.3c, org-export-latex-classes is defined, but org-latex-classes is not. Any clues? this sounds like a mixed installation. do you have an old version of org lying around, maybe as part of the emacs installation? are the two systems running different versions of emacs? Both running emacs 24.3.1, same build where does M-x find-library RET org RET take you? locate-library shows ~/.emacs.d/elpa/org-20140104/org.elc on the home machine, and ~/.emacs.d/elpa/org-20131118/org.elc on the work machine. But both show org-version as 8.2.3c, and the work machine, with the seemingly older org folder, seems to have the newer variable names. Maybe .../org-mmdd/org.elc just reflects the installation date? Thanks, -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
Peter, p...@pfdstudio.com writes: Other ideas? Did you check the availability of org-article.cls in the TeX tree using `kpsewhich org-article.cls'? Do you have an entry for org-article in org-export-latex-classes? -- Michael
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
On Fri, Jan 24, 2014 at 01:58:19PM +0100, Michael Strey wrote: Peter, p...@pfdstudio.com writes: Other ideas? Did you check the availability of org-article.cls in the TeX tree using `kpsewhich org-article.cls'? Yes, I get: [pdavismbp15:~] pdavis% kpsewhich org-article.cls /usr/local/texlive/2012/../texmf-local/tex/latex/base/org-article.cls Do you have an entry for org-article in org-export-latex-classes? Yes, like this: (add-to-list 'org-export-latex-classes '(org-article \\documentclass{org-article} [NO-DEFAULT-PACKAGES] [PACKAGES] [EXTRA] (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) I don't even know if this error is coming from emacs or LaTeX. Thanks, -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
Peter Davis p...@pfdstudio.com writes: [...] Do you have an entry for org-article in org-export-latex-classes? Yes, like this: (add-to-list 'org-export-latex-classes '(org-article what version of org are you using? in org v8, this variable has been renamed to org-LaTeX-classes. HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.4-322-gece429
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
On Fri, Jan 24, 2014 at 04:32:38PM +, Eric S Fraga wrote: Peter Davis p...@pfdstudio.com writes: [...] Do you have an entry for org-article in org-export-latex-classes? Yes, like this: (add-to-list 'org-export-latex-classes '(org-article what version of org are you using? in org v8, this variable has been renamed to org-LaTeX-classes. Aha! I'm using org 8.2.3c, and substituting org-latex-classes and org-latex-packages-alist worked! (NB: the variable names are all lower case.) Thank you! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] LaTeX export: Unknown LaTeX class `org-article'
On Fri, Jan 24, 2014 at 01:54:20PM -0500, Peter Davis wrote: On Fri, Jan 24, 2014 at 04:32:38PM +, Eric S Fraga wrote: Peter Davis p...@pfdstudio.com writes: [...] Do you have an entry for org-article in org-export-latex-classes? Yes, like this: (add-to-list 'org-export-latex-classes '(org-article what version of org are you using? in org v8, this variable has been renamed to org-LaTeX-classes. Aha! I'm using org 8.2.3c, and substituting org-latex-classes and org-latex-packages-alist worked! (NB: the variable names are all lower case.) Ok, something weird is going on. This worked on my office MacBook, but when I try on the home one, also with org 8.2.3c, org-export-latex-classes is defined, but org-latex-classes is not. Any clues? Thanks! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com