emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: "Martin Gürtler" <martin.guertler@gmx.de>
Cc: Orgmode <emacs-orgmode@gnu.org>
Subject: Re: Figure and table captions in org-odt.el
Date: Sat, 17 Mar 2012 22:41:14 +0530	[thread overview]
Message-ID: <81limzi24t.fsf@gmail.com> (raw)
In-Reply-To: <81ehsrus0x.fsf@gmail.com> (Jambunathan K.'s message of "Sat, 17 Mar 2012 21:41:10 +0530")


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>
> `----

  reply	other threads:[~2012-03-17 17:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1331991533.26771.5.camel@basil>
2012-03-17 16:11 ` Figure and table captions in org-odt.el Jambunathan K
2012-03-17 17:11   ` Jambunathan K [this message]
2012-03-19  8:11   ` Martin Gürtler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81limzi24t.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=martin.guertler@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).