1 #+TITLE: Testfile for OpenDocumentText Exporter
2 #+AUTHOR: Jambunathan K
3 #+EMAIL: kjambunathan@gmail.com
8 #+OPTIONS: H:4 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
9 #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
11 #+EXPORT_SELECT_TAGS: export
12 #+EXPORT_EXCLUDE_TAGS: noexport
19 # Use C-c C-e O or C-c C-e o to export this buffer to OpenDocumentText
21 * ODT Exporter :project:hacking:
23 - [[http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-v1.1-html/OpenDocument-v1.1.html][ODF Specification]]
24 - [[http://books.evc-cit.info/odbook/book.html][OASIS OpenDocument Essentials (Book)]]
25 - [[http://wiki.services.openoffice.org/wiki/Documentation/OOo3_User_Guides/Writer_Guide][OpenOffice.org's Writer Guide]]
26 Downloadable pdf version are available [[http://wiki.services.openoffice.org/wiki/Documentation/OOo3_User_Guides/Chapters][here]]
29 - [[http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-schema-v1.1.rng][OpenDocument-schema-v1.1.rng]]
30 - Use [[http://www.thaiopensource.com/relaxng/trang.html][Trang]] to generate .rnc file from .rng file.
32 ** org-odt.el Bugs and Pending Items
33 *** TODO Links to Listified Headlines are not generated
34 Export this documen with H:3 and note that link references under
35 [[References]] are broken. To circumvent this issue change default
36 settings from H:3 to H:4 for now.
37 *** TODO Cleanup on crash
38 When odt exporter throws an error the xml files are content.xml,
39 styles.xml etc are left staying around. Need to clean these up
41 *** TODO Fix all interactive commands
42 org-export-region-as-odt, org-export-as-odt-to-buffer etc.
44 emacs --batch -L "~/src/org-jambu/lisp" --eval "(progn (require 'org-odt) (setq org-export-headline-levels 3) (toggle-debug-on-error))" --visit=draftcopy.org --funcall org-export-as-odt-batch
47 *** TODO Fix issues reported by Christian Moe (first post)
48 SCHEDULED: <2011-01-31 Mon>
49 See [[http://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg01293.html][this post]].
51 - Fix cross references to Tables, Images etc. Ability to choose
52 other types names, like Chart, Figure, etc.
53 - Paragraphs were frequently split up, mid-sentence, by unwanted
54 paragraph breaks. Not sure whether this problem still exists
55 with the latest release of org-odt.
57 *** TODO Fix issues reported by Christian Moe (second post)
58 SCHEDULED: <2011-03-21 Mon>
59 See [[http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01379.html][this post]]
61 **** TODO Syntax highlighting of source code blocks
62 - Use htmlfontify.el maybe
64 **** TODO OrgVerse can be aesthetically more pleasing?
66 **** TODO Export of test.org with LaTeX:verbatim option
67 Equations under [[LaTeX Fragments]] go invisible
69 **** TODO Broken link within [[References to Dedicated Target]]
71 *** TODO Support for MathML
73 MathToWeb could be used for this. See [[http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01755.html][following post]].
75 *** TODO Validation failures with =HTML_CONTAINER_CLASS=
78 :HTML_CONTAINER_CLASS: custom
81 This section introduces two issues.
82 - A text:span element cannot occur within text:bookmark-ref. How
84 - text:style-name attribute for text:section cannot have
85 spaces. Explore styling of section in OpenOffice.
87 *** TODO Tables within a list-item :noexport:
88 Tables cannot occur as list-item. OpenOffice Writer seems to
89 handle this scenario as follows: While encountering a table
90 terminate the top-level list. Insert formatted Table with the same
91 indentation as if it were a list-item of the original list. Once
92 the table is inserted, re-open the list and start emitting the
93 following list-items at the right nested level.
95 Fixing this bug would require that the list callbacks provide
96 information on the indentation level of the current list. Not sure
97 how to set the Table indentation properties?
104 | | formula debugger label | processing stage |
106 |---+------------------------+----------------------------|
107 | | Result: | output of Calc |
108 | | Format: | reformatting with =printf= |
114 *** DONE Support for Custom Styles
115 CLOSED: <2011-03-24 Thu>
117 - CLOSING NOTE <2011-03-24 Thu>
120 See following [[http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01512.html][post]]
122 *** TODO Emit Table Of Contents in Native Format
123 *** TODO Pull Changes from Master Branch
124 SCHEDULED: <2011-04-02 Sat .+21d>
126 *** TODO Merge with Master branch [0/3]
127 - [ ] Synchronize with Master branch
128 - [ ] Update Org's Info Manual
129 - [ ] Fix Byte-compilation, Docstrings, Copyright, license text
133 * Sample Content (Proof Of Concept)
141 /This is an italicized text/
145 _This is an underlined text_
149 =This is a code text=
153 ~This is a verbatim text~
157 +This is a strikethorugh text+
159 *** Super and Subscripts
161 Y = a_{0}X^{2}+a_{1}X^{1}+a_{2}
164 Here is a ndash --, a mdash ---, an ellipsis ....
166 and a horizontal line
167 ---------------------
171 \alpha^{n} = \beta^{n} + \gamma^{n}
179 Everything should be made as simple as possible,
180 but not any simpler -- Albert Einstein
185 Everything should be made as simple as possible,
186 but not any simpler -- Albert Einstein
191 Great clouds overhead
192 Tiny black birds rise and fall
201 This is a centered paragraph.
208 First line of the example.
209 Second line of the example.
214 : First line of the example.
215 : Second line of the example.
219 **** Emacs Lisp Block
220 #+begin_src emacs-lisp
223 (message "hello world"))
226 **** Org Source Block
230 , SCHEDULED: <2010-11-17 Wed>
233 **** Advanced Source Blocks
234 Advanced source blocks takes the following options
235 - [-+]n: restart or continue numbering
238 - i: preserve indentation
242 #+BEGIN_SRC emacs-lisp -n
243 (save-excursion (ref:sc)
245 (goto-char (point-min)) (ref:jump)
248 In line [[(sc)]] we remember the current position. [[(jump)][Line (jump)]] jumps
251 **** Text Areas in HTML export
253 #+BEGIN_EXAMPLE -t -w 40
259 ** Native HTML and ODT
264 This is a handwritten html para
270 <text:p> This is a handwritten odt para</text:p>
273 #+HTML: <div style="width:50%;float:left;">
283 #+html: <div style="width:50%;float:right;">
284 *Reversed English Alphabets*
288 *Reversed Greek Alphabets*
295 *** An Equation as Embeded MathML
296 A trigonometric equation embedded in *MathML*
300 <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">
302 <math xmlns="http://www.w3.org/1998/Math/MathML">
308 <mo stretchy="false">(</mo>
311 <mo stretchy="false">+</mo>
314 <mo stretchy="false">)</mo>
316 <mi mathvariant="normal">=</mi>
319 <mi mathvariant="italic">ACos</mi>
322 <mo stretchy="false">+</mo>
329 <annotation encoding="StarMath 5.0">sin (A+B) = sin ACos B + cos A sin B
342 This is a numbered list.
350 This is a bulleted list.
355 **** Description List
357 There is a nested description list down below
358 - Term-1 :: This is a definition for Term-1 which wraps around to
360 - Term-2 :: This is a definition for Term-2 which wraps around to
362 - Term-2.1 :: Definition for Term-2.1
363 - Term-2.2 :: Definition for Term-2.2
384 *** A Very Complex List
385 **** Lord of the Rings
387 My favorite scenes are (in this order)
388 1. The attack of the Rohirrim
389 2. Eowyn's fight with the witch king
390 + this was already my favorite scene in the book
391 + I really like Miranda Otto.
392 - Definition-1 :: Description-1
393 - Definition-2 :: Description-2
394 3. Peter Jackson being shot by Legolas
395 He makes a really funny face when it happens.
397 But in the end, no individual scenes matter but the film as a whole.
398 Important actors in this film are:
399 - Elijah Wood :: He plays Frodo
400 - Sean Austin :: He plays Sam, Frodo's friend. I still remember
401 him very well from his role as Mikey Walsh in
403 - Embedded Definition 1 :: Embedded Description 1
404 - Embedded Definition 2 :: Embedded Description 2
408 See the You can see the official logo of Orgmode here:
409 [[http://orgmode.org/img/org-mode-unicorn.png]]
412 **** A simple inlined image
414 [[./org-mode-unicorn.png]]
416 **** A simple image with caption and label
418 #+CAPTION: Unicorn Logo
420 [[./org-mode-unicorn.png]]
422 **** An image that is explicitly sized
423 #+CAPTION: Unicorn Logo
425 #+ATTR_ODT: (:width 10 :height 10)
426 [[./org-mode-unicorn.png]]
428 **** An image that is scaled
429 #+ATTR_ODT: (:scale 0.5)
430 [[./org-mode-unicorn.png]]
433 This is a clickable image [[http://orgmode.org][./org-mode-unicorn.png]]
436 *** Reference to an Image
437 Please refer to \ref{fig:1024} for further information.
442 # See org-format-latex-options
444 There is a equation down below.
456 If $a^2=b$ and \( b=2 \), then the solution must be either $$
457 a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
461 [[../../../lisp/org-html.el][This is a relative link to org-html.el]]
464 [[file:~/src/orgmode.org/contrib/odt/OrgOdtStyles.xml][This is an absolute link to styles file]]
469 **** Target with CUSTOMID
471 :CUSTOM_ID: aabbccddeeff
474 **** Dedicated Target Style1
475 # <<Dedicated Target>>
477 **** Dedicated Target Style2
479 There is a dedicated target at the end of this sentence -
480 <<Dedicated Target1>>.
482 **** <<<Radioed Target>>>
485 **** References to Fuzzy Target
487 This is a link to [[Fuzzy Target]].
489 **** References to CUSTOMID links
491 This is a link to [[#aabbccddeeff][Target with CUSTOMID]]. This is nodesc link to [[#aabbccddeeff]].
493 **** References to Dedicated Target
495 There is a link to nodesc [[Dedicated Target]] here. There is a link
496 to [[Dedicated%20Target][Jump to Dedicated Target]] here.
498 There is a link to [[Dedicated%20Target1][Dedicated Target1]] here.
500 **** References to Radioed Links
502 This section has references to Radioed Target. One more reference
506 *** A simple Orgmode Table
508 | EST | New York | -5:00 |
509 | IST | Madras | +5:30 |
513 *** A formatted Orgmode Table
515 #+CAPTION: An Example Table
518 | Labels | C1 | C2 | C3 |
519 |------------+-------------+---------------+--------------|
521 | <r> | <l> | <c> | <r> |
522 | R1 (Right) | R1C1 (Left) | R1C2 (Center) | R1C3 (Right) |
523 | R2 | R2C1 | R2C2 | R2C3 |
524 |------------+-------------+---------------+--------------|
525 | R3 | R3C1 | R3C2 | R3C3 |
526 | R4 | R4C1 | R4C2 | R4C3 |
527 |------------+-------------+---------------+--------------|
528 | R5 | R5C1 | R5C2 | R5C3 |
529 | R6 | R6C1 | R6C2 | R6C3 |
530 | R7 | R7C1 | R7C2 | |
531 |------------+-------------+---------------+--------------|
533 *** Table.el Table with no Spanning
534 # See org-export-prefer-native-exporter-for-tables
536 +---------------+---------------+
538 +---------------+---------------+
541 +---------------+---------------+
544 +---------------+---------------+
545 |Three-Quarters |75% |
547 +---------------+---------------+
550 +---------------+---------------+
552 *** Table.el Table with Spanning
554 +----------+---------------------+----------+
555 |Name |cmd calls |Percentage|
556 +----------+ +----------+
558 +----------+ +----------+
560 +----------+ +----------+
561 |total |203 118 |100% |
562 +----------+---------------------+----------+
564 *** Another Table.el Table with Spanning
566 +-----------+----------+
568 +-----------+----------+
570 +-----------+----------+
574 +-----------+----------+
578 Please refer to \ref{table:10} for further information.
580 ** Footnote Definitions (Part 1)
582 [fn:XYZ] There is a link to [[http://Orgmode.org][Orgmode.org]].
587 This paragraph has multiple references to the same footnote. This
588 is the first reference to a footnote [1]. This is a second
589 reference to the same footnote [1].
593 Footnote named XYZ [fn:XYZ].
597 Inlined footnote [fn:: inline definition]
599 *** Named and Inlined Footnote
601 Named and Inlined footnote [fn:name: named definition]
604 # Footnote Definitions (Part 2)
605 [1] Quick brown fox jumps over the lazy dog. Quick brown fox jumps ove
609 Org is a mode for keeping notes, maintaining TODO lists, and doing
610 project planning with a fast and effective plain-text system.
612 Org develops organizational tasks around NOTES files that contain
613 lists or information about projects as plain text. Org is
614 implemented on top of Outline mode, which makes it possible to keep
615 the content of large files well structured. Visibility cycling and
616 structure editing help to work with the tree. Tables are easily
617 created with a built-in table editor. Org supports TODO items,
618 deadlines, timestamps, and scheduling. It dynamically compiles
619 entries into an agenda that utilizes and smoothly integrates much of
620 the Emacs calendar and diary. Plain text URL-like links connect to
621 websites, emails, Usenet messages, BBDB entries, and any files
622 related to the projects. For printing and sharing of notes, an Org
623 file can be exported as a structured ASCII file, as HTML, or (TODO
624 and agenda items only) as an iCalendar file. It can also serve as a
625 publishing tool for a set of linked web pages.
627 As a project planning environment, Org works by adding metadata to
628 outline nodes. Based on this data, specific entries can be extracted
629 in queries and create dynamic agenda views.
631 Org mode contains the Org Babel environment which allows you to work
632 with embedded source code blocks in a file, to facilitate code
633 evaluation, documentation, and tangling.
635 Org's automatic, context-sensitive table editor with spreadsheet
636 capabilities can be integrated into any major mode by activating the
637 minor Orgtbl mode. Using a translation step, it can be used to
638 maintain tables in arbitrary file types, for example in LaTeX. The
639 structure editing and list creation capabilities can be used outside
640 Org with the minor Orgstruct mode.
642 Org keeps simple things simple. When first fired up, it should feel
643 like a straightforward, easy to use outliner. Complexity is not
644 imposed, but a large amount of functionality is available when you
645 need it. Org is a toolbox and can be used in different ways and for
646 different ends, for example:
648 - an outline extension with visibility cycling and structure editing
649 - an ASCII system and table editor for taking structured notes
651 - a full agenda and planner with deadlines and work scheduling
652 - an environment in which to implement David Allen's GTD system
653 - a simple hypertext system, with HTML and LaTeX export
654 - a publishing tool to create a set of interlinked webpages
655 - an environment for literate programming
657 There is a website for Org which provides links to the newest
658 version of Org, as well as additional information, frequently asked
659 questions (FAQ), links to tutorials, etc. This page is located at