* Error when exporting as Latex
@ 2009-07-10 9:56 Paul Mead
2009-07-10 10:11 ` Karl Maihofer
0 siblings, 1 reply; 4+ messages in thread
From: Paul Mead @ 2009-07-10 9:56 UTC (permalink / raw)
To: emacs-orgmode
Hi
I've only just spotted this error as I don't use the Latex export very
often. When I export as Latex either to file or buffer, I get the
following error:
org-export-latex-lists: Wrong number of arguments: #[(list)
"\b\"" [list org-list-to-generic (:splicep nil :ostart
"\\begin{enumerate}" :oend "\\end{enumerate}" :ustart "\\begin{itemize}"
:uend "\\end{itemize}" ...)] 3
("c:/bin/emacs-22.3/lisp/textmodes/org-export-latex.elc" . 39820)], 2
I've tested this on a file which is unchanged from when I last
successfully exported it, many org versions ago.
Org-mode version 6.28trans
GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
Any ideas?
Thanks, Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error when exporting as Latex
2009-07-10 9:56 Error when exporting as Latex Paul Mead
@ 2009-07-10 10:11 ` Karl Maihofer
2009-07-10 12:13 ` Paul Mead
2009-07-10 12:25 ` Sebastian Rose
0 siblings, 2 replies; 4+ messages in thread
From: Karl Maihofer @ 2009-07-10 10:11 UTC (permalink / raw)
To: Paul Mead; +Cc: emacs-orgmode
Others may correct me but I think this is the same issue I had
yesterday. The reason is that the two versions of Org - the one shipped
with your Emacs and the latest one you installed by yourself conflict in
some way. Some time ago the lisp-file for LaTeX export was renamed -
perhaps this is why you get an error. My solution was to rename the
Org-lisp-files in c:/bin/emacs-22.3/lisp/textmodes/. For example
org-export-latex.elc gets org-export-latex.elc_save and so on. After
that Emacs can only find the latest Org-version.
I then had to add
(require 'org-latex)
to my ~/.emacs. Hope that helps.
Karl
Paul Mead schrieb:
> Hi
>
> I've only just spotted this error as I don't use the Latex export very
> often. When I export as Latex either to file or buffer, I get the
> following error:
>
> org-export-latex-lists: Wrong number of arguments: #[(list)
> "\b\"" [list org-list-to-generic (:splicep nil :ostart
> "\\begin{enumerate}" :oend "\\end{enumerate}" :ustart "\\begin{itemize}"
> :uend "\\end{itemize}" ...)] 3
> ("c:/bin/emacs-22.3/lisp/textmodes/org-export-latex.elc" . 39820)], 2
>
> I've tested this on a file which is unchanged from when I last
> successfully exported it, many org versions ago.
>
> Org-mode version 6.28trans
> GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
>
> Any ideas?
>
> Thanks, Paul
>
>
>
> _______________________________________________
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error when exporting as Latex
2009-07-10 10:11 ` Karl Maihofer
@ 2009-07-10 12:13 ` Paul Mead
2009-07-10 12:25 ` Sebastian Rose
1 sibling, 0 replies; 4+ messages in thread
From: Paul Mead @ 2009-07-10 12:13 UTC (permalink / raw)
To: emacs-orgmode
Karl Maihofer <ignoramus@gmx.de> writes:
> Others may correct me but I think this is the same issue I had yesterday. The
> reason is that the two versions of Org - the one shipped with your Emacs and the
> latest one you installed by yourself conflict in some way. Some time ago the
> lisp-file for LaTeX export was renamed -
> perhaps this is why you get an error. My solution was to rename the
> Org-lisp-files in c:/bin/emacs-22.3/lisp/textmodes/. For example
> org-export-latex.elc gets org-export-latex.elc_save and so on. After that Emacs
> can only find the latest Org-version.
>
> I then had to add
>
> (require 'org-latex)
>
> to my ~/.emacs. Hope that helps.
> Karl
Karl
that worked, thanks!
It does beg the question of why these files aren't overwritten during
the installation from the git repo - I do the usual make clean && make
install && make doc routine. Is there something that I should be
amending before I do this?
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error when exporting as Latex
2009-07-10 10:11 ` Karl Maihofer
2009-07-10 12:13 ` Paul Mead
@ 2009-07-10 12:25 ` Sebastian Rose
1 sibling, 0 replies; 4+ messages in thread
From: Sebastian Rose @ 2009-07-10 12:25 UTC (permalink / raw)
To: Karl Maihofer; +Cc: emacs-orgmode, Paul Mead
Karl Maihofer <ignoramus@gmx.de> writes:
> Others may correct me but I think this is the same issue I had yesterday. The
> reason is that the two versions of Org - the one shipped with your Emacs and the
> latest one you installed by yourself conflict in some way. Some time ago the
> lisp-file for LaTeX export was renamed -
> perhaps this is why you get an error. My solution was to rename the
> Org-lisp-files in c:/bin/emacs-22.3/lisp/textmodes/. For example
> org-export-latex.elc gets org-export-latex.elc_save and so on. After that Emacs
> can only find the latest Org-version.
>
> I then had to add
>
> (require 'org-latex)
I think adding the git-Org's lisp directory to the load path
(add-to-list 'load-path "~/path/to/org/lisp/")
should suffice, provided the lisp files are compiled. In that case a
second line should do:
(require 'org-install)
But I'm not sure this works. I simply do
sh$ rm -rf /usr/local/share/emacs/23.50.XX/lisp/org
after upgrading emacs, hence I cannot test it now.
This aspect of the load-path mechanism is not very well documented.
Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-10 12:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10 9:56 Error when exporting as Latex Paul Mead
2009-07-10 10:11 ` Karl Maihofer
2009-07-10 12:13 ` Paul Mead
2009-07-10 12:25 ` Sebastian Rose
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).