From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Integration with jsMath for HTML export of latex equations (feature request) Date: Fri, 16 Oct 2009 13:36:47 -0300 Message-ID: <4ad8a125.0ac0100a.2766.ffff9555@mx.google.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MypnZ-00049p-LB for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 12:37:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MypnU-00042B-Hd for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 12:37:01 -0400 Received: from [199.232.76.173] (port=46064 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MypnU-000423-Cj for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 12:36:56 -0400 Received: from mail-ew0-f228.google.com ([209.85.219.228]:48757) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MypnT-00037G-Tm for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 12:36:56 -0400 Received: by ewy28 with SMTP id 28so2217684ewy.42 for ; Fri, 16 Oct 2009 09:36:54 -0700 (PDT) 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: org-mode Mailing list Hello org-users, I know that it is possible to export equations as images if you set the variable org-export-with-LaTeX-fragments to t, but I prefer to use jsMath (http://www.math.union.edu/~dpvc/jsMath/) for equation in HTML. The problem is that when org-export-with-LaTeX-fragments is set to nil org-mode interprets underlines, hats and Greek letters and replace them in the generated HTML. I agree that this is nice in most cases, but I need them to be left untouched, since they will be later interpreted by jsMath when I'm viewing the page in a browser that supports java-script. Therefore, my "feature request" is disabling this smart behavior of org-mode when latex fragments are not converted to images. I also need to add a line in the HTML header to load the jsMath script, but this is easily accomplished with the line #+STYLE: in the org-file header. Here are some advantages and disadvantages about using jsMath instead of images. Advantages: - It's really pretty when you have all the fonts installed and you can zoom without any loss of quality. - No need to generate images when exporting + When you see the generated HTML page the jsMath script is run each time you reload the page. Because modern browsers are increasing more and more the efficiency of the java-script engine this is not a problem even if there are a lot of equations in the generated page. + On the other hand, creating images when exporting can take considerable time when there are man equations. Disadvantages - More difficult to setup + you have to install jsMath for authors, since you are creating pages with it. + you have to install jsMath for users, that is, install the fonts that will be used. If this is not done, jsMath will use images for the equations. You won't need to generate images when exporting, since jsMath already has all images (it just put the pieces together) - It is more inconvenient to send the generated HTML page to a friend, since your friend will need to install the fonts used by jsMath. Darlan From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Integration with jsMath for HTML export of latex equations (feature request) Date: Tue, 20 Oct 2009 10:53:22 +0200 Message-ID: <0BBB5A37-C754-49B8-8741-B58D0713D3F6@gmail.com> References: <4ad8a125.0ac0100a.2766.ffff9555@mx.google.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0ATF-00070j-5u for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 04:53:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0AT9-0006xQ-L3 for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 04:53:32 -0400 Received: from [199.232.76.173] (port=55935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0AT9-0006xM-FH for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 04:53:27 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:53900) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0AT8-00021r-Ru for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 04:53:27 -0400 Received: by ewy2 with SMTP id 2so5915786ewy.31 for ; Tue, 20 Oct 2009 01:53:25 -0700 (PDT) In-Reply-To: <4ad8a125.0ac0100a.2766.ffff9555@mx.google.com> 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: Darlan Cavalcante Moreira Cc: org-mode Mailing list Hi Darlan, On Oct 16, 2009, at 6:36 PM, Darlan Cavalcante Moreira wrote: > > Hello org-users, > > I know that it is possible to export equations as images if you set > the variable > org-export-with-LaTeX-fragments to t, but I prefer to use jsMath > (http://www.math.union.edu/~dpvc/jsMath/) for equation in HTML. The > problem is > that when org-export-with-LaTeX-fragments is set to nil org-mode > interprets > underlines, hats and Greek letters and replace them in the generated > HTML. Would #+OPTIONS ^:nil already do what you want? If you get this working, can I ask you to write up some instructions on how to use this with Org and post them here? Thanks. - Carsten > > I agree that this is nice in most cases, but I need them to be left > untouched, > since they will be later interpreted by jsMath when I'm viewing the > page in a > browser that supports java-script. Therefore, my "feature request" > is disabling > this smart behavior of org-mode when latex fragments are not > converted to > images. > > I also need to add a line in the HTML header to load the jsMath > script, but this is > easily accomplished with the line > #+STYLE: > in the org-file header. > > Here are some advantages and disadvantages about using jsMath > instead of images. > Advantages: > - It's really pretty when you have all the fonts installed and you > can zoom > without any loss of quality. > - No need to generate images when exporting > + When you see the generated HTML page the jsMath script is run > each time you > reload the page. Because modern browsers are increasing more and > more the > efficiency of the java-script engine this is not a problem even > if there are > a lot of equations in the generated page. > + On the other hand, creating images when exporting can take > considerable > time when there are man equations. > > Disadvantages > - More difficult to setup > + you have to install jsMath for authors, since you are creating > pages with it. > + you have to install jsMath for users, that is, install the fonts > that will > be used. If this is not done, jsMath will use images for the > equations. You > won't need to generate images when exporting, since jsMath > already has all > images (it just put the pieces together) > - It is more inconvenient to send the generated HTML page to a > friend, since > your friend will need to install the fonts used by jsMath. > > > Darlan > > > _______________________________________________ > 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 - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Integration with jsMath for HTML export of latex equations (feature request) Date: Tue, 20 Oct 2009 10:56:47 -0300 Message-ID: <4addc1a3.141bf30a.126a.0202@mx.google.com> References: <4ad8a125.0ac0100a.2766.ffff9555@mx.google.com> <0BBB5A37-C754-49B8-8741-B58D0713D3F6@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0FCt-00060a-2D for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 09:56:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0FCo-000602-B9 for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 09:56:58 -0400 Received: from [199.232.76.173] (port=58620 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0FCo-0005zz-3h for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 09:56:54 -0400 Received: from mail-pw0-f47.google.com ([209.85.160.47]:54647) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0FCn-0000u5-Fp for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 09:56:53 -0400 Received: by pwj10 with SMTP id 10so768147pwj.26 for ; Tue, 20 Oct 2009 06:56:52 -0700 (PDT) In-Reply-To: <0BBB5A37-C754-49B8-8741-B58D0713D3F6@gmail.com> 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: Carsten Dominik Cc: org-mode Mailing list Hi Carsten, The option "#+OPTIONS ^:nil" did the trick with underlines and hats, but Greek letter are still replaced. Since they are ignored by jsMath I get the correct equations and the only minor annoyance is that the font of the Greek letters is not as nice as if it were replace by jsMath (jsMath fonts are equivalent to latex fonts). If it is something easy to do, an option to also turn-off the replacements of Greek letters by org-mode would be nice, but don't bother if it is to much work. I'll write the instructions of how to use jsMath with org-mode here soon. Thanks Carsten, Darlan At Tue, 20 Oct 2009 10:53:22 +0200, Carsten Dominik wrote: > > Hi Darlan, > > On Oct 16, 2009, at 6:36 PM, Darlan Cavalcante Moreira wrote: > > > > > Hello org-users, > > > > I know that it is possible to export equations as images if you set > > the variable > > org-export-with-LaTeX-fragments to t, but I prefer to use jsMath > > (http://www.math.union.edu/~dpvc/jsMath/) for equation in HTML. The > > problem is > > that when org-export-with-LaTeX-fragments is set to nil org-mode > > interprets > > underlines, hats and Greek letters and replace them in the generated > > HTML. > > Would > > #+OPTIONS ^:nil > > already do what you want? > > If you get this working, can I ask you to write up some instructions > on how to use this with Org and post them here? > > Thanks. > > - Carsten > > > > > I agree that this is nice in most cases, but I need them to be left > > untouched, > > since they will be later interpreted by jsMath when I'm viewing the > > page in a > > browser that supports java-script. Therefore, my "feature request" > > is disabling > > this smart behavior of org-mode when latex fragments are not > > converted to > > images. > > > > I also need to add a line in the HTML header to load the jsMath > > script, but this is > > easily accomplished with the line > > #+STYLE: > > in the org-file header. > > > > Here are some advantages and disadvantages about using jsMath > > instead of images. > > Advantages: > > - It's really pretty when you have all the fonts installed and you > > can zoom > > without any loss of quality. > > - No need to generate images when exporting > > + When you see the generated HTML page the jsMath script is run > > each time you > > reload the page. Because modern browsers are increasing more and > > more the > > efficiency of the java-script engine this is not a problem even > > if there are > > a lot of equations in the generated page. > > + On the other hand, creating images when exporting can take > > considerable > > time when there are man equations. > > > > Disadvantages > > - More difficult to setup > > + you have to install jsMath for authors, since you are creating > > pages with it. > > + you have to install jsMath for users, that is, install the fonts > > that will > > be used. If this is not done, jsMath will use images for the > > equations. You > > won't need to generate images when exporting, since jsMath > > already has all > > images (it just put the pieces together) > > - It is more inconvenient to send the generated HTML page to a > > friend, since > > your friend will need to install the fonts used by jsMath. > > > > > > Darlan > > > > > > _______________________________________________ > > 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 > > - Carsten > > > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Integration with jsMath for HTML export of latex equations (feature request) Date: Tue, 20 Oct 2009 17:17:46 +0200 Message-ID: <209B33EA-DA36-46B1-BAAC-33687F4DF537@gmail.com> References: <4ad8a125.0ac0100a.2766.ffff9555@mx.google.com> <0BBB5A37-C754-49B8-8741-B58D0713D3F6@gmail.com> <4addc1a3.141bf30a.126a.0202@mx.google.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0GTE-0004zu-Dw for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 11:17:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0GTA-0004z8-WE for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 11:17:56 -0400 Received: from [199.232.76.173] (port=38308 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0GTA-0004z3-P4 for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 11:17:52 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:62516) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0GTA-0008A8-9N for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 11:17:52 -0400 Received: by ewy2 with SMTP id 2so6331464ewy.31 for ; Tue, 20 Oct 2009 08:17:51 -0700 (PDT) In-Reply-To: <4addc1a3.141bf30a.126a.0202@mx.google.com> 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: Darlan Cavalcante Moreira Cc: org-mode Mailing list On Oct 20, 2009, at 3:56 PM, Darlan Cavalcante Moreira wrote: > > Hi Carsten, > > The option "#+OPTIONS ^:nil" did the trick with underlines and hats, > but Greek > letter are still replaced. Since they are ignored by jsMath I get > the correct > equations and the only minor annoyance is that the font of the Greek > letters is > not as nice as if it were replace by jsMath (jsMath fonts are > equivalent to > latex fonts). If it is something easy to do, an option to also turn- > off the > replacements of Greek letters by org-mode would be nice, but don't > bother if it > is to much work. You can just use LaTeX conventions and write $\alpha$ instead of the lazy \alpha. That should do the trick. - Carsten > > I'll write the instructions of how to use jsMath with org-mode here > soon. > Thanks Carsten, > > Darlan > > > > > > At Tue, 20 Oct 2009 10:53:22 +0200, > Carsten Dominik wrote: >> >> Hi Darlan, >> >> On Oct 16, 2009, at 6:36 PM, Darlan Cavalcante Moreira wrote: >> >>> >>> Hello org-users, >>> >>> I know that it is possible to export equations as images if you set >>> the variable >>> org-export-with-LaTeX-fragments to t, but I prefer to use jsMath >>> (http://www.math.union.edu/~dpvc/jsMath/) for equation in HTML. The >>> problem is >>> that when org-export-with-LaTeX-fragments is set to nil org-mode >>> interprets >>> underlines, hats and Greek letters and replace them in the generated >>> HTML. >> >> Would >> >> #+OPTIONS ^:nil >> >> already do what you want? >> >> If you get this working, can I ask you to write up some instructions >> on how to use this with Org and post them here? >> >> Thanks. >> >> - Carsten >> >>> >>> I agree that this is nice in most cases, but I need them to be left >>> untouched, >>> since they will be later interpreted by jsMath when I'm viewing the >>> page in a >>> browser that supports java-script. Therefore, my "feature request" >>> is disabling >>> this smart behavior of org-mode when latex fragments are not >>> converted to >>> images. >>> >>> I also need to add a line in the HTML header to load the jsMath >>> script, but this is >>> easily accomplished with the line >>> #+STYLE: >>> in the org-file header. >>> >>> Here are some advantages and disadvantages about using jsMath >>> instead of images. >>> Advantages: >>> - It's really pretty when you have all the fonts installed and you >>> can zoom >>> without any loss of quality. >>> - No need to generate images when exporting >>> + When you see the generated HTML page the jsMath script is run >>> each time you >>> reload the page. Because modern browsers are increasing more and >>> more the >>> efficiency of the java-script engine this is not a problem even >>> if there are >>> a lot of equations in the generated page. >>> + On the other hand, creating images when exporting can take >>> considerable >>> time when there are man equations. >>> >>> Disadvantages >>> - More difficult to setup >>> + you have to install jsMath for authors, since you are creating >>> pages with it. >>> + you have to install jsMath for users, that is, install the fonts >>> that will >>> be used. If this is not done, jsMath will use images for the >>> equations. You >>> won't need to generate images when exporting, since jsMath >>> already has all >>> images (it just put the pieces together) >>> - It is more inconvenient to send the generated HTML page to a >>> friend, since >>> your friend will need to install the fonts used by jsMath. >>> >>> >>> Darlan >>> >>> >>> _______________________________________________ >>> 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 >> >> - Carsten >> >> >> - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Integration with jsMath for HTML export of latex equations (feature request) Date: Wed, 21 Oct 2009 02:16:39 -0300 Message-ID: <4ade9971.1708c00a.49ea.02fc@mx.google.com> References: <4ad8a125.0ac0100a.2766.ffff9555@mx.google.com> <0BBB5A37-C754-49B8-8741-B58D0713D3F6@gmail.com> <4addc1a3.141bf30a.126a.0202@mx.google.com> <209B33EA-DA36-46B1-BAAC-33687F4DF537@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_Oct_21_02:16:10_2009-1" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0TZy-0007Gx-BU for emacs-orgmode@gnu.org; Wed, 21 Oct 2009 01:17:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0TZt-0007EF-Ew for emacs-orgmode@gnu.org; Wed, 21 Oct 2009 01:17:45 -0400 Received: from [199.232.76.173] (port=39437 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0TZs-0007E0-Lj for emacs-orgmode@gnu.org; Wed, 21 Oct 2009 01:17:41 -0400 Received: from mail-yw0-f194.google.com ([209.85.211.194]:54008) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0TZs-0005Vt-83 for emacs-orgmode@gnu.org; Wed, 21 Oct 2009 01:17:40 -0400 Received: by ywh32 with SMTP id 32so5471761ywh.14 for ; Tue, 20 Oct 2009 22:17:39 -0700 (PDT) In-Reply-To: <209B33EA-DA36-46B1-BAAC-33687F4DF537@gmail.com> 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: Carsten Dominik Cc: org-mode Mailing list --Multipart_Wed_Oct_21_02:16:10_2009-1 Content-Type: text/plain; charset=US-ASCII I was alreade doing that but it was replace by $α$ in the html file. However, the option #+OPTIONS: LaTeX:nil solves the problem. At last, I wrote an org file with instructions on how to use jsMath with Org. Thanks again Carsten, Darlan --Multipart_Wed_Oct_21_02:16:10_2009-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="jsMath.org" Content-Transfer-Encoding: base64 IytTVEFSVFVQOiBvZGQKIytPUFRJT05TOiB0b2M6bmlsCiMrVElUTEU6SG93IHRvIHVzZSBqc01h dGggd2l0aCBvcmctbW9kZQoKKiBXaHkgYm90aGVyCiAgSGVyZSBhcmUgc29tZSBhZHZhbnRhZ2Vz IGFuZCBkaXNhZHZhbnRhZ2V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Tue, 20 Oct 2009 17:17:46 +0200, Carsten Dominik wrote: > > > On Oct 20, 2009, at 3:56 PM, Darlan Cavalcante Moreira wrote: > > > > > Hi Carsten, > > > > The option "#+OPTIONS ^:nil" did the trick with underlines and hats, > > but Greek > > letter are still replaced. Since they are ignored by jsMath I get > > the correct > > equations and the only minor annoyance is that the font of the Greek > > letters is > > not as nice as if it were replace by jsMath (jsMath fonts are > > equivalent to > > latex fonts). If it is something easy to do, an option to also turn- > > off the > > replacements of Greek letters by org-mode would be nice, but don't > > bother if it > > is to much work. > > You can just use LaTeX conventions and write $\alpha$ instead of the > lazy \alpha. That should do the trick. > > - Carsten > > > > > > > I'll write the instructions of how to use jsMath with org-mode here > > soon. > > Thanks Carsten, > > > > Darlan > > > > > > > > > > > > At Tue, 20 Oct 2009 10:53:22 +0200, > > Carsten Dominik wrote: > >> > >> Hi Darlan, > >> > >> On Oct 16, 2009, at 6:36 PM, Darlan Cavalcante Moreira wrote: > >> > >>> > >>> Hello org-users, > >>> > >>> I know that it is possible to export equations as images if you set > >>> the variable > >>> org-export-with-LaTeX-fragments to t, but I prefer to use jsMath > >>> (http://www.math.union.edu/~dpvc/jsMath/) for equation in HTML. The > >>> problem is > >>> that when org-export-with-LaTeX-fragments is set to nil org-mode > >>> interprets > >>> underlines, hats and Greek letters and replace them in the generated > >>> HTML. > >> > >> Would > >> > >> #+OPTIONS ^:nil > >> > >> already do what you want? > >> > >> If you get this working, can I ask you to write up some instructions > >> on how to use this with Org and post them here? > >> > >> Thanks. > >> > >> - Carsten > >> > >>> > >>> I agree that this is nice in most cases, but I need them to be left > >>> untouched, > >>> since they will be later interpreted by jsMath when I'm viewing the > >>> page in a > >>> browser that supports java-script. Therefore, my "feature request" > >>> is disabling > >>> this smart behavior of org-mode when latex fragments are not > >>> converted to > >>> images. > >>> > >>> I also need to add a line in the HTML header to load the jsMath > >>> script, but this is > >>> easily accomplished with the line > >>> #+STYLE: > >>> in the org-file header. > >>> > >>> Here are some advantages and disadvantages about using jsMath > >>> instead of images. > >>> Advantages: > >>> - It's really pretty when you have all the fonts installed and you > >>> can zoom > >>> without any loss of quality. > >>> - No need to generate images when exporting > >>> + When you see the generated HTML page the jsMath script is run > >>> each time you > >>> reload the page. Because modern browsers are increasing more and > >>> more the > >>> efficiency of the java-script engine this is not a problem even > >>> if there are > >>> a lot of equations in the generated page. > >>> + On the other hand, creating images when exporting can take > >>> considerable > >>> time when there are man equations. > >>> > >>> Disadvantages > >>> - More difficult to setup > >>> + you have to install jsMath for authors, since you are creating > >>> pages with it. > >>> + you have to install jsMath for users, that is, install the fonts > >>> that will > >>> be used. If this is not done, jsMath will use images for the > >>> equations. You > >>> won't need to generate images when exporting, since jsMath > >>> already has all > >>> images (it just put the pieces together) > >>> - It is more inconvenient to send the generated HTML page to a > >>> friend, since > >>> your friend will need to install the fonts used by jsMath. > >>> > >>> > >>> Darlan > >>> > >>> > >>> _______________________________________________ > >>> 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 > >> > >> - Carsten > >> > >> > >> > > - Carsten > > > --Multipart_Wed_Oct_21_02:16:10_2009-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Multipart_Wed_Oct_21_02:16:10_2009-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Integration with jsMath for HTML export of latex equations (feature request) Date: Wed, 21 Oct 2009 09:09:11 +0200 Message-ID: <76A679EB-C202-4497-A80D-DA21A7C7C945@gmail.com> References: <4ad8a125.0ac0100a.2766.ffff9555@mx.google.com> <0BBB5A37-C754-49B8-8741-B58D0713D3F6@gmail.com> <4addc1a3.141bf30a.126a.0202@mx.google.com> <209B33EA-DA36-46B1-BAAC-33687F4DF537@gmail.com> <4ade9971.1708c00a.49ea.02fc@mx.google.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0VJv-0002ez-Cp for emacs-orgmode@gnu.org; Wed, 21 Oct 2009 03:09:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0VJr-0002cq-OY for emacs-orgmode@gnu.org; Wed, 21 Oct 2009 03:09:19 -0400 Received: from [199.232.76.173] (port=40604 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0VJr-0002cn-L9 for emacs-orgmode@gnu.org; Wed, 21 Oct 2009 03:09:15 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:62681) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0VJr-0003xk-4U for emacs-orgmode@gnu.org; Wed, 21 Oct 2009 03:09:15 -0400 Received: by ewy2 with SMTP id 2so7075921ewy.31 for ; Wed, 21 Oct 2009 00:09:14 -0700 (PDT) In-Reply-To: <4ade9971.1708c00a.49ea.02fc@mx.google.com> 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: Darlan Cavalcante Moreira Cc: org-mode Mailing list Hi Darlan, I put up the file on http://orgmode.org/worg/org-tutorials/org-jsmath.php Thanks! - Carsten On Oct 21, 2009, at 7:16 AM, Darlan Cavalcante Moreira wrote: > > I was alreade doing that but it was replace by $α$ in the html > file. However, the option #+OPTIONS: LaTeX:nil solves the problem. > > At last, I wrote an org file with instructions on how to use jsMath > with Org. > Thanks again Carsten, > > Darlan > > > > > At Tue, 20 Oct 2009 17:17:46 +0200, > Carsten Dominik wrote: >> >> >> On Oct 20, 2009, at 3:56 PM, Darlan Cavalcante Moreira wrote: >> >>> >>> Hi Carsten, >>> >>> The option "#+OPTIONS ^:nil" did the trick with underlines and hats, >>> but Greek >>> letter are still replaced. Since they are ignored by jsMath I get >>> the correct >>> equations and the only minor annoyance is that the font of the Greek >>> letters is >>> not as nice as if it were replace by jsMath (jsMath fonts are >>> equivalent to >>> latex fonts). If it is something easy to do, an option to also turn- >>> off the >>> replacements of Greek letters by org-mode would be nice, but don't >>> bother if it >>> is to much work. >> >> You can just use LaTeX conventions and write $\alpha$ instead of the >> lazy \alpha. That should do the trick. >> >> - Carsten >> >> >> >>> >>> I'll write the instructions of how to use jsMath with org-mode here >>> soon. >>> Thanks Carsten, >>> >>> Darlan >>> >>> >>> >>> >>> >>> At Tue, 20 Oct 2009 10:53:22 +0200, >>> Carsten Dominik wrote: >>>> >>>> Hi Darlan, >>>> >>>> On Oct 16, 2009, at 6:36 PM, Darlan Cavalcante Moreira wrote: >>>> >>>>> >>>>> Hello org-users, >>>>> >>>>> I know that it is possible to export equations as images if you >>>>> set >>>>> the variable >>>>> org-export-with-LaTeX-fragments to t, but I prefer to use jsMath >>>>> (http://www.math.union.edu/~dpvc/jsMath/) for equation in HTML. >>>>> The >>>>> problem is >>>>> that when org-export-with-LaTeX-fragments is set to nil org-mode >>>>> interprets >>>>> underlines, hats and Greek letters and replace them in the >>>>> generated >>>>> HTML. >>>> >>>> Would >>>> >>>> #+OPTIONS ^:nil >>>> >>>> already do what you want? >>>> >>>> If you get this working, can I ask you to write up some >>>> instructions >>>> on how to use this with Org and post them here? >>>> >>>> Thanks. >>>> >>>> - Carsten >>>> >>>>> >>>>> I agree that this is nice in most cases, but I need them to be >>>>> left >>>>> untouched, >>>>> since they will be later interpreted by jsMath when I'm viewing >>>>> the >>>>> page in a >>>>> browser that supports java-script. Therefore, my "feature request" >>>>> is disabling >>>>> this smart behavior of org-mode when latex fragments are not >>>>> converted to >>>>> images. >>>>> >>>>> I also need to add a line in the HTML header to load the jsMath >>>>> script, but this is >>>>> easily accomplished with the line >>>>> #+STYLE: >>>>> in the org-file header. >>>>> >>>>> Here are some advantages and disadvantages about using jsMath >>>>> instead of images. >>>>> Advantages: >>>>> - It's really pretty when you have all the fonts installed and you >>>>> can zoom >>>>> without any loss of quality. >>>>> - No need to generate images when exporting >>>>> + When you see the generated HTML page the jsMath script is run >>>>> each time you >>>>> reload the page. Because modern browsers are increasing more and >>>>> more the >>>>> efficiency of the java-script engine this is not a problem even >>>>> if there are >>>>> a lot of equations in the generated page. >>>>> + On the other hand, creating images when exporting can take >>>>> considerable >>>>> time when there are man equations. >>>>> >>>>> Disadvantages >>>>> - More difficult to setup >>>>> + you have to install jsMath for authors, since you are creating >>>>> pages with it. >>>>> + you have to install jsMath for users, that is, install the fonts >>>>> that will >>>>> be used. If this is not done, jsMath will use images for the >>>>> equations. You >>>>> won't need to generate images when exporting, since jsMath >>>>> already has all >>>>> images (it just put the pieces together) >>>>> - It is more inconvenient to send the generated HTML page to a >>>>> friend, since >>>>> your friend will need to install the fonts used by jsMath. >>>>> >>>>> >>>>> Darlan >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>>> - Carsten >>>> >>>> >>>> >> >> - Carsten >> >> >> - Carsten