* LaTeX export: Unknown LaTeX class `org-article'
@ 2014-01-24 12:19 Peter Davis
2014-01-24 12:58 ` Michael Strey
0 siblings, 1 reply; 14+ messages in thread
From: Peter Davis @ 2014-01-24 12:19 UTC (permalink / raw)
To: emacs-orgmode
I'm trying to get org-article working so I can create PDFs with
something other than Computer Modern, but I keep getting the error
Unknown LaTeX class `org-article'
when I use this in the file:
#+LaTeX_CLASS: org-article
#+LaTeX_CLASS_OPTIONS:
[article,letterpaper,times,12pt,listings-bw,microtype]
I've been following the instructions here:
http://orgmode.org/worg/org-contrib/babel/examples/article-class.html
but I haven't found any way past this error.
I also found the variable org-export-latex-packages-alist was not
defined, so perhaps that's a clue to some other piece I'm missing? I
added this to get around that:
(unless (boundp 'org-export-latex-packages-alist)
(setq org-export-latex-packages-alist nil))
Other ideas?
Thanks!
-pd
--
----
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-24 12:19 LaTeX export: Unknown LaTeX class `org-article' Peter Davis
@ 2014-01-24 12:58 ` Michael Strey
2014-01-24 14:21 ` Peter Davis
0 siblings, 1 reply; 14+ messages in thread
From: Michael Strey @ 2014-01-24 12:58 UTC (permalink / raw)
To: emacs-orgmode
Peter,
pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-24 12:58 ` Michael Strey
@ 2014-01-24 14:21 ` Peter Davis
2014-01-24 16:32 ` Eric S Fraga
0 siblings, 1 reply; 14+ messages in thread
From: Peter Davis @ 2014-01-24 14:21 UTC (permalink / raw)
To: emacs-orgmode
On Fri, Jan 24, 2014 at 01:58:19PM +0100, Michael Strey wrote:
> Peter,
>
> pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-24 14:21 ` Peter Davis
@ 2014-01-24 16:32 ` Eric S Fraga
2014-01-24 18:54 ` Peter Davis
0 siblings, 1 reply; 14+ messages in thread
From: Eric S Fraga @ 2014-01-24 16:32 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-24 16:32 ` Eric S Fraga
@ 2014-01-24 18:54 ` Peter Davis
2014-01-25 0:30 ` Peter Davis
2014-01-25 12:31 ` Eric S Fraga
0 siblings, 2 replies; 14+ messages in thread
From: Peter Davis @ 2014-01-24 18:54 UTC (permalink / raw)
To: emacs-orgmode
On Fri, Jan 24, 2014 at 04:32:38PM +0000, Eric S Fraga wrote:
> Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-24 18:54 ` Peter Davis
@ 2014-01-25 0:30 ` Peter Davis
2014-01-25 12:34 ` Eric S Fraga
2014-01-25 12:31 ` Eric S Fraga
1 sibling, 1 reply; 14+ messages in thread
From: Peter Davis @ 2014-01-25 0:30 UTC (permalink / raw)
To: emacs-orgmode
On Fri, Jan 24, 2014 at 01:54:20PM -0500, Peter Davis wrote:
> On Fri, Jan 24, 2014 at 04:32:38PM +0000, Eric S Fraga wrote:
> > Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-24 18:54 ` Peter Davis
2014-01-25 0:30 ` Peter Davis
@ 2014-01-25 12:31 ` Eric S Fraga
1 sibling, 0 replies; 14+ messages in thread
From: Eric S Fraga @ 2014-01-25 12:31 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-25 0:30 ` Peter Davis
@ 2014-01-25 12:34 ` Eric S Fraga
2014-01-25 15:34 ` Peter Davis
0 siblings, 1 reply; 14+ messages in thread
From: Eric S Fraga @ 2014-01-25 12:34 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-25 12:34 ` Eric S Fraga
@ 2014-01-25 15:34 ` Peter Davis
2014-01-26 12:05 ` Eric S Fraga
0 siblings, 1 reply; 14+ messages in thread
From: Peter Davis @ 2014-01-25 15:34 UTC (permalink / raw)
To: emacs-orgmode
On Sat, Jan 25, 2014 at 12:34:34PM +0000, Eric S Fraga wrote:
> Peter Davis <pfd@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-yyyymmdd/org.elc" just reflects the installation date?
Thanks,
-pd
--
----
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-25 15:34 ` Peter Davis
@ 2014-01-26 12:05 ` Eric S Fraga
2014-01-26 13:51 ` Peter Davis
0 siblings, 1 reply; 14+ messages in thread
From: Eric S Fraga @ 2014-01-26 12:05 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-26 12:05 ` Eric S Fraga
@ 2014-01-26 13:51 ` Peter Davis
2014-01-26 20:54 ` Nick Dokos
2014-01-27 9:55 ` Eric S Fraga
0 siblings, 2 replies; 14+ messages in thread
From: Peter Davis @ 2014-01-26 13:51 UTC (permalink / raw)
To: emacs-orgmode
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-26 13:51 ` Peter Davis
@ 2014-01-26 20:54 ` Nick Dokos
2014-01-27 9:55 ` Eric S Fraga
1 sibling, 0 replies; 14+ messages in thread
From: Nick Dokos @ 2014-01-26 20:54 UTC (permalink / raw)
To: emacs-orgmode
Peter Davis <pfd@pfdstudio.com> writes:
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-26 13:51 ` Peter Davis
2014-01-26 20:54 ` Nick Dokos
@ 2014-01-27 9:55 ` Eric S Fraga
2014-01-27 12:49 ` Peter Davis
1 sibling, 1 reply; 14+ messages in thread
From: Eric S Fraga @ 2014-01-27 9:55 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: LaTeX export: Unknown LaTeX class `org-article'
2014-01-27 9:55 ` Eric S Fraga
@ 2014-01-27 12:49 ` Peter Davis
0 siblings, 0 replies; 14+ messages in thread
From: Peter Davis @ 2014-01-27 12:49 UTC (permalink / raw)
To: emacs-orgmode
On Mon, Jan 27, 2014 at 09:55:52AM +0000, Eric S Fraga wrote:
> Peter Davis <pfd@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
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-01-27 12:50 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-24 12:19 LaTeX export: Unknown LaTeX class `org-article' Peter Davis
2014-01-24 12:58 ` Michael Strey
2014-01-24 14:21 ` Peter Davis
2014-01-24 16:32 ` Eric S Fraga
2014-01-24 18:54 ` Peter Davis
2014-01-25 0:30 ` Peter Davis
2014-01-25 12:34 ` Eric S Fraga
2014-01-25 15:34 ` Peter Davis
2014-01-26 12:05 ` Eric S Fraga
2014-01-26 13:51 ` Peter Davis
2014-01-26 20:54 ` Nick Dokos
2014-01-27 9:55 ` Eric S Fraga
2014-01-27 12:49 ` Peter Davis
2014-01-25 12:31 ` Eric S Fraga
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.