395a816a18
* lisp/org-inlinetask.el (org-inlinetask-export-templates): Fixed template for html so that the exported file is valid xhtml. Added template for odt. (org-inlinetask-export-handler): Fix typo in the regexp that trims content. Make sure that the content is flanked by paragraph boundaries on either side. * lisp/org-html.el (org-export-html-style-default): Add style for inlinetask. * contrib/lisp/org-xhtml.el (org-export-xhtml-style-default): Add style for inlinetask. * contrib/odt/styles/OrgOdtStyles.xml: Added following custom styles: OrgInlineTaskHeading and OrgInlineTaskFrame. * contrib/lisp/org-odt.el (org-odt-format-textbox) (org-odt-format-inlinetask): Added Refer following threads: 1. http://lists.gnu.org/archive/html/emacs-orgmode/2011-08/msg00238.html 2. http://lists.gnu.org/archive/html/emacs-orgmode/2011-08/msg00154.html Thanks to Suvayu Ali for reporting this issue and suggesting improvements. |
||
---|---|---|
.. | ||
BasicODConverter | ||
OASIS | ||
etc/schema | ||
styles | ||
README.org |
README.org
OpenDocumentText Exporter for Orgmode
- Summary
- Compatibility with Official Orgmode
- Implementation Details
- Notes for Reviewers and Fellow Developers
- Package Layout
- Obtaining OpenDocumentExporter
- Test driving the Exporter
- Bug Reports and Feature Requests
- Possible Feature Enhacmentes
- Frequently Asked Questions
Summary
This package adds support for exporting of Orgmode files to OpenDocumentText.
The latest version of this document is available at
Compatibility with Official Orgmode
This release is is as good as org-20110613 (git commit c4737ae
)
with only the following changes left out.
git commit | Description |
---|---|
2f50b1 | add an alternate for inline images |
49e6bc | Fix for html & docbook export of desc list items |
a201b1 | Fix HTML export of footnotes with lists, tables, quotes. |
9f57b8 | Mixed export of numbered and unnumbered sections in HTML |
438536 | Revert "Change underscores to hyphens in section labels" |
33bae1 | Revert "Fix markup problems when using references in source fragments" |
fa12fe | Revert "org-html.el: Fix export of table.el tables." |
f72541 | Revert "HTML export – Allow to change the name of the global DIV" |
Implementation Details
This package enhances Orgmode in the following manner:
- A new line-oriented generic exporter
- All new html exporter re-implemented as a plugin to (1).
- A odt backend as a plugin to (1).
Feature (1) is provided by org-lparse.el
.
Feture (2) is provided by lisp/org-html.el
.
Feature (3) is provided by lisp/org-odt.el
.
The new html exporter is feature-compatible with the official html exporter.
Notes for Reviewers and Fellow Developers
org-lparse
is the entry point for the generic exporter and
drives html and odt backends.
org-do-lparse
is the genericized version of the original
org-export-as-html
routine.
C-h v org-lparse-native-backends
is a good starting point for
exploring the generic exporter.
Package Layout
- odt/README.org
-
odt/lisp/
- org-lparse.el
- Generic line-oriented exporter
- org-xhtml.el
- All new XHTML exporter
- org-odt.el
- The OpenDocumentText backend
-
contrib/odt/tests
- org-mode-unicorn.png
- test.org
- Sample files for validating the exporter
-
contrib/odt/styles
- OrgOdtAutomaticStyles.xml
- The default styles.xml file used by the OpenDocumentText exporter.
- OrgOdtStyles.xml
- Automatic styles inserted in to content.xml
-
odt/BasicODConverter/
- BasicODConverter-0.8.0.oxt
- OpenOffice extension for converting between various file formats supported by OpenOffice. A poor clone of unoconv.
- Filters.bas
- Main.bas
- StarBasic files that contribute to the above extension.
-
odt/OASIS
- OpenDocument-v1.2-cs01-schema.rng
- Copy of
http://docs.oasis-open.org/office/v1.2/cs01/OpenDocument-v1.2-cs01-schema.rng
- OpenDocument-v1.2-cs01-manifest-schema.rng
- Copy of
http://docs.oasis-open.org/office/v1.2/cs01/OpenDocument-v1.2-cs01-manifest-schema.rng
- OpenDocument-schema-v1.1.rng
- Copy of
http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-schema-v1.1.rng
-
odt/etc/schema
- od-schema-v1.1.rnc
- od-manifest-schema-v1.2-cs01.rnc
- od-schema-v1.2-cs01.rnc
- rnc files for above rng files. Generated using trang.
- schemas.xml
- schema location file for auto validating the XML
files that form part of an OpenDocument
file. Refer
C-h f rng-set-schema-file-and-validate
FILENAME andC-h f rng-what-schema
.
All the above files have been submitted for inclusing in Emacs proper. See http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00671.html
Obtaining OpenDocumentExporter
The OpenDocumentExporter could be downloaded by one of the following methods:
git checkout
- Checkout URL
- http://repo.or.cz/r/org-mode/org-jambu.git
- Web URL
- http://repo.or.cz/w/org-mode/org-jambu.git/
Conventional tar
ELPA Tarball
The tarball is distributed as an org-odt package (for example
org-odt-20110519.tar
).
You need to have an Org build >= org-20110626 for the exporter to function properly.
The most hassle-free way to download and install org-odt is through ELPA.
More help on all the above methods are available at http://orgmode.org/worg/org-faq.html.
Test driving the Exporter
Once the package is installed in to your load-path, use
C-u M-x org-odt-unit-test
to visit an example org file bundled
with this package.
- Use
C-c C-e O
to export the buffer to OpenDocumentText. - Use
M-x org-lparse
orM-x org-lparse-and-open
for exporting to MS doc format. - Use
M-x org-export-convert
on a buffer visiting odt file.
Steps 2 and 3 require that a converter be installed on the system. See this FAQ entry for more information on this.
- Misc. Info
- This package re-implements HTML exporter as well. You will see the following warning message "Exporting to HTML using org-lparse…" while you are exporting using new HTML exporter.
- Hint
- If you are using BasicODConverter, you can use steps 2 and 3 for exporting an Org outline to presentation formats like OpenOffice Impress (odp) and Microsoft Powerpoint (ppt)
- Know Issues
- If you have dvipng installed it is possible that the exported odt file has embedded images clobbered. This is not a bug in the exporter but seems like a bug in the package installer. See http://lists.gnu.org/archive/html/bug-gnu-emacs/2011-06/msg00445.html.
Bug Reports and Feature Requests
Send in your bug report and feature requests to
emacs-orgmode@gnu.org
or to kjambunathan at gmail dot com
.
Please search the Mailing List Archive -
http://lists.gnu.org/archive/html/emacs-orgmode/ for org-odt
before posting a question or a request either to me or the mailing
list.
Posting to mailing list is preferable. It is possible that your post helps another user out there.
Possible Feature Enhacmentes
TODO Support for fontification of babel blocks
May require enhancements to htmlfontify or htmlize packages.
TODO Enhance table.el to support Odt format
TODO Add support for exporting to odp
Use OpenOffice's File->Send->{Outline to Presentation | AutoAbstract to Presentation}. Also see
TODO Support for generating MathML for LaTeX fragments
Frequently Asked Questions
What features does the OpenDocumentExporter support?
At the moment, the exporter supports the following most commonly used features of Org
- Various Character Styles
- Various Paragraph Styles (including Source Blocks)
- Embedded ODT
- Embedded MathML
- Numbered, Bulleted and Description lists
- Embedding and Resizing of Images including embedding of LaTeX fragments
- Fuzzy, Dedicated and Radio Targets and Links
- Tables
- Footnotes
- Outline Numbering and Table Of Contents
- Special markups for elements like TODOs, Timestamps and Tags
The exporter is quite usable and stable.
Is OpenDocumentExporter part of Orgmode or Emacs?
Not yet. I have expressed my willingness to merge this package in
to official Orgmode and thus to Emacs. The current maintainer of
Orgmode - Bastien Guerry bzg at gnu.org
- has agreed to consider
the package for integration. If you are interested in having this
package merged with Orgmode send your requests to the maintainer.
For the sake of record, I am the sole author of the changes included in this package and I am consenting to have this work or derivative works make it's way into Emacs proper. My FSF copyright assignment number is #618390.
How does it compare with official Orgmode
For information about the latest release see this. For general information refer http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00751.html.
How can I export via command line?
See the following post http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00952.html.
How can I export to doc or docx format?
Here are the steps.
Install the converter program.
There are numerous converters that are available: unoconv
,
PyODConverter
, JODConverter
etc etc.
org-odt is distributed with it's own converter
BasicODConverter
. It is Basic not only because it is
implemented in StarBasic but is a a very basic clone of unoconv.
BasicODConverter
Install BasicODConverter as a OpenOffice Extension.
unoconv
If you prefer using unoconv as the converter add the following
snippet to your .emacs
.
;; not tested with unoconv
(require 'org-html)
(setq org-export-convert-process '("unoconv" "-f" "%f" "-o" "%d" "%i"))
Convert using new interactive functions
Export an Org buffer
Use M-x org-lparse
or M-x org-lparse-and-open
and follow
the prompts. Use TAB for completion if you are not already using
ido.
Additional Note
- If you are using BasicODConverter you can export an Org file
to
odp
orppt
formats. - You can convert csv files to xls format
- OpenOffice doesn't ship with mediawiki or docbook export filters by default. So make sure that these extensions are installed before trying out these converters.
Export an existing file
Use M-x org-export-convert
to convert an existing file.