From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: [odt] equation labels Date: Wed, 31 Aug 2011 12:09:58 +0100 Message-ID: <87sjoh7s6x.fsf@bill.home> References: <87pqjw6vpr.fsf@bill.home> <81wrdy4iot.fsf@gmail.com> Reply-To: Myles English , emacs-orgmode Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyifS-0007Qu-LR for emacs-orgmode@gnu.org; Wed, 31 Aug 2011 07:09:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyifR-0006CJ-Jr for emacs-orgmode@gnu.org; Wed, 31 Aug 2011 07:09:14 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:50452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyifR-0006Bz-Bx for emacs-orgmode@gnu.org; Wed, 31 Aug 2011 07:09:13 -0400 Received: by wyi11 with SMTP id 11so472861wyi.0 for ; Wed, 31 Aug 2011 04:09:11 -0700 (PDT) In-Reply-To: <81wrdy4iot.fsf@gmail.com> (Jambunathan K.'s message of "Sun, 28 Aug 2011 03:32:10 +0530") 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: Jambunathan K Cc: emacs-orgmode Jambunathan, >> On Sun, 28 Aug 2011 03:32:10 +0530, Jambunathan K said: > Myles >> Does anyone know how to cause a label such as "Figure 1." in the >> odt (for the resulting png), and set the caption for an equation >> such as: >> >> #+CAPTION: some caption #+LABEL: eqn:psychrometric >> \begin{equation*} \label{eq:psychrometric} \capillaryPressure = >> ln(RH)\cdot \dens_w\frac{RT}{M_w} \end{equation*} Sorry for the red herring: the equation above would never have worked without mystyle.sty whose content includes: \newcommand{\pressure}{p} \newcommand{\capillaryPressure}{{\pressure_{c}}} \newcommand{\dens_w}{\rho_w} and is included by: #+LATEX_HEADER: \usepackage{/home/myles/path/to/report/mystyle} > I have added support for honoring captions, label and attributes for > images that are dervied from latex fragments. Checkout the git repo > and let me know if there are any rough edges that need to be ironed > out. Thank you! I have just got around to trying this out and it works great. The only issue now is that the resolution of the pngs is low and looks terrible. I vaguely remember changing it deep in my latex installation somewhere. > Note that the odt exporter treats Labels and their references in a > special way. > For example, if the label is defined as follows, > #+LABEL: Equation:1 > Equation is considered as a "Category" [1] and "1" is considered as > sequence number. So this "category:seq-no" is the recommended form > of labels for odt export. Note that the seq-no found in Org file > need not be sequential. The odt exporter will faithfully reproduce > the seqnos as seen Org file to the odt file. You can auto-generate > the "right" seqnos by using Tools->Update->Update All. > If you are averse to launching the gui for updating of indices you > can do a odt->odt (yes, odt->odt) conversion for sanitizing of > indices [2]. > It is also worth noting that the attached file uses the as yet > undocumented > #+ATTR_ODT: (:scale 2) > to scale the image to twice the original size. > Jambunathan K. I your previous post you asked for my org file but I think that it is superseded by your attachment? When I have finished this report I am working on I'll cut it down and offer it as an example if you like. Myles