From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: How do you use org for other formats Date: Thu, 30 Jul 2009 14:31:54 -0400 Message-ID: <9481.1248978714@alphaville.usa.hp.com> References: <87iqhaccwf.fsf@gollum.intra.norang.ca> <4A71DD1B.5040707@gmail.com> <87y6q6aw53.fsf@gollum.intra.norang.ca> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWaRX-0008KG-4Z for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 14:33:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWaRS-0008GK-Ed for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 14:33:30 -0400 Received: from [199.232.76.173] (port=45476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWaRS-0008Fo-8X for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 14:33:26 -0400 Received: from g5t0008.atlanta.hp.com ([15.192.0.45]:34774) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWaRR-0005j3-Ph for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 14:33:25 -0400 In-Reply-To: Message from Bernt Hansen of "Thu, 30 Jul 2009 14:00:40 EDT." <87y6q6aw53.fsf@gollum.intra.norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: emacs-orgmode@gnu.org, zwz Bernt Hansen wrote: > Brian van den Broek writes: > > > Bernt Hansen said unto the world at 30/07/09 01:13 PM: > >> zwz writes: > >> > >>> I recently found the problem when I want to export the org file to > >>> html and pdf. > > > > > >> The following test file works fine for me as far as I can tell > >> > >> ,----[ x.org ] > >> | #+TITLE: x.org > >> | #+AUTHOR: Bernt Hansen > >> | #+EMAIL: bernt@norang.ca > >> | #+DATE: 2009-07-30 Thu > >> | #+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:nil 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: | | * Test > >> | | Some math formulae: > >> | | y = x_1^2 + x_2^2 > >> | | y^2 = 2x^2 + 1 > >> | | z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r) > >> `---- > >> > >> This renders HTML (C-c C-e b) [*1*] and PDF (C-c C-e d) [*2*] that look > >> fine to me > >> > > > > > > > > I don't export from org at all, but Bernt's pdf doesn't look right to > > me. Notice that in the first equation, the exponents appear as `^2' > > (i.e., with the `^' character). As a heavy LaTeX user, I would write > > it as `y = x_{1}^{2} + x_{2}^{2}', but trying Bernt's file with this > > modification, I still had the same result (`^2' in the output as > > opposed to a superscripted `2'). Org 6.28d and emacs 22.2.1 on ubuntu > > 8.10. > > Actually you're right - I didn't notice that. If I export via docbook > (C-c C-e V) it looks better: http://www.norang.ca/tmp/x-3.pdf > Yes, it does look much better (does it work as well with HTML?). So there is a bug in the LaTeX exporter apparently. However, I tried the LaTeX fragments approach in section 11.3 of the manual and it works fine with both LaTeX and HTML (but you have to turn the LaTeX option on: exporting to HTML then preprocesses the LaTeX fragments to produce images that can then be included in the HTML file): ,---- | #+OPTIONS: LaTeX:t | | * Test | | Some math formulae: | | | \begin{equation} | y = x_1^2 + x_2^2 | \end{equation} | | \begin{equation} | y^2 = 2x^2 + 1 | \end{equation} | | \begin{equation} | z_2 = x_1 + x_2 + 2 (y_1 + y_2 + r)^4 | \end{equation} `---- Thanks, Nick