From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: [Jambunathan K] Re: Figure and table captions in org-odt.el Date: Wed, 21 Mar 2012 00:02:59 +0530 Message-ID: <81mx7bf7hg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA3s2-0000vG-MR for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 14:33:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SA3ru-0006op-S2 for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 14:33:22 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:61894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA3ru-0006oY-JZ for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 14:33:14 -0400 Received: by dadv6 with SMTP id v6so401291dad.0 for ; Tue, 20 Mar 2012 11:33:12 -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: Orgmode Martin G=C3=BCrtler writes: > 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. I have added support for this a few minutes ago. Please discard/undo my earlier suggestion and try configuring the new variable instead (see below). With this change applied and *after* exporting the document via the ODT exporter, you may want to: 1. create a figure/table index with Insert->Indexes and Tables->Indexes and Tables etc 2. insert a couple of figures tables etc *by hand* 3. update fields with Tools->Update->Update All and make sure that you don't get any weird behaviour. If there are non-English speakers who are reading this message and then you may want to give me the localized equivalent for Table, Figure, Equation in your language. ,----[ C-h v org-export-odt-category-strings RET ] | org-export-odt-category-strings is a variable defined in `org-odt.el'. | Its value is (("en" "Table" "Figure" "Equation" "Equation") | ("de" "Tabelle" "Abbildung" nil nil)) |=20 | Original value was=20 | (("en" "Table" "Figure" "Equation" "Equation")) |=20 |=20 | Documentation: | Specify category strings for various captionable entities. | Captionable entity can be one of a Table, an Embedded Image, a | LaTeX fragment (generated with dvipng) or a Math Formula. |=20 | For example, when `org-export-default-language' is "en", an | embedded image will be captioned as "Figure 1: Orgmode Logo". | If you want the images to be captioned instead as "Illustration | 1: Orgmode Logo", then modify the entry for "en" as shown | below. |=20 | (setq org-export-odt-category-strings | '(("en" "Table" "Illustration" | "Equation" "Equation"))) |=20 | You can customize this variable. |=20 | This variable was introduced, or its default value was changed, in | version 24.1 of Emacs. |=20 | [back] `----