From mboxrd@z Thu Jan 1 00:00:00 1970 From: srandby@gmail.com Subject: Javascript Export Issue Date: Fri, 06 Mar 2009 21:30:14 -0500 Message-ID: <49B1DC36.1020505@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfmIt-0007eI-Oi for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 21:30:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfmIs-0007cr-67 for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 21:30:19 -0500 Received: from [199.232.76.173] (port=36131 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfmIs-0007co-2D for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 21:30:18 -0500 Received: from yw-out-1718.google.com ([74.125.46.152]:13790) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfmIr-0005i6-Ou for emacs-orgmode@gnu.org; Fri, 06 Mar 2009 21:30:17 -0500 Received: by yw-out-1718.google.com with SMTP id 6so414202ywa.66 for ; Fri, 06 Mar 2009 18:30:16 -0800 (PST) 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: "[Orgmode]" Greetings, When I export (using org-mode 6.23) to html an org file that has options for org-info.js, the html file contains this: Earlier versions of org-mode exported scripts this way: Today, I discovered that the first script listed above will work with Firefox, but not with Safari (I don't know about IE). After some research, I discovered several fixes, including the old way of exporting, the easiest being: I realize there are issues here with the differences between html browsers and xml browsers, so I've decided that I would like to have scripts (and styles) exported as separate files. Is this possible? When I export my org file to html, the html file contains one style section and two script sections. If these three were instead exported to separate files, that would eliminate the need to worry about how to enclose styles and scripts with comments in a way that works for all browsers. Of course, then org-mode would be creating four files instead of one, but I would like to have this option. Everything I've read about this matter recommends keeping styles and scripts as external files. When I create the three files manually and edit the html file appropriately, the html file lacks all the style and script code which is replaced by: Here gen-style.css contains the style generated by org-mode, style.css is my own style, org-html.js is the first script generated by org-mode, and mystery.js is the second script generated by org-mode (it is mysterious to me). Scott Randby From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Javascript Export Issue Date: Sat, 07 Mar 2009 11:14:02 +0100 Message-ID: <871vt97i8l.fsf@kassiopeya.MSHEIMNETZ> References: <49B1DC36.1020505@gmail.com> 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 1LftUl-0000ch-6e for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:11:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LftUi-0000ay-RT for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:11:02 -0500 Received: from [199.232.76.173] (port=40409 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LftUi-0000ao-GP for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:11:00 -0500 Received: from mail.gmx.net ([213.165.64.20]:38382) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LftUh-0008Iu-VH for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:11:00 -0500 In-Reply-To: <49B1DC36.1020505@gmail.com> (srandby@gmail.com's message of "Fri, 06 Mar 2009 21:30:14 -0500") 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: srandby@gmail.com Cc: "[Orgmode]" Hi Scott, True. Safari needs this one here (note the two additional slashes in the second last line): Sorry. I'll search the org sources and compile a patch for this issue. srandby@gmail.com writes: > Greetings, > > When I export (using org-mode 6.23) to html an org file that has options for > org-info.js, the html file contains this: > > > > Earlier versions of org-mode exported scripts this way: > > > > Today, I discovered that the first script listed above will work with Firefox, > but not with Safari (I don't know about IE). After some research, I discovered > several fixes, including the old way of exporting, the easiest being: > > This is not valid XHTML because of the missing ` > I realize there are issues here with the differences between html browsers and > xml browsers, so I've decided that I would like to have scripts (and styles) > exported as separate files. Is this possible? > > When I export my org file to html, the html file contains one style section and > two script sections. If these three were instead exported to separate files, > that would eliminate the need to worry about how to enclose styles and scripts > with comments in a way that works for all browsers. Of course, then org-mode > would be creating four files instead of one, but I would like to have this > option. Everything I've read about this matter recommends keeping styles and > scripts as external files. > > When I create the three files manually and edit the html file appropriately, the > html file lacks all the style and script code which is replaced by: > > > > > > Good idea. But this should be valid XHTML too: Regards, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose@emma-stil.de, sebastian_rose@gmx.de Http: www.emma-stil.de From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Javascript Export Issue Date: Sat, 07 Mar 2009 11:23:16 +0100 Message-ID: <87wsb1638r.fsf@kassiopeya.MSHEIMNETZ> References: <49B1DC36.1020505@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lftdf-0006ob-Fm for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:20:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lftde-0006nX-7u for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:20:14 -0500 Received: from [199.232.76.173] (port=50917 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lftde-0006nL-1t for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:20:14 -0500 Received: from mail.gmx.net ([213.165.64.20]:36906) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Lftdd-0000uc-Gv for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:20:13 -0500 In-Reply-To: <49B1DC36.1020505@gmail.com> (srandby@gmail.com's message of "Fri, 06 Mar 2009 21:30:14 -0500") 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: srandby@gmail.com Cc: "[Orgmode]" --=-=-= Here's the patch to fix this issue. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=safari-and-js.patch Content-Description: Make JavaScript work in Safari diff --git a/lisp/org-exp.el b/lisp/org-exp.el index c21755a..952eb9a 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -563,7 +563,7 @@ not be modified." if(elem.cacheClassTarget) target.className = elem.cacheClassTarget; } -/*]]>*/--> +/*]]>*///--> " "Basic javascript that is needed by HTML files produced by Org-mode.") diff --git a/lisp/org-jsinfo.el b/lisp/org-jsinfo.el index 285169b..b24f65b 100644 --- a/lisp/org-jsinfo.el +++ b/lisp/org-jsinfo.el @@ -110,7 +110,7 @@ means to use the maximum value consistent with other options." +/*]]>*///--> " "The template for the export style additions when org-info.js is used. Option settings will replace the %MANAGER-OPTIONS cookie." --=-=-= -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Http: www.emma-stil.de --=-=-= 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 --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Javascript Export Issue Date: Sat, 7 Mar 2009 11:28:42 +0100 Message-ID: <32BD3E40-56D0-46D5-ABAA-510ACD99106A@uva.nl> References: <49B1DC36.1020505@gmail.com> <87wsb1638r.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 (Apple Message framework v930.3) 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 1Lftm8-0005CG-NQ for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:29:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lftm5-00059Z-Pa for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:28:59 -0500 Received: from [199.232.76.173] (port=33163 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lftm5-00059R-HG for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:28:57 -0500 Received: from mail-ew0-f179.google.com ([209.85.219.179]:53711) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lftm5-0002EI-4V for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:28:57 -0500 Received: by ewy27 with SMTP id 27so417415ewy.42 for ; Sat, 07 Mar 2009 02:28:52 -0800 (PST) In-Reply-To: <87wsb1638r.fsf@kassiopeya.MSHEIMNETZ> 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: Sebastian Rose Cc: srandby@gmail.com, "[Orgmode]" Hi Sebastian, I take it this will continue to work on other browsers? - Carsten On Mar 7, 2009, at 11:23 AM, Sebastian Rose wrote: > > Here's the patch to fix this issue. > > > diff --git a/lisp/org-exp.el b/lisp/org-exp.el > index c21755a..952eb9a 100644 > --- a/lisp/org-exp.el > +++ b/lisp/org-exp.el > @@ -563,7 +563,7 @@ not be modified." > if(elem.cacheClassTarget) > target.className = elem.cacheClassTarget; > } > -/*]]>*/--> > +/*]]>*///--> > " > "Basic javascript that is needed by HTML files produced by Org-mode.") > > diff --git a/lisp/org-jsinfo.el b/lisp/org-jsinfo.el > index 285169b..b24f65b 100644 > --- a/lisp/org-jsinfo.el > +++ b/lisp/org-jsinfo.el > @@ -110,7 +110,7 @@ means to use the maximum value consistent with > other options." > > +/*]]>*///--> > " > "The template for the export style additions when org-info.js is > used. > Option settings will replace the %MANAGER-OPTIONS cookie." > > -- > Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 > Hannover > Tel.: +49 (0)511 - 36 58 472 > Fax: +49 (0)1805 - 233633 - 11044 > mobil: +49 (0)173 - 83 93 417 > Http: www.emma-stil.de > _______________________________________________ > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Javascript Export Issue Date: Sat, 7 Mar 2009 11:30:04 +0100 Message-ID: <108B821D-C315-4B94-862C-A23436C7C573@uva.nl> References: <49B1DC36.1020505@gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============1035282841==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LftnN-0005j2-F2 for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:30:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LftnL-0005iq-PE for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:30:16 -0500 Received: from [199.232.76.173] (port=33182 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LftnL-0005in-JI for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:30:15 -0500 Received: from mail-ew0-f179.google.com ([209.85.219.179]:44185) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LftnL-0002MN-0E for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:30:15 -0500 Received: by ewy27 with SMTP id 27so417634ewy.42 for ; Sat, 07 Mar 2009 02:30:14 -0800 (PST) In-Reply-To: <49B1DC36.1020505@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: srandby@gmail.com Cc: "[Orgmode]" --===============1035282841== Content-Type: multipart/alternative; boundary=Apple-Mail-1-416566893 --Apple-Mail-1-416566893 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Scott, I do not think it makes sense to automatically produce these files. Among other things, it would mean that the extra files are produces for every single export of a file. If you want external files, You likely will use the same for a set of pages. After pulling the latest version you can do this: 1. prepare any style files and script files you want to use 2. do this (setq org-export-html-style-include-default nil) (setq org-export-html-style-include-scripts nil) (setq org-export-html-style " ") Instead of the last setting, you can also use #+STYLE in a file to specify the style files for this particular page. HTH - Carsten > On Mar 7, 2009, at 3:30 AM, srandby@gmail.com wrote: > Greetings, > > When I export (using org-mode 6.23) to html an org file that has > options for org-info.js, the html file contains this: > > > > Earlier versions of org-mode exported scripts this way: > > > > Today, I discovered that the first script listed above will work > with Firefox, but not with Safari (I don't know about IE). After > some research, I discovered several fixes, including the old way of > exporting, the easiest being: > > > > > I realize there are issues here with the differences between html > browsers and xml browsers, so I've decided that I would like to have > scripts (and styles) exported as separate files. Is this possible? > > When I export my org file to html, the html file contains one style > section and two script sections. If these three were instead > exported to separate files, that would eliminate the need to worry > about how to enclose styles and scripts with comments in a way that > works for all browsers. Of course, then org-mode would be creating > four files instead of one, but I would like to have this option. > Everything I've read about this matter recommends keeping styles and > scripts as external files. > > When I create the three files manually and edit the html file > appropriately, the html file lacks all the style and script code > which is replaced by: > > > > > > > > Here gen-style.css contains the style generated by org-mode, > style.css is my own style, org-html.js is the first script generated > by org-mode, and mystery.js is the second script generated by org- > mode (it is mysterious to me). > > Scott Randby > > > _______________________________________________ > 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 --Apple-Mail-1-416566893 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Scott,

I = do not think it makes sense to automatically produce these = files.
Among other things, it would mean that the extra files = are
produces for every single export of a file.
If = you want external files, You likely will use the
same for a = set of pages.

After pulling the latest = version you can do this:

1. prepare any style = files and script files you want to use

2. do = this

(setq = org-export-html-style-include-default nil)
(setq = org-export-html-style-include-scripts nil)
(setq = org-export-html-style
   "<link rel=3D"stylesheet" = type=3D"text/css" href=3D"gen-style.css">
    <link = rel=3D"stylesheet" type=3D"text/css" href=3D"style.css">
   =  <script type=3D"text/javascript" = src=3D"org-info.v.0.1.0.5.js"></script>
   =  <script type=3D"text/javascript" = src=3D"org-html.js"></script>
    <script = type=3D"text/javascript" = src=3D"mystery.js"></script>")


Instead of the last setting, you can also use #+STYLE in a = file
to specify the style files for this particular = page.

HTH

- = Carsten




On Mar 7, 2009, = at 3:30 AM, srandby@gmail.com = wrote:

Greetings,

When I = export (using org-mode 6.23) to html an org file that has options for = org-info.js, the html file contains this:

<script = type=3D"text/javascript">
<!--/*--><![CDATA[/*><!--*/
THE = SCRIPT
/*]]>*/-->
</script>

Earlier versions of org-mode = exported scripts this way:

<script = type=3D"text/javascript">
/* <![CDATA[ */
THE SCRIPT
/* ]]> = */
</script>

Today, I discovered that the first script = listed above will work with Firefox, but not with Safari (I don't know = about IE). After some research, I discovered several fixes, including = the old way of exporting, the easiest being:

<script = type=3D"text/javascript">
<!--
THE = SCRIPT
-->
</script>


I realize there are issues here = with the differences between html browsers and xml browsers, so I've = decided that I would like to have scripts (and styles) exported as = separate files. Is this possible?

When I export my org file to = html, the html file contains one style section and two script sections. = If these three were instead exported to separate files, that would = eliminate the need to worry about how to enclose styles and scripts with = comments in a way that works for all browsers. Of course, then org-mode = would be creating four files instead of one, but I would like to have = this option. Everything I've read about this matter recommends keeping = styles and scripts as external files.

When I create the three = files manually and edit the html file appropriately, the html file lacks = all the style and script code which is replaced by:

<link = rel=3D"stylesheet" type=3D"text/css" href=3D"gen-style.css">
<link = rel=3D"stylesheet" type=3D"text/css" href=3D"style.css">
<script = type=3D"text/javascript" = src=3D"org-info.v.0.1.0.5.js"></script>
<script = type=3D"text/javascript" src=3D"org-html.js"></script>
<script = type=3D"text/javascript" src=3D"mystery.js"></script>

Here = gen-style.css contains the style generated by org-mode, style.css is my = own style, org-html.js is the first script generated by org-mode, and = mystery.js is the second script generated by org-mode (it is mysterious = to me).

Scott = Randby


_______________________________________________
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
<= br>
= --Apple-Mail-1-416566893-- --===============1035282841== 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 --===============1035282841==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Javascript Export Issue Date: Sat, 7 Mar 2009 11:32:39 +0100 Message-ID: <19877663-45DE-4747-8F7A-A2B462EB8B04@uva.nl> References: <49B1DC36.1020505@gmail.com> <87wsb1638r.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 (Apple Message framework v930.3) 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 1Lftpr-0006x2-IN for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:32:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lftpq-0006wX-4A for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:32:51 -0500 Received: from [199.232.76.173] (port=42899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lftpp-0006wQ-Rd for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:32:49 -0500 Received: from mail-ew0-f179.google.com ([209.85.219.179]:44879) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lftpp-0002b0-CE for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 05:32:49 -0500 Received: by ewy27 with SMTP id 27so418051ewy.42 for ; Sat, 07 Mar 2009 02:32:48 -0800 (PST) In-Reply-To: <87wsb1638r.fsf@kassiopeya.MSHEIMNETZ> 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: Sebastian Rose Cc: srandby@gmail.com, "[Orgmode]" Applied, thanks. - Carsten On Mar 7, 2009, at 11:23 AM, Sebastian Rose wrote: > > Here's the patch to fix this issue. > > > diff --git a/lisp/org-exp.el b/lisp/org-exp.el > index c21755a..952eb9a 100644 > --- a/lisp/org-exp.el > +++ b/lisp/org-exp.el > @@ -563,7 +563,7 @@ not be modified." > if(elem.cacheClassTarget) > target.className = elem.cacheClassTarget; > } > -/*]]>*/--> > +/*]]>*///--> > " > "Basic javascript that is needed by HTML files produced by Org-mode.") > > diff --git a/lisp/org-jsinfo.el b/lisp/org-jsinfo.el > index 285169b..b24f65b 100644 > --- a/lisp/org-jsinfo.el > +++ b/lisp/org-jsinfo.el > @@ -110,7 +110,7 @@ means to use the maximum value consistent with > other options." > > +/*]]>*///--> > " > "The template for the export style additions when org-info.js is > used. > Option settings will replace the %MANAGER-OPTIONS cookie." > > -- > Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 > Hannover > Tel.: +49 (0)511 - 36 58 472 > Fax: +49 (0)1805 - 233633 - 11044 > mobil: +49 (0)173 - 83 93 417 > Http: www.emma-stil.de > _______________________________________________ > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: srandby@gmail.com Subject: Re: Javascript Export Issue Date: Sat, 07 Mar 2009 21:20:20 -0500 Message-ID: <49B32B64.1060406@gmail.com> References: <49B1DC36.1020505@gmail.com> <108B821D-C315-4B94-862C-A23436C7C573@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lg8cx-0006ch-QP for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 21:20:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lg8cv-0006cS-Bs for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 21:20:30 -0500 Received: from [199.232.76.173] (port=39882 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lg8cv-0006cO-7K for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 21:20:29 -0500 Received: from yx-out-1718.google.com ([74.125.44.158]:29796) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lg8cu-0000rw-S6 for emacs-orgmode@gnu.org; Sat, 07 Mar 2009 21:20:29 -0500 Received: by yx-out-1718.google.com with SMTP id 34so586021yxf.66 for ; Sat, 07 Mar 2009 18:20:24 -0800 (PST) In-Reply-To: <108B821D-C315-4B94-862C-A23436C7C573@uva.nl> 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: "[Orgmode]" Carsten Dominik wrote: > Hi Scott, > > I do not think it makes sense to automatically produce these files. > Among other things, it would mean that the extra files are > produces for every single export of a file. Yes, I agree, but I still would like to be able to do it. Perhaps, when I eventually learn lisp, I'll work on a way to implement this. > If you want external files, You likely will use the > same for a set of pages. > > After pulling the latest version you can do this: > > 1. prepare any style files and script files you want to use > > 2. do this > > (setq org-export-html-style-include-default nil) > (setq org-export-html-style-include-scripts nil) > (setq org-export-html-style > " > > > > ") > > > Instead of the last setting, you can also use #+STYLE in a file > to specify the style files for this particular page. Thanks, this helps a lot. > > HTH > > - Carsten > > >> > > > On Mar 7, 2009, at 3:30 AM, srandby@gmail.com wrote: > >> Greetings, >> >> When I export (using org-mode 6.23) to html an org file that has >> options for org-info.js, the html file contains this: >> >> >> >> Earlier versions of org-mode exported scripts this way: >> >> >> >> Today, I discovered that the first script listed above will work with >> Firefox, but not with Safari (I don't know about IE). After some >> research, I discovered several fixes, including the old way of >> exporting, the easiest being: >> >> >> >> >> I realize there are issues here with the differences between html >> browsers and xml browsers, so I've decided that I would like to have >> scripts (and styles) exported as separate files. Is this possible? >> >> When I export my org file to html, the html file contains one style >> section and two script sections. If these three were instead exported >> to separate files, that would eliminate the need to worry about how to >> enclose styles and scripts with comments in a way that works for all >> browsers. Of course, then org-mode would be creating four files >> instead of one, but I would like to have this option. Everything I've >> read about this matter recommends keeping styles and scripts as >> external files. >> >> When I create the three files manually and edit the html file >> appropriately, the html file lacks all the style and script code which >> is replaced by: >> >> >> >> >> >> >> >> Here gen-style.css contains the style generated by org-mode, style.css >> is my own style, org-html.js is the first script generated by >> org-mode, and mystery.js is the second script generated by org-mode >> (it is mysterious to me). >> >> Scott Randby >> >> >> _______________________________________________ >> 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 > >