To include script.js into the <head> section per file: #+STYLE: <script type="text/javascript" src="script.js" />
Or #+STYLE: <script type="text/javascript"> #+STYLE: <!--/*--><![CDATA[/*><!--*/ #+STYLE: function youCodeHere { void 0; } #+STYLE: /*]]>*///--> #+STYLE: </script> NOTE: there is no `document.write' in XHTML the way it was in HTML. You would have to call `document.open()' before and therefore erase the documents contents. So I guess putting the script in the head section might be OK. Regards Sebastian Daniel Clemente <n142...@gmail.com> writes: > El dom, may 10 2009, Daniel Clemente va escriure: >some trick to insert code > just after the <body> or after <div id="content">? > > Sorry, I forgot about org-publish. It can use the parameter :preamble to do > exactly that. Furthermore: > > > ,---- > | org-export-html-preamble is a variable defined in `org-html.el'. Its value > is > | nil > | > | Documentation: Preamble, to be inserted just before <body>. Set by > publishing > | functions. > `---- > > > > I prefer to always embed the configuration inside the .org file instead of > in > Elisp code, but if this is only possible with org-publish, I should use it. > > > -- Daniel _______________________________________________ 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