From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Subject: CSS and Publishing to HTML Tutorial Date: Thu, 8 Jul 2010 19:48:11 +1200 Message-ID: <201007081948.12773.ahcnz@ihug.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=44804 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWljT-0000iQ-KF for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 03:41:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWljS-0007OI-F8 for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 03:41:19 -0400 Received: from mailfilter70.ihug.co.nz ([203.109.136.70]:38458) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWljS-0007NN-58 for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 03:41:18 -0400 Content-Disposition: inline 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 The Worg tutorial "Publishing Org-mode files to HTML" ran for me first time, so it seems excellent and well written. However I am trying to use a vanilla CSS, say ssheet1.css, located in ~/org/css" as per the tutorial. With only the following line at the end of my org file, #+STYLE: or even # STYLE: doing a view source of the HTML published page, shows that it includes the java stuff of org-export-html-style-export, shown below. I feel my defined CSS is being somehow compromised. I am hoping to tweek a CSS from the ground up, or choose a most suitable one from elsewhere. The only other thing, is that I fear my trial CGI Bash script is being clobbered by the Java, as its not working (its permission is OK). Maybe it needs to be enclosed within a unique style/type entry. #+STYLE: Below, I hope not at the risk of a friendship, I include the settings for; org-export-html-style org-export-html-style-default org-export-html-style-include-default org-publish-project-alist And these were noted after a successfuul org-publish operation. My question is, how should I unambiguously use a specific CSS, within the context of the "Publishing Org-mode files to HTML" tutorial. And whether including the CGI script is as simple as that above. Sorry for my confusion, I cannot see how or where to remove the Java stuff. If its as simple as 13.3.1 of the Org Mode manual, or by modifying the *scratch* evaluations of the tutorial, then I do apologize. Thanks, best, Adam. ;------------------------------------------------------ org-export-html-style "" org-export-html-style-default "" org-export-html-style-include-default t org-publish-project-alist (("org-notes" :base-directory "C:\\Adamstuff\\webp\\org\\" :base-extension "org" :publishing-directory "C:\\Adamstuff\\webp\\public_html\\" :recursive t :publishing-function org-publish-org-to-html :headline-levels ...) ("org-static" :base-directory "C:\\Adamstuff\\webp\\org\\" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "C:\\Adamstuff\\webp\\public_html\\" :recursive t :publishing-function org-publish-attachment) ("org" :components ("org-notes" "org-static"))) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: CSS and Publishing to HTML Tutorial Date: Fri, 09 Jul 2010 15:35:56 +0200 Message-ID: <87hbk8zsjn.fsf@gmx.de> References: <201007081948.12773.ahcnz@ihug.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=36442 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXDk7-0000qw-SV for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 09:35:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXDk6-0007wk-E4 for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 09:35:51 -0400 Received: from mail.gmx.net ([213.165.64.20]:42582) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OXDk5-0007wG-Uc for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 09:35:50 -0400 In-Reply-To: <201007081948.12773.ahcnz@ihug.co.nz> (Adam's message of "Thu, 8 Jul 2010 19:48:11 +1200") 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: Adam Cc: emacs-orgmode@gnu.org Hi Adam! Adam writes: > The Worg tutorial "Publishing Org-mode files to HTML" ran for me first > time, so it seems excellent and well written. > > However I am trying to use a vanilla CSS, say ssheet1.css, located in > ~/org/css" as per the tutorial. > > With only the following line at the end of my org file, > > #+STYLE: > > or even > > # STYLE: To the END of your Org file ??? Those comments should live on the _TOP_ of your Org file. See http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php#sec-5_1 "The first choice is the export options template on top of the file..." > doing a view source of the HTML published page, shows that it includes > the java stuff of org-export-html-style-export, shown below. I feel my > defined CSS is being somehow compromised. _JavaScript_ has nothing to do with CSS. > I am hoping to tweek a CSS from the ground up, or choose a most > suitable one from elsewhere. The only other thing, is that I fear my > trial CGI Bash script is being clobbered by the Java, as its not working > (its permission is OK). Maybe it needs to be enclosed within a > unique style/type entry. > > #+STYLE: Details missing, but again: the JavaScript has hardly something to do with it. The tutorial mentions this line: #+INFOJS_OPT: view:nil toc:t ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js Remove the line, and you'll get rid of the JavaScript. To get rid of the default styles, customite the variable `org-export-html-style-include-default' > Below, I hope not at the risk of a friendship, I include the settings > for; > org-export-html-style > org-export-html-style-default > org-export-html-style-include-default > org-publish-project-alist > > And these were noted after a successfuul org-publish operation. > > > My question is, how should I unambiguously use a specific CSS, within > the context of the "Publishing Org-mode files to HTML" tutorial. And > whether including the CGI script is as simple as that above. > > Sorry for my confusion, I cannot see how or where to remove the Java > stuff. If its as simple as 13.3.1 of the Org Mode manual, or by modifying the > *scratch* evaluations of the tutorial, then I do apologize. > > Thanks, best, Adam. > > > ;------------------------------------------------------ > > org-export-html-style > "" > > org-export-html-style-default > "" > > org-export-html-style-include-default > t > > > org-publish-project-alist > > (("org-notes" :base-directory "C:\\Adamstuff\\webp\\org\\" :base-extension > "org" :publishing-directory "C:\\Adamstuff\\webp\\public_html\\" :recursive > t :publishing-function org-publish-org-to-html :headline-levels ...) > ("org-static" :base-directory "C:\\Adamstuff\\webp\\org\\" :base-extension > "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory > "C:\\Adamstuff\\webp\\public_html\\" :recursive t :publishing-function > org-publish-attachment) ("org" :components ("org-notes" "org-static"))) HTH Sebastian From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert Klein" Subject: Re: CSS and Publishing to HTML Tutorial Date: Fri, 09 Jul 2010 17:00:54 +0200 Message-ID: References: <201007081948.12773.ahcnz@ihug.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=36362 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXF4y-00029z-M9 for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 11:01:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXF4b-0005qc-4X for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 11:01:06 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:63750) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXF4a-0005qC-Ou for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 11:01:05 -0400 In-Reply-To: <201007081948.12773.ahcnz@ihug.co.nz> 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: Adam , emacs-orgmode@gnu.org Hi Adam, On Thu, 08 Jul 2010 09:48:11 +0200, Adam wrote: > #+STYLE: > > or even > > # STYLE: > > doing a view source of the HTML published page, shows that it includes > the java stuff of org-export-html-style-export, shown below. I feel my > defined CSS is being somehow compromised. > I also use a style of my own (and parts of the org-mode standard style copied into my style sheet). To avoid the inclusion of the org-mode style and javascript I put two additional settings into the project lists /notes/ component: :style-include-default nil ; don't include org-modes style sheet :style-include-scripts nil ; don't include org-modes javascript Additionally I put my style right behind those lines, but I don't think it matters if it is there or in the org file: :style "" For example, I put those tho lines into your quoted configuration: > org-publish-project-alist > > (("org-notes" :base-directory "C:\\Adamstuff\\webp\\org\\" :style-include-default nil ; don't include org-modes style sheet :style-include-scripts nil ; don't include org-modes javascript > :base-extension > "org" :publishing-directory "C:\\Adamstuff\\webp\\public_html\\" > :recursive > t :publishing-function org-publish-org-to-html :headline-levels ...) > ("org-static" :base-directory "C:\\Adamstuff\\webp\\org\\" > :base-extension > "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" > :publishing-directory > "C:\\Adamstuff\\webp\\public_html\\" :recursive t :publishing-function > org-publish-attachment) ("org" :components ("org-notes" "org-static"))) > Best regards Robert From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Subject: Re: CSS and Publishing to HTML Tutorial Date: Sat, 10 Jul 2010 07:30:45 +1200 Message-ID: <201007100730.47486.ahcnz@ihug.co.nz> References: <201007081948.12773.ahcnz@ihug.co.nz> <87hbk8zsjn.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34743 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXJAo-0004xY-7L for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 15:23:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXJAn-0000Tg-0H for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 15:23:46 -0400 Received: from mailfilter68.ihug.co.nz ([203.109.136.68]:33100) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXJAm-0000Sn-MS for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 15:23:44 -0400 In-Reply-To: <87hbk8zsjn.fsf@gmx.de> Content-Disposition: inline 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: emacs-orgmode@gnu.org Thanks for reply, guidance and suggestions. I agree my cgi has nothing to do with INFOJS_OPT, nor vice versa. Regarding CSS, I have gone back to the default position, of including these inside "org-notes" of org-publish-project-alist, and not referring to an external CSS, :style-include-default t :style-include-scripts nil (after Robert's comments). So I am hoping to use the default style output, and then adjust the style in the org file header using #+STYLE: < ... > In the org file, I have used org-insert-export-options-template and have deleted the line #+INFO-JS_OPT: ... I publish as per the tutorial, then open the HTML result in MS Internet Explorer, which reports in a yellow warning band across the top words to the effect of "To help protect your security, IE has restricted ... Click here for options". If I then edit that HTML file, and remove the 2nd of the two blocks, then reloading the HTML form does not cause the yellow warning to be issued. The form also appears to retain its default style, of red color for the TODO etc. This 2nd style block appears immediately before the content of the document. At the very end of the Head, just before . It begins with,