From mboxrd@z Thu Jan 1 00:00:00 1970 From: s j Subject: Writing equations in org mode Date: Sat, 10 Sep 2016 06:49:27 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="77303a86b419471e857f9239fe2a11c2" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bic6a-0004HN-4d for emacs-orgmode@gnu.org; Sat, 10 Sep 2016 02:49:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bic6U-0006pv-7E for emacs-orgmode@gnu.org; Sat, 10 Sep 2016 02:49:35 -0400 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]:32794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bic6T-0006po-RL for emacs-orgmode@gnu.org; Sat, 10 Sep 2016 02:49:30 -0400 Received: by mail-pf0-x230.google.com with SMTP id g202so36297206pfb.0 for ; Fri, 09 Sep 2016 23:49:29 -0700 (PDT) Received: from [127.0.0.1] (ec2-52-36-99-221.us-west-2.compute.amazonaws.com. [52.36.99.221]) by smtp.gmail.com with ESMTPSA id ve9sm9579556pac.12.2016.09.09.23.49.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Sep 2016 23:49:28 -0700 (PDT) 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" To: "emacs-orgmode@gnu.org" --77303a86b419471e857f9239fe2a11c2 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ascii" Mime-Version: 1.0 Hi, When one writes latex displayed equations in an org file, is it possible to achieve the following two points at the same time? 1. In the org buffer, the latex codes have syntax highlighting according to auctex (auctex installed). 2. The equation can be exported as a displayed equation using BOTH latex and html backend. I tried the export block and the source code block. Both give nice fontification, but I cannot get the exportation right. On the other hand, directly putting in latex fragments exports well for both html and latex, but the fragments have no fontification, only a highlight background. Thanks! Jiang --77303a86b419471e857f9239fe2a11c2 Content-Transfer-Encoding: base64 Content-Type: text/html; charset="ascii" Mime-Version: 1.0 SGksPGRpdj48YnI+PC9kaXY+PGRpdj5XaGVuIG9uZSB3cml0ZXMgbGF0ZXggZGlzcGxheWVkIGVx dWF0aW9ucyBpbiBhbiBvcmcgZmlsZSwgaXMgaXQgcG9zc2libGUgdG8gYWNoaWV2ZSB0aGUgZm9s bG93aW5nIHR3byBwb2ludHMgYXQgdGhlIHNhbWUgdGltZT88L2Rpdj48ZGl2Pjxicj48L2Rpdj48 ZGl2PjxvbD48bGk+SW4gdGhlIG9yZyBidWZmZXIsIHRoZSBsYXRleCBjb2RlcyBoYXZlIHN5bnRh eCBoaWdobGlnaHRpbmcgYWNjb3JkaW5nIHRvIGF1Y3RleCZuYnNwOyhhdWN0ZXgmbmJzcDtpbnN0 YWxsZWQpLjwvbGk+PGxpPlRoZSBlcXVhdGlvbiBjYW4gYmUgZXhwb3J0ZWQgYXMgYSBkaXNwbGF5 ZWQgZXF1YXRpb24gdXNpbmcgQk9USCBsYXRleCBhbmQgaHRtbCBiYWNrZW5kLjwvbGk+PC9vbD5J IHRyaWVkIHRoZSBleHBvcnQgYmxvY2sgYW5kIHRoZSBzb3VyY2UgY29kZSBibG9jay4gQm90aCBn aXZlIG5pY2UgZm9udGlmaWNhdGlvbiwgYnV0IEkgY2Fubm90IGdldCB0aGUgZXhwb3J0YXRpb24g cmlnaHQuPC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5PbiB0aGUgb3RoZXIgaGFuZCwgZGlyZWN0 bHkgcHV0dGluZyBpbiBsYXRleCBmcmFnbWVudHMgZXhwb3J0cyB3ZWxsIGZvciBib3RoIGh0bWwg YW5kIGxhdGV4LCBidXQgdGhlIGZyYWdtZW50cyBoYXZlIG5vIGZvbnRpZmljYXRpb24sIG9ubHkg YSBoaWdobGlnaHQgYmFja2dyb3VuZC48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PlRoYW5rcyE8 L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PkppYW5nPC9kaXY+ --77303a86b419471e857f9239fe2a11c2--