Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Word to Org-mode

I am trying to put the Microsoft Word document in emacs using org-mode. I have copied the Word Document and pasted in emacs. I like to achieve the headings like 7.1.2.4 in org-mode format. and then link the TOC to appropriate headings. How I can do that? Any suggestions? Any programming language like Perl has done it?

Thanks.

like image 974
aartist Avatar asked Aug 04 '11 14:08

aartist


2 Answers

There is ODT2ORG (https://bitbucket.org/josemaria.alkala/odt2org/wiki/Home) which lets you import odt files in org-mode.

  1. Use Openoffice/Libreoffice to produce an .odt from your .doc.

  2. Use odt2org to get an .org.

About the headings: I am not entirely sure I understand you.

  • there is org-toc.el included in org-mode that provides a seperate buffer with a TOC of your current document (like in Reftex). All the entries there are already links to the individual headings. Also, an exported document will have a TOC included by default without your intervention.

  • Orgmode does not support automatically numbered headings (yet). However, if you want to export your document to html, docbook, latex, or pdf, your headings will appear numbered and nested (you can tweak the settings quite a lot).

I doubt that you will get your intended result purely automatically but it should work 70% automatically, especially if you have latex installed and simply want to have a good-looking pdf in the end. Convert doc to odt, convert odt to org, open and type "C-c C-e d".

like image 91
certainly Avatar answered Sep 20 '22 09:09

certainly


Another option: Save as an HTML file, then use Pandoc to convert the HTML to an .org file.

like image 26
D. C. Toedt Avatar answered Sep 21 '22 09:09

D. C. Toedt