From: zwz <zhangweize@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How do you use org for other formats
Date: Sat, 01 Aug 2009 00:13:14 +0200 [thread overview]
Message-ID: <87prbg1oxx.fsf@gmail.com> (raw)
In-Reply-To: 87iqhaccwf.fsf@gollum.intra.norang.ca
Bernt Hansen <bernt@norang.ca> writes:
> zwz <zhangweize@gmail.com> writes:
>
>> I recently found the problem when I want to export the org file to
>> html and pdf. I guess there will be some people (who are also not so
>> familiar with the powerful org-mode) bothered by the same issue, that
>> is, html and pdf requires different org format sometimes.
>> - I use $ y = x_1^2 + x_2^2 $ in org, it works for pdf, but not for html
>> - "_" in text will introduce mess in pdf, not in html
>>
>> I definitely want to keep only one org which I can export to other
>> formats correctly. I do not know if it is already implemented in
>> org-mode.
>>
>> I just wondered if it is possible to introduce a abstract level (or
>> notations) so that org can translate it according to the target
>> format, just like how org treat the headlines (*).
>
> 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
>
> -Bernt
>
> [*1*] http://www.norang.ca/tmp/x.html
> [*2*] http://www.norang.ca/tmp/x.pdf
Wow, so many options I have not used before ...
I copied the text, but the exported HTML and PDF looks the same as the
formula in ORG. Then I found it was because in my .emacs, there is
(setq org-export-with-sub-superscripts nil)
After I comment this, it works.
But in this way, I have to pay special attention to sub- and super-
scripts.
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-07-31 22:13 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87prbg1oxx.fsf@gmail.com \
--to=zhangweize@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.