1 #+TITLE: Testfile for OpenDocumentText Exporter
2 #+AUTHOR: Jambunathan K
3 #+EMAIL: kjambunathan@gmail.com
8 #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
9 #+OPTIONS: TeX:t LaTeX:dvipng skip:nil d:nil todo:t pri:nil tags:not-in-toc
11 #+EXPORT_SELECT_TAGS: export
12 #+EXPORT_EXCLUDE_TAGS: noexport
16 #+STARTUP: inlineimages overview
18 * ODT Exporter :project:hacking:
20 - [[http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-v1.1-html/OpenDocument-v1.1.html][ODF Specification]]
21 - [[http://books.evc-cit.info/odbook/book.html][OASIS OpenDocument Essentials (Book)]]
22 - [[http://wiki.services.openoffice.org/wiki/Documentation/OOo3_User_Guides/Writer_Guide][OpenOffice.org's Writer Guide]]
23 Downloadable pdf version are available [[http://wiki.services.openoffice.org/wiki/Documentation/OOo3_User_Guides/Chapters][here]]
26 - [[http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-schema-v1.1.rng][OpenDocument-schema-v1.1.rng]]
27 - Use [[http://www.thaiopensource.com/relaxng/trang.html][Trang]] to generate .rnc file from .rng file.
29 ** org-odt.el Bugs and Pending Items
30 *** TODO Cleanup on crash
31 When odt exporter throws an error the xml files are content.xml,
32 styles.xml etc are left staying around. Need to clean these up
34 *** TODO Fix all interactive commands
35 org-export-region-as-odt, org-export-as-odt-to-buffer etc.
36 *** TODO Fix issues reported by Christian Moe (first post)
37 SCHEDULED: <2011-01-31 Mon>
38 See [[http://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg01293.html][this post]].
40 - Fix cross references to Tables, Images etc. Ability to choose
41 other types names, like Chart, Figure, etc.
42 - Paragraphs were frequently split up, mid-sentence, by unwanted
43 paragraph breaks. Not sure whether this problem still exists
44 with the latest release of org-odt.
46 *** TODO Fix issues reported by Christian Moe (second post)
47 SCHEDULED: <2011-03-21 Mon>
48 See [[http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01379.html][this post]]
50 **** TODO Syntax highlighting of source code blocks
51 - Use htmlfontify.el maybe
53 **** TODO OrgVerse can be aesthetically more pleasing?
55 **** TODO Export of test.org with LaTeX:verbatim option
56 Equations under [[LaTeX Fragments]] go invisible
58 **** TODO Broken link within [[References to Dedicated Target]]
60 *** TODO Support for MathML
62 MathToWeb could be used for this. See [[http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01755.html][following post]].
64 *** TODO Validation failures with =HTML_CONTAINER_CLASS=
67 :HTML_CONTAINER_CLASS: custom
70 This section introduces two issues.
71 - A text:span element cannot occur within text:bookmark-ref. How
73 - text:style-name attribute for text:section cannot have
74 spaces. Explore styling of section in OpenOffice.
76 *** TODO Tables within a list-item
77 Tables cannot occur as list-item. OpenOffice Writer seems to
78 handle this scenario as follows: While encountering a table
79 terminate the top-level list. Insert formatted Table with the same
80 indentation as if it were a list-item of the original list. Once
81 the table is inserted, re-open the list and start emitting the
82 following list-items at the right nested level.
84 Fixing this bug would require that the list callbacks provide
85 information on the indentation level of the current list. Not sure
86 how to set the Table indentation properties?
93 | | formula debugger label | processing stage |
95 |---+------------------------+----------------------------|
96 | | Result: | output of Calc |
97 | | Format: | reformatting with =printf= |
103 *** DONE Support for Custom Styles
104 CLOSED: <2011-03-24 Thu>
106 - CLOSING NOTE <2011-03-24 Thu>
109 See following [[http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01512.html][post]]
111 *** TODO Emit Table Of Contents in Native Format
112 *** TODO Pull Changes from Master Branch
113 SCHEDULED: <2011-04-02 Sat .+21d>
115 *** TODO Merge with Master branch [0/3]
116 - [ ] Synchronize with Master branch
117 - [ ] Update Org's Info Manual
118 - [ ] Fix Byte-compilation, Docstrings, Copyright, license text
122 * Sample Content (Proof Of Concept)
130 /This is an italicized text/
134 _This is an underlined text_
138 =This is a code text=
142 ~This is a verbatim text~
146 +This is a strikethorugh text+
148 *** Super and Subscripts
150 Y = a_{0}X^{2}+a_{1}X^{1}+a_{2}
153 Here is a ndash --, a mdash ---, an ellipsis ....
155 and a horizontal line
156 ---------------------
164 Everything should be made as simple as possible,
165 but not any simpler -- Albert Einstein
170 Everything should be made as simple as possible,
171 but not any simpler -- Albert Einstein
176 Great clouds overhead
177 Tiny black birds rise and fall
186 This is a centered paragraph.
193 First line of the example.
194 Second line of the example.
199 : First line of the example.
200 : Second line of the example.
204 **** Emacs Lisp Block
205 #+begin_src emacs-lisp
208 (message "hello world"))
211 **** Org Source Block
215 , SCHEDULED: <2010-11-17 Wed>
218 ** Native HTML and ODT
223 This is a handwritten html para
229 <text:p> This is a handwritten odt para</text:p>
232 #+HTML: <div style="width:50%;float:left;">
242 #+html: <div style="width:50%;float:right;">
243 *Reversed English Alphabets*
247 *Reversed Greek Alphabets*
254 *** An Equation as Embeded MathML
255 A trigonometric equation embedded in *MathML*
259 <draw:frame draw:style-name="fr2" draw:name="Object3" text:anchor-type="as-char" svg:width="6.371cm" svg:height="0.483cm" draw:z-index="3">
261 <math xmlns="http://www.w3.org/1998/Math/MathML">
267 <mo stretchy="false">(</mo>
270 <mo stretchy="false">+</mo>
273 <mo stretchy="false">)</mo>
275 <mi mathvariant="normal">=</mi>
278 <mi mathvariant="italic">ACos</mi>
281 <mo stretchy="false">+</mo>
288 <annotation encoding="StarMath 5.0">sin (A+B) = sin ACos B + cos A sin B
301 This is a numbered list.
309 This is a bulleted list.
314 **** Description List
316 There is a nested description list down below
317 - Term-1 :: This is a definition for Term-1 which wraps around to
319 - Term-2 :: This is a definition for Term-2 which wraps around to
321 - Term-2.1 :: Definition for Term-2.1
322 - Term-2.2 :: Definition for Term-2.2
343 *** A Very Complex List
344 **** Lord of the Rings
346 My favorite scenes are (in this order)
347 1. The attack of the Rohirrim
348 2. Eowyn's fight with the witch king
349 + this was already my favorite scene in the book
350 + I really like Miranda Otto.
351 - Definition-1 :: Description-1
352 - Definition-2 :: Description-2
353 3. Peter Jackson being shot by Legolas
354 He makes a really funny face when it happens.
356 But in the end, no individual scenes matter but the film as a whole.
357 Important actors in this film are:
358 - Elijah Wood :: He plays Frodo
359 - Sean Austin :: He plays Sam, Frodo's friend. I still remember
360 him very well from his role as Mikey Walsh in
362 - Embedded Definition 1 :: Embedded Description 1
363 - Embedded Definition 2 :: Embedded Description 2
367 See the You can see the official logo of Orgmode here:
368 [[http://orgmode.org/img/org-mode-unicorn.png]]
371 **** A simple inlined image
373 [[./org-mode-unicorn.png]]
375 **** A simple image with caption and label
377 #+CAPTION: Unicorn Logo
379 [[./org-mode-unicorn.png]]
381 **** An image that is explicitly sized
382 #+CAPTION: Unicorn Logo
384 #+ATTR_ODT: (:width 10 :height 10)
385 [[./org-mode-unicorn.png]]
387 **** An image that is scaled
388 #+ATTR_ODT: (:scale 0.5)
389 [[./org-mode-unicorn.png]]
392 This is a clickable image [[http://orgmode.org][./org-mode-unicorn.png]]
395 *** Reference to an Image
396 Please refer to \ref{fig:1024} for further information.
401 # See org-format-latex-options
403 There is a equation down below.
415 If $a^2=b$ and \( b=2 \), then the solution must be either $$
416 a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
420 [[../../../lisp/org-html.el][This is a relative link to org-html.el]]
423 [[file:~/src/orgmode.org/contrib/odt/OrgOdtStyles.xml][This is an absolute link to styles file]]
428 **** Target with CUSTOMID
430 :CUSTOM_ID: aabbccddeeff
433 **** Dedicated Target Style1
434 # <<Dedicated Target>>
436 **** Dedicated Target Style2
438 There is a dedicated target at the end of this sentence -
439 <<Dedicated Target1>>.
441 **** <<<Radioed Target>>>
444 **** References to Fuzzy Target
446 This is a link to [[Fuzzy Target]].
448 **** References to CUSTOMID links
450 This is a link to [[#aabbccddeeff][Target with CUSTOMID]]. This is nodesc link to [[#aabbccddeeff]].
452 **** References to Dedicated Target
454 There is a link to nodesc [[Dedicated Target]] here. There is a link
455 to [[Dedicated%20Target][Jump to Dedicated Target]] here.
457 There is a link to [[Dedicated%20Target1][Dedicated Target1]] here.
459 **** References to Radioed Links
461 This section has references to Radioed Target. One more reference
465 *** A simple Orgmode Table
467 | EST | New York | -5:00 |
468 | IST | Madras | +5:30 |
469 | AST | Bahrain | +3:00 |
471 *** A formatted Orgmode Table
473 #+CAPTION: An Example Table
476 | Labels | C1 | C2 | C3 |
477 |------------+-------------+---------------+--------------|
479 | <r> | <l> | <c> | <r> |
480 | R1 (Right) | R1C1 (Left) | R1C2 (Center) | R1C3 (Right) |
481 | R2 | R2C1 | R2C2 | R2C3 |
482 |------------+-------------+---------------+--------------|
483 | R3 | R3C1 | R3C2 | R3C3 |
484 |------------+-------------+---------------+--------------|
485 | R5 | R5C1 | R5C2 | R5C3 |
486 | R6 | R6C1 | R6C2 | R6C3 |
487 |------------+-------------+---------------+--------------|
489 *** Table.el Table with no Spanning
490 +---------------+---------------+
492 +---------------+---------------+
495 +---------------+---------------+
498 +---------------+---------------+
499 |Three-Quarters |75% |
501 +---------------+---------------+
504 +---------------+---------------+
506 *** COMMENT Table.el Table with Spanning
508 +----------+---------------------+----------+
509 |Name |cmd calls |Percentage|
510 +----------+ +----------+
512 +----------+ +----------+
514 +----------+ +----------+
515 |total |203 118 |100% |
516 +----------+---------------------+----------+
518 *** COMMENT Another Table.el Table with Spanning
520 +----------+----------+
521 | Header 1 | Header 2 |
522 +----------+----------+
524 +----------+----------+
528 +----------+----------+
532 Please refer to \ref{table:10} for further information.
534 ** Footnote Definitions (Part 1)
536 [fn:XYZ] There is a link to [[http://Orgmode.org][Orgmode.org]].
541 Footnote [1]. One more reference to footnote [1].
545 Footnote named XYZ [fn:XYZ].
549 Inlined footnote [fn:: inline definition]
551 *** Named and Inlined Footnote
553 Named and Inlined footnote [fn:name: named definition]
556 # Footnote Definitions (Part 2)
557 [1] Quick brown fox jumps over the lazy dog. Quick brown fox jumps ove
561 Org is a mode for keeping notes, maintaining TODO lists, and doing
562 project planning with a fast and effective plain-text system.
564 Org develops organizational tasks around NOTES files that contain
565 lists or information about projects as plain text. Org is
566 implemented on top of Outline mode, which makes it possible to keep
567 the content of large files well structured. Visibility cycling and
568 structure editing help to work with the tree. Tables are easily
569 created with a built-in table editor. Org supports TODO items,
570 deadlines, timestamps, and scheduling. It dynamically compiles
571 entries into an agenda that utilizes and smoothly integrates much of
572 the Emacs calendar and diary. Plain text URL-like links connect to
573 websites, emails, Usenet messages, BBDB entries, and any files
574 related to the projects. For printing and sharing of notes, an Org
575 file can be exported as a structured ASCII file, as HTML, or (TODO
576 and agenda items only) as an iCalendar file. It can also serve as a
577 publishing tool for a set of linked web pages.
579 As a project planning environment, Org works by adding metadata to
580 outline nodes. Based on this data, specific entries can be extracted
581 in queries and create dynamic agenda views.
583 Org mode contains the Org Babel environment which allows you to work
584 with embedded source code blocks in a file, to facilitate code
585 evaluation, documentation, and tangling.
587 Org's automatic, context-sensitive table editor with spreadsheet
588 capabilities can be integrated into any major mode by activating the
589 minor Orgtbl mode. Using a translation step, it can be used to
590 maintain tables in arbitrary file types, for example in LaTeX. The
591 structure editing and list creation capabilities can be used outside
592 Org with the minor Orgstruct mode.
594 Org keeps simple things simple. When first fired up, it should feel
595 like a straightforward, easy to use outliner. Complexity is not
596 imposed, but a large amount of functionality is available when you
597 need it. Org is a toolbox and can be used in different ways and for
598 different ends, for example:
600 - an outline extension with visibility cycling and structure editing
601 - an ASCII system and table editor for taking structured notes
603 - a full agenda and planner with deadlines and work scheduling
604 - an environment in which to implement David Allen's GTD system
605 - a simple hypertext system, with HTML and LaTeX export
606 - a publishing tool to create a set of interlinked webpages
607 - an environment for literate programming
609 There is a website for Org which provides links to the newest
610 version of Org, as well as additional information, frequently asked
611 questions (FAQ), links to tutorials, etc. This page is located at