From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: Re: How do you use org for other formats Date: Sat, 01 Aug 2009 00:13:14 +0200 Message-ID: <87prbg1oxx.fsf@gmail.com> References: <87iqhaccwf.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MX0MN-0007B9-3i for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 18:13:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MX0MI-0007Aj-MN for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 18:13:54 -0400 Received: from [199.232.76.173] (port=44356 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MX0MI-0007Ae-FM for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 18:13:50 -0400 Received: from main.gmane.org ([80.91.229.2]:36760 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MX0MH-0007uY-TT for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 18:13:50 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MX0ME-0006ZW-8h for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 22:13:46 +0000 Received: from bur91-5-88-162-148-242.fbx.proxad.net ([88.162.148.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Jul 2009 22:13:46 +0000 Received: from zhangweize by bur91-5-88-162-148-242.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Jul 2009 22:13:46 +0000 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: emacs-orgmode@gnu.org Bernt Hansen writes: > zwz 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