emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode@gnu.org, zwz <zhangweize@gmail.com>
Subject: Re: Re: How do you use org for other formats
Date: Thu, 30 Jul 2009 14:31:54 -0400	[thread overview]
Message-ID: <9481.1248978714@alphaville.usa.hp.com> (raw)
In-Reply-To: Message from Bernt Hansen <bernt@norang.ca> of "Thu, 30 Jul 2009 14:00:40 EDT." <87y6q6aw53.fsf@gollum.intra.norang.ca>

Bernt Hansen <bernt@norang.ca> wrote:

> Brian van den Broek <vanden@gmail.com> writes:
> 
> > Bernt Hansen said unto the world at 30/07/09 01:13 PM:
> >> zwz <zhangweize@gmail.com> writes:
> >>
> >>> I recently found the problem when I want to export the org file to
> >>> html and pdf.
> > <snip>
> >
> >> 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

  reply	other threads:[~2009-07-30 18:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-30 16:06 How do you use org for other formats zwz
2009-07-30 17:13 ` Bernt Hansen
2009-07-30 17:49   ` Brian van den Broek
2009-07-30 18:00     ` Bernt Hansen
2009-07-30 18:31       ` Nick Dokos [this message]
2009-07-30 18:43         ` Bernt Hansen
2009-07-31  0:59           ` Baoqiu Cui
2009-08-03  4:37     ` Carsten Dominik
2009-07-30 17:53   ` Nick Dokos
2009-07-30 18:02     ` Bernt Hansen
2009-08-03  4:37     ` Carsten Dominik
2009-07-31 22:13   ` zwz
2009-08-01  1:55     ` Bernt Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9481.1248978714@alphaville.usa.hp.com \
    --to=nicholas.dokos@hp.com \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=zhangweize@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).