Re: [Orgmode] Plotting date on xaxis
On Mon, 22 Feb 2010 19:31:41 +0100, Johan Ekh ekh.jo...@gmail.com wrote: [1.1 text/plain; ISO-8859-1 (7bit)] Hi all, I try to plot a table looking like this | Date| Kg | |-+| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-29 | 92.0 | | || with the dates on the xaxis using #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time timefmt:%Y-%m-%d set:yrange [90:] but no plot is generated. If I remove set:xdata time, the plot is generated but without interpreting the dates as dates. Can anyone see what I do wrong? Thanks in advance, Johan [1.2 text/html; ISO-8859-1 (quoted-printable)] Johan, I've played with this a bit and I also cannot get it to work. However, looking at the gnuplot comint buffer created, there is an error message that indicates that plotting xdata in time format requires a using statement to specify directly the columns to plot. I have tried, therefore, the following specification on the plot line: --8---cut here---start-8--- #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespoints set:xdata time set:timefmt '%Y-%m-%d' set:yrange [90:] ind:1 deps:(2) | Date | Kg | |+--| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-29 | 92.0 | --8---cut here---end---8--- I had to put quotes around the time format and also (just in case) spelled out linespoints fully. However, this still doesn't work because org-plot/gnuplot generates the following plot command: , | plot '/tmp/org-plot1831zcQ' using 2:xticlabel(1) with linespoints title 'Kg' ` Note the strange using parameters! I am not sure where this is coming from unfortunately. Note that if I type this in directly in gnuplot, with using 1:2, everything works just fine. eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Request: Slightly different structure mode
On Tue, 23 Feb 2010 17:24:33 +0900, Torsten Wagner torsten.wag...@gmail.com wrote: Dear Eric, I noticed that I prefer to create outlines like this (stupid example) +--start--+ * Learn org-mode I start to read carefully the manual again. Esp. tables are still difficult to use for me. ** Just to remember the most important table commands Here I will write down all the table stuff commands a long long long text and maybe some tables. This text should belong again to outline 1. I just like to continue writing since I just write in a chronological order. I read the manual again and found some nice features I wasn't aware of ..more text.. . +stop-+ Any idea how to achieve that ? I do something similar but outlines don't allow for what you want. I use lists instead, particularly description (- XXX :: text) lists. However, you would have to use list items for each paragraph as the same problem of hiding will happen (the last item, when folded, will hide any subsequent paragraphs). Thanks for sharing the idea to use lists and thanks for using org-mode in a similar way like me ... that let me feel not to bad by abusing org-mode for my strange needs ;) . However, as you said it is rather the same problem with lists. Subsequent paragraphs always belongs to the last list or outline. Yes but if you ensure that *every* paragraph is actually an item, this problem disappears. As far as I understood org-mode I could maybe use drawers to achieve something similar to what I want. I have no experience with drawers unfortunately. Hope you find something that works well with your intended usage! ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Bug: (org-attach-dir) doesn't honor ATTACH_DIR_INHERIT
2010/2/22 Matt Lundin m...@imapmail.org: Nicolas Girard nicolas.gir...@nerim.net writes: The :ATTACH_DIR_INHERIT: property needs to be set in the parent tree, since that is the heading whose attach directory is being inherited. Hi Matt, indeed, I got this wrong. Thanks for your explanations ! Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Setting org-id-track-globally to nil results in Wrong argument type: hash-table-p, nil in org-id-find-id-file
Hi, the following test-case reproduces the above message: emacs -q (setq org-id-track-globally nil) // Open a file using IDs and a link to at least one of those headings (require 'org-id) // Now try to follow an id-link A sample org-file with an id: * An item :PROPERTIES: :ID: 0fb1cfdb-7bf7-4d8f-95b3-2e50e4d23537 :END: * A link [[id:0fb1cfdb-7bf7-4d8f-95b3-2e50e4d23537][An item]] The exact error-message is: org-id-find-id-file: Wrong type argument: hash-table-p, nil HTH, Geralt. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Literal HTML export and paragraphs
Hi, not quite sure if that's a bug but I've just noticed that literal HTML export with `#+HTML' or `#+BEGIN_HTML ...' suppresses paragraph markups whenever literal export appears at the end of a paragraph. An org file like this , | line 1 | line 2 | | line 3 ` is exported to , | p | line 1 | line 2 | /p | p | line 3 | /p ` while an org file like this , | line 1 | #+HTML: strongline 2/strong | | line 3 ` is exported to , | p | line 1 | strongline 2/strong | | line 3 | /p ` This is probably not a major thing but it may lead to invalid HTML code. Suppose `line 3' is replaced by e.g. an example block (which inserts its own p element) then a p element would appear inside another p element which is not allowed. Ulf ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Customizing checkbox statistics faces
Hello world, In my TODO-list, I like to have custom colors for TODO keywords, such as described in http://orgmode.org/worg/org-hacks.php#sec-19. However I find it annoying to have different colors for the checkbox statistics: instead of org-checkbox-statistics-done and org-checkbox-statistics-todo, I'd like to have the same colors as for the TODO keywords. In order to do that, I tried to use org-font-lock-hook, I tried to redefine the org-get-checkbox-statistics-face function, ... but it did not work, because the regexp used to detect checkbox statistics does not capture the TODO keyword. So I wrote a little patch that changes this behavior. It matches the TODO-keywords too, so that I can redefine org-get-checkbox-statistics-face in my .emacs to do what I want. The patch is available in my git repo: http://code.schnouki.net/p/org-mode/source/commit/937dffeeb112e6ee6d02c0fe31767cee3b57275c/ Could you please merge it in the official git tree? My .emacs is available on GitHub. The necessary code for customizingthe checkbox statistics faces is here: http://github.com/Schnouki/emacs-config/commit/d7ce3da1dbd40b3c4e425d069c3cf17b940644f8 Regards, -- Thomas/Schnouki signature.asc Description: OpenPGP digital signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Plotting date on xaxis
Hi Johan, You could try plotting your table using standard org-mode date formats which org-plot will understand without any need to specify a timefmt string. #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time set:yrange [90:] | Date | Kg | |--+--| | 2010-02-21 Sun | 95.0 | | 2010-02-22 Mon | 93.0 | | 2010-02-23 Tue | 92.0 | | 2010-02-24 Wed | 91.5 | | 2010-02-25 Thu | 91.0 | | 2010-02-26 Fri | 92.0 | Alternatively if you want more control over your plots and more direct access to gnuplot you can use org-babel to pass your table directly to gnuplot as follows. #+results: my-table | Date | Kg | |+--| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-26 | 92.0 | #+begin_src gnuplot :var data=my-table set xdata time set timefmt '%Y-%m-%d' set yrange [90:] plot data using 1:2 with linespoints title 'Kg' #+end_src Best -- Eric Johan Ekh ekh.jo...@gmail.com writes: Hi all, I try to plot a table looking like this | Date | Kg | |-+| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-29 | 92.0 | | | | with the dates on the xaxis using #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time timefmt:%Y-%m-%d set:yrange [90:] but no plot is generated. If I remove set:xdata time, the plot is generated but without interpreting the dates as dates. Can anyone see what I do wrong? Thanks in advance, Johan ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-babel : passing variables to sh/screen blocks ?
Julien Fantin julien.fan...@gmail.com writes: I haven't been able to do so, is it possible ? I'm trying to make an org file that will take care of fetching and intsalling all my required packages, and it would really help in making things more streamlined, if shell blocks could source some variables from 'accessible' places in the file... It would be even more convenient if I could use :PROPERTIES: drawers, but I wasn't even able to do that in a language other than elisp, so I'm not holding my breath here. Any help will be appreciated though ! Hi Julien, Yes, you can pass data from org tables to shell blocks just like for other languages, and you can also use property drawers to hold header arguments to be inherited by all blocks in the subtree. Here's a quick example that shows both. It also shows how to slice a single column out of an org table and pass that to the shell script. --8---cut here---start-8--- * Data #+tblname: package-list-1 | packagename-1-1 | | packagename-1-2 | #+tblname: package-list-2 | packagename-2-1 | | packagename-2-2 | #+tblname: package-list-3 | Package which does X | packagename-3-1 | | package which does Y | packagename-3-2 | | package which does Z | packagename-3-3 | * Referring to tables in source blocks :PROPERTIES: :results: output :var: datafromproperty=package-list-1 :END: *** Tables with one column #+begin_src sh :var datafromheaderarg=package-list-2 for package in $datafromproperty ; do echo Installing $package done echo for package in $datafromheaderarg ; do echo Installing $package done #+end_src #+results: : Installing packagename-1-1 : Installing packagename-1-2 : : Installing packagename-2-1 : Installing packagename-2-2 *** Operating on one column of a table #+begin_src sh :results output :var packages=package-list-3[0:2,1] for package in $packages ; do echo Installing $package done #+end_src #+results: : Installing packagename-3-1 : Installing packagename-3-2 : Installing packagename-3-3 --8---cut here---end---8--- Actually, with yesterday's org, you will get quoted strings like this: Installing packagename-1-1 That bug is fixed now so you'll need to pull the latest git version. Dan Regards, fellow org-moders. ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Plotting date on xaxis
Thanks guys, the babel version worked perfect so I didn't try the other one thanks! Would it be possible to use python and matplotlib with babel instead of gnuplot? If so, could you just indicate how such a src code block would look like? Babel seems super cool! /Johan On Tue, Feb 23, 2010 at 3:47 PM, Eric Schulte schulte.e...@gmail.comwrote: Hi Johan, You could try plotting your table using standard org-mode date formats which org-plot will understand without any need to specify a timefmt string. #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time set:yrange [90:] | Date | Kg | |--+--| | 2010-02-21 Sun | 95.0 | | 2010-02-22 Mon | 93.0 | | 2010-02-23 Tue | 92.0 | | 2010-02-24 Wed | 91.5 | | 2010-02-25 Thu | 91.0 | | 2010-02-26 Fri | 92.0 | Alternatively if you want more control over your plots and more direct access to gnuplot you can use org-babel to pass your table directly to gnuplot as follows. #+results: my-table | Date | Kg | |+--| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-26 | 92.0 | #+begin_src gnuplot :var data=my-table set xdata time set timefmt '%Y-%m-%d' set yrange [90:] plot data using 1:2 with linespoints title 'Kg' #+end_src Best -- Eric Johan Ekh ekh.jo...@gmail.com writes: Hi all, I try to plot a table looking like this | Date| Kg | |-+| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-29 | 92.0 | | || with the dates on the xaxis using #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time timefmt:%Y-%m-%d set:yrange [90:] but no plot is generated. If I remove set:xdata time, the plot is generated but without interpreting the dates as dates. Can anyone see what I do wrong? Thanks in advance, Johan ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-publish-validate-link
On Feb 22, 2010, at 8:38 PM, Carsten Dominik wrote: On Feb 21, 2010, at 2:53 PM, Thomas S. Dye wrote: Hi Carsten, Thanks for this. I add a new file that is the target for the link. It is copied to its correct publication place. The exported html file contains a new description of the file link, but with no active link. I force publishing using C-u prefix and the link is still not active. I shut down emacs, re-start, force publishing, and the link is now active. Hmm, strange that restarting Emacs was required. Ah, I see now. Please pull again. From now on, when forcing publishing with a prefix argument, the validation list will also be recreated. - Carsten Thanks Carsten, This eliminates the need for a restart. It is still the case that the link is invalid on the first publication try. It is valid after force publishing, though. All the best, Tom All the best, Tom On Feb 20, 2010, at 9:34 PM, Carsten Dominik wrote: Hi THomas, org-publish-validate-link validate links to files that show up in the list `org-publish-files-alist'. THis list contains all file names that are considered part of a project and should be published. It is updated each time you issue a command to publish a project. Are you sure that you are republishing the document that should contain the link? If that document has not changed, it will not republish it, so the ink will also not be fixed. You can force republishing by calling your publish command with a C-u prefix. Have you tried that? - Carsten On Feb 17, 2010, at 9:50 PM, Thomas S. Dye wrote: Aloha all, org-publish-validate-link rejects a valid link to a file when the file is created during an editing session. With ./test.org and ./support/test.pdf present at the start of a session, the first link in test.org (below) is validated. When ./ support/test-copy.pdf is added during the session, the second link is not validated and only the description of the link is output to test.html. - test.org * A test - link to [[file:support/test.pdf][test.pdf]] - link to [[file:support/test-copy.pdf][test-copy.pdf]] - If org-publish-validate-link is not used, then the link is placed correctly in the html output. I have read the org-mode manual, briefly searched the list archive, and read the function's documentation string, but didn't find anything that might alert me to this behavior. My expectation was that org-publish-validate-link would understand the org-mode publishing process and would validate links in the production environment that were correctly established in the publication location. I'm using Org-mode version 6.34trans (release_6.34c.89.g0c39) on emacs 23. All the best, Tom Thomas S. Dye, Ph.D. T. S. Dye Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Plotting date on xaxis
Johan Ekh ekh.jo...@gmail.com writes: Thanks guys, the babel version worked perfect so I didn't try the other one thanks! Would it be possible to use python and matplotlib with babel instead of gnuplot? If so, could you just indicate how such a src code block would look like? Hi Johan, I've never used matplotlib, but here's a start. Firstly, one thing I notice is that org-babel-python currently doesn't like the column names on the table (I'll add it to our TODO list). So if we make a table like this, without the header: #+results: my-table-nohdr | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-26 | 92.0 | Then pass the data into python and have a look at what we've got: #+begin_src python :var data=my-table-nohdr :results output print str(data) #+end_src #+results: : [['2010-02-21', 95.0], ['2010-02-22', 93.0], ['2010-02-23', 92.0], ['2010-02-24', 91.5], ['2010-02-25', 91.0], ['2010-02-26', 92.0]] So if you know how to use matplotlib to create your plot using that list of lists, then you should be set. To get output to file you will need to use something like :file pyplot.png, *and* arrange that your code writes the graphical output to pyplot.png. A link to pyplot.png will be inserted in the org buffer. Given my ignorance of gnuplot and matplotlib, I would use R. Unlike python, but like gnuplot, the graphical output is automatically sent to the specified file, without having to explicitly tell R to so so: #+begin_src R :var d=my-table :file R-plot.png plot(as.Date(d$Date), d$Kg, ylab=Kg, type=b) #+end_src #+results: [[file:R-plot.png]] Dan Babel seems super cool! /Johan On Tue, Feb 23, 2010 at 3:47 PM, Eric Schulte schulte.e...@gmail.com wrote: Hi Johan, You could try plotting your table using standard org-mode date formats which org-plot will understand without any need to specify a timefmt string. #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time set:yrange [90:] | Date | Kg | |--+--| | 2010-02-21 Sun | 95.0 | | 2010-02-22 Mon | 93.0 | | 2010-02-23 Tue | 92.0 | | 2010-02-24 Wed | 91.5 | | 2010-02-25 Thu | 91.0 | | 2010-02-26 Fri | 92.0 | Alternatively if you want more control over your plots and more direct access to gnuplot you can use org-babel to pass your table directly to gnuplot as follows. #+results: my-table | Date | Kg | |+--| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-26 | 92.0 | #+begin_src gnuplot :var data=my-table set xdata time set timefmt '%Y-%m-%d' set yrange [90:] plot data using 1:2 with linespoints title 'Kg' #+end_src Best -- Eric Johan Ekh ekh.jo...@gmail.com writes: Hi all, I try to plot a table looking like this | Date | Kg | |-+| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-29 | 92.0 | | | | with the dates on the xaxis using #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time timefmt:%Y-%m-%d set:yrange [90:] but no plot is generated. If I remove set:xdata time, the plot is generated but without interpreting the dates as dates. Can anyone see what I do wrong? Thanks in advance, Johan ___ Emacs-orgmode mailing list Please 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 Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-publish-validate-link
On Feb 23, 2010, at 5:46 PM, Thomas S. Dye wrote: On Feb 22, 2010, at 8:38 PM, Carsten Dominik wrote: On Feb 21, 2010, at 2:53 PM, Thomas S. Dye wrote: Hi Carsten, Thanks for this. I add a new file that is the target for the link. It is copied to its correct publication place. The exported html file contains a new description of the file link, but with no active link. I force publishing using C-u prefix and the link is still not active. I shut down emacs, re-start, force publishing, and the link is now active. Hmm, strange that restarting Emacs was required. Ah, I see now. Please pull again. From now on, when forcing publishing with a prefix argument, the validation list will also be recreated. - Carsten Thanks Carsten, This eliminates the need for a restart. It is still the case that the link is invalid on the first publication try. It is valid after force publishing, though. Yes. The validation function can be supplied by a user - maybe you can come up with something that works correctly for your setup and can predict the existence of that file, ahead of time. - Carsten - Carsten All the best, Tom All the best, Tom On Feb 20, 2010, at 9:34 PM, Carsten Dominik wrote: Hi THomas, org-publish-validate-link validate links to files that show up in the list `org-publish-files-alist'. THis list contains all file names that are considered part of a project and should be published. It is updated each time you issue a command to publish a project. Are you sure that you are republishing the document that should contain the link? If that document has not changed, it will not republish it, so the ink will also not be fixed. You can force republishing by calling your publish command with a C-u prefix. Have you tried that? - Carsten On Feb 17, 2010, at 9:50 PM, Thomas S. Dye wrote: Aloha all, org-publish-validate-link rejects a valid link to a file when the file is created during an editing session. With ./test.org and ./support/test.pdf present at the start of a session, the first link in test.org (below) is validated. When ./support/test-copy.pdf is added during the session, the second link is not validated and only the description of the link is output to test.html. - test.org * A test - link to [[file:support/test.pdf][test.pdf]] - link to [[file:support/test-copy.pdf][test-copy.pdf]] - If org-publish-validate-link is not used, then the link is placed correctly in the html output. I have read the org-mode manual, briefly searched the list archive, and read the function's documentation string, but didn't find anything that might alert me to this behavior. My expectation was that org-publish-validate-link would understand the org-mode publishing process and would validate links in the production environment that were correctly established in the publication location. I'm using Org-mode version 6.34trans (release_6.34c.89.g0c39) on emacs 23. All the best, Tom Thomas S. Dye, Ph.D. T. S. Dye Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten - Carsten - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Plotting date on xaxis
Dan Davison davi...@stats.ox.ac.uk writes: Johan Ekh ekh.jo...@gmail.com writes: Thanks guys, the babel version worked perfect so I didn't try the other one thanks! Would it be possible to use python and matplotlib with babel instead of gnuplot? If so, could you just indicate how such a src code block would look like? Hi Johan, I've never used matplotlib, but here's a start. Firstly, one thing I notice is that org-babel-python currently doesn't like the column names on the table (I'll add it to our TODO list). So if we make a table like this, without the header: One nice way to get around headers is through indexing into variable references, so for example the following two are equivalent... #+results: my-table | Date | Kg | |+--| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-26 | 92.0 | #+begin_src python :var data=my-table[2:-1] :results output print str(data) #+end_src #+results: my-table-nohdr | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-26 | 92.0 | #+begin_src python :var data=my-table-nohdr :results output print str(data) #+end_src Best -- Eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] MobileOrg - Capture didn't empty...
I synced my iPod with the WebDav server, and pulled down to my Org files. Worked great! Then I filed away those items that were in the capture of MobileOrg (via the org-mobile-inbox-for-pull file). Also worked awesome. Updated my org files, re-sync'd with the webdav, and then sync'd with iPod. The org files on the iPod are there, updated and wonderful! Problem: my 'capture' collection on the iPod is still populated with items that have already been filed away and now exist in other .org files. I check the mobile.org and it's empty and the 'checksums.dat' file was updated. The only potential cause I see is emacs saved '~' files for mobile.org and checksums.dat also. Ideas? David A. Gershman gersh...@dagertech.net http://dagertech.net/gershman/ It's all about the path! --d. gershman ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] MobileOrg - Capture didn't empty...
Hi David, This has been fixed in the dev version, I'll be putting out an update as soon as I can put together the time. Thanks for reporting.. -Richard On Tue, Feb 23, 2010 at 12:46 PM, David A. Gershman dagersh...@dagertech.net wrote: I synced my iPod with the WebDav server, and pulled down to my Org files. Worked great! Then I filed away those items that were in the capture of MobileOrg (via the org-mobile-inbox-for-pull file). Also worked awesome. Updated my org files, re-sync'd with the webdav, and then sync'd with iPod. The org files on the iPod are there, updated and wonderful! Problem: my 'capture' collection on the iPod is still populated with items that have already been filed away and now exist in other .org files. I check the mobile.org and it's empty and the 'checksums.dat' file was updated. The only potential cause I see is emacs saved '~' files for mobile.org and checksums.dat also. Ideas? David A. Gershman gersh...@dagertech.net http://dagertech.net/gershman/ It's all about the path! --d. gershman ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Problem with table sums
Hello, I have such a table whose formatting is forced by someone more powerful than me (my boss): #+TBLNAME: etape1 | | Étape 1 | p.j | EUR HTVA | |---+---+-+--| | | Prestations | 100 | 4.00 | | | Frais annexes | | 1280.00 | | | Gestion du projet | | 3200.00 | | | Licence | | 8000.00 | |---+---+-+--| | | Total | | 52480.00 | | ^ | | |Total | #+TBLFM: @2...@2$3*400.00;%.2f::@3...@2$4*0.08*0.40;%.2f::@4...@2$4*0.08;%.2f::@5...@2$4*0.20;%.2f::@6$4=vsum(@-...@-ii);%.2f It works as expected. Though, I need to re-use some of the intermediate computations for another summary table. Therefore, I add names to some cells: #+TBLNAME: etape1 | | Étape 1 | p.j | EUR HTVA| |---+---+-+-| | | Prestations | 100 | 4.00| | ^ | | pj | Prestations | | | Frais annexes | | 1280.00 | | ^ | | | FraisAnnexes| | | Gestion du projet | | 3200.00 | | ^ | | | GestionDuProjet | | | Licence | | 8000.00 | | ^ | | | Licence | |---+---+-+-| | | Total | | 4.00| | ^ | | | Total | #+TBLFM: @2...@2$3*400.00;%.2f::@4...@2$4*0.08*0.40;%.2f::@6...@2$4*0.08;%.2f::@8...@2$4*0.20;%.2f::@10$4=vsum(@-...@-ii);%.2f Now, the total is wrong: it's the value of the first cell... Like if the `^' prefix was simply dropped... and total limited to the first real figure. Any reason for this phenomenon? Or workaround (other than describing every cell to be summed)? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Plotting date on xaxis
On Tue, 23 Feb 2010 07:47:25 -0700, Eric Schulte schulte.e...@gmail.com wrote: Hi Johan, You could try plotting your table using standard org-mode date formats which org-plot will understand without any need to specify a timefmt string. Eric, thanks for this suggestion as well as the one using org-babel (which I would have typically used myself these days). However, the point still stands: why doesn't what Johan tried initially work? I have narrowed down what causes the problem although I don't understand why (I haven't had any time to look at the elisp code). Basically, the problem with Johan's initial table was the extra empty row at the end: --8---cut here---start-8--- #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespoints set:xdata time set:timefmt '%Y-%m-%d' set:yrange [90:] | Date | Kg | |+--| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-28 | 92.0 | || | --8---cut here---end---8--- With the empty row there, the using 1:2 option to the gnuplot plot command is not generated correctly, instead generating using 1:xticlable(1) which gnuplot doesn't like! If the last row is deleted, everything works just fine (even if February doesn't have 29 days in 2010 ;-). HTH, eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] mailto links
I am having a small challenge with the way in which emacs is handling mailto links in org files. For some mysterious reason, C-c C-o on a link opens Kmail. I am in gnome and have specified thunderbird as the default mail client. Actually what I want is for the links to open in Gnus, but despite a lengthy web search I cannot find any way to fix this issue. Suggestions are welcome. Ross -- Ross A. Laird, PhD www.rosslaird.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] remember note as a sibling of currently clocked item
Hello. I've used org-mode for some time now. I sometimes even use clocking feature too but I've never urged to remember something as a child of what I had clocked but rather as a sibling. Please take a look at the patch. http://github.com/steelman/org-mode/tree/remember-as-a-sybling-of-the-clocked-item -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] mailto links
If you invoke the command 'org-customize', you can find a group called 'Org Link'. Expand it to find 'Org Follow Link', then 'Org Link Mailto Program'. Perhaps this will help? I am having a small challenge with the way in which emacs is handling mailto links in org files. For some mysterious reason, C-c C-o on a link opens Kmail. I am in gnome and have specified thunderbird as the default mail client. Actually what I want is for the links to open in Gnus, but despite a lengthy web search I cannot find any way to fix this issue. Suggestions are welcome. Ross -- Ross A. Laird, PhD www.rosslaird.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode David A. Gershman gersh...@dagertech.net http://dagertech.net/gershman/ It's all about the path! --d. gershman ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Plotting date on xaxis
Eric S Fraga ucec...@ucl.ac.uk writes: [...] I have narrowed down what causes the problem although I don't understand why (I haven't had any time to look at the elisp code). Basically, the problem with Johan's initial table was the extra empty row at the end: Ah, Thanks for isolating the issue. It looks like the empty last row is tricking org-plot.el into thinking that the entire Date column contains text labels, so it tries to use the values of that column to label the data with xticlabels [1]. This is useful for histograms such as the Citas graph in [2]. So all in all I'd say this is fine behavior for something like org-plot which tries to guess the user's intentions. Best -- Eric #+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespoints set:xdata time set:timefmt '%Y-%m-%d' set:yrange [90:] | Date | Kg | |+--| | 2010-02-21 | 95.0 | | 2010-02-22 | 93.0 | | 2010-02-23 | 92.0 | | 2010-02-24 | 91.5 | | 2010-02-25 | 91.0 | | 2010-02-28 | 92.0 | || | With the empty row there, the using 1:2 option to the gnuplot plot command is not generated correctly, instead generating using 1:xticlable(1) which gnuplot doesn't like! If the last row is deleted, everything works just fine (even if February doesn't have 29 days in 2010 ;-). HTH, eric Footnotes: [1] http://www.gnuplot.info/docs/node135.html [2] http://orgmode.org/worg/org-tutorials/org-plot.php ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: mailto links
Hm. I did not find anything particularly specific to kmail: mailto:%a?subject=%s; If you invoke the command 'org-customize', you can find a group called 'Org Link'. Expand it to find 'Org Follow Link', then 'Org Link Mailto Program'. Perhaps this will help? I am having a small challenge with the way in which emacs is handling mailto links in org files. For some mysterious reason, C-c C-o on a link opens Kmail. I am in gnome and have specified thunderbird as the default mail client. Actually what I want is for the links to open in Gnus, but despite a lengthy web search I cannot find any way to fix this issue. Suggestions are welcome. Ross -- Ross A. Laird, PhD www.rosslaird.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode David A. Gershman gersh...@dagertech.net http://dagertech.net/gershman/ It's all about the path! --d. gershman ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Ross A. Laird, PhD www.rosslaird.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode