3381e364e39a7db1c0de349f26fc9218dcbda384
[org-mode/org-jambu.git] / contrib / odt / files / test.org
blob3381e364e39a7db1c0de349f26fc9218dcbda384
1 #+TITLE: OpenDocument MetaData Usecases and Requirements
2 #+AUTHOR:    Jambunathan K
3 #+EMAIL:     kjambunathan@gmail.com
4 #+DATE:      2010-10-26 Sat
5 #+LANGUAGE:  en
6 #+OPTIONS:   H:3 num:t  \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
7 #+OPTIONS:   LaTeX:dvipng
8 #+STARTUP:   inlineimages overview
10 * Character Styles
11 ** Bold
13    *This is bold text*
14    
15 ** Italic
17    /This is an italicized text/
18    
19 ** Underline
21    _This is an underlined text_
22    
23 ** Code
25    =This is a code text=
26    
27 ** Verbatim
29    ~This is a verbatim text~
30    
31 ** Strikethrough
33    +This is a strikethorugh text+
35 ** Super and Subscripts
37    Y = a_{0}X^{2}+a_{1}X^{1}+a_{2}
38 * Miscellaneous
39   
40   Here is a ndash --, a mdash ---, an ellipsis ....
41   
42   and a horizontal line
43   ---------------------
44   
45 * Paragraph Styles
46 ** Quotation
47    
48 *** Style1
50 #+BEGIN_QUOTE
51     Everything should be made as simple as possible,
52     but not any simpler -- Albert Einstein
53 #+END_QUOTE
54     
55 *** QUOTE Style2
57     Everything should be made as simple as possible,
58     but not any simpler -- Albert Einstein
60 ** Verse
62 #+BEGIN_VERSE
63   Great clouds overhead
64   Tiny black birds rise and fall
65   Snow covers Emacs
67       -- AlexSchroeder
68 #+END_VERSE
69       
70 ** Centered
72 #+BEGIN_CENTER
73    This is a centered paragraph.
74 #+END_CENTER
75   
76 ** Example
77 *** Example Style 1
79 #+begin_example
80   First line of the example.
81   Second line of the example.
82 #+end_example  
83   
84 *** Example Style 2
86 :     First line of the example.
87 :     Second line of the example.
88     
89   
90 ** Source Block
91 *** Emacs Lisp Block 
92 #+begin_src emacs-lisp
93   (defun helloworld () 
94     ""
95     (message "hello world"))
96 #+end_src  
97     
98 *** Org Source Block
99     
100 #+begin_src org
101   ,* Some Appointment
102   ,  SCHEDULED: <2010-11-17 Wed>
103 #+end_src    
105 * Embedded ODT
106 ** Handcrafted Para
107    
108 #+begin_html
109   <p> 
110     This is a handwritten html para
111   </p>
112 #+end_html
113    
115 #+begin_odt
116   <text:p> This is a handwritten odt para</text:p>
117 #+end_odt
119 ** An Equation as Embeded MathML
120    A trigonometric equation embedded in *MathML*
122 #+begin_odt
123   <text:p>
124     <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">
125       <draw:object>
126         <math xmlns="http://www.w3.org/1998/Math/MathML">
127           <semantics>
128             <mrow>
129               <mi>sin</mi>
130               <mrow>
131                 <mrow>
132                   <mo stretchy="false">(</mo>
133                   <mrow>
134                     <mi>A</mi>
135                     <mo stretchy="false">+</mo>
136                     <mi>B</mi>
137                   </mrow>
138                   <mo stretchy="false">)</mo>
139                 </mrow>
140                 <mi mathvariant="normal">=</mi>
141                 <mi>sin</mi>
142               </mrow>
143               <mi mathvariant="italic">ACos</mi>
144               <mrow>
145                 <mi>B</mi>
146                 <mo stretchy="false">+</mo>
147                 <mi>cos</mi>
148               </mrow>
149               <mi>A</mi>
150               <mi>sin</mi>
151               <mi>B</mi>
152             </mrow>
153             <annotation encoding="StarMath 5.0">sin (A+B) = sin ACos B + cos A sin B
154             </annotation>
155           </semantics>
156         </math>
157       </draw:object>
158     </draw:frame>
159   </text:p>
160 #+end_odt
162 * Lists
163 ** Simple Lists
164 *** Numbered List
165     
166     This is a numbered list.
167     
168     1. L1N1
169     2. L1N2
170     3. L1N3
171     
172 *** Bulleted List
173     
174     This is a bulleted list.
175     - L1B1
176     - L1B2
177     - L1B3
178     
179 *** Description List
180     
181     There is a nested description list down below
182     - Term-1 :: This is a definition for Term-1 which wraps around to
183                 the next line
184     - Term-2 :: This is a definition for Term-2 which wraps around to
185                 the next line
186       - Term-2.1 :: Definition for Term-2.1
187       - Term-2.2 :: Definition for Term-2.2
188     
189 *** A Complex List
190     
191     1. L1N1
192        1. L2N2
193        2. L2N3
194     2. L1N4
195        * L2B1
196        * L2B2
197          - L3B3
198            
199            First paragraph.
200            
201            Second paragraph.
202            
203          - L3B4
204     3. L1N5
205        1. L2N6
206           1. L3N7
208 ** A Very Complex List
209 *** Lord of the Rings
211     My favorite scenes are (in this order)
212     1. The attack of the Rohirrim
213     2. Eowyn's fight with the witch king
214        + this was already my favorite scene in the book
215        + I really like Miranda Otto.
216          - Definition-1 :: Description-1
217          - Definition-2 :: Description-2
218                            
219                            
220     3. Peter Jackson being shot by Legolas
221        He makes a really funny face when it happens.
222        - on DVD only
223          
224          
225     But in the end, no individual scenes matter but the film as a whole.
226     Important actors in this film are:
227     - Elijah Wood :: He plays Frodo
228     - Sean Austin :: He plays Sam, Frodo's friend.  I still remember
229                      him very well from his role as Mikey Walsh in
230                      The Goonies
231                      
232       - Embedded Definition 1 :: Embedded Description 1
233       - Embedded Definition 2 :: Embedded Description 2
234            
235            
236     
238 * Images
239 ** Image URLs
240    
241    See the You can see the official logo of Orgmode here:
242    [[http://orgmode.org/img/org-mode-unicorn.png]]
243   
244 ** Inlined Images
245 *** A simple inlined image
247    [[./org-mode-unicorn.png]]
248    
249 *** A simple image with caption and label
250   
251 #+CAPTION: Unicorn Logo
252 #+LABEL: fig:1024
253   [[./org-mode-unicorn.png]]
255 *** An image that is explicitly sized
256 #+CAPTION: Unicorn Logo
257 #+LABEL: fig:1025
258 #+ATTR_ODT: (:width 10 :height 10)
259   [[./org-mode-unicorn.png]]
261 *** An image that is scaled
262 #+ATTR_ODT: (:scale 0.5)
263   [[./org-mode-unicorn.png]]
265 ** Reference to an Image
266    Please refer to \ref{fig:1024} for further information.
267    
268 ** LaTeX Fragments 
270 *** LaTeX Fragment1
271 #   See org-format-latex-options
272     
273     There is a equation down below.
275    \begin{equation}
276      e = \frac{1}{2}mv^2
277    \end{equation}
278    
279 *** LaTeX Fragment2
280     
281     \begin{equation}
282     x=\sqrt{b} 
283     \end{equation}
284     
285     If $a^2=b$ and \( b=2 \), then the solution must be either $$
286     a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
289     
291 * File URLs
292 ** Relative URL
293    [[../OrgOdtStyles.xml][This is a relative link to styles file]]
295 ** Absolute URL
296    [[file:~/src/base/org-odt/contrib/odt/OrgOdtStyles.xml][This is an absolute link to styles file]]
298 * Links
299 ** Targets
300 *** Fuzzy Target
301 *** Target with CUSTOMID
302     :PROPERTIES:
303     :CUSTOM_ID: aabbccddeeff
304     :END:
305     
306 *** Dedicated Target Style1
307 #   <<Dedicated Target>>    
308     
309 *** Dedicated Target Style2
311     There is a dedicated target at the end of this sentence -
312     <<Dedicated Target1>>.
313     
314 *** <<<Radioed Target>>>
315     
316 ** References
317 *** References to Fuzzy Target
319     This is a link to [[Fuzzy Target]].
320     
321 *** References to CUSTOMID links
323     This is a link to [[#aabbccddeeff][Target with CUSTOMID]]. This is nodesc link to [[#aabbccddeeff]].
324     
325 *** References to Dedicated Target
327     There is a link to nodesc [[Dedicated Target]] here. There is a link
328     to [[Dedicated%20Target][Jump to Dedicated Target]] here.
329     
330     There is a link to [[Dedicated%20Target1][Dedicated Target1]] here.
331     
332 *** References to Radioed Links
334     This section has references to Radioed Target. One more reference
335     to Radioed Target.
337 * Tables
338 ** A simple Orgmode Table
339    
340    | EST | New York | -5:00 |
341    | IST | Madras   | +5:30 |
342    | AST | Bahrain  | +3:00 |
344 ** A formatted Orgmode Table
346 #+CAPTION: An Example Table
347 #+LABEL:   table:10
349   |             Labels | Column1    | Column2               |          Column3 |
350   |--------------------+------------+-----------------------+------------------|
351   |                  / | <          | >                     |               <> |
352   |                <r> | <l>        | <c>                   |              <r> |
353   | Row1Row1Row1 Right | R1C1  Left | R1C2R1C2R1C2 Centered |      R1C3  Right |
354   |--------------------+------------+-----------------------+------------------|
355   |           Row2Row2 | R2C1R2C1   | R2C2R2C2              | R2C3R2C3R2C3R2C3 |
356   |                    |            |                       |                  |
357   |--------------------+------------+-----------------------+------------------|
359    
360 ** Table.el Table with no Spanning
361    +---------------+---------------+
362    |Term           |Percentage     |
363    +---------------+---------------+
364    |Quarter        |25%            |
365    |One-Fourth     |               |
366    +---------------+---------------+
367    |Half           |50%            |
368    |One-by-Two     |               |
369    +---------------+---------------+
370    |Three-Quarters |75%            |
371    |Three-Fourths  |               |
372    +---------------+---------------+
373    |Full           |100%           |
374    |Whole          |               |
375    +---------------+---------------+
376    
377 ** COMMENT Table.el Table with Spanning
378     
379    +----------+---------------------+----------+
380    |Name      |cmd        calls     |Percentage|
381    +----------+                     +----------+
382    |rgb       |93         534       |46%       |
383    +----------+                     +----------+
384    |Xah       |82         090       |40%       |
385    +----------+                     +----------+
386    |total     |203        118       |100%      |
387    +----------+---------------------+----------+
388    
389 ** COMMENT Another Table.el Table with Spanning
390    
391    +----------+----------+
392    | Header 1 | Header 2 |
393    +----------+----------+
394    | R1 C1-2             |
395    +----------+----------+
396    | R2 C1    | R2-3 C2  |
397    +          +----------+
398    |          |          |
399    +----------+----------+
400    
401 * Table Referenced
403   Please refer to \ref{table:10} for further information.
405 * Footnote Definitions
407 [1] Quick brown fox jumps over the lazy dog. Quick brown fox jumps ove
408 the lazy dog. 
409 [fn:XYZ] There is a link to [[http://Orgmode.org][Orgmode.org]].
411 * Footnote Usage
412 ** Plain Footnotes
414    Footnote [1]. One more reference to footnote [1].
415    
416 ** Named Footnotes
418    Footnote named XYZ [fn:XYZ].
420 ** Inlined Footnote
422    Inlined footnote [fn:: inline definition]
423    
424 ** Named and Inlined Footnote
426    Named and Inlined footnote [fn:name: named definition]
429 * About Orgmode
430   Org is a mode for keeping notes, maintaining TODO lists, and doing
431   project planning with a fast and effective plain-text system.
433   Org develops organizational tasks around NOTES files that contain
434   lists or information about projects as plain text. Org is
435   implemented on top of Outline mode, which makes it possible to keep
436   the content of large files well structured. Visibility cycling and
437   structure editing help to work with the tree. Tables are easily
438   created with a built-in table editor. Org supports TODO items,
439   deadlines, timestamps, and scheduling. It dynamically compiles
440   entries into an agenda that utilizes and smoothly integrates much of
441   the Emacs calendar and diary. Plain text URL-like links connect to
442   websites, emails, Usenet messages, BBDB entries, and any files
443   related to the projects. For printing and sharing of notes, an Org
444   file can be exported as a structured ASCII file, as HTML, or (TODO
445   and agenda items only) as an iCalendar file. It can also serve as a
446   publishing tool for a set of linked web pages.
448   As a project planning environment, Org works by adding metadata to
449   outline nodes. Based on this data, specific entries can be extracted
450   in queries and create dynamic agenda views.
452   Org mode contains the Org Babel environment which allows you to work
453   with embedded source code blocks in a file, to facilitate code
454   evaluation, documentation, and tangling.
456   Org's automatic, context-sensitive table editor with spreadsheet
457   capabilities can be integrated into any major mode by activating the
458   minor Orgtbl mode. Using a translation step, it can be used to
459   maintain tables in arbitrary file types, for example in LaTeX. The
460   structure editing and list creation capabilities can be used outside
461   Org with the minor Orgstruct mode.
463   Org keeps simple things simple. When first fired up, it should feel
464   like a straightforward, easy to use outliner. Complexity is not
465   imposed, but a large amount of functionality is available when you
466   need it. Org is a toolbox and can be used in different ways and for
467   different ends, for example:
469   -  an outline extension with visibility cycling and structure editing
470   -  an ASCII system and table editor for taking structured notes
471   -  a TODO list editor
472   -  a full agenda and planner with deadlines and work scheduling
473   -  an environment in which to implement David Allen's GTD system
474   -  a simple hypertext system, with HTML and LaTeX export
475   -  a publishing tool to create a set of interlinked webpages
476   -  an environment for literate programming
478   There is a website for Org which provides links to the newest
479   version of Org, as well as additional information, frequently asked
480   questions (FAQ), links to tutorials, etc. This page is located at
481   http://orgmode.org.