From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Figure and table captions in org-odt.el Date: Sat, 17 Mar 2012 21:41:10 +0530 Message-ID: <81ehsrus0x.fsf@gmail.com> References: <1331991533.26771.5.camel@basil> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8wE1-0006s9-Fc for emacs-orgmode@gnu.org; Sat, 17 Mar 2012 12:11:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8wDz-0001OC-MF for emacs-orgmode@gnu.org; Sat, 17 Mar 2012 12:11:25 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:58574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8wDz-0001Nz-Cr for emacs-orgmode@gnu.org; Sat, 17 Mar 2012 12:11:23 -0400 Received: by dadv6 with SMTP id v6so8310311dad.0 for ; Sat, 17 Mar 2012 09:11:21 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martin =?utf-8?Q?G=C3=BCrtler?= Cc: Orgmode Hello Martin > Hi, > > I was trying to localise the captions of figures or tables. This seems > not to be built-in (in contrast to the built-in localisation of > table-of-contents). I wonder whether it is easily possible to get > "Abbildung 1: ..." instead of the automatic "Figure 1: ..." in figure > (and table) captions. Currently there is no custom setting for it. For now, you can try out the following. 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 `...' 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 @@ | | | | - | + | | | `---- Now add the following to your init file. You can compare the default setting of `org-odt-category-map-alist' with the value below. Here also, you have replaced "Figure" with "Abbildung". #+begin_src emacs-lisp (eval-after-load 'org-odt '(setq org-odt-category-map-alist '(("__Table__" "Table" "value") ("__Figure__" "Abbildung" "value") ("__MathFormula__" "Equation" "text") ("__DvipngImage__" "Equation" "value")))) #+end_src This should do what you want. Let me know how it goes. > Thanks, > > Martin