Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports

2009-03-03 Thread Sebastian Rose
Could anyone of the bibtex users here add a little 5 line tutorial on how
to use bibtex (just few lines to get me started)? I never used bibtex,
but I'd want to support it in org-info.js and therefore need to create
testfiles.

(Ignore this mail if just another section is added to the resulting
XHTML)


Thanks and best regards,

   Sebastian

Taru Karttunen  writes:
> On 02.03 10:40, William Henney wrote:
>> > Selecting only some entries to display would be possible,
>> > but is it really necessary? In my use cases I just tend
>> > to have a per-article bib-file that contains the entries
>> > I wish to use. Making a rich enough API to sort, reformat
>> > and select a portion of a BibTeX file seems quite overblown
>> > for org.
>>
>> Personally, I use a single .bib file for everything, which is
>> currently running at 12269 entries, so something like Carsten's
>> suggestion would be necessary before org-exp-bibtex.el became useful
>> to me :)
>>
>> Bibtex2html already comes with a separate tool "bib2bib" which seems
>> to already do exactly what is needed. See
>> http://www.lri.fr/~filliatr/bibtex2html/doc/#htoc12
>
> Yes, it contains bib2bib and even the main bibtex2html contains
> functionality for this.
>
> Now how do we want to do this with org-mode?
> 1) The user is responsible for creating a bib-file using
> whatever tools she prefers (e.g. bib2bib).
> 2) Add an option to just select the entries that are used
> in the org-file. Nothing fancy.
> 3) Add a generic API to select+sort+format the entries.
>
> Both 1 and 2 are easy to do. I can create a patch that
> adds support for this later this week. Are there any
> other features that you would need?
>
> - Taru Karttunen
>
>
> ___
> 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

--
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.r...@emma-stil.de, sebastian_r...@gmx.de
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


[Orgmode] Insert validation link in postamble

2009-03-03 Thread Sebastian Rose

This patch inserts a link into the postamble to validate the XHTML 1.0
via http://validator.w3.org/

By clicking on the link, the page will be validated in a new browser
window (or tab).

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 95b9ad8..b359da1 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -4067,6 +4067,7 @@ lang=\"%s\" xml:lang=\"%s\">
  (when org-export-creator-info
(insert (format "HTML generated by org-mode %s in emacs %s\n"
org-version emacs-major-version)))
+ (insert "http://validator.w3.org/check?uri=referer\"; target=\"_blank\">Validate XHTML 1.0")
  (insert ""))
 
(if org-export-html-with-timestamp


-- 
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


Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports

2009-03-03 Thread Carsten Dominik


On Mar 3, 2009, at 7:33 AM, Taru Karttunen wrote:


On 02.03 10:40, William Henney wrote:

Selecting only some entries to display would be possible,
but is it really necessary? In my use cases I just tend
to have a per-article bib-file that contains the entries
I wish to use. Making a rich enough API to sort, reformat
and select a portion of a BibTeX file seems quite overblown
for org.


Personally, I use a single .bib file for everything, which is
currently running at 12269 entries, so something like Carsten's
suggestion would be necessary before org-exp-bibtex.el became useful
to me :)

Bibtex2html already comes with a separate tool "bib2bib" which seems
to already do exactly what is needed. See
http://www.lri.fr/~filliatr/bibtex2html/doc/#htoc12


Yes, it contains bib2bib and even the main bibtex2html contains
functionality for this.

Now how do we want to do this with org-mode?
1) The user is responsible for creating a bib-file using
whatever tools she prefers (e.g. bib2bib).
2) Add an option to just select the entries that are used
in the org-file. Nothing fancy.


I think (1) and (2) would be really nice.



3) Add a generic API to select+sort+format the entries.


(3) seems to be indeed more than necessary.  I for one would be  
perfectly

happy if the entries would come out in the sequence of citation, which
will likely be automatic?


Both 1 and 2 are easy to do. I can create a patch that
adds support for this later this week. Are there any
other features that you would need?


For consistency with other HTML in Org's output, I think it
would be good if the div around the bibliography would be



instead of class.

- Carsten





- Taru Karttunen


___
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




___
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


Re: Fwd: [Orgmode] ascii export of url part of links possible?

2009-03-03 Thread Giovanni Ridolfi
[snip quoted text]

I don't understand the problem!

Samuel,  please
could show us the *org* test file.?

eg:
file---
** test
his is a test[1].  it is also a test[2].  and it
has a link [google link one].  and another [3] and another
[yahoo link two].[4]

footnotes
[fn:39] four
[1] one

[2] two

[3] three

[4] [fn:39]
*** 
[google link one]: googlelink.com
[yahoo link two]: yahoolink.com


__
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto 
spazio gratuito per i tuoi file e i messaggi 
http://mail.yahoo.it



___
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


[Orgmode] Custom XHTML layouts

2009-03-03 Thread Sebastian Rose

The appended patch allows for custom layouts of the exported XHTML. As
the custom elements are added literally, PHP code could be added too.

Everyone who's informed about my elisp skills will read this with
appropriate scepticism :)

It's merely a proof of conncept, a suggestion.
Maybe we could find a more `template' based solution to make this easier
on non-lispers.

I didn't implement all the containers mentioned in the docstring of
`org-exp-custom-html-function' yet, but it's just adding two lines per
block.

If you add this patch, you'll be able to do the following:

1.) Define a function that add custom HTML elements.

This example will produce a table layout with the TOC on the left,
contents on the right. Title and postamble will span both columns.

(defun sr-org-export-custom-html(which &optional element-start)
  "See the docs of org-exp-custom-html-function"
  (cond
   ((string= which "body")
(if element-start
""
  ""))
   ((string= which "title")
(if element-start
""
  ""))
   ((string= which "toc")
(if element-start
""
  ""))
   ((string= which "postamble")
(if element-start
""
  ""))
   ))

2.) Add a line to your `org-publish-project-alist'.


("org-notes"
 ;; 
 :publishing-directory "~/develop/htdocs/org-notes/"
 ;; Tell org-exp.el to use a custom function:
 :publishing-function org-publish-org-to-html
 ;; 

3.) Apply this patch to the current head:

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 95b9ad8..239d387 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -3266,6 +3266,18 @@ in a window.  A non-interactive call will only return the buffer."
 
 (defvar html-table-tag nil) ; dynamically scoped into this.
 (defvar org-par-open nil)
+(defun  org-exp-custom-html-function (which &optional before)
+  "If before is non nil, we're about to start which. which is one of:
+- 'head'
+- 'body'
+- 'title'
+- 'toc'
+- 'contents'
+- 'lot'
+- 'postamble'
+While 'head' and 'body' are called directly after the the starttags and directly before the endtags
+are added, all the others wrap the element/block they are called for."
+  "")
 ;;;###autoload
 (defun org-export-as-html (arg &optional hidden ext-plist
 			   to-buffer body-only pub-dir)
@@ -3311,6 +3323,8 @@ PUB-DIR is set, use this as the publishing directory."
 			"\n" org-export-html-scripts))
 	 (html-extension (plist-get opt-plist :html-extension))
 	 (link-validate (plist-get opt-plist :link-validation-function))
+	 (html-extension (plist-get opt-plist :html-extension))
+	 (custom-html-function (or (plist-get opt-plist :custom-html-function) 'org-exp-custom-html-function))
 	 valid thetoc have-headings first-heading-pos
 	 (odd org-odd-levels-only)
 	 (region-p (org-region-active-p))
@@ -3494,12 +3508,14 @@ lang=\"%s\" xml:lang=\"%s\">
 "
 		 language language (org-html-expand title)
 		 (or charset "iso-8859-1") date author style))
-
+(insert (funcall custom-html-function "body" t))
 	(insert (or (plist-get opt-plist :preamble) ""))
 
 	(when (plist-get opt-plist :auto-preamble)
-	  (if title (insert (format org-export-html-title-format
-(org-html-expand title))
+	  (if title (insert (concat
+ (funcall custom-html-function "title" t)
+ (format org-export-html-title-format (org-html-expand title))
+ (funcall custom-html-function "title"))
 
   (if (and org-export-with-toc (not body-only))
 	  (progn
@@ -4047,6 +4063,7 @@ lang=\"%s\" xml:lang=\"%s\">
 		"\n"))
   (unless body-only
 	(when (plist-get opt-plist :auto-postamble)
+  (insert (funcall custom-html-function "postamble" t))
 	  (insert "")
 	  (when (and org-export-author-info author)
 	(insert " "
@@ -4067,11 +4084,13 @@ lang=\"%s\" xml:lang=\"%s\">
 	  (when org-export-creator-info
 	(insert (format "HTML generated by org-mode %s in emacs %s\n"
 			org-version emacs-major-version)))
-	  (insert ""))
+	  (insert "")
+  (insert (funcall custom-html-function "postamble")))
 
 	(if org-export-html-with-timestamp
 	(insert org-export-html-html-helper-timestamp))
 	(insert (or (plist-get opt-plist :postamble) ""))
+(insert (funcall custom-html-function "body"))
 	(insert "\n\n"))
 
   (unless (plist-get opt-plist :buffer-will-be-killed)
@@ -4092,9 +4111,11 @@ lang=\"%s\" xml:lang=\"%s\">
 	  (when (looking-at "\\s-*")
 	(goto-char (match-end 0))
 	(insert "\n")))
+(insert (funcall custom-html-function "toc" t))
 	(insert "\n")
 	(mapc 'insert thetoc)
 	(insert "\n"))
+(insert (funcall custom-html-function "toc"))
   ;; remove empty paragraphs and lists
   (goto-char (point-min))
   (while (re-search-forward "[ \r\n\t]*" nil t)



Regards,

--
Sebastian Rose, EM

Re: [Orgmode] Insert validation link in postamble

2009-03-03 Thread Carsten Dominik

Hi Sebastian,

should this really be its own paragraph?  I think it could be in the  
creator line.


- Carsten

On Mar 3, 2009, at 10:20 AM, Sebastian Rose wrote:



This patch inserts a link into the postamble to validate the XHTML 1.0
via http://validator.w3.org/

By clicking on the link, the page will be validated in a new browser
window (or tab).

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 95b9ad8..b359da1 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -4067,6 +4067,7 @@ lang=\"%s\" xml:lang=\"%s\">
 (when org-export-creator-info
   (insert (format "HTML generated by  
org-mode %s in emacs %s\n"

   org-version emacs-major-version)))
+ (insert "http://validator.w3.org/check?uri=referer 
\" target=\"_blank\">Validate XHTML 1.0")

 (insert ""))

   (if org-export-html-with-timestamp


--
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




___
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


Re: [Orgmode] Insert validation link in postamble

2009-03-03 Thread Carsten Dominik


On Mar 3, 2009, at 10:54 AM, Carsten Dominik wrote:


Hi Sebastian,

should this really be its own paragraph?  I think it could be in the  
creator line.


Actually, I take that back.

I have applied your patch, but wrapped it into a variable
org-export-html-validation-link which defaults to nil.

- Carsten





- Carsten

On Mar 3, 2009, at 10:20 AM, Sebastian Rose wrote:



This patch inserts a link into the postamble to validate the XHTML  
1.0

via http://validator.w3.org/

By clicking on the link, the page will be validated in a new browser
window (or tab).

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 95b9ad8..b359da1 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -4067,6 +4067,7 @@ lang=\"%s\" xml:lang=\"%s\">
(when org-export-creator-info
  (insert (format "HTML generated by  
org-mode %s in emacs %s\n"

  org-version emacs-major-version)))
+ (insert "http://validator.w3.org/check?uri=referer 
\" target=\"_blank\">Validate XHTML 1.0")

(insert ""))

  (if org-export-html-with-timestamp


--
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






___
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


Re: [Orgmode] export and containers

2009-03-03 Thread Carsten Dominik

I have now added a "content" container around all of body.

- Carsten

On Mar 3, 2009, at 2:16 AM, Richard Riley wrote:


Sebastian Rose  writes:


Richard Riley  writes:

Sebastian Rose  writes:


Richard Riley  writes:
I really dont see the plethora of sec-id# that are currently  
generated
being really useful since they change on each export if new  
stuff is

entered. This make existing CSS redundant unfortunately.


The IDs in the section headings are not meant for CSS styling.  
That's

what the classes are for.


Regards,


IDs are frequently used for styling as well as classes.



Well, in this case, since we never know the ID of a section in
advance...


Or haven't known in the past. See other post. We probably need to be
able to control the class and/or ID of individual sections at the  
higher

level.




___
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


Re: [Orgmode] export and containers

2009-03-03 Thread Sebastian Rose
Carsten Dominik  writes:
> I have now added a "content" container around all of body.
>
> - Carsten


OK, I'll go and adjust org-info.js as needed now.

Best,

  Sebastian

>
> On Mar 3, 2009, at 2:16 AM, Richard Riley wrote:
>
>> Sebastian Rose  writes:
>>
>>> Richard Riley  writes:
 Sebastian Rose  writes:

> Richard Riley  writes:
>> I really dont see the plethora of sec-id# that are currently generated
>> being really useful since they change on each export if new stuff is
>> entered. This make existing CSS redundant unfortunately.
>
> The IDs in the section headings are not meant for CSS styling. That's
> what the classes are for.
>
>
> Regards,

 IDs are frequently used for styling as well as classes.
>>>
>>>
>>> Well, in this case, since we never know the ID of a section in
>>> advance...
>>
>> Or haven't known in the past. See other post. We probably need to be
>> able to control the class and/or ID of individual sections at the higher
>> level.
>

-- 
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.r...@emma-stil.de, sebastian_r...@gmx.de
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


Re: [Orgmode] Insert validation link in postamble

2009-03-03 Thread Carsten Dominik


On Mar 3, 2009, at 11:22 AM, Sebastian Rose wrote:


Carsten Dominik  writes:

On Mar 3, 2009, at 10:54 AM, Carsten Dominik wrote:


Hi Sebastian,

should this really be its own paragraph?  I think it could be in  
the creator

line.


Actually, I take that back.

I have applied your patch, but wrapped it into a variable
org-export-html-validation-link which defaults to nil.

- Carsten


I'm fine with this.
Also, I found that there is no attribut `target' anymore in XHTML.

But we would receive more error reports if the default was to add the
validation link.

The variable is great though, because I now can change it to validate
local HTML, just as FF developer-toolbar does.


The variable is a boolean currently.  You want it
to specify the link?

- Carsten





Thanks,



--
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


Re: [Orgmode] Insert validation link in postamble

2009-03-03 Thread Sebastian Rose
Carsten Dominik  writes:
> On Mar 3, 2009, at 10:54 AM, Carsten Dominik wrote:
>
>> Hi Sebastian,
>>
>> should this really be its own paragraph?  I think it could be in the creator
>> line.
>
> Actually, I take that back.
>
> I have applied your patch, but wrapped it into a variable
> org-export-html-validation-link which defaults to nil.
>
> - Carsten

I'm fine with this.
Also, I found that there is no attribut `target' anymore in XHTML.

But we would receive more error reports if the default was to add the
validation link.

The variable is great though, because I now can change it to validate
local HTML, just as FF developer-toolbar does.


Thanks,



--
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


Re: [Orgmode] export and containers

2009-03-03 Thread Carsten Dominik

Thanks.

- Carsten

On Mar 3, 2009, at 11:14 AM, Sebastian Rose wrote:


Carsten Dominik  writes:

I have now added a "content" container around all of body.

- Carsten



OK, I'll go and adjust org-info.js as needed now.

Best,

 Sebastian



On Mar 3, 2009, at 2:16 AM, Richard Riley wrote:


Sebastian Rose  writes:


Richard Riley  writes:

Sebastian Rose  writes:


Richard Riley  writes:
I really dont see the plethora of sec-id# that are currently  
generated
being really useful since they change on each export if new  
stuff is

entered. This make existing CSS redundant unfortunately.


The IDs in the section headings are not meant for CSS styling.  
That's

what the classes are for.


Regards,


IDs are frequently used for styling as well as classes.



Well, in this case, since we never know the ID of a section in
advance...


Or haven't known in the past. See other post. We probably need to be
able to control the class and/or ID of individual sections at the  
higher

level.




--
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.r...@emma-stil.de, sebastian_r...@gmx.de
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


Re: [Orgmode] Custom XHTML layouts

2009-03-03 Thread Carsten Dominik

This looks interesting.  Do you have application examples?

A more template-like structure would be an alist, with contexts as keys,
and then two string values for the code to be inserted.  Using  
customize, this

could be set up by non-lispers.

- Carsten

On Mar 3, 2009, at 10:48 AM, Sebastian Rose wrote:



The appended patch allows for custom layouts of the exported XHTML. As
the custom elements are added literally, PHP code could be added too.

Everyone who's informed about my elisp skills will read this with
appropriate scepticism :)

It's merely a proof of conncept, a suggestion.
Maybe we could find a more `template' based solution to make this  
easier

on non-lispers.

I didn't implement all the containers mentioned in the docstring of
`org-exp-custom-html-function' yet, but it's just adding two lines per
block.

If you add this patch, you'll be able to do the following:

1.) Define a function that add custom HTML elements.

   This example will produce a table layout with the TOC on the left,
   contents on the right. Title and postamble will span both columns.

   (defun sr-org-export-custom-html(which &optional element-start)
 "See the docs of org-exp-custom-html-function"
 (cond
  ((string= which "body")
   (if element-start
   ""
 ""))
  ((string= which "title")
   (if element-start
   ""
 ""))
  ((string= which "toc")
   (if element-start
   ""
 ""))
  ((string= which "postamble")
   (if element-start
   ""
 ""))
  ))

2.) Add a line to your `org-publish-project-alist'.


   ("org-notes"
;; 
:publishing-directory "~/develop/htdocs/org-notes/"
;; Tell org-exp.el to use a custom function:
:publishing-function org-publish-org-to-html
;; 

3.) Apply this patch to the current head:

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 95b9ad8..239d387 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -3266,6 +3266,18 @@ in a window.  A non-interactive call will  
only return the buffer."


(defvar html-table-tag nil) ; dynamically scoped into this.
(defvar org-par-open nil)
+(defun  org-exp-custom-html-function (which &optional before)
+  "If before is non nil, we're about to start which. which is one of:
+- 'head'
+- 'body'
+- 'title'
+- 'toc'
+- 'contents'
+- 'lot'
+- 'postamble'
+While 'head' and 'body' are called directly after the the starttags  
and directly before the endtags
+are added, all the others wrap the element/block they are called  
for."

+  "")
;;;###autoload
(defun org-export-as-html (arg &optional hidden ext-plist
   to-buffer body-only pub-dir)
@@ -3311,6 +3323,8 @@ PUB-DIR is set, use this as the publishing  
directory."

"\n" org-export-html-scripts))
 (html-extension (plist-get opt-plist :html-extension))
 (link-validate (plist-get opt-plist :link-validation-function))
+(html-extension (plist-get opt-plist :html-extension))
+	 (custom-html-function (or (plist-get opt-plist :custom-html- 
function) 'org-exp-custom-html-function))

 valid thetoc have-headings first-heading-pos
 (odd org-odd-levels-only)
 (region-p (org-region-active-p))
@@ -3494,12 +3508,14 @@ lang=\"%s\" xml:lang=\"%s\">
"
 language language (org-html-expand title)
 (or charset "iso-8859-1") date author style))
-
+(insert (funcall custom-html-function "body" t))
(insert (or (plist-get opt-plist :preamble) ""))

(when (plist-get opt-plist :auto-preamble)
- (if title (insert (format org-export-html-title-format
-   (org-html-expand title))
+ (if title (insert (concat
+ (funcall custom-html-function "title" t)
+ (format org-export-html-title-format (org- 
html-expand title))

+ (funcall custom-html-function "title"))

  (if (and org-export-with-toc (not body-only))
  (progn
@@ -4047,6 +4063,7 @@ lang=\"%s\" xml:lang=\"%s\">
"\n"))
  (unless body-only
(when (plist-get opt-plist :auto-postamble)
+  (insert (funcall custom-html-function "postamble" t))
  (insert "")
  (when (and org-export-author-info author)
(insert " "
@@ -4067,11 +4084,13 @@ lang=\"%s\" xml:lang=\"%s\">
  (when org-export-creator-info
	(insert (format "HTML generated by org- 
mode %s in emacs %s\n"

org-version emacs-major-version)))
- (insert ""))
+ (insert "")
+  (insert (funcall custom-html-function "postamble")))

(if org-export-html-with-timestamp
(insert org-export-html-html-helper-timestamp))
(insert (or (plist-get opt-plist :postamble) ""))
+(insert (funcall custom-html-function "b

Re: [Orgmode] export and containers

2009-03-03 Thread Sebastian Rose

OK. An updated version of org-info.js in now available on github as
well, as in worg.git.

NOTE: you MUST UPDATE ORG-INFO.JS, if you use the current git version.

The changes to org-info.js are backward compatible.
Hence you don't need to re-export everything.

Regards,

   Sebastian

Carsten Dominik  writes:
> I have now added a "content" container around all of body.
>
> - Carsten
>
> On Mar 3, 2009, at 2:16 AM, Richard Riley wrote:
>
>> Sebastian Rose  writes:
>>
>>> Richard Riley  writes:
 Sebastian Rose  writes:

> Richard Riley  writes:
>> I really dont see the plethora of sec-id# that are currently generated
>> being really useful since they change on each export if new stuff is
>> entered. This make existing CSS redundant unfortunately.
>
> The IDs in the section headings are not meant for CSS styling. That's
> what the classes are for.
>
>
> Regards,

 IDs are frequently used for styling as well as classes.
>>>
>>>
>>> Well, in this case, since we never know the ID of a section in
>>> advance...
>>
>> Or haven't known in the past. See other post. We probably need to be
>> able to control the class and/or ID of individual sections at the higher
>> level.
>

-- 
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.r...@emma-stil.de, sebastian_r...@gmx.de
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


[Orgmode] Re: Switching between many contexts

2009-03-03 Thread Daniel Clemente

> Assign a FLUFF tag to your tasks then run the agenda normally and remove
> the fluff with
>
> / - TAB FLUFF RET

  Thanks, this works. I will use tags instead of categories.

>
> or if you do that often set up org-tags-alist with F for FLUFF and just
>
> / - F
>

  In fact I would like to use often the agenda view with several tags excluded, 
so the ideal setup would be an agenda custom search.
  But I don't know which command to use in org-agenda-custom-commands: I don't 
want tags-todo (that's a heading list), but the real agenda (with its colors, 
dates, deadlines, etc.). However, the search type called „agenda“ seems not to 
accept tags to search.
  Maybe „agenda“ could accept tags to search?
  Or else I can try to do a custom command which emulates the agenda but adds 
this filter; maybe with a local variable or with „skip conditions“ 
(org-agenda-skip-function).


-- 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


[Orgmode] org-info.js: PLEASE UPDATE

2009-03-03 Thread Sebastian Rose


Just in case you missed the recent changes:


   Org-mode > 6.23 (commit a68eb4b1e64cbe6e495fdd2c1eaf8ae597bf8602)
   introduces a new HTML container, that wraps everything inside
   `'. That container has the ID `content' applied.


   NOTE:
   * YOU'LL HAVE TO UPGRADE org-info.js too, if you use it. The version
 number in the 3rd line of the script *must* be

v.0.1.0.1 
   
 to work with the new export version.
 
   * This version is backward compatible with elder versions of
 Org-mode. No need to re-publish everything.

  * The new container now makes it possible, to include the `content'
into any page and still have a working info-view-mode, folding,
searching and so on.

  * Multiple instances of org_html_manager are not supported. Also, I
don't plan to support multiple instances in the future.



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
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


Re: [Orgmode] Custom XHTML layouts

2009-03-03 Thread Sebastian Rose
Carsten Dominik  writes:

> This looks interesting.  Do you have application examples?

Only the one I mentioned in the original message so far. It just wraps
the hole page into a table like this:


  ++
  | Title  |
  +-+--+
  | toc | sections..   |
  | |  |
  | |  |
  +-+--+
  | postamble  |
  ++



But I can think of hundreds of applications:

  * It would be easy to add a logo to the title bar,
  * or some debug information to footer for local testing.
  * But no such debug info for the public export to the internet.
  * you're google search on orgmode.org
  * some PHP-functions one might want to execute, e.g. to include
 + a tag cloud
 + additional navigations
 + count visitors
 + track the movement of visitors
 + include a shop system  - just kidding :-D
 ...
  * Clean view of the *.org files. No more
   #+begin_html
 ...
   #+end_html
or
   @http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Switching between many contexts

2009-03-03 Thread Matthew Lundin

Daniel Clemente  writes:

>   In fact I would like to use often the agenda view with several tags 
> excluded, so the ideal setup would be an agenda custom search.
>   But I don't know which command to use in org-agenda-custom-commands: I 
> don't want tags-todo (that's a heading list), but the real agenda (with its 
> colors, dates, deadlines, etc.). However, the search type called „agenda“ 
> seems not to accept tags to search.
>   Maybe „agenda“ could accept tags to search?
>   Or else I can try to do a custom command which emulates the agenda
>   but adds this filter; maybe with a local variable or with „skip
>   conditions“ (org-agenda-skip-function).

For this you would indeed you a skip function.

E.g.,

--8<---cut here---start->8---
(setq org-agenda-custom-commands
  '(("A" agenda ""
 ((org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp 
":TAG:"))
--8<---cut here---end--->8---
  
Best,
Matt


___
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


Re: [Orgmode] Re: Switching between many contexts

2009-03-03 Thread Carsten Dominik


On Mar 3, 2009, at 2:05 PM, Matthew Lundin wrote:



Daniel Clemente  writes:

 In fact I would like to use often the agenda view with several  
tags excluded, so the ideal setup would be an agenda custom search.
 But I don't know which command to use in org-agenda-custom- 
commands: I don't want tags-todo (that's a heading list), but the  
real agenda (with its colors, dates, deadlines, etc.). However, the  
search type called „agenda“ seems not to accept tags to search.

 Maybe „agenda“ could accept tags to search?
 Or else I can try to do a custom command which emulates the agenda
 but adds this filter; maybe with a local variable or with „skip
 conditions“ (org-agenda-skip-function).


For this you would indeed you a skip function.

E.g.,

--8<---cut here---start->8---
(setq org-agenda-custom-commands
 '(("A" agenda ""
	 ((org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp  
":TAG:"))

--8<---cut here---end--->8---


This is very good, and it will work if you are talking about
entries that all do have that tag explicitly.  But will fail
if you have subtrees that inherit the tag:  If the agenda
scanner stops at a time stamp that is in an entry that inherits
the tag, then the skipper will not see the tag.

The reason why the agenda view does not have an option to
exclude some tags is also because of inheritance.  The tags
scanner that is used by `C-c a m' is designed to treat tag
inheritance fast, but the agenda directly jumps to relevant
time stamps and then must work its way up the hierarchy, for
each matching time stamp, to get all relevant tags.

A work-around with some speed penalty will therefore be

 ((org-agenda-skip-function '(member "TAG" (org-get-tags-at)))

Another possibility that might be useful would be to
use permanent restrictions.

For example, you can go to a subtree that you want to work with
and press `C-c C-x <'  on the headline.  All future agenda
commands then will only look at that subtree, until you
select a new restriction or until you remove the restriction with
`C-c C-x >'.  You may also restrict to a file by calling `C-c C-x <'
before the first headline of a file.

Maybe the best solutions would be if I allowed for a default
secondary filter to be applied to an agenda view  I will look
into this possibility.

- Carsten














Best,
Matt


___
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




___
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


[Orgmode] Article: Synchronizing org Files Using bzr and git

2009-03-03 Thread Ian Barton
I have been working on an article on syncing org files using a version 
control system for a while. The recent posts about using a usb stick 
motivated me to try and finish it.


You can see the html version at 
http://www.ian-barton.com/ian-barton/org_vcs/org_vcs.html and get the 
current version from github at 
git://github.com/geekinthesticks/org-vcs.git .


This is still a work in progress, but I would welcome any comments. 
Since it's available via github and I am lazy, please feel free to edit 
it yourself:)


A couple of observations:

I have tried to strike a balance between describing something that works 
and avoiding too many minutiae of VCS options.


I am using bzr myself (although I might switch). I am aware that most 
people on the list use git, so I have tried to give both git and bzr 
examples. If the git ones are wrong, please let me know!


If Carsten thinks it's suitable I would be happy for the article to end 
up on worg, or wherever he thinks appropriate.


Ian.


___
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


[Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Dale Smith
Baoqiu Cui  writes:

> The only thing that is missing (at least to me) in current Org-mode is
> the exporter for DocBook format.

There is quite a bit of similarity between org and muse formats.  I've
found that I can edit .muse files in org-mode and stiil publish to
docbook.


> During the last week (mainly during the last weekend), I wrote some code
> to export Org files to DocBook V5.0 format, and everything looks very
> promising (I have to admit that a lot of work still needs to be done to
> make the code complete and stable) .

Looks pretty good to me.  I'm ready to ty it out!

-Dale

-- 
Dale P. Smith
da...@vtiinstruments.com
216-447-4059 x2018
216-447-8951 FAX

(Company mandated disclaimer follows...)

The information in this e-mail and any attachments is intended solely
for use by the recipient(s) to whom this e-mail is addressed and may
contain confidential and/or privileged information which is exempt
from disclosure.  If you are not an intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that you have received this e-mail
and any attachments in error and that dissemination, distribution,
review or copying of this e-mail and its attachments is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete all electronic and paper copies of
this e-mail as well as any attachments.
Thank you.

http://www.vtiinstruments.com/images/vtiemaillogo.gif


___
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


Re: [Orgmode] Re: Switching between many contexts

2009-03-03 Thread Manuel Hermenegildo

> For this you would indeed you a skip function.
>
> E.g.,
>
> --8<---cut here---start->8---
> (setq org-agenda-custom-commands
>  '(("A" agenda ""
>((org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp  
> ":TAG:"))
> --8<---cut here---end--->8---

This is what I use as filter, which covers the issue of inheritance
and a small optimization (at least for my org files):

(defun my-skip-by-tags (tag)
  "Skip tasks except those that contain tag (with
inheritance!). "
  (let ((line-end (save-excursion (progn (end-of-line) (point) ;; return pos
(if (or 
 (member tag (org-get-local-tags)) ;; check first if only local (speed)
 (member tag (org-get-tags-at (point ;; also inherited
nil ; do not skip
  line-end))) ; skip, continue after that

Cheers,

Manuel

-- 
---
 Manuel Hermenegildo | Prof., C.S.Dept., T.U. Madrid (UPM)
 Director, IMDEA-Software and CLIP Group | +34-91-336-7435 (W) -352-4819 (Fax)
---



___
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


Re: [Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Sebastian Rose
docbook is great since it's widely used. 

The output looks good!

How could we test it?
And could we configure it somehow?




Anyway, I'd prefere to export to _one_ XML format from Org-mode and
provide xslt stylesheets to translate between different formats.

That way we all would concentrate on one XML exporter (e.g. the XHTML
exporter) and could provide xslt stylesheets to transform the output.

This would guaranty a slitely more complete and bugfree export, which is
configured from one org-publish-project-alist.

Regards,

   Sebastian



Dale Smith  writes:
> Baoqiu Cui  writes:
>
>> The only thing that is missing (at least to me) in current Org-mode is
>> the exporter for DocBook format.
>
> There is quite a bit of similarity between org and muse formats.  I've
> found that I can edit .muse files in org-mode and stiil publish to
> docbook.
>
>
>> During the last week (mainly during the last weekend), I wrote some code
>> to export Org files to DocBook V5.0 format, and everything looks very
>> promising (I have to admit that a lot of work still needs to be done to
>> make the code complete and stable) .
>
> Looks pretty good to me.  I'm ready to ty it out!
>
> -Dale

-- 
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.r...@emma-stil.de, sebastian_r...@gmx.de
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


Re: [Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Sebastian Rose
Sebastian Rose  writes:
> Anyway, I'd prefere to export to _one_ XML format from Org-mode and
> provide xslt stylesheets to translate between different formats.
>
> That way we all would concentrate on one XML exporter (e.g. the XHTML
> exporter) and could provide xslt stylesheets to transform the output.
>
> This would guaranty a slitely more complete and bugfree export, which is
> configured from one org-publish-project-alist.


I think we would find hundreds of xslt stylesheets on the web to
transform Docbook to virtually any format.

... google google ...

Opendocument:
  http://open.comsultia.com/docbook2odf/ - toolkit
  http://sourceforge.net/projects/docbook2odf

XHTML
  There seems to be a standard stylesheet included in the Docbook
  distribution for generating XHTML as this mail says (the link in there
  is dead though):
  http://www.stylusstudio.com/xmldev/200012/post30530.html

RTF
  Also included in the standarrd distro

http://packages.debian.org/search?keywords=docbook





Will we loose the features of htmlize.el?
I'm not familiar with the Docbook DTD - I know it includes lots of
elements. How about time/date types, Programming types (string,
variable, class, function)?

Wouldn't it be easier to transform the XHTML to docbook through xslt?
The types are not lost, since all types that emacs is aware of, are
exported as 





--
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.r...@emma-stil.de, sebastian_r...@gmx.de
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


Re: [Orgmode] Article: Synchronizing org Files Using bzr and git

2009-03-03 Thread Mark Elston

Just a note.  Be careful of the use of colors.  For example,
you have quoted strings in yellow in section 3.3.  This color
makes the strings almost invisible on my screen.  This makes
it hard to read.

Also, is there a single-page or pdf version of this material?

Mark

* Ian Barton wrote (on 3/3/2009 5:42 AM):
I have been working on an article on syncing org files using a version 
control system for a while. The recent posts about using a usb stick 
motivated me to try and finish it.


You can see the html version at 
http://www.ian-barton.com/ian-barton/org_vcs/org_vcs.html and get the 
current version from github at 
git://github.com/geekinthesticks/org-vcs.git .


This is still a work in progress, but I would welcome any comments. 
Since it's available via github and I am lazy, please feel free to edit 
it yourself:)


A couple of observations:

I have tried to strike a balance between describing something that works 
and avoiding too many minutiae of VCS options.


I am using bzr myself (although I might switch). I am aware that most 
people on the list use git, so I have tried to give both git and bzr 
examples. If the git ones are wrong, please let me know!


If Carsten thinks it's suitable I would be happy for the article to end 
up on worg, or wherever he thinks appropriate.


Ian.


___
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






___
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


[Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Baoqiu Cui
Dale Smith  writes:

> Baoqiu Cui  writes:
>
>> The only thing that is missing (at least to me) in current Org-mode is
>> the exporter for DocBook format.
>
> There is quite a bit of similarity between org and muse formats.  I've
> found that I can edit .muse files in org-mode and stiil publish to
> docbook.

Yes, Muse and Org-mode do have some similarity.  While Muse is mainly
for publishing, Org-mode focuses on many other things beyond some good
publishing functionality.  Since Org-mode already has a very good
publishing framework in its HTML exporter , it is relatively easy (a
small step) to make Org-mode a strong publishing environment too.

I have not used Muse in the past 2+ years.  Don't know whether it has
got much improvement...  It's a nice trick to edit .muse files in
Org-mode. :-)

>> During the last week (mainly during the last weekend), I wrote some code
>> to export Org files to DocBook V5.0 format, and everything looks very
>> promising (I have to admit that a lot of work still needs to be done to
>> make the code complete and stable) .
>
> Looks pretty good to me.  I'm ready to ty it out!

Thanks.  I'll work on the code a little bit more during the weekend and
post it to the group.

Baoqiu



___
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


[Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Paul R
Hi,

Sebastian> Anyway, I'd prefere to export to _one_ XML format from
Sebastian> Org-mode and provide xslt stylesheets to translate between
Sebastian> different formats.

Sebastian> That way we all would concentrate on one XML exporter (e.g.
Sebastian> the XHTML exporter) and could provide xslt stylesheets to
Sebastian> transform the output.

Sebastian> This would guaranty a slitely more complete and bugfree
Sebastian> export, which is configured from one
Sebastian> org-publish-project-alist.

Yes, I also think this is a better way of exporting.

The nice thing about org-mode export system is the output-specific
regions (like between begin_latex and end_latex) that allow to stay
working in the org version of your document for more time. Final output
hand tuning is often necessary, but it is nice to push this step back if
possible.

Pandoc is good also, and LaTeX can be inlined as well :
http://johnmacfarlane.net/pandoc/

I wonder wether this can be done using docbook as an intermediate step.

-- 
  Paul


___
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


[Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Baoqiu Cui
Sebastian Rose  writes:

> docbook is great since it's widely used. 

Yes, DocBook has been adopted by many organizations in different areas
in the past years.  Once we have a good exporter for DocBook, we
basically build a bridge for exporting Org files to all other formats.

> The output looks good!
>
> How could we test it?
> And could we configure it somehow?

On how to set up a DocBook publishing environment, you can take a look
at the following page:

  http://www.sagehill.net/docbookxsl/ToolsSetup.html

I used xsltproc + FOP before, but now I use Saxon + FOP.

> Anyway, I'd prefere to export to _one_ XML format from Org-mode and
> provide xslt stylesheets to translate between different formats.

I totally agree!  We only need one XML exporter, and I think DocBook is
the way to go.

Baoqiu

> That way we all would concentrate on one XML exporter (e.g. the XHTML
> exporter) and could provide xslt stylesheets to transform the output.
>
> This would guaranty a slitely more complete and bugfree export, which is
> configured from one org-publish-project-alist.
>
> Regards,
>
>Sebastian
>
>
>
> Dale Smith  writes:
>> Baoqiu Cui  writes:
>>
>>> The only thing that is missing (at least to me) in current Org-mode is
>>> the exporter for DocBook format.
>>
>> There is quite a bit of similarity between org and muse formats.  I've
>> found that I can edit .muse files in org-mode and stiil publish to
>> docbook.
>>
>>
>>> During the last week (mainly during the last weekend), I wrote some code
>>> to export Org files to DocBook V5.0 format, and everything looks very
>>> promising (I have to admit that a lot of work still needs to be done to
>>> make the code complete and stable) .
>>
>> Looks pretty good to me.  I'm ready to ty it out!
>>
>> -Dale



___
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


[Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Baoqiu Cui
Sebastian Rose  writes:
>
> I think we would find hundreds of xslt stylesheets on the web to
> transform Docbook to virtually any format.

Yes, this is the power and beauty of DocBook.

> Will we loose the features of htmlize.el?
> I'm not familiar with the Docbook DTD - I know it includes lots of
> elements. How about time/date types, Programming types (string,
> variable, class, function)?

I have not tried it, but it seems that syntax highlighting of source
code listing can be done.  See this page:

  http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html

> Wouldn't it be easier to transform the XHTML to docbook through xslt?
> The types are not lost, since all types that emacs is aware of, are
> exported as 

It should be DocBook -> XHTML if we are talking about general
publishing.  DocBook has enough features, tags, and more importantly,
much more available tools.

Baoqiu



___
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


Re: [Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Sebastian Rose
Baoqiu Cui  writes:
> Sebastian Rose  writes:
>
>> docbook is great since it's widely used. 
>
> Yes, DocBook has been adopted by many organizations in different areas
> in the past years.  Once we have a good exporter for DocBook, we
> basically build a bridge for exporting Org files to all other formats.
>
>> The output looks good!
>>
>> How could we test it?
>> And could we configure it somehow?
>
> On how to set up a DocBook publishing environment, you can take a look
> at the following page:
>
>   http://www.sagehill.net/docbookxsl/ToolsSetup.html
>
> I used xsltproc + FOP before, but now I use Saxon + FOP.
>
>> Anyway, I'd prefere to export to _one_ XML format from Org-mode and
>> provide xslt stylesheets to translate between different formats.
>
> I totally agree!  We only need one XML exporter, and I think DocBook is
> the way to go.


How would I implement an individual design for a PDF?
How would I implement an individual layout for XHTML?

Are you shure, we could as easy and flexible style the output, as we can
do now?

I'm quite shure the direct LaTeX output is can't be beaten. I include
some files for LaTeX/PDF output. How would I do that?


Using docbook as the default output means to export from one interim
format to another. This is not bad, but we'll have to convince everyone,
that this is a good thing. The LaTeX and XHTML export (which, by the
way, could be transformed just as good as docbook) work and are widely
used.

Remember, that we will never have more information about the document,
than the Org-file format gives us.

While docbook might be a good technique, I'm not sure if docbook is the
way to go. I started to read about Docbook years ago, but I gave in on
that, since I encountered it in the wild. The DTD is huge and not many
will understand how to use it. XHTML and LaTeX are, what people know
already.
How would we support them in doing their daily work?


-- 
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


Re: [Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Sebastian Rose
Baoqiu Cui  writes:

> Sebastian Rose  writes:
>>
>> I think we would find hundreds of xslt stylesheets on the web to
>> transform Docbook to virtually any format.
>
> Yes, this is the power and beauty of DocBook.
>
>> Will we loose the features of htmlize.el?
>> I'm not familiar with the Docbook DTD - I know it includes lots of
>> elements. How about time/date types, Programming types (string,
>> variable, class, function)?
>
> I have not tried it, but it seems that syntax highlighting of source
> code listing can be done.  See this page:
>
>   http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html


Does this know about the fonts and colors I use in Emacs? htmlize.el
does. 


>> Wouldn't it be easier to transform the XHTML to docbook through xslt?
>> The types are not lost, since all types that emacs is aware of, are
>> exported as 
>
> It should be DocBook -> XHTML if we are talking about general
> publishing.  DocBook has enough features, tags, and more importantly,
> much more available tools.

...and needs an editor like emacs/Org-mode because there is none :-)

but
A) Most of those tools are simply XML related. XHTML is XML.
B) We have those information the *.org file format gives us. XHTML
   export can display all those.
C) Do you really want to tell a windows user to setup a complete SGML
   system, just to publish to PDF or XHTML?


It's true: Docbook is more general in sense of more non-org-users
might know Docbook, than Orgs XHTML export format.

But for sure more non-org-users will understand the XHTML, than the
Docbook.


I hihgly apreciate the support of Docbook and your effort. Yet, I think
I don't want to publish XHTML through Docbook.

Right now, I have a bunch of org-files, and I get a bunch of XHTML files
as output. Nothing else. No special setup required, no xslt stylesheets,
no FO or saxon.jar in $CLASSPATH (how many users know the contents of
his $CLASSPATH ?), xsltproc, xslt stylesheets, no waiting for a
Java-Application (I prefer C/C++ Tools), no waisted disk space, no
external dependencies.

We can't force end users to use Docbook to get XHTML. Java is _not_ part
of emacs, xsltproc is not part of emacs either (most of this is true for
LaTeX).

The XHTML export _is_ part of emacs and has _no_ external
dependencies. It's results are pages displayed in every browser, even
text browsers.

Docbook is displayed correctly in some of those browsers but only in
conjunction with a stylesheet. But not enough to publish Docbook and
your done. That's why Docbook is hardly ever met in the wild. It's badly
supported by the tools for end users and as complicated to setup, use
and transform as LaTeX (but LaTeX _is_ met in a lot in the wild).



Please don't get me wrong. I really think supporting Docbook is a big
step. I suddenly would have a cool Docbook editor on all the systems I
work on! I'm always happy to see people making such efforts as you
did. And I hope, this will bring more users to emacs/Org-mode too.




Best 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.r...@emma-stil.de, sebastian_r...@gmx.de
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


[Orgmode] Bug? org-tags-exclude-from-inheritance with Tags Matching

2009-03-03 Thread Jeff Mickey
Hey all,

To reproduce:

* TODO Make Bicycle :project:workshop:
** TODO Buy stuff
** TODO Build stuff
** TODO Test stuff

(setq org-use-tag-inheritance t)
(setq org-tags-exclude-from-inheritance '("project"))

 to type in a match string to search, I type in "project"

I expected to see:
TODO Make Bicycle

I saw:
TODO Make Bicycle
.TODO Buy stuff
.TODO Build stuff
.TODO Test stuff

I assume this isn't what is supposed to happen.  I'm currently at work
so I can't investigate and provide a diff, but it seems like there
needs to be a check in org.el:10144:org-get-tags-at to remove tags
that are explicitly excluded from inheritance.

Thanks!

 //  jeff


___
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


[Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Baoqiu Cui
Sebastian Rose  writes:

>> I have not tried it, but it seems that syntax highlighting of source
>> code listing can be done.  See this page:
>>
>>   http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html
>
>
> Does this know about the fonts and colors I use in Emacs? htmlize.el
> does. 

I don't think it will use the fonts and colors that you use in Emacs.
The colors seem to be configurable, though.

>>> Wouldn't it be easier to transform the XHTML to docbook through xslt?
>>> The types are not lost, since all types that emacs is aware of, are
>>> exported as 
>>
>> It should be DocBook -> XHTML if we are talking about general
>> publishing.  DocBook has enough features, tags, and more importantly,
>> much more available tools.
>
> ...and needs an editor like emacs/Org-mode because there is none :-)

I am just thinking that by supporting DocBook export we can turn Emacs +
Org-mode into a good DocBook editor, which should be much more powerful
than other GUI-based XML/DocBook editors.

> but
> A) Most of those tools are simply XML related. XHTML is XML.
> B) We have those information the *.org file format gives us. XHTML
>export can display all those.
> C) Do you really want to tell a windows user to setup a complete SGML
>system, just to publish to PDF or XHTML?

I have to *emphasize* this earlier: I am NOT suggesting that we should
replace LaTeX or XHTML exporters with a DocBook exporter.  Both LaTeX
and XHTML exporters have their good features and I don't think DocBook
can replace them.  DocBook exporter can simply be another addition to
Org-mode, and it can be used by people who need to write DocBook
documents for publishing.  (People use DocBook on both Windows and Unix,
and normally they do not have to know the internal setup of all DocBook
tools.)

> It's true: Docbook is more general in sense of more non-org-users
> might know Docbook, than Orgs XHTML export format.
>
> But for sure more non-org-users will understand the XHTML, than the
> Docbook.

Once we have the DocBook exporter, people do not have to know DocBook at
all to write DocBook documents.  All they need to know is simply text
files written in Org format. :-)  The DocBook documents they generate
from Org-mode will be guaranteed to be valid and well-formed.

> I hihgly apreciate the support of Docbook and your effort. Yet, I think
> I don't want to publish XHTML through Docbook.

Again, I am not suggesting that we replace current XHTML exporter, which
is a great tool and I can see that people already put a lot of efforts
there to make it very powerful.  DocBook is just an addition.
(Certainly people can use exported DocBook format to generate XHTML
format in some styles different from Org-mode's native XHTML export
result.)

> Right now, I have a bunch of org-files, and I get a bunch of XHTML files
> as output. Nothing else. No special setup required, no xslt stylesheets,
> no FO or saxon.jar in $CLASSPATH (how many users know the contents of
> his $CLASSPATH ?), xsltproc, xslt stylesheets, no waiting for a
> Java-Application (I prefer C/C++ Tools), no waisted disk space, no
> external dependencies.

This is understandable.  But generating DocBook documents from Emacs +
Org-mode does not require these things either!  How users use the
generated DocBook XML files for their publishing tasks (including how to
configure and tweak the final PDF format, and how to display them well
as XHTML in browser, etc.) are really up to them; such things are
outside of Emacs + Org-mode!

[To me, within an Org-mode buffer, I can use one key binding to do all
the thing I need: exporting DocBook format, creating PDF and HTML
formats from exported DocBook file, etc.  If I want, I can generate the
info file, man page, pure text format or RTF, etc. at the same time
too.]

> We can't force end users to use Docbook to get XHTML. ...

We should NOT. :-)

> ... Java is _not_ part
> of emacs, xsltproc is not part of emacs either (most of this is true for
> LaTeX).
>
> The XHTML export _is_ part of emacs and has _no_ external
> dependencies. It's results are pages displayed in every browser, even
> text browsers.

This is nice for XHTML exporter.  The results of DocBook exporter are
not supposed to be displayed directly on any browsers, just like we do
not expect any browsers to display *.tex files from LaTeX exporter.

> Docbook is displayed correctly in some of those browsers but only in
> conjunction with a stylesheet. But not enough to publish Docbook and
> your done. That's why Docbook is hardly ever met in the wild. It's badly
> supported by the tools for end users and as complicated to setup, use
> and transform as LaTeX (but LaTeX _is_ met in a lot in the wild).

Neither LaTeX nor DocBook is easy to set up.  While LaTeX is popular in
academia, not so many software companies use it to write software
documentation.

> Please don't get me wrong. I really think supporting Docbook is a big
> step. I suddenly would have a cool Docbook editor on all 

[Orgmode] Problem with autoloads

2009-03-03 Thread Mark Elston

I have two machines:  WinXP and Vista (64 bit) with Emacs 22.3
on both.

Both are configured the same in terms of libraries and, specifically,
the org-mode configuration is the same.

However, the (require 'org-install) on the Vista system doesn't
seem to work the same as it does on WinXP.  When I type C-c a
on the XP system I get the usual menu asking for the additional
key for the type of agenda I want.

On the Vista system, though, when I type C-c a I don't get this
menu and it provides the agenda in the default format (which isn't
really as useful to me).

I do a C-h f on org-agenda and it tells me (on the Vista system)
that it is an interactive  Lisp function in 'org.el'.

Apparently, even with the (require ...) in my .emacs file I am
not loading 'org-install.

Any ideas why this would be?

Mark


___
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


[Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Dale Smith
Sebastian Rose  writes:

> The LaTeX and XHTML export (which, by the
> way, could be transformed just as good as docbook) work and are widely
> used.

I'm not sure sure.  I think docbook is much more content oriented than
LaTeX and xhtml, which seem to be more presentation oriented.  To
me anyway.

-Dale

-- 
Dale P. Smith
da...@vtiinstruments.com
216-447-4059 x2018
216-447-8951 FAX

(Company mandated disclaimer follows...)

The information in this e-mail and any attachments is intended solely
for use by the recipient(s) to whom this e-mail is addressed and may
contain confidential and/or privileged information which is exempt
from disclosure.  If you are not an intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that you have received this e-mail
and any attachments in error and that dissemination, distribution,
review or copying of this e-mail and its attachments is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete all electronic and paper copies of
this e-mail as well as any attachments.
Thank you.

http://www.vtiinstruments.com/images/vtiemaillogo.gif


___
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


[Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Baoqiu Cui
Dale Smith  writes:

> Sebastian Rose  writes:
>
>> The LaTeX and XHTML export (which, by the
>> way, could be transformed just as good as docbook) work and are widely
>> used.
>
> I'm not sure sure.  I think docbook is much more content oriented than
> LaTeX and xhtml, which seem to be more presentation oriented.  To
> me anyway.

Yes...  Once we export the content from Org files into feature-rich
DocBook XML format, people can do all kinds of things on the final
presentations.

Baoqiu



___
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


Re: [Orgmode] Problem with autoloads

2009-03-03 Thread Mike Newman
I would check that you are running the same version of org on both -
call the function org-version.

On Tue, 03 Mar 2009 14:39:52 -0800
Mark Elston  wrote:

> I have two machines:  WinXP and Vista (64 bit) with Emacs 22.3
> on both.
> 
> Both are configured the same in terms of libraries and, specifically,
> the org-mode configuration is the same.
> 
> However, the (require 'org-install) on the Vista system doesn't
> seem to work the same as it does on WinXP.  When I type C-c a
> on the XP system I get the usual menu asking for the additional
> key for the type of agenda I want.
> 
> On the Vista system, though, when I type C-c a I don't get this
> menu and it provides the agenda in the default format (which isn't
> really as useful to me).
> 
> I do a C-h f on org-agenda and it tells me (on the Vista system)
> that it is an interactive  Lisp function in 'org.el'.
> 
> Apparently, even with the (require ...) in my .emacs file I am
> not loading 'org-install.
> 
> Any ideas why this would be?
> 
> Mark
> 
> 
> ___
> 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


___
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


Re: [Orgmode] Problem with autoloads

2009-03-03 Thread Samuel Wales
Also try locate-library.

-- 
Myalgic encephalomyelitis denialism is causing death (decades early;
Jason et al. 2006) and severe suffering, pain, and disability (worse
than nearly all other serious diseases studied; Schweitzer et al.
1995) and grossly corrupting science.  The denialism is worse than it
ever was with even AIDS or MS.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


___
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


Re: [Orgmode] Problem with autoloads

2009-03-03 Thread Mark Elston

Thanks, Mike.  That was it.  For some reason I had, on the
Vista machine, an old version (3.15) of org.el earlier in
the load-path than on the XP machine.  I really don't know
where it came from... :(

Mark

* Mike Newman wrote (on 3/3/2009 3:26 PM):

I would check that you are running the same version of org on both -
call the function org-version.

On Tue, 03 Mar 2009 14:39:52 -0800
Mark Elston  wrote:


I have two machines:  WinXP and Vista (64 bit) with Emacs 22.3
on both.

Both are configured the same in terms of libraries and, specifically,
the org-mode configuration is the same.

However, the (require 'org-install) on the Vista system doesn't
seem to work the same as it does on WinXP.  When I type C-c a
on the XP system I get the usual menu asking for the additional
key for the type of agenda I want.

On the Vista system, though, when I type C-c a I don't get this
menu and it provides the agenda in the default format (which isn't
really as useful to me).

I do a C-h f on org-agenda and it tells me (on the Vista system)
that it is an interactive  Lisp function in 'org.el'.

Apparently, even with the (require ...) in my .emacs file I am
not loading 'org-install.

Any ideas why this would be?

Mark


___
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







___
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


[Orgmode] Org-Info.js Issue

2009-03-03 Thread srandby

Hi,

I just upgraded org-info.js to version 0.1.0.2. Everything works fine 
except for one item.


The org file I use to generate my web page contains the line

  #+TITLE: This is the Title

which org-mode 6.23 exports to html, right below , as

  This is the Title


When I view the web page using Firefox, the title is not displayed above 
the table of contents.


If I delete the line

  #+INFOJS_OPT: view:info path:org-info.js tdepth:1

from the org file and export to html, then the title is displayed above 
the table of contents when I view the web page. So, the issue must be 
with org-info.js.


I've compared the code of version 0.1.0.2 with the code of the version I 
was using, but not knowing Javascript that well I couldn't figure out 
the problem. Is there some way to fix this problem?


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


[Orgmode] Org-Info.js Issue

2009-03-03 Thread srandby

Hi again,

I just noticed that the title is displayed when I hit "x" to view the 
page as slides and it appears at the top of every slide. Unfortunately, 
I don't want the title displayed when viewing the page as slides. I only 
want it displayed above the table of contents when in plain or info modes.


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


[Orgmode] Org-Info.js Issue

2009-03-03 Thread srandby

Hi again,

Sorry for the multiple messages.

I just noticed one other thing. When I go from slide mode to plain mode, 
the full table of contents will not be displayed unless I reload the page.


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


Re: [Orgmode] org-annotation mode version 0.4

2009-03-03 Thread Alan E. Davis
Daniel:

The package you had available on your site was just the ticket for
installing org-annotation-helper.  It solved some problems.  It worked out
of the box.

I am unable to get a copy on the work site due to an absurd firewall, so I
tried to install it from the copy in the contrib directory.  It failed
miserably.  I'll trouble shoot.  The script is ok.  The package you put
together with the FAQ has been essential for me to get org-annotation-helper
working, more than once.

I wonder if this can be provided in contrib as the package, not just the
elisp file.  I am sure others will also be happier with the result.

Thank you again,

Alan


On Tue, Mar 3, 2009 at 7:09 PM, Alan E. Davis  wrote:

> Daniel:
>
> A personal thank you for the new version of org-annotation-helper.  It
> worked perfectly, out of the box.  I'm still MINIMALLY bothered by the
> unformatted text, but that's something I can deal with most of the time.
> The installation instructions were straightforward; however, a little more
> clarity would be helpful, at the point where we are working in about:config
> .  Still, although I stumbled through that, it worked the first time!
>
> I know a little more about org-mode now, so maybe I can refile the items
> more successfully.  Consumately useful.
>
> Alan
>
> On Wed, Feb 25, 2009 at 7:05 AM, Daniel M German  wrote:
>
>>
>> I want to apologize to all org-annotation-helper users out there
>> (including Carsten) for dropping the ball for the last few months.
>>
>>
>> Here is the latest version of it, with improved documentation and
>> a small bug fix b David Moffat.
>>
>> http://turingmachine.org/~dmg/temp/org-annot-0.4.tar.gz
>>
>> --
>> * Welcome to org-annotation-helper
>>
>> This package will allow you to invoke remember from your Web browser
>> and end within emacs with an org link to the current URL, including
>> its title, and the currently highlighted text.
>>
>> --
>>
>> enjoy.
>>
>>
>>
>>
>> --
>> --
>> Daniel M. German
>> http://turingmachine.org/
>> http://silvernegative.com/
>> dmg (at) uvic (dot) ca
>> replace (at) with @ and (dot) with .
>>
>>
>>
>>
>> ___
>> 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
>>
>
>
>
> --
> Alan Davis
>
> "An inviscid theory of flow renders the screw useless, but the need for one
> non-existent." ---Lord Raleigh (John William Strutt), or
> else his son, who was also a scientist.
>
> It is undesirable to believe a proposition when
> there is no ground whatsoever for supposing it is true.
>  Bertrand Russell
>
>
>


-- 
Alan Davis

"An inviscid theory of flow renders the screw useless, but the need for one
non-existent." ---Lord Raleigh (John William Strutt), or
else his son, who was also a scientist.

It is undesirable to believe a proposition when
there is no ground whatsoever for supposing it is true.
 Bertrand Russell
___
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


Re: [Orgmode] Re: Switching between many contexts

2009-03-03 Thread Carsten Dominik


On Mar 3, 2009, at 2:31 PM, Carsten Dominik wrote:



On Mar 3, 2009, at 2:05 PM, Matthew Lundin wrote:



Daniel Clemente  writes:

In fact I would like to use often the agenda view with several  
tags excluded, so the ideal setup would be an agenda custom search.
But I don't know which command to use in org-agenda-custom- 
commands: I don't want tags-todo (that's a heading list), but the  
real agenda (with its colors, dates, deadlines, etc.). However,  
the search type called „agenda“ seems not to accept tags to search.

Maybe „agenda“ could accept tags to search?
Or else I can try to do a custom command which emulates the agenda
but adds this filter; maybe with a local variable or with „skip
conditions“ (org-agenda-skip-function).


For this you would indeed you a skip function.

E.g.,

--8<---cut here---start->8---
(setq org-agenda-custom-commands
'(("A" agenda ""
	 ((org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp  
":TAG:"))

--8<---cut here---end--->8---


This is very good, and it will work if you are talking about
entries that all do have that tag explicitly.  But will fail
if you have subtrees that inherit the tag:  If the agenda
scanner stops at a time stamp that is in an entry that inherits
the tag, then the skipper will not see the tag.

The reason why the agenda view does not have an option to
exclude some tags is also because of inheritance.  The tags
scanner that is used by `C-c a m' is designed to treat tag
inheritance fast, but the agenda directly jumps to relevant
time stamps and then must work its way up the hierarchy, for
each matching time stamp, to get all relevant tags.

A work-around with some speed penalty will therefore be

((org-agenda-skip-function '(member "TAG" (org-get-tags-at)))

Another possibility that might be useful would be to
use permanent restrictions.

For example, you can go to a subtree that you want to work with
and press `C-c C-x <'  on the headline.  All future agenda
commands then will only look at that subtree, until you
select a new restriction or until you remove the restriction with
`C-c C-x >'.  You may also restrict to a file by calling `C-c C-x <'
before the first headline of a file.

Maybe the best solutions would be if I allowed for a default
secondary filter to be applied to an agenda view  I will look
into this possibility.


You can now, in a custom agenda command, bind the variable
org-agenda-filter-preset to a list of filter specifications.
This filter will then be applied when the agenda view is first shown,
and also after each refresh.  Secondary filtering with "/" will
always add to this preset.  In order to get rid of the preset, you
need to run a new agenda command.

For example

   ("A" "" agenda ""
((org-agenda-filter-preset '("-FLUFF" "-BLUFF"

will hide tags FLUFF and BLUFF.

An interesting possibility opens by realizing that the setting
of options for agenda commands is evaluated.  This is something
I had forgotten, but Matt reminded me with his tutorial that this
is a possibility.  So you could have a command

   ("A" "" agenda ""
((org-agenda-filter-preset my-filter-preset

and then only change that variable with your home-made code
to switch the scope of this single agenda command.

- Carsten

___
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


Re: [Orgmode] done-ing a repeating scheduled task now inserts closed timestamp?

2009-03-03 Thread Carsten Dominik


On Mar 3, 2009, at 2:29 AM, Samuel Wales wrote:

Nobody else has commented on this, so perhaps I am doing something  
wrong.


My recollection is that [setting the todo state of a task with a
repeating scheduled task to done] did not used to insert a closed
timestamp, but now it seems to -- or at least it fails to remove the
timestamp.  Is this intentional?



No, this is a bug, introduced when I tried fixing the empty line
problem you reported.

Fixed now, I hope.

- Carsten



___
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


[Orgmode] Re: Article: Synchronizing org Files Using bzr and git

2009-03-03 Thread Yuval Hager
On Tuesday 03 March 2009, Ian Barton wrote:
> I have been working on an article on syncing org files using a version
> control system for a while. The recent posts about using a usb stick
> motivated me to try and finish it.
>
> You can see the html version at
> http://www.ian-barton.com/ian-barton/org_vcs/org_vcs.html and get the
> current version from github at
> git://github.com/geekinthesticks/org-vcs.git .
>

Thank you for the writeup - very useful! It came exactly on time when I plan 
to start doing exactly that. :)

the HTML export is quite annoying, so reading this on org-mode or pdf was much 
preferred on my end.

--y


signature.asc
Description: This is a digitally signed message part.
___
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


[Orgmode] Re: DocBook exporter for Org-mode

2009-03-03 Thread Gour
> "Sebastian" == Sebastian Rose  writes:

Sebastian> I highly apreciate the support of Docbook and your
Sebastian> effort. Yet, I think I don't want to publish XHTML through
Sebastian> Docbook.

+1  

I gave up on DocBook long ago. It's pain to author documents in it and
the tools are quite weak.

That why I don't like AsciiDoc as well being based on Docbook tool-chain
and therefore decided to use reST markup which is much lighter, nicely
supported and it can export to many formats (e.g. xhtml, odt, pdf..)

Therefore I'm interested about any hint how could reST be used with
org-mode?

(I'd use muse, but it's not so 'standard' as reST for non-Emacs users.)

Too bad that Pandoc does not have full parser for reST (yet) 'cause it
can convert to both LaTeX/ConTeXt for high-quality pdf output.


Sincerely,
Gour

-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D



pgpxHRBNP42EB.pgp
Description: PGP signature
___
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