emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Jambunathan K] Re: Figure and table captions in org-odt.el
@ 2012-03-20 18:32 Jambunathan K
  0 siblings, 0 replies; 2+ messages in thread
From: Jambunathan K @ 2012-03-20 18:32 UTC (permalink / raw)
  To: Orgmode


Martin Gürtler <martin.guertler@gmx.de> 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))
| 
| Original value was 
| (("en" "Table" "Figure" "Equation" "Equation"))
| 
| 
| 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.
| 
| 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.
| 
|   (setq org-export-odt-category-strings
| 	'(("en" "Table" "Illustration"
| 	   "Equation" "Equation")))
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 24.1 of Emacs.
| 
| [back]
`----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Jambunathan K] Re: Figure and table captions in org-odt.el
@ 2012-03-20 18:33 Jambunathan K
  0 siblings, 0 replies; 2+ messages in thread
From: Jambunathan K @ 2012-03-20 18:33 UTC (permalink / raw)
  To: Orgmode


[Out of thread]

I have also made the following commits in response to your earlier
request titled "Is it possible to refer to section numbers in links?"[1]

commit d3cd3720d5a0a2993d37a43046c36535cdaf8bce
Author: Jambunathan K <kjambunathan@gmail.com>
Date:   Tue Mar 20 19:53:28 2012 +0530

    org-odt.el: Resolve headline links as sec nos only if num:t
    
    * lisp/org-odt.el (org-odt-format-org-link): Resolve links to
    headlines as section numbers only if section numbering is on.

commit 4120d6fcf741f04673e90133ee8fb98a879c8e1d
Author: Jambunathan K <kjambunathan@gmail.com>
Date:   Tue Mar 20 13:32:23 2012 +0530

    org-odt.el: Render links to outline headings as section nos
    
    * lisp/org-odt.el (org-odt-format-link): Add support for
    generating cross-references to chapter numbers.
    (org-odt-format-org-link): Resolve links to outline headings
    as section numbers.  This special case resolution kicks in
    only if the Org link has no description and the target outline
    is not listified i.e., it is at a level within
    `org-export-headline-levels'.
    
    The above change is in conformity with the way links to
    headlines will be treated in new ODT exporter that will be
    built on top of Nicolas' org-element/org-export
    infrastructure.

Footnotes: 
[1]  http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg01035.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-20 18:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-20 18:32 [Jambunathan K] Re: Figure and table captions in org-odt.el Jambunathan K
2012-03-20 18:33 Jambunathan K

Code repositories for project(s) associated with this 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).