Microsoft Word for Org Mode

I am trying to put a Microsoft Word document in emacs using org-mode. I copied a Word document and pasted it into emacs. I like to get headers like 7.1.2.4 in org-mode format. and then associate the TOC with the appropriate headers. How can i do this? Any suggestions? Has any programming language such as Perl done this?

Thanks.

+6
source share
4 answers

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

  • Use Openoffice / Libreoffice to create .odt from your .doc.

  • Use odt2org to get .org.

About the headlines: I'm not quite sure I understand you.

  • org-mode includes org-toc.el, which provides a separate buffer using the TOC of your current document (for example, in Reftex). All entries there are already associated with individual headers. In addition, the exported document will include TOC by default without your intervention.

  • Orgmode does not support auto-numbered headers (for now). However, if you want to export your document in html, docbook, latex or PDF, your headers will look numbered and nested (you can configure the settings quite a lot).

I doubt that you will get your expected result exclusively automatically, but it should work 70% automatically, especially if you have latex installed and you just want to have a beautiful appearance at the end. Convert doc to odt, convert odt to org, open and type "Cc Ce d".

+9
source

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

+1
source

I have converted many Word documents to Org files. It takes a few minutes to do it manually.

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

* And ** style headers can always be in Org. Think about where the export is compiled from # + INCLUDEd files, or you did a custom export using tags. Any single search technology does not display numbering.

0
source

There is a ruby ​​pearl that converts doc to md. With pandoc you can convert to org.

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

0
source

Source: https://habr.com/ru/post/894294/


All Articles