From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Org-mode version 4.74 Date: Tue, 15 May 2007 13:41:18 +0200 Message-ID: <664c47b49e5a3e3a54f805df5c053089@science.uva.nl> References: <20070514.020243.151481750.dave@skiddlydee.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HnvWy-0002tx-Ng for emacs-orgmode@gnu.org; Tue, 15 May 2007 07:49:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HnvWx-0002tP-Ip for emacs-orgmode@gnu.org; Tue, 15 May 2007 07:49:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnvWx-0002tH-9R for emacs-orgmode@gnu.org; Tue, 15 May 2007 07:49:27 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HnvP4-0005qm-P9 for emacs-orgmode@gnu.org; Tue, 15 May 2007 07:41:19 -0400 In-Reply-To: <20070514.020243.151481750.dave@skiddlydee.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: David Emery Cc: emacs-orgmode@gnu.org Hi David, thanks, I will take your patch, with the following changes: - The name of the variable will be `org-agenda-export-html-style'. - `org-level-3' will no longer be used as a face in the agenda, instead I use a new face `org-agenda-structure'. - The default style will be empty, meaning that the stuff provided by htmlize not be changed. Only if the variable `org-agenda-export-html-style contains a string that contains , then it will replace the default style as given by htmlize. - Carsten On May 13, 2007, at 19:02, David Emery wrote: > 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
> --- 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 "

class=\"title\">%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 " + (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) > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477