[Orgmode] Re: ditaa and dot blocks with docbook export
Hi Dale, Dale Smith dsm...@vtiinstruments.com writes: So I was looking at http://doc.norang.ca/org-mode.html and saw the integration with ditaa, and wondered how hard that would be to get workign with the docbook exporter. Oh! There is a dot block in there too! Cool. Hmm. Lets try adding docbookp. Boy was *that* easy! Works great. Thanks Baoqiu Cui. Thanks for making this work for DocBook exporter. I have not tried ditaa, but I am glad to know that everything works with DocBook with your simple patch. Can ditaa generate SVG images from ASCII arts? I'll be more interested if ditaa can generate SVN format, however it seems that it only supports bitmap images. I did a quick search and found that there is another project called aafigure that can produce SVG images from ASCII arts: http://docutils.sourceforge.net/sandbox/cliechti/aafigure/ Does anyone know any other better tools for generating SVG images? Thanks, 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: checkbox statistics (fixed version)
Hi Richard, I am accepting the patch, with one small change: The new variable is called `org-hierarchical-checkbox-statistics' and works the other way round, default t. Thanks. - Carsten On Apr 24, 2009, at 3:01 PM, Richard KLINDA wrote: This is the fixed patch, it actually works on my real life org files so this has a slight chance of being right. diff --git a/lisp/org-list.el b/lisp/org-list.el index 7469add..872dddf 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -110,6 +110,9 @@ with \\[org-ctrl-c-ctrl-c\\]. :group 'org-plain-lists :type 'boolean) +(defcustom org-recursive-checkbox-statistics nil + Non-nil means, that checkbox counting should happen recursively.) + (defcustom org-description-max-indent 20 Maximum indentation for the second line of a description list. When the indentation would be larger than this, it will become @@ -402,7 +405,10 @@ the whole buffer. (org-beginning-of-item) (setq curr-ind (org-get-indentation)) (setq next-ind curr-ind) - (while (and (bolp) (org-at-item-p) (= curr-ind next- ind)) +(while (and (bolp) (org-at-item-p) +(if org-recursive-checkbox-statistics +(= curr-ind next-ind) +(= curr-ind next-ind))) (save-excursion (end-of-line) (setq eline (point))) (if (re-search-forward re-box eline t) (if (member (match-string 2) '([ ] [-])) @@ -410,7 +416,12 @@ the whole buffer. (setq c-on (1+ c-on)) ) ) -(org-end-of-item) + (if org-recursive-checkbox-statistics + (progn +(end-of-line) +(when (re-search-forward org-list-beginning- re lim t) + (beginning-of-line))) + (org-end-of-item)) (setq next-ind (org-get-indentation)) ))) (goto-char continue-from) -- Richard ___ 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: [PATCH] Fix typos.
applied, thanks. - Carsten On May 10, 2009, at 4:34 AM, Nick Dokos wrote: From a6eecc2b351e031bff53954772421979a4ae6e0a Mon Sep 17 00:00:00 2001 From: Nick Dokos nicholas.do...@hp.com Date: Sat, 9 May 2009 22:28:21 -0400 --- lisp/org-icalendar.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el index 09ae69b..f07fd2f 100644 --- a/lisp/org-icalendar.el +++ b/lisp/org-icalendar.el @@ -137,7 +137,7 @@ or if they are only using it locally. (defcustom org-icalendar-timezone (getenv TZ) The time zone string for iCalendar export. -When nil of the empty string, use the abbreviation retrived from Emacs. +When nil or the empty string, use the abbreviation retrieved from Emacs. :group 'org-export-icalendar :type '(choice (const :tag Unspecified nil) -- 1.5.4.3 ___ 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] How not to export blocked tasks to iCal?
This is, I think, somewhat complex, you'd have to get Thomas Baumann, author of org-bbdb anniversary support, to write something to support for this. - Carsten On May 10, 2009, at 3:54 AM, Richard Riley wrote: Guy Wiener gwie...@cs.bgu.ac.il writes: Hello everyone, I use orgmode to write down TODO tasks with dependencies (using org-enforce-todo-dependencies). I want to export the tasks to an iCalendar file, but *without* the blocked tasks (i.e, tasks that have unfinished dependencies). The agenda view hides these tasks if you set org-agenda-dim-blocked-tasks. It there a way to configure the iCalendar export to ignore these tasks too, like in the agenda view? Thanks, Guy Wiener. It would be nice if the results from #+CATEGORY: Anniv %%(org-bbdb-anniversaries) were included too. My initial test indicate they are not. ___ 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] How not to export blocked tasks to iCal?
Thanks to everyone, but before the discussion gets out of hand: Is there a way not to export blocked tasks to iCal file? Org-mode can identify blocked tasks, since it can hide them in the agenda view. Can it be configured not to export them? Thanks again. Carsten Dominik wrote: This is, I think, somewhat complex, you'd have to get Thomas Baumann, author of org-bbdb anniversary support, to write something to support for this. - Carsten On May 10, 2009, at 3:54 AM, Richard Riley wrote: Guy Wiener gwie...@cs.bgu.ac.il writes: Hello everyone, I use orgmode to write down TODO tasks with dependencies (using org-enforce-todo-dependencies). I want to export the tasks to an iCalendar file, but *without* the blocked tasks (i.e, tasks that have unfinished dependencies). The agenda view hides these tasks if you set org-agenda-dim-blocked-tasks. It there a way to configure the iCalendar export to ignore these tasks too, like in the agenda view? Thanks, Guy Wiener. It would be nice if the results from #+CATEGORY: Anniv %%(org-bbdb-anniversaries) were included too. My initial test indicate they are not. ___ 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] How not to export blocked tasks to iCal?
On May 10, 2009, at 9:21 AM, Guy Wiener wrote: Thanks to everyone, but before the discussion gets out of hand: Is there a way not to export blocked tasks to iCal file? Org-mode can identify blocked tasks, since it can hide them in the agenda view. Can it be configured not to export them? No, not currently. You mean for VTODO, or also for VEVENT? - Carsten Thanks again. Carsten Dominik wrote: This is, I think, somewhat complex, you'd have to get Thomas Baumann, author of org-bbdb anniversary support, to write something to support for this. - Carsten On May 10, 2009, at 3:54 AM, Richard Riley wrote: Guy Wiener gwie...@cs.bgu.ac.il writes: Hello everyone, I use orgmode to write down TODO tasks with dependencies (using org-enforce-todo-dependencies). I want to export the tasks to an iCalendar file, but *without* the blocked tasks (i.e, tasks that have unfinished dependencies). The agenda view hides these tasks if you set org-agenda-dim-blocked-tasks. It there a way to configure the iCalendar export to ignore these tasks too, like in the agenda view? Thanks, Guy Wiener. It would be nice if the results from #+CATEGORY: Anniv %%(org-bbdb-anniversaries) were included too. My initial test indicate they are not. ___ 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 ___ 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] How not to export blocked tasks to iCal?
I mean VTODO. I think it would be really great if it is configurable. If it's not, can you at least point me to the relevant spot in the code in which such filtering can be done - Maybe a hook function? - Guy Carsten Dominik wrote: On May 10, 2009, at 9:21 AM, Guy Wiener wrote: Thanks to everyone, but before the discussion gets out of hand: Is there a way not to export blocked tasks to iCal file? Org-mode can identify blocked tasks, since it can hide them in the agenda view. Can it be configured not to export them? No, not currently. You mean for VTODO, or also for VEVENT? - Carsten Thanks again. Carsten Dominik wrote: This is, I think, somewhat complex, you'd have to get Thomas Baumann, author of org-bbdb anniversary support, to write something to support for this. - Carsten On May 10, 2009, at 3:54 AM, Richard Riley wrote: Guy Wiener gwie...@cs.bgu.ac.il writes: Hello everyone, I use orgmode to write down TODO tasks with dependencies (using org-enforce-todo-dependencies). I want to export the tasks to an iCalendar file, but *without* the blocked tasks (i.e, tasks that have unfinished dependencies). The agenda view hides these tasks if you set org-agenda-dim-blocked-tasks. It there a way to configure the iCalendar export to ignore these tasks too, like in the agenda view? Thanks, Guy Wiener. It would be nice if the results from #+CATEGORY: Anniv %%(org-bbdb-anniversaries) were included too. My initial test indicate they are not. ___ 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 ___ 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] How not to export blocked tasks to iCal?
On May 7, 2009, at 9:19 AM, Guy Wiener wrote: Hello everyone, I use orgmode to write down TODO tasks with dependencies (using org- enforce-todo-dependencies). I want to export the tasks to an iCalendar file, but *without* the blocked tasks (i.e, tasks that have unfinished dependencies). The agenda view hides these tasks if you set org-agenda-dim-blocked-tasks. It there a way to configure the iCalendar export to ignore these tasks too, like in the agenda view? I have implemented this now. After your next pull, do (setq org-icalendar-include-todo 'unblocked) HTH - 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] Links to tomboy notes in org files
Hi, On Sat, May 09, 2009 at 08:59:16AM +0200, Carsten Dominik wrote: I have a main gtd.org file and in its top I have a list of other org files that I have, for example: * Workout plan - [[workout.org]] * Nutrition - [[nutrition.org]] What I would like to do is create a link to a tomboy note. I'm sure it would be possible somehow, but I have no idea how though. Something like: * Check out Blog post draft [[tomboy:my draft]] And C-u C-o on it would open this tomboy note in tomboy. Any ideas on how this could be implemented? Is there a command line command that will fire up tomboy and display a specific note? The this could be easily done. $ tomboy --open-note 'MyNote' Alternatively, at least in Emacs 23+, one can use Tomboy's D-BUS API, which offers some ways for deeper integration with Emace: http://emacs-fu.blogspot.com/2009/01/using-d-bus-example.html Best wishes, Dirk. -- Dirk-Jan C. Binnema Helsinki, Finland e:d...@djcbsoftware.nl w:www.djcbsoftware.nl pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C ___ 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] Links to tomboy notes in org files
On May 10, 2009, at 2:33 PM, djcb.b...@gmail.com wrote: Hi, On Sat, May 09, 2009 at 08:59:16AM +0200, Carsten Dominik wrote: I have a main gtd.org file and in its top I have a list of other org files that I have, for example: * Workout plan - [[workout.org]] * Nutrition - [[nutrition.org]] What I would like to do is create a link to a tomboy note. I'm sure it would be possible somehow, but I have no idea how though. Something like: * Check out Blog post draft [[tomboy:my draft]] And C-u C-o on it would open this tomboy note in tomboy. Any ideas on how this could be implemented? Is there a command line command that will fire up tomboy and display a specific note? The this could be easily done. $ tomboy --open-note 'MyNote' Something like the following (untested...) (require 'org) (org-add-link-type tomboy 'org-tomboy-open) (defun org-tomboy-open (note) (let ((outbuf (get-buffer-create *Org Shell Output*)) (cmd (concat tomboy --open-note (shell-quote-argument note) ))) (with-current-buffer outbuf (erase-buffer)) (shell-command cmd outbuf outbuf))) HTH - 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] [PATCH] Fix typos.
Nick Dokos nicholas.do...@hp.com writes: From a6eecc2b351e031bff53954772421979a4ae6e0a Mon Sep 17 00:00:00 2001 From: Nick Dokos nicholas.do...@hp.com Date: Sat, 9 May 2009 22:28:21 -0400 --- lisp/org-icalendar.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el index 09ae69b..f07fd2f 100644 --- a/lisp/org-icalendar.el +++ b/lisp/org-icalendar.el @@ -137,7 +137,7 @@ or if they are only using it locally. (defcustom org-icalendar-timezone (getenv TZ) The time zone string for iCalendar export. -When nil of the empty string, use the abbreviation retrived from Emacs. +When nil or the empty string, use the abbreviation retrieved from Emacs. :group 'org-export-icalendar :type '(choice (const :tag Unspecified nil) Just FYI, I added export TZ=Europe/Berlin to my .xsession (yeah I know wont work on non X machines), did a git pull and works great. Thanks. r. ___ 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] [PATCH] Fix typos.
Dokos, Nicholas nicholas.do...@hp.com wrote: o put environment variable definitions in a common file. o source the common file both in .xsessionrnc (takes care of display ^ That should be .xsessionrc ___ 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] [PATCH] Fix typos.
Richard Riley rileyrg...@googlemail.com wrote: Just FYI, I added export TZ=Europe/Berlin to my .xsession (yeah I know wont work on non X machines), did a git pull and works great. Also an FYI: as a consequence of this discussion, I have reorganized my startup files as follows: o put environment variable definitions in a common file. o source the common file both in .xsessionrnc (takes care of display managers and xinit/startx) and in .profile or .bash_profile (takes care of console or ssh logins). In my case, this results in setting the variables twice when I login through gdm, but I don't particularly care. Nick ___ 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] [PATCH] Fix typos.
Nick Dokos nicholas.do...@hp.com writes: Richard Riley rileyrg...@googlemail.com wrote: Just FYI, I added export TZ=Europe/Berlin to my .xsession (yeah I know wont work on non X machines), did a git pull and works great. Also an FYI: as a consequence of this discussion, I have reorganized my startup files as follows: o put environment variable definitions in a common file. o source the common file both in .xsessionrnc (takes care of display managers and xinit/startx) and in .profile or .bash_profile (takes care of console or ssh logins). In my case, this results in setting the variables twice when I login through gdm, but I don't particularly care. Nick heh, I know what you mean. It's kind of irritating though to set something twice and then also worry if the same thing will work on another distro. Still, TZ is a nice solution. If my anniversaries exported from my org files my blackberry iCal integration would be pretty much complete other than the obvious ability to update from the mobile device. ___ 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] Links to tomboy notes in org files
Carsten Dominik carsten.domi...@gmail.com wrote: On May 10, 2009, at 2:33 PM, djcb.b...@gmail.com wrote: What I would like to do is create a link to a tomboy note. I'm sure it would be possible somehow, but I have no idea how though. Something like: * Check out Blog post draft [[tomboy:my draft]] And C-u C-o on it would open this tomboy note in tomboy. $ tomboy --open-note 'MyNote' Something like the following (untested...) (require 'org) (org-add-link-type tomboy 'org-tomboy-open) (defun org-tomboy-open (note) (let ((outbuf (get-buffer-create *Org Shell Output*)) (cmd (concat tomboy --open-note (shell-quote-argument note) ))) (with-current-buffer outbuf (erase-buffer)) (shell-command cmd outbuf outbuf))) I ran a very simple test and this worked very nicely. The only caution for the original poster is that if the title of the note contains spaces, the link has to look like this: [[tomboy:my%20draft][draft]] not like this: ... [[tomboy:my draft]] C-c C-l will encode spaces properly, but don't enter quotes (unless your tomboy note really includes quotes in the title). HTH, Nick ___ 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] [PATCH] Fix typos.
Nick Dokos nicholas.do...@hp.com writes: Richard Riley rileyrg...@googlemail.com wrote: Just FYI, I added export TZ=Europe/Berlin to my .xsession (yeah I know wont work on non X machines), did a git pull and works great. Also an FYI: as a consequence of this discussion, I have reorganized my startup files as follows: o put environment variable definitions in a common file. o source the common file both in .xsessionrnc (takes care of display managers and xinit/startx) and in .profile or .bash_profile (takes care of console or ssh logins). In my case, this results in setting the variables twice when I login through gdm, but I don't particularly care. Nick Just in support/alternatively: I has already moved it to .bash_login and the source ~/.bash_login in my ~/.xsession file. It's a bit of a round robin mess out there in Linux startup file land it seems. ___ 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] Add HTML after body and before title
Hi, I have seen that all texts you include with #+TEXT are added after the title: body div id=content h1 class=titleThis is the #+TITLE/h1 pI added this with #+TEXT /p I have a script.js with a header which would be much better /before/ the h1. I know Org-mode doesn't need in general so much flexibility in exporting, but do you know incidentally some trick to insert code just after the body or after div id=content? Thanks, -- 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] Re: Add HTML after body and before title
El dom, may 10 2009, Daniel Clemente va escriure: some trick to insert code just after the body or after div id=content? Sorry, I forgot about org-publish. It can use the parameter :preamble to do exactly that. Furthermore: , | org-export-html-preamble is a variable defined in `org-html.el'. | Its value is nil | | Documentation: | Preamble, to be inserted just before body. Set by publishing functions. ` I prefer to always embed the configuration inside the .org file instead of in Elisp code, but if this is only possible with org-publish, I should use it. -- Daniel ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-publish doesn't republish if you delete the .html files
Hi; with org 6.26trans: 1. Publish a project you have configured with org-publish, concretely one that places the .html files locally beside the .org files. 2. While exporting, Org creates its own data in ~/.org-timestamps to cache things 3. Delete the new .html which have been created 4. Try to publish the same project again 5. Org-publish skips the file: Skipping unmodified file /home/dc/patata/index.org I think that most people would expect the .html files to be created again. Now users are expected to delete ~/.org-timestamps manually, which is not obvious. Org could check for the .html files first, and if they are not present, always create them. Even if this check involves access to a remote server, I think it is worth it at access time, since it assures republishing (and otherwise, you get nothing). Full event log: , | Saving file /home/dc/patata/index.html... | Wrote /home/dc/patata/index.html | Exporting... done | Saving file /home/dc/.org-timestamps/X24bafcf2c400ea6b5088e9afd58c590112bccd0c... | Wrote /home/dc/.org-timestamps/X24bafcf2c400ea6b5088e9afd58c590112bccd0c | Delete * [2 files] (y or n) | 1 of 2 deletions | 2 of 2 deletions | 2 deletions done | Select command: | Skipping unmodified file /home/dc/patata/temas.org | Skipping unmodified file /home/dc/patata/index.org | Updating buffer list...done | Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help | Mark saved where search started | Mark set ` Thanks, 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-publish doesn't detect changes in included files
Org 6.26trans. Imagine that a.org is part of a project which does #+SETUPFILE: options.org If you modify only options.org and republish the project, the exporter will not notice the change and will refuse to export a.org, even when a.html could have changed. It says: Skipping unmodified file /home/dc/manzana/a.org The same happens if you use #+INCLUDE: options.org -- 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