From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: question about org2blog and latex Date: Thu, 15 Mar 2012 12:51:54 -0400 Message-ID: <28469.1331830314@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8DuF-0004XE-Np for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 12:52:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8DuA-0001AV-Fp for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 12:52:03 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:36155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8DuA-0001AD-9b for emacs-orgmode@gnu.org; Thu, 15 Mar 2012 12:51:58 -0400 In-Reply-To: Message from "Stephen J. Barr" of "Thu, 15 Mar 2012 11:42:19 EDT." 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: "Stephen J. Barr" Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org 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 normal HTML for me: --8<---------------cut here---------------start------------->8--- * foo Here's a formula $\int_0^\infty e^{-x^2} dx = {{\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. You 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. 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 legal LaTeX). C-h v org-export-with-LaTeX-fragments RET has the details. (info "(org) LaTeX fragments") has more on $...$, mathJax etc. Nick > The header to my blogpost.org file has > > #+DESCRIPTION: > #+KEYWORDS: > #+LANGUAGE: en > #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t > #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc > #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 > path:http://orgmode.org/org-info.js > #+EXPORT_SELECT_TAGS: export > #+EXPORT_EXCLUDE_TAGS: noexport > #+LINK_UP: > #+LINK_HOME: > #+XSLT: > > Am I doing something wrong? > > Thanks, > Stephen > o