From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Emery Subject: Re: Org-mode version 4.74 Date: Mon, 14 May 2007 02:02:43 +0900 (JST) Message-ID: <20070514.020243.151481750.dave@skiddlydee.com> References: Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Mon_May_14_02_02_43_2007_403)--" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HnHZF-0001r1-Ab for emacs-orgmode@gnu.org; Sun, 13 May 2007 13:09:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HnHZD-0001qo-Pn for emacs-orgmode@gnu.org; Sun, 13 May 2007 13:09:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnHZD-0001ql-JG for emacs-orgmode@gnu.org; Sun, 13 May 2007 13:09:07 -0400 Received: from newsometer.com ([128.121.51.168]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HnHRX-0005q5-EA for emacs-orgmode@gnu.org; Sun, 13 May 2007 13:01:11 -0400 In-Reply-To: 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: dominik@science.uva.nl Cc: emacs-orgmode@gnu.org ----Next_Part(Mon_May_14_02_02_43_2007_403)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Date: Sun, 13 May 2007 09:35:15 +0200, Carsten Dominik wrote: > I have released version 4.74 of Org-mode at > > http://www.astro.uva.nl/~dominik/Tools/org/ > * Overview > > This release is about exporting agenda views, to HTML, to > postscript for printing, and to a special format (CSV) for > further processing in scripts. Great stuff! But of course as soon as I tried the agenda export to HTML, I wanted to be able to customize the CSS. So here's a patch that adds a setting: org-export-agenda-html-style. It's my first attempt at lisp, so I imagine it could be improved, but it works OK for me so far. I had originally thought to make the agenda export use org-export-html-style, (easy enough to do) and add the agenda-specific styles to that. But the fact that the agenda content gets wrapped in
 tags complicates things a
bit. That still might be a better approach, but I think for most people, the
style for 
 in regular html export would conflict with that for agenda
export.


Dave



> 
> * Incompatible Changes
> 
>    - The variable `org-agenda-remove-tags-when-in-prefix' has
>      been renamed to `org-agenda-remove-tags'.
> 
> * Details
> 
>    - Agenda views can be exported as plain text, as HTML, and as
>      Postscript(R).  This can simply be done from the agenda
>      buffer with `C-x C-w' and then specifying a filename like
>      `myagenda.html' or `myagenda.ps'.  See section 8.6.4 of the
>      manual.
> 
>    - Each custom agenda view can specify a list of associated
>      files names.  The command `C-c a e' then creates all views
>      that have associated file names and exports the views to
>      these files.  This is great for producing paper versions of
>      your views, to take with you when you don't have your
>      computer.  The manual has an example on how to do this, and
>      in particular on how to customize the format of the printed
>      version.  See section 8.6.4 of the manual.
> 
>    - You can produce a CSV format of agenda information with an
>      Emacs batch command.  This is greate for further processing
>      in scipts.  Thanks to Jason F. McBrayer for this idea.
>      See section 8.6.5 of the manual.
> 
>    - New variable `org-agenda-skip-deadline-if-done'.  When set,
>      a deadline associated with a DONE item will not be shown in
>      the agenda.  This is based upon a report by Denis Bueno.
> 
>    - Quite a few bug fixes.
> 
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

----Next_Part(Mon_May_14_02_02_43_2007_403)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="set_agenda_export_style.diff"

--- org-4.74/org.el	2007-05-13 16:25:40.000000000 +0900
+++ org.el		2007-05-14 01:12:13.000000000 +0900
@@ -2708,6 +2708,90 @@
   :group 'org-export-html
   :type 'string)
 
+(defcustom org-export-agenda-html-style
+""
+  "The default style specification for exported HTML Agenda files.
+Since there are different ways of setting style information, this variable
+needs to contain the full HTML structure to provide a style, including the
+surrounding HTML tags.  The style specifications should include definitions
+for new classes todo, done, title, and deadline.  For example, legal values
+would be:
+
+   
+
+or, if you want to keep the style in a file,
+
+   
+
+As the value of this option simply gets inserted into the HTML  header,
+you can \"misuse\" it to add arbitrary text to the header."
+  :group 'org-export-html
+  :type 'string)
+
+
+
 (defcustom org-export-html-title-format "

%s

\n" "Format for typesetting the document title in HTML export." :group 'org-export-html @@ -14292,6 +14376,15 @@ ((string-match "\\.html?\\'" file) (require 'htmlize) (set-buffer (htmlize-buffer (current-buffer))) + + ;; replace the section with org-export-agenda-html-style + (goto-char (point-min)) + (kill-region (- (search-forward "") + ) + (insert org-export-agenda-html-style) + + (write-file file) (kill-buffer (current-buffer)) (message "HTML written to %s" file)) @@ -17269,6 +17362,8 @@ (:tables . org-export-with-tables) (:table-auto-headline . org-export-highlight-first-table-line) (:style . org-export-html-style) + ;;; added for agenda html export + (:agenda-style . org-export-agenda-html-style) (:convert-org-links . org-export-html-link-org-files-as-html) (:inline-images . org-export-html-inline-images) (:expand-quoted-html . org-export-html-expand) ----Next_Part(Mon_May_14_02_02_43_2007_403)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ----Next_Part(Mon_May_14_02_02_43_2007_403)----