开发者

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 p开发者_如何学Casted 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.


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".


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


I've converted loads of Word documents into Org files. It takes minutes to do it by hand.

If you want cross-references, use internal links (4.2 in the current manual).

The * and ** style headings are always likely to be there in Org. Think of the use case where exports are compiled from #+INCLUDEd files, or you have done a selective export using tags. Any kind of single sourcing technology isn't going to display the numbering.


There is a ruby gem which converts doc to md. With pandoc you can convert to org.

https://github.com/benbalter/word-to-markdown

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜