From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: [odt] regression in using an equation sourced via latex_header Date: Thu, 03 Nov 2011 14:59:28 +0000 Message-ID: <87aa8dp7zj.fsf@gmail.com> References: <871utr7rj3.fsf@gmail.com> <81hb2n64lz.fsf@gmail.com> <81d3db64em.fsf@gmail.com> <874nymryql.fsf@gmail.com> Reply-To: emacs-orgmode Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLyja-0003CB-0q for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 10:57:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLyjV-00072Z-77 for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 10:57:37 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:51970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLyjU-00072D-T2 for emacs-orgmode@gnu.org; Thu, 03 Nov 2011 10:57:33 -0400 Received: by wyg24 with SMTP id 24so1635447wyg.0 for ; Thu, 03 Nov 2011 07:57:31 -0700 (PDT) In-Reply-To: <874nymryql.fsf@gmail.com> (Myles English's message of "Wed, 02 Nov 2011 21:38:42 +0000") 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: emacs-orgmode Mode >> On Wed, 02 Nov 2011 21:38:42 +0000, Myles English said: >> On Wed, 02 Nov 2011 00:44:57 +0530, Jambunathan K said: >>> 2. mathml - You need to register your command file with -ncf >>> argument. >>> >>> For example, if I put the mystyle.tex in the same directory as >>> exported .org file and add the -ncf argument to the converter as >>> below >>> >>> #+begin_src emacs-lisp (setq org-latex-to-mathml-convert-command >>> "java -jar %j -ncf mystyle.tex -unicode -force -df %o %I ") >>> #+end_src >>> >> ncf option is documented here: >> http://www.mathtoweb.com/cgi-bin/mathtoweb_users_guide.pl#Using_newcommand_and_renewcommand > I have narrowed the problem I am having down to newcommands that > build on other newcommands, like so ... > If I have this in my style file: > \newcommand{\pressure}{p} > \newcommand{\capillaryPressure}{\pressure_{c}} This can work if the style file appears twice in the mathml command: #+begin_src emacs-lisp (setq org-latex-to-mathml-convert-command "java -jar %j -ncf mystyle.sty,mystyle.sty -unicode -force -df %o %I ") #+end_src Myles