From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stephen J. Barr" Subject: Re: question about org2blog and latex Date: Thu, 15 Mar 2012 16:46:48 -0400 Message-ID: References: <28469.1331830314@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8HZp-000525-Dh for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 16:47:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8HZn-00061F-IF for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 16:47:12 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:38556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8HZn-00060K-9E for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 16:47:11 -0400 Received: by wibhj13 with SMTP id hj13so7544993wib.12 for ; Thu, 15 Mar 2012 13:47:09 -0700 (PDT) In-Reply-To: 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: Puneeth Chaganti Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Thanks for the help. I just checked the variables and org2blog/wp-use-wp-latex was set, but the wp-latex plugin was not installed :) All is working now, although it is definitely a little grainy. But, it'll certainly lead to an awesome series of blog posts nonetheless. Puneeth, thank you so much for the fantastic plugin. One other quick question: Does org-mode and org2blog work with numbered equations and equation references? If so, could someone provide a simple example? Thanks, Stephen On Thu, Mar 15, 2012 at 2:51 PM, Puneeth Chaganti wro= te: > On Thu, Mar 15, 2012 at 10:21 PM, Nick Dokos wrot= e: >> Stephen J. Barr wrote: >> >>> Hello, >>> >>> I am working on blogging using org2blog, allowing me to update my >>> wordpress blog with org-mode. All is working well except latex. I was >>> expecting latex images but instead just get things like: >>> >>> $latex z * k^\theta$ >>> >> >> Not sure what that latex is doing in there. The following works as norma= l >> HTML for me: >> >> --8<---------------cut here---------------start------------->8--- >> * foo >> Here's a formula >> >> >> $\int_0^\infty e^{-x^2} dx =3D {{\sqrt{\pi}}\over{2}}$ >> >> $latex z * k^\theta$ >> --8<---------------cut here---------------end--------------->8--- >> >> A few things: the default way to export fragments is through MathJax: >> there may be some sort of a setup problem that prevents MathJax from >> working with the blogging stuff. =C2=A0You might want to fall back to >> png images and see if that works better for you (you'll need dvipng), >> although that's usually seen as a step back. > > I'd like to clarify that the initial implementation of org2blog, IIRC, > did make use of the png images and upload them to the blog. =C2=A0Sometim= e, > later support was added to support Wordpress's LaTeX plugin. To render > your LaTeX using this, in your wordpress blog, just set the variable > `org2blog/wp-use-wp-latex`. =C2=A0[Btw, I hope you are indeed talking abo= ut > org to wordpress org2blog. There's another one that publishes to > blogspot, with the same name.] > >> The preferred way to enter math in latex (and in org) is with \(...\) >> for inline formulas and \[...\] for displayed ones. $...$ will work with >> certain restrictions noted in the org docs (see below) for the inline >> case, $$...$$ does *not* work for the displayed case (it's not even lega= l >> LaTeX). >> >> C-h v org-export-with-LaTeX-fragments RET has the details. >> >> (info "(org) LaTeX fragments") has more on $...$, mathJax etc. > > Also, all of these ways which do work with HTML export should work > with the org2blog. =C2=A0Also, thanks Nick for the detailed answer. :) > > HTH, > Puneeth