all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [odt] equation labels
@ 2011-10-28  1:23 Myles English
  2011-10-30 22:11 ` Jambunathan K
  0 siblings, 1 reply; 31+ messages in thread
From: Myles English @ 2011-10-28  1:23 UTC (permalink / raw)
  To: emacs-orgmode


Hello {Jambunathan},

I have found that Equations become labelled as Figures in the version I
am using:

emacs 23.3.1
org-mode from git commit 71f1c1be (Oct 26)

(?I'm not sure if it is the most recent version of contrib/org-odt as
the README.org says "This release is is as good as org-20110613" etc)

The test equations in latex-mathml.org in this message:

http://lists.gnu.org/archive/html/emacs-orgmode/2011-09/msg00198.html

are labelled as "Equation" in the odt files but when I export it fresh I get
"Figure".

Thank you for the recent MathML stuff by the way.

Myles

^ permalink raw reply	[flat|nested] 31+ messages in thread
* session with python-mode.el complains of void py-toggle-shells
@ 2013-01-23  2:47 Myles English
  2013-01-23  4:11 ` Nick Dokos
  0 siblings, 1 reply; 31+ messages in thread
From: Myles English @ 2013-01-23  2:47 UTC (permalink / raw)
  To: Emacs-orgmode

Hi,

I think it should be possible to execute a python block in a session
using python-mode.el but get this message:

"Symbol's function definition is void: py-toggle-shells"

Using the latest git head and opening this file with:

$ emacs -Q thisfile.org

then executing these src blocks in order, shows the problem:

#+BEGIN_SRC emacs-lisp
  (require 'org)
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((python . t)))
#+END_SRC

#+RESULTS:
| (python . t) |

* A heading

This works okay:

#+begin_src python :results output :session a
import sys
#+end_src

#+RESULTS:

Try with python3:

#+begin_src elisp
(setq org-babel-python-command "python3"
      py-python-command "python3"
)
#+end_src

#+RESULTS:
: python3

works also:

#+begin_src python :results output :session a
import sys
#+end_src

#+RESULTS:

Try using python-mode.el:

#+begin_src elisp
(setq org-babel-python-mode 'python-mode)
(load-file "/usr/share/emacs/site-lisp/python-mode.el")
#+end_src

#+RESULTS:
: t

#+begin_src python :results output :session a
import sys
#+end_src

Gives this *Message*:

org-babel-python-initiate-session-by-key: Symbol's function definition
is void: py-toggle-shells

Do I need to configure something else?

Thanks,

Myles

^ permalink raw reply	[flat|nested] 31+ messages in thread
* [odt] equation labels
@ 2011-08-23 14:36 Myles English
  2011-08-26 19:36 ` Jambunathan K
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Myles English @ 2011-08-23 14:36 UTC (permalink / raw)
  To: emacs-orgmode


Hello,

I am using the excellent org-odt, so thanks to Jambunathan K, and
everyone who has ever contributed to orgmode.

This may be quite simple so I am asking before making an minimal
example.  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*}

?

The orgmode manual says that captions and labels are for images and
tables so unless there is a special trick I would probably try to wrap
the latex in something first, for dvipng to return the png to org, to
apply the CAPTION to, before exporting to odt.

Extra points for making it "Equation 1." instead of "Figure 1.".

Thanks,

Myles

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

end of thread, other threads:[~2013-02-23 10:48 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28  1:23 [odt] equation labels 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
  -- strict thread matches above, loose matches on Subject: below --
2013-01-23  2:47 session with python-mode.el complains of void py-toggle-shells Myles English
2013-01-23  4:11 ` Nick Dokos
2013-01-23 12:46   ` [PATCH] " Myles English
2013-01-23 13:04     ` Bastien
2013-01-23 18:02       ` Andreas Röhler
2013-01-24 14:10         ` Bastien
2013-02-21 20:08           ` Andreas Röhler
2013-02-22  8:25           ` Andreas Röhler
2013-02-23  9:29             ` Bastien
2013-01-23 13:00   ` Bastien
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
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.