[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Figure and table captions in org-odt.el
From: |
Jambunathan K |
Subject: |
Re: [O] Figure and table captions in org-odt.el |
Date: |
Sat, 17 Mar 2012 22:41:14 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (windows-nt) |
A small side note:
Instead of modifying the default "OrgOdtContentTemplate.xml" *directly*,
you can do the following. Make a *copy* of the file, do the required
modification and then customize `org-export-odt-content-template-file'
to point to the new template file.
> Locate your "OrgOdtContentTemplate.xml". This file is located under the
> styles directory. See the *Messages* buffer for an output like this:
>
> ,---- *Messages*
> | Debug (org-odt): Searching for OpenDocument styles files...
> | Debug (org-odt): Trying c:/Documents and Settings/kjambunathan/My
> | Documents/My Data/src/org-mode/etc/styles/...
> | Debug (org-odt): Using styles under c:/Documents and
> | Settings/kjambunathan/My Documents/My Data/src/org-mode/etc/styles/
> `----
>
> Towards the end of the file, you will find a
> `<text:sequence-decls>...</text:sequence-decls>' block. These are the
> OpenDocument "variables" that are used for counting Figures, Tables etc.
>
> Replace text:name="Figure" with text:name="Abbildung". You can do
> likewise for other categories.
>
> ,----
> | diff --git a/etc/styles/OrgOdtContentTemplate.xml
> b/etc/styles/OrgOdtContentTemplate.xml
> | index cd7ff0e..beeb7f8 100644
> | --- a/etc/styles/OrgOdtContentTemplate.xml
> | +++ b/etc/styles/OrgOdtContentTemplate.xml
> | @@ -255,7 +255,7 @@
> | <text:sequence-decl text:display-outline-level="0" text:name="Text"/>
> | <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
> | <text:sequence-decl text:display-outline-level="0"
> text:name="Equation"/>
> | - <text:sequence-decl text:display-outline-level="0" text:name="Figure"/>
> | + <text:sequence-decl text:display-outline-level="0"
> text:name="Abbildung"/>
> | </text:sequence-decls>
> | </office:text>
> | </office:body>
> `----