emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [odt] equation labels
Date: Wed, 31 Aug 2011 12:09:58 +0100	[thread overview]
Message-ID: <87sjoh7s6x.fsf@bill.home> (raw)
In-Reply-To: <81wrdy4iot.fsf@gmail.com> (Jambunathan K.'s message of "Sun, 28 Aug 2011 03:32:10 +0530")


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

  reply	other threads:[~2011-08-31 11:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23 14:36 [odt] equation labels Myles English
2011-08-26 19:36 ` Jambunathan K
2011-08-27 22:02 ` Jambunathan K
2011-08-31 11:09   ` Myles English [this message]
2011-08-31 11:37     ` suvayu ali
2011-08-31 11:50     ` Myles English
2011-08-31 13:52       ` Jambunathan K
2011-08-31 14:07     ` Jambunathan K
2011-09-17 19:48 ` Jambunathan K
  -- strict thread matches above, loose matches on Subject: below --
2011-10-28  1:23 Myles English
2011-10-30 22:11 ` Jambunathan K
2011-10-31 11:54   ` Myles English
2011-11-01 11:17     ` Myles English
2011-11-01 19:39     ` Jambunathan K
2011-11-01 19:49       ` Jambunathan K
2011-11-02 13:18       ` Myles English
     [not found]         ` <mylesenglish@gmail.com>
2011-11-02 13:38           ` Nick Dokos
2011-11-02 14:49             ` Myles English
2011-11-02 14:52           ` Nick Dokos
2011-11-02 18:21             ` Jambunathan K
2011-11-02 21:33               ` Myles English

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=87sjoh7s6x.fsf@bill.home \
    --to=mylesenglish@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    /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).