hsitz / VimOrganizer

VimOrganizer is partly a clone of Emacs' Org-mode, and partly a front end to Org-mode itself. Do Org in Vim.
http://vimeo.com/31531308
518 stars 67 forks source link

Use org-latex-export-to-latex instead of org-export-as-latex when exporting via emacs #57

Open kassick opened 11 years ago

hsitz commented 11 years ago

kasik --

Thanks for these changes. I wasn't aware of any problems. I haven't kept up with with org-mode much, but I notice that recent Org 8.0 has significant changes in export and the export dispatcher. At the moment I don't have Emacs installed on any of my machines, so I'm wondering:

(1) were these changes necessary to make latex and pdf export work with Org 8.0, and

(2) do latex and pdf export still work fine with these changes on pre-8.0 Org?

I guess basically I'm asking if these 'org-latex-export....' commands exist previous to Org 8.0.

Also, seems like I'd also need to change the 'd' choice of 'export to pdf and automatically open pdf viewer' .

Thanks,

Herb

On Wed, Apr 24, 2013 at 9:25 AM, kassick notifications@github.com wrote:


You can merge this Pull Request by running

git pull https://github.com/kassick/VimOrganizer master

Or view, comment on, or merge it at:

https://github.com/hsitz/VimOrganizer/pull/57 Commit Summary

  • Fix problem with export-as-latex emacs command

File Changes

  • M ftplugin/org.vimhttps://github.com/hsitz/VimOrganizer/pull/57/files#diff-0(6)

Patch Links:

kassick commented 11 years ago

Hello, I'm a complete emacs noob (have kept the hell away from it for the past 15 years) and I've just recently been introduced to orgmode, so I'm not all that sure of what I'm doing ;) I've got org 8.0.1 from ELPA (org-20130422). Haven't tested yet with some earlier version of orgmode; shall test it soon. The ``export-as-latex´´ command gives me the following error with org-8.0.1:

ERROR: Symbol's value as variable is void: org-export-latex-default-packages-alist

Going though http://orgmode.org/Changes_old.html I guess I could still use the original command if I had set the variable to nil and granted all the packages I needed were in the .org file header.

But indeed, if the commands do not exist in older orgmode versions, they should be controlled by some variable, maybe set in vimorganizer initialization after asking emacs what's the version of org (can emacs do it?).

There is no org-latex-export-to-pdf-and-open , I'm not sure yet how to implement the 'd' option yet.

hsitz commented 11 years ago

On Wed, Apr 24, 2013 at 10:05 AM, kassick notifications@github.com wrote:

I've got org 8.0.1 from ELPA (org-20130422). Haven't tested yet with some earlier version of orgmode; shall test it soon. The ``export-as-latex´´ command gives me the following error with org-8.0.1:

ERROR: Symbol's value as variable is void: org-export-latex-default-packages-alist Going though http://orgmode.org/Changes_old.html I guess I could still use the original command if I had set the variable to nil and granted all the packages I needed were in the .org file header.

But indeed, if the commands do not exist in older orgmode versions, they should be controlled by some variable, maybe set in vimorganizer initialization after asking emacs what's the version of org (can emacs do it?).

There is no org-latex-export-to-pdf-and-open , I'm not sure yet how to implement the 'd' option yet.

kassick -- I just noticed a few days ago that Org 8.0 was out and had some major changes. I had wondered whether it might break something in the VimOrganizer interface but hadn't checked into it yet. I'll get 8.0 installed and try to get any issues I find sorted out this week.

Thanks for bringing this to my attention.

-- Herb