[O] Script: convert Tomboy/GNote XML to org-mode
-BEGIN PGP SIGNED MESSAGE- Hash: SHA384 Pardon me if this isn't the right place to post this, but I couldn't figure out where else to do so. I'm moving my note-taking from GNote (C++ rewrite of Tomboy Notes) to org-mode. As I have a lot of notes all over the place, I wrote a script to convert from the XML format used by the Tomboy-style tools to org-mode. You can find it here: https://github.com/StAlphonsos/scriptologie It could be improved in a lot of ways but it got me out of GNote, so that's something. If my feeble attempts to preserve meta-data about the notes as org-mode properties offends anyone I heartily welcome you to help me fix it, along with anything else you can think of... Org mode is great. Thanks. I'm not subscribed to this list so please respond directly to me. --A - -- att...@stalphonsos.com | 0x4FFCBB9C | hack(free) or die; -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEAREJAAYFAk427xMACgkQr88iLU/8u5ykkwCfTQ47zG4xgwu+MXzZ+S6pCjef aZoAniwxMM6egiBQZZAEaW1K1McNgitO =goIo -END PGP SIGNATURE-
Re: [O] Problems with search
No, it's not the autopair-post-command-handler that I wondered about[fn:1], it's that *t*, the first element of the list: how did it get there? Nick Footnotes: [fn:1] Well, I did wonder about it, but only because I never heard of it; but I am more suspicious of that t. Concerning that suspicious t I found the following in the documentation of add-hook: (add-hook HOOK FUNCTION optional APPEND LOCAL) [...] The optional fourth argument, LOCAL, if non-nil, says to modify the hook's buffer-local value rather than its default value. This makes the hook buffer-local if needed, and it makes t a member of the buffer-local value. That acts as a flag to run the hook functions in the default value as well as in the local value. Best regards, Bianca.
Re: [O] Gather properties for use by babel source block?
I have not used it myself, but isn't org-collector exactly what you want [1]. org-collector collects headline properties into tables with optional pre-processing Once you have a table, you can easily pass it to code blocks for further processing with org-babel. [1] - http://orgmode.org/worg/org-contrib/org-collector.html -- Darlan 2011/8/2 Tim Burt tcb...@rochester.rr.com: I want to gather data from properties into something that can be used by a babel source block (e.g. plot the data). Searches in the manual, worg, and gmane have not yielded the method, but my best guess is that I've missed it. If so, this is simply a request for a pointer to the documentation I should read. BACKGROUND: I'm trying to complete a workflow where I capture data over time and periodically operate with it (e.g. put into a database and plot). The excellent documentation for orgmode has made certain parts easy going, but the current obstacle is extracting properties that can subsequently be operated on in babel source blocks. + [X] Capture data into properties using templates + [X] View tables of properties in org file * [X] use columnview dynamic block * [X] use org-collector + [ ] Gather properties for use by babel source block + [-] Operate on the gathered properties * [-] SQL or SQLite - [X] follow simple tutorials for proof of principle - [ ] populate database with gathered properties * [-] R - [X] follow simple tutorials - [ ] calculate statistics and populate database - [ ] plot from database - [ ] plot from table in org file Good evening, Tim
[O] Problem with checkbox
Hi, I have one problem with the checkbox. i have an org file wich contain the following structure * Daily Routine #+CATEGORY: Daily ** TODO item1[0/2] :HOME: 1. [ ] item1 2. [ ] item2 :PROPERTIES: :STYLE:habit :LOGGING: lognoterepeat :END: SCHEDULED: 2011-07-30 Sat +1d - Refiled on [2011-07-29 Fri 14:25] ** TODO item2 [0/3]:HOME: 1. [ ] item1 2. [ ] item2 3. [ ] item3 :PROPERTIES: :STYLE:habit :LOGGING: lognoterepeat :END: SCHEDULED: 2011-07-30 Sat +1d - Refiled on [2011-07-29 Fri 14:25] ** TODO item3 [0/11] :HOME: 1. [ ] item1 2. [ ] item2 :PROPERTIES: :STYLE:habit :LOGGING: lognoterepeat :COOKIE_DATA: todo :END: SCHEDULED: 2011-07-30 Sat +1d - Refiled on [2011-07-29 Fri 14:25] ** (this empty headline is the temporary work arround) * Thesis #+CATEGORY: Thesis ** TODO item2 :LAB:COMPUTER: SCHEDULED: 2011-07-29 Fri DEADLINE: 2011-07-31 Sun - Refiled on [2011-07-29 Fri 02:02] ** TODO [#B] item2 [0/9] :LAB:COMPUTER: 1. [ ] item1 [0/2] 1. [ ] item1 2. [ ] item2 2. [ ] item2 3. [ ] item3 4. [ ] item4 1. [ ] item1 2. [ ] item2 5. [ ] item5 Refiled on [2011-07-28 Thu 11:18] SCHEDULED: 2011-07-29 Fri DEADLINE: 2011-07-31 Sun As you can see the counter of 3rd TODO item in the category Daily show [0/11] insted of [0/3]. as a temporary workarround i inserted a second level (empty) as marked any help will be appreciated
[O] Point jumps when changing timestamps
I often change timestamps with S-Left or S-Right when the cursor is at the point immediately following the timestamp: 2011-08-03 Wed .+1d ^ cursor here When I call S-Left or S-Right at this point, the cursor jumps to the last character of the day of week abbreviation: 2011-08-04 Thu .+1d ^ cursor now here The cursor does not jump if it is already located within the brackets. Best, Matt
Re: [O] Gather properties for use by babel source block?
Hello Darlan --- darc...@gmail.com darc...@gmail.com wrote: I have not used it myself, but isn't org-collector exactly what you want [1]. org-collector collects headline properties into tables with optional pre-processing Indeed org-collector has allowed me to extract properties into a table, and even without much knowledge of lisp (for the conditions) the results were promising. Once you have a table, you can easily pass it to code blocks for further processing with org-babel. While I have the table from org-collector I do not know how to easily pass it to code blocks. I have an (untested) idea that if #+tblname preceded the table from org-collector, then a babel source block could operate on it. If this works then almost all is well and good, except for the small detail of getting the #+tblname automatically from the org-collector process. Thank you for the response, Tim [1] - http://orgmode.org/worg/org-contrib/org-collector.html -- Darlan 2011/8/2 Tim Burt tcb...@rochester.rr.com: I want to gather data from properties into something that can be used by a babel source block (e.g. plot the data). Searches in the manual, worg, and gmane have not yielded the method, but my best guess is that I've missed it. If so, this is simply a request for a pointer to the documentation I should read. BACKGROUND: I'm trying to complete a workflow where I capture data over time and periodically operate with it (e.g. put into a database and plot). The excellent documentation for orgmode has made certain parts easy going, but the current obstacle is extracting properties that can subsequently be operated on in babel source blocks. + [X] Capture data into properties using templates + [X] View tables of properties in org file * [X] use columnview dynamic block * [X] use org-collector + [ ] Gather properties for use by babel source block + [-] Operate on the gathered properties * [-] SQL or SQLite - [X] follow simple tutorials for proof of principle - [ ] populate database with gathered properties * [-] R - [X] follow simple tutorials - [ ] calculate statistics and populate database - [ ] plot from database - [ ] plot from table in org file Good evening, Tim
Re: [O] Bug: Refile sometimes loses the last line [7.7 (release_7.7.15.gc363)]
Hi Bernt, Can you see if this patch fixes the problem? --8---cut here---start-8--- diff --git a/lisp/org.el b/lisp/org.el index c7b28dd..41ac8c6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19212,7 +19212,9 @@ Returns the number of empty lines passed. (let ((pos (point))) (if (cdr (assoc 'heading org-blank-before-new-entry)) (skip-chars-backward \t\n\r) - (forward-line -1)) + (unless (eq (line-number-at-pos) + (count-lines (point-min) (point-max))) + (forward-line -1))) (beginning-of-line 2) (goto-char (min (point) pos)) (count-lines (point) pos))) --8---cut here---end---8--- Thanks, Jason
Re: [O] Gather properties for use by babel source block?
Hello Tim, On Wed, Aug 3, 2011 at 4:35 PM, tcb...@rochester.rr.com wrote: While I have the table from org-collector I do not know how to easily pass it to code blocks. I have put an example of passing tables to gnuplot source blocks below. I hope you can adapt it to the source block of your choice. It also illustrates the noweb syntax. I hope this helps. ---88- #+BABEL: :noweb yes :results silent * Gnuplot source preamble :src: #+srcname: gnuplot-preamble #+begin_src gnuplot reset set terminal pdfcairo color size 21cm,14.8cm set termoption enhanced set termoption font DejaVuSerif,8 set grid back set style line 1 linewidth 2 linecolor rgb 'forest-green' set style line 2 linewidth 2 linecolor rgb 'red' set label '(pp \@ 7 TeV)' at graph -0.08,1.05 set ylabel 'K-factor' set xlabel 'W invariant mass (GeV)' set title 'K-factor = {/Symbol s}_{NLO}/{/Symbol s}_{LO}' #+end_src * HORACE K-factor ** Gnuplot source :src: #+srcname: plot-horace-k-factor #+begin_src gnuplot :var data=horace-kfactor-nnlo-vs-nnlo-w-scale-err gnuplot-preamble set output horace-kfactor.pdf set label 'Standard Model W' at graph 0.5,0.67 set xrange [0:1000] plot $data using 1:2 with linespoints linestyle 1 title 'Horace K-factor' set output #+end_src ** K-factor with uncertainties #+TBLNAME: horace-kfactor-nnlo-vs-nnlo-w-scale-err | M (GeV) | K-factor | |-+--| | 50 |1.075 | | 150 | 1.01 | | 250 | 0.9932 | | 350 | 0.9778 | | 450 | 0.9621 | | 550 | 0.9498 | | 650 | 0.9365 | | 750 | 0.9253 | | 850 | 0.9122 | | 950 | 0.9001 | ---88- -- Suvayu Open source is the future. It sets us free.
Re: [O] Performance of org-mode with BIDI
Reiner Steib reinersteib+gm...@imap.cc writes: On Mon, Aug 01 2011, Florian Beck wrote: If you are using the current bzr version of emacs, make sure to set `bidi-display-reordering' to nil. Please don't. Instead, report problems caused by `bidi-display-reordering' with M-x report-emacs-bug RET so the Emacs developers can fix the problem. And, as of now, the problem is already fixed. -- Florian Beck
[O] Editing Org files on the iPad
My setup: - windows pc at work - iMac at home (my wife is monopolizing it :P ) - iPad for personal use I keep all my Org files in Dropbox. I use the iPad a lot, and not just for browsing on the couch. When I want to edit my Org files on the iPad, I struggle. I really tried to use MobileOrg... it might be not so bad for looking up something but I don't like the editing experience. My work around at the moment is to log on the iMac through SSH and lunch the full Emacs. The experience is not perfect, mainly because it is not super fast and because it only works when I am at home. Right now, I am tempted by the many great plaint text editor that exist in iOS. This way, I would get a great typing experience but I would lose the ability to perform actions on the text until I get back to the PC. Is anyone in a similar situation? What are your solutions/workarounds? Carl
Re: [O] Script: convert Tomboy/GNote XML to org-mode
Thanks for sharing this. I've wanted to convert my tomboy notes to org-mode for some time. I downloaded the script and tried to run it with : ./tomboy2org.pl -help but I got the error message below --8---cut here---start-8--- Can't locate Text/Format.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./tomboy2org.pl line 44. BEGIN failed--compilation aborted at ./tomboy2org.pl line 44. --8---cut here---end---8--- Maybe I need to install some library, but I know nothing about Perl to fix this myself. -- Darlan At Mon, 01 Aug 2011 13:23:25 -0500, attila att...@stalphonsos.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA384 Pardon me if this isn't the right place to post this, but I couldn't figure out where else to do so. I'm moving my note-taking from GNote (C++ rewrite of Tomboy Notes) to org-mode. As I have a lot of notes all over the place, I wrote a script to convert from the XML format used by the Tomboy-style tools to org-mode. You can find it here: https://github.com/StAlphonsos/scriptologie It could be improved in a lot of ways but it got me out of GNote, so that's something. If my feeble attempts to preserve meta-data about the notes as org-mode properties offends anyone I heartily welcome you to help me fix it, along with anything else you can think of... Org mode is great. Thanks. I'm not subscribed to this list so please respond directly to me. --A - -- att...@stalphonsos.com | 0x4FFCBB9C | hack(free) or die; -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEAREJAAYFAk427xMACgkQr88iLU/8u5ykkwCfTQ47zG4xgwu+MXzZ+S6pCjef aZoAniwxMM6egiBQZZAEaW1K1McNgitO =goIo -END PGP SIGNATURE-
Re: [O] Script: convert Tomboy/GNote XML to org-mode
Darlan Cavalcante Moreira darc...@gmail.com writes: I downloaded the script and tried to run it with : ./tomboy2org.pl -help but I got the error message below Can't locate Text/Format.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./tomboy2org.pl line 44. BEGIN failed--compilation aborted at ./tomboy2org.pl line 44. Maybe I need to install some library, but I know nothing about Perl to fix this myself. $ perl -MCPAN -e 'install Text::Format' HTH, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
[O] undo archive
Is there a way to undo archive after, say, an accidental archival of a part of org file?
Re: [O] Script: convert Tomboy/GNote XML to org-mode
-BEGIN PGP SIGNED MESSAGE- Hash: SHA384 On 08/03/2011 11:48 AM, Darlan Cavalcante Moreira wrote: Thanks for sharing this. I've wanted to convert my tomboy notes to org-mode for some time. I downloaded the script and tried to run it with : ./tomboy2org.pl -help but I got the error message below --8---cut here---start-8--- Can't locate Text/Format.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./tomboy2org.pl line 44. BEGIN failed--compilation aborted at ./tomboy2org.pl line 44. --8---cut here---end---8--- Maybe I need to install some library, but I know nothing about Perl to fix this myself. Hi, thanks for pointing this out. I should make the dependencies explicit at least in the README, but to be clear they are: XML::Twig Text::Format The other modules I depend on are (almost?) always installed by default, at least in every Perl installation I've seen recently: Pod::Usage Sys::Hostname; IO::File; POSIX; You don't say what platform you are using so I can't tell you exactly how to get any missing modules installed for your situation, but here's a stab at it: Debian names the packages for Perl modules something like libname-of-module-in-lowercase-with-hyphens-perl so Text::Format becomes libtext-format-perl. On Ubuntu Linux and other Debian-derived Linux distros you therefore do something like this to get this package installed: $ sudo apt-get install libtext-format-perl If the above doesn't apply to you and your system has the cpan command installed, you can also do this: $ sudo cpan -i Text::Format The second solution above will probably work on modern releases of your favorite BSD Unix flavor; I just checked on OpenBSD and NetBSD systems I have access to and they both have this command. If you are not much for Unix system administration, the sudo command gives you temporary administrative powers for the purposes of a single command; your mileage may vary depending on your situation. Finally, if all else fails Text::Format is available from CPAN here: http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Text-Format-0.53.tar.gz The usual recipe (after you've downloaded that file however) is: $ tar zxvf /path/to/Text-Format-0.53.tar.gz $ cd Text-Format-0.53 $ perl Makefile.PL $ make $ make test # assuming make test does not kick out any errors: $ sudo make install -- Darlan Hope this helps. Pax, --A - -- att...@stalphonsos.com | 0x4FFCBB9C | hack(free) or die; -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEAREJAAYFAk45nP8ACgkQr88iLU/8u5x/7gCfbhrB3eE9CkgBsD2c+3K3xMBG EmAAnjK/TH3vNAjSum13eA1n02qKnjxW =2cBx -END PGP SIGNATURE-
Re: [O] undo archive
On Wed, Aug 3, 2011 at 8:47 PM, skip scp0...@gmail.com wrote: Is there a way to undo archive after, say, an accidental archival of a part of org file? A simple undo on the org file buffer has worked for me in the past. -- Suvayu Open source is the future. It sets us free.
Re: [O] undo archive
suvayu ali fatkasuvayu+li...@gmail.com writes: On Wed, Aug 3, 2011 at 8:47 PM, skip scp0...@gmail.com wrote: Is there a way to undo archive after, say, an accidental archival of a part of org file? A simple undo on the org file buffer has worked for me in the past. You'll also need to manually remove the archived subtree from the archive file.
[O] [PATCH] testing/ort-test.el, regexp to find files
org-test picks up temporary and backup files. Please consider a patch the attachments to get rid of them. From 9b616baf0f3df63ea13ffde37c9c5aff903fac4e Mon Sep 17 00:00:00 2001 From: Sergey Litvinov slitvi...@gmail.com Date: Mon, 1 Aug 2011 00:47:32 +0200 Subject: [PATCH] Get rid of tmp and backup file in test load --- testing/org-test.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testing/org-test.el b/testing/org-test.el index 96e693f..4e2f8e6 100644 --- a/testing/org-test.el +++ b/testing/org-test.el @@ -204,7 +204,7 @@ files. (lambda (path) (if (file-directory-p path) (rload path) (load-file path))) (directory-files base 'full - ^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*\\.el + ^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*\\.el$ (rload (expand-file-name lisp org-test-dir)) (rload (expand-file-name lisp (expand-file-name contrib org-test-dir) -- 1.7.1
Re: [O] Editing Org files on the iPad
I'm in the same boat. I found that Nebulous Notes is a suitable plain text editor. I enter data into a inbox.org on dropbox and refile them when back at a desktop. I'd easily pay for an ios or web text editor that had rudimentary org syntax support, such as collapsing drawers and indenting headings. On Wed, Aug 3, 2011 at 09:46, Carl Bolduc carlbol...@gmail.com wrote: My setup: - windows pc at work - iMac at home (my wife is monopolizing it :P ) - iPad for personal use Is anyone in a similar situation? What are your solutions/workarounds? Carl
[O] [BABEL,PATCH] cpp-c++-mode, ob-C mode tests
The first patch maps cpp language code to c++-mode. The second patch adds tests for ob-C. From d0bc3554ec70138245289f1fabf78e2e86436c78 Mon Sep 17 00:00:00 2001 From: Sergey Litvinov slitvi...@gmail.com Date: Wed, 3 Aug 2011 22:02:43 +0200 Subject: [PATCH 1/2] Map cpp to c++-mode --- lisp/org-src.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index 30ffc34..094ec09 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -155,7 +155,7 @@ but which mess up the display of a snippet in Org exported files.) (defcustom org-src-lang-modes '((ocaml . tuareg) (elisp . emacs-lisp) (ditaa . artist) (asymptote . asy) (dot . fundamental) (sqlite . sql) -(calc . fundamental) (C . c)) +(calc . fundamental) (C . c) (cpp . c++)) Alist mapping languages to their major mode. The key is the language name, the value is the string that should be inserted as the name of the major mode. For many languages this is -- 1.7.1 From fba6eef6944766e675e4abe1d11d347b9a728031 Mon Sep 17 00:00:00 2001 From: Sergey Litvinov slitvi...@gmail.com Date: Wed, 3 Aug 2011 22:03:19 +0200 Subject: [PATCH 2/2] Add tests for ob-C.el --- testing/README.org |1 + testing/examples/ob-C-test.org | 44 testing/lisp/test-ob-C.el | 43 +++ 3 files changed, 88 insertions(+), 0 deletions(-) create mode 100644 testing/examples/ob-C-test.org create mode 100644 testing/lisp/test-ob-C.el diff --git a/testing/README.org b/testing/README.org index 2f16a55..cb408db 100644 --- a/testing/README.org +++ b/testing/README.org @@ -77,6 +77,7 @@ First tangle this file out to your desktop. (require 'org-id) (org-id-update-id-locations (list (concat org-dir /testing/examples/babel.org) + (concat org-dir /testing/examples/ob-C-test.org) (concat org-dir /testing/examples/normal.org) (concat org-dir /testing/examples/ob-awk-test.org) (concat org-dir /testing/examples/ob-fortran-test.org) diff --git a/testing/examples/ob-C-test.org b/testing/examples/ob-C-test.org new file mode 100644 index 000..4721c96 --- /dev/null +++ b/testing/examples/ob-C-test.org @@ -0,0 +1,44 @@ +#+Title: a collection of examples for ob-C tests +#+OPTIONS: ^:nil +* Simple tests + :PROPERTIES: + :ID: fa6db330-e960-4ea2-ac67-94bb845b8577 + :END: +#+source: simple +#+begin_src cpp :includes iostream :results silent + std::cout 42; + return 0; +#+end_src + +#+source: integer_var +#+begin_src cpp :var q=12 :includes iostream :results silent + std::cout q; + return 0; +#+end_src + +#+source: two_var +#+begin_src cpp :var q=12 :var p=10 :includes iostream :results silent + std::cout p+q; + return 0; +#+end_src + +#+source: string_var +#+begin_src cpp :var q=word :includes '(iostream cstring) :results silent + std::cout q ' ' strlen(q); + return 0; +#+end_src + +#+source: define +#+begin_src cpp :defines N 42 :includes iostream :results silent + std::cout N; + return 0; +#+end_src + +* Array +#+source: array +#+begin_src cpp :includes iostream :results vector :results silent + for (int i=1; i3; i++) { +std::cout i '\n'; + } + return 0; +#+end_src diff --git a/testing/lisp/test-ob-C.el b/testing/lisp/test-ob-C.el new file mode 100644 index 000..5ee7bec --- /dev/null +++ b/testing/lisp/test-ob-C.el @@ -0,0 +1,43 @@ +(require 'ob-C) + +(ert-deftest ob-C/assert () + (should t)) + +(ert-deftest ob-C/simple-program () + Hello world program. + (org-test-at-id fa6db330-e960-4ea2-ac67-94bb845b8577 +(org-babel-next-src-block) +(should (= 42 (org-babel-execute-src-block) + +(ert-deftest ob-C/integer-var () + Test of an integer variable. + (org-test-at-id fa6db330-e960-4ea2-ac67-94bb845b8577 +(org-babel-next-src-block 2) +(should (= 12 (org-babel-execute-src-block) + +(ert-deftest ob-C/two-integer-var () + Test of two input variables + (org-test-at-id fa6db330-e960-4ea2-ac67-94bb845b8577 +(org-babel-next-src-block 3) +(should (= 22 (org-babel-execute-src-block) + +(ert-deftest ob-C/string-var () + Test of a string input variable + (org-test-at-id fa6db330-e960-4ea2-ac67-94bb845b8577 +(org-babel-next-src-block 4) +(should (equal word 4 (org-babel-execute-src-block) + +(ert-deftest ob-C/preprocessor () + Test of a string variable + (org-test-at-id fa6db330-e960-4ea2-ac67-94bb845b8577 +(org-babel-next-src-block 5) +(should (= 42 (org-babel-execute-src-block) + +(ert-deftest ob-C/table () + Test of a table output + (org-test-at-id 2df1ab83-3fa3-462a-a1f3-3aef6044a874 +(org-babel-next-src-block) +(should (equal '((1) (2)) (org-babel-execute-src-block) + +;;; test-ob-C.el ends here + -- 1.7.1
Re: [O] Was tj3 -- tikz gantt chart
On Wed, Jul 27, 2011 at 7:40 AM, Bastien b...@altern.org wrote: Hi John, John Hendy jw.he...@gmail.com writes: I looked into taskjuggler again, but I can't figure out what the status is on tj3 and org-mode. AFAICT, Org's Taskjuggler exporter works fine with both tj2 and tj3. You need to configure `org-export-taskjuggler-target-version'. What is yours set to? I set mine to 3, but since the change, tj3 --version outputs 0.1 something... There is some work to be done to make this library even more useful (see the the todo list in org-taskjuggler.el) but it's already usable. I use it for a project. Can you use the file on worg here: http://orgmode.org/worg/org-tutorials/org-taskjuggler.html ? I'm getting errors: 1) the hours (are they hours?) are exported as 0.3h instead of something else (they are set to :Effort: 30.0 in the org file but apparently get exported to 0.3h). This breaks export, as hours needs to be greater or equal to 1.0. 2) Once I manually fixed all those in the resultant .tjp file, I get: --- Error: Unexpected token 'utilization' found. Expecting one of 'alert', 'alertmessages', 'alertsummaries', 'alerttrend', 'chart', 'complete', 'completed', 'criticalness', 'cost', 'daily', 'directreports', 'duration', 'duties', 'efficiency', 'effort', 'effortdone', 'effortleft', 'email', 'end', 'flags', 'followers', 'freetime', 'freework', 'fte', 'headcount', 'hierarchindex', 'hourly', 'id', 'index', 'inputs', 'journal', 'journal_sub', 'journalmessages', 'journalsummaries', 'line', 'managers', 'maxend', 'maxstart', 'minend', 'minstart', 'monthly', 'no', 'name', 'note', 'pathcriticalness', 'precursors', 'priority', 'quarterly', 'rate', 'reports', 'resources', 'responsible', 'revenue', 'scenario', 'seqno', 'start', 'status', 'targets', 'wbs', 'bsi', 'weekly', 'yearly' columns no, name, utilization --- Does this happen to you ever? Thanks for any input. Perhaps we need a Worg page for both tj2 and tj3 if the file formats are drastically different? --- *Edit before sending.* I got the export to work by looking at the example file from the tj3 manual. The report needs to be waay different than the current. Here is what worked for the example file on worg (after manually changing the durations as described above): -- navigator navbar { hidereport 0 } macro TaskTip [ tooltip istask() -8- '''Start: ''' -query attribute='start'- '''End: ''' -query attribute='end'- '''Resources:''' -query attribute='resources'- '''Precursors: ''' -query attribute='precursors'- '''Followers: ''' -query attribute='followers'- -8- ] textreport frame { header -8- == Accounting Software Project == [navigator id=navbar] -8- footer textreport index Overview { formats html center '[report id=overview]' } textreport Status { formats html center -8- [report id=status.dashboard] [report id=status.completed] [report id=status.ongoing] [report id=status.future] -8- } textreport development Development { formats html center '[report id=development]' } textreport Milestones { formats html center '[report id=milestones]' } textreport ContactList { formats html title Contact List center '[report id=contactList]' } textreport ResourceGraph { formats html title Resource Graph center '[report id=resourceGraph]' } } # A traditional Gantt chart with a project overview. taskreport overview { header -8- === Project Overview === The project is structured into 3 phases. # Specification # -reportlink id='frame.development'- # Testing === Original Project Plan === -8- columns hierarchindex, name, start, end, effort, duration, cost, revenue, chart { ${TaskTip} } # For this report we like to have the abbreviated weekday in front # of the date. %a is the tag for this. timeformat %a %Y-%m-%d loadunit days hideresource 1 caption 'All effort values are in man days.' footer -8- === Staffing === All project phases are properly staffed. See [[ResourceGraph]] for detailed resource allocations. === Current Status === The project started off with a delay of 4 days. This slightly affected the original schedule. See [[Deliveries]] for the impact on the delivery dates. -8- } # Macro to set the background color of a cell according to the alert # level of the task. macro AlertColor [ cellcolor plan.alert = 0 #00D000 # green cellcolor plan.alert = 1 #D0D000 # yellow cellcolor plan.alert = 2 #D0 # red ] taskreport status { columns wbs { width 50 }, name { width 150 }, start { width 100 }, end { width 100 }, effort { width 100 }, alert { tooltip plan.journal != '' -query attribute='journal'- width 150 },
Re: [O] Editing Org files on the iPad
On Wed, Aug 3, 2011 at 12:46 PM, Carl Bolduc carlbol...@gmail.com wrote: Right now, I am tempted by the many great plaint text editor that exist in iOS. This way, I would get a great typing experience but I would lose the ability to perform actions on the text until I get back to the PC. Is anyone in a similar situation? What are your solutions/workarounds? If you're willing to jailbreak, you could look at this link for emacs compiled for the iphone/ipad. I haven't tried it. http://gamma-level.com/cydia/info See here for more: http://gamma-level.com/iphoneos/ports/emacs http://gamma-level.com/iphoneos/ports/environment
[O] Small font size in beamer tables
I am using beamer class in orgmode to make a presentation. I need to use small font size for some of my tables. LaTeX_CLASS_OPTIONS changes font size in the text but not in the tables. Something like this does not work. #+ATTR_LaTeX: size=small align=p{2cm}|r|r|p{1cm}|p{1cm}|r|p{1cm}|p{1cm}| What would be the easiest way to specify that a table uses smaller font size. Vikas
Re: [O] Small font size in beamer tables
On Thu, Aug 4, 2011 at 2:00 AM, Vikas Rawal vikasli...@agrarianresearch.org wrote: I am using beamer class in orgmode to make a presentation. I need to use small font size for some of my tables. http://orgmode.org/worg/org-hacks.html#latex-command-for-floats -- Suvayu Open source is the future. It sets us free.
Re: [O] Small font size in beamer tables
I am using beamer class in orgmode to make a presentation. I need to use small font size for some of my tables. http://orgmode.org/worg/org-hacks.html#latex-command-for-floats Oh. Thanks very much for a prompt response. In fact, I was just reading that extremely useful thread on this list where you proposed this solution and provided the patch for the documentation. The solution is not working for me somehow. Which is to say that, with my limited knowledge of latex, I have not been able to understand this. So may I please you to elaborate a bit. I have this line: #+ATTR_LaTeX: placement=\footnotesize align=p{2cm}|r|r|p{1cm}|p{1cm}|r|p{1cm}|p{1cm}| This does not produce any change. I have also tried just: #+ATTR_LaTeX: placement=\footnotesize What am I supposed to do with [options]. Do i have to have some? If it is relevant, my table is produced by a src block which processes an R script. So the entire frame looks like: *** frame title #+CAPTION: the table title here #+ATTR_LaTeX: placement=\footnotesize align=p{2cm}|r|r|p{1cm}|p{1cm}|r|p{1cm}|p{1cm}| #+BEGIN_SRC R :results value :colnames yes :hline yes [R script here] #+END_SRC I shall be grateful if you could help me tweak this. Vikas
Re: [O] Small font size in beamer tables
Hello Vikas, On Thu, Aug 4, 2011 at 2:33 AM, Vikas Rawal vikasli...@agrarianresearch.org wrote: I have this line: #+ATTR_LaTeX: placement=\footnotesize align=p{2cm}|r|r|p{1cm}|p{1cm}|r|p{1cm}|p{1cm}| This does not produce any change. I have also tried just: #+ATTR_LaTeX: placement=\footnotesize What am I supposed to do with [options]. Do i have to have some? I hadn't tried my solution for beamer export. In beamer tables don't use the table environment, hence my previous solution doesn't work. That said, I did find an ugly hack. Try this: #+LATEX: {\tiny #+ATTR_LaTeX: align=rr | M (GeV) | K-factor | |-+--| | 50 |1.075 | | 150 | 1.01 | | 250 | 0.9932 | | 350 | 0.9778 | | 450 | 0.9621 | #+LATEX: } Hopefully this was helpful. -- Suvayu Open source is the future. It sets us free.
[O] Editing Org files on the iPad
Nebulous Notes has a customizable additional keyboard row for useful characters (*[]_...) and/or macros. It does not do syntax highlighting and folding but it's already much better than anything else. On 2011-08-03, at 15:43, Ido Magal i...@idomagal.com wrote: I'm in the same boat. I found that Nebulous Notes is a suitable plain text editor. I enter data into a inbox.org on dropbox and refile them when back at a desktop. I'd easily pay for an ios or web text editor that had rudimentary org syntax support, such as collapsing drawers and indenting headings. On Wed, Aug 3, 2011 at 09:46, Carl Bolduc carlbol...@gmail.com wrote: My setup: - windows pc at work - iMac at home (my wife is monopolizing it :P ) - iPad for personal use Is anyone in a similar situation? What are your solutions/workarounds? Carl
Re: [O] Bug: Refile sometimes loses the last line [7.7 (release_7.7.15.gc363)]
Jason Dunsmore emacs-orgm...@deathroller.dunsmor.com writes: Hi Bernt, Can you see if this patch fixes the problem? diff --git a/lisp/org.el b/lisp/org.el index c7b28dd..41ac8c6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19212,7 +19212,9 @@ Returns the number of empty lines passed. (let ((pos (point))) (if (cdr (assoc 'heading org-blank-before-new-entry)) (skip-chars-backward \t\n\r) - (forward-line -1)) + (unless (eq (line-number-at-pos) + (count-lines (point-min) (point-max))) + (forward-line -1))) (beginning-of-line 2) (goto-char (min (point) pos)) (count-lines (point) pos))) This patch fixes it for me. Thanks!! Regards, Bernt
Re: [O] Problem with checkbox
mz.lassoued mz.lasso...@gmail.com writes: Hi, I have one problem with the checkbox. i have an org file wich contain the following structure I think we need more information. What version of org-mode are you using? For Item 3 I get [0/0] since there are no subtasks for that task. For the last TODO [#B] item 2 I get [0/5] not [0/9] since it counts the first level of checkboxes (not the sub-checkboxes) Regards, Bernt * Daily Routine #+CATEGORY: Daily ** TODO item1[0/2] :HOME: 1. [ ] item1 2. [ ] item2 :PROPERTIES: :STYLE:habit :LOGGING: lognoterepeat :END: SCHEDULED: 2011-07-30 Sat +1d - Refiled on [2011-07-29 Fri 14:25] ** TODO item2 [0/3]:HOME: 1. [ ] item1 2. [ ] item2 3. [ ] item3 :PROPERTIES: :STYLE:habit :LOGGING: lognoterepeat :END: SCHEDULED: 2011-07-30 Sat +1d - Refiled on [2011-07-29 Fri 14:25] ** TODO item3 [0/11] :HOME: 1. [ ] item1 2. [ ] item2 :PROPERTIES: :STYLE:habit :LOGGING: lognoterepeat :COOKIE_DATA: todo :END: SCHEDULED: 2011-07-30 Sat +1d - Refiled on [2011-07-29 Fri 14:25] ** (this empty headline is the temporary work arround) * Thesis #+CATEGORY: Thesis ** TODO item2 :LAB:COMPUTER: SCHEDULED: 2011-07-29 Fri DEADLINE: 2011-07-31 Sun - Refiled on [2011-07-29 Fri 02:02] ** TODO [#B] item2 [0/9] :LAB:COMPUTER: 1. [ ] item1 [0/2] 1. [ ] item1 2. [ ] item2 2. [ ] item2 3. [ ] item3 4. [ ] item4 1. [ ] item1 2. [ ] item2 5. [ ] item5 Refiled on [2011-07-28 Thu 11:18] SCHEDULED: 2011-07-29 Fri DEADLINE: 2011-07-31 Sun As you can see the counter of 3rd TODO item in the category Daily show [0/11] insted of [0/3]. as a temporary workarround i inserted a second level (empty) as marked any help will be appreciated
Re: [O] Small font size in beamer tables
I hadn't tried my solution for beamer export. In beamer tables don't use the table environment, hence my previous solution doesn't work. That said, I did find an ugly hack. Try this: #+LATEX: {\tiny #+ATTR_LaTeX: align=rr | M (GeV) | K-factor | |-+--| | 50 |1.075 | | 150 | 1.01 | | 250 | 0.9932 | | 350 | 0.9778 | | 450 | 0.9621 | #+LATEX: } You are my hero of the day!!! Thank you very much. Vikas
[O] New[er] TikZ package: pgfgantt (interest in using with org?)
I thought I'd go ahead and just start a fresh post form the orgmode - tikz/gantt topic here: http://article.gmane.org/gmane.emacs.orgmode/31824 Eric Fraga did a fantastic job of creating some TikZ code that could create a gantt chart from a table. Since then, it appears that a package was created for TikZ that would actually do all of this. It's quite well documented and looks incredibly well done. See the documentation here: http://mirror.ctan.org/graphics/pgf/contrib/pgfgantt/pgfgantt.pdf There are great examples in the documentation, and I think there's *got* to be some way to integrate either org-mode tables or perhaps properties somehow in creating these. I find gantt charts useful for 1) personal management and just knowing a timeline for when things need to get done and 2) for management who wants to know these kinds of things. While agenda is quite helpful, there is something about seeing a bird's eye view of everything nested together that's really slick. Any thoughts on whether there's interest in this? There's a similar package for ConTeXt, but I don't know anything about ConTeXt (when I first saw it, I thought this was for LaTeX and was really puzzled about why I couldn't get it to compile). See the following: --- http://wiki.contextgarden.net/Gantt-tikz --- http://www.martin-kumm.de/tex_gantt_package.php I think the pgfgantt package does everything for basic use, and more. I don't see a reason to go the ConTeXt route, but just provided it for information. This is already usable in LaTeX code blocks... but integration with org-mode would be superb and could perhaps replace the need for Task Juggler. It seems cleaner to me, though perhaps others get more out of Task Juggler than just gantt charts. That's my primary interest, and so exporting to a .tjp file and then needing to run from command line, and then printing the html to PDF... is a bit laborious. This is right in the org - LaTeX workflow and really does a nice, neat job of providing the necessary info. Thanks for any thoughts! John
Re: [O] how to include items (filtered) from other org files?
I'm going to narrow my question a bit because by now I've figured out that the most likely course to follow should be the use of a dynamic block. Is that correct? What I'm not sure of is whether I need to develop a function from scratch to crawl through certain files for tasks with particular tags or whether there are functions that I can leverage to do this (such as some of the functions upon which the agenda depends, etc). I am way out of my depth on this one, but with a few pointers I feel like it may be a good way for me to keep learning TIA — Michael On Aug 3, 2011, at 5:40 PM, Michael Gilbert wrote: Here's my challenge: I manage a lot of complex, overlapping projects. One of these projects is a regular newsletter. Half of the content that goes out in this newsletter is created by the newsletter program itself. The other half is the result of several other projects, which produce reports and articles that get published in the newsletter. The publishing task in all those other projects are tagged with an 'nnpublish' tag. I want to be able to work on the newsletter project in one place. I don't want to maintain duplicate tasks in wildly different places. (You can imagine how out of hand this would get.) What I want to do is INCLUDE all of the other publishing tasks programmatically in the org file that I use to manage the newsletter. I am completely stymied as to how to do this. The only information that I've had a change to look at that touches on the matter of including other files is in section 11.4 of the manual. If I'm not mistaken, it applies only to export. And the only processing that can be applied to the file being included is a limitation on which lines to include. Unless I'm missing something, this isn't going to meet my needs. I'm wondering if perhaps I need to be looking at code blocks. Maybe something that uses agenda code to grab items and then renders them in place. Oh hell, I don't know. I'm pretty lost as to how to pursue this. Any thoughts?
Re: [O] How to add entry in the Agenda view
Xin Shi shixin111 at gmail.com writes: I usually have a dedicated window (frame) for Org Agenda view. I found it would be very convient to be able to add item directly from the Agenda buffer, however, I don't see that command in the manual. (A closer one is the refill, which moves the entry to another category) It may work fine to you to just use Capture from the Agenda to add a new outline item to a capture file. You invoke capture from the Agenda, then just refresh the agenda after creating the new item. Russell Adam's video demonstrates this use at roughly 14:00 to 19:00: http://vimeo.com/16533939 Regards, Herb
[O] #+OPTIONS: timestamp:t Ignored
Hello, When I use the timestamp:t export option on Linux (GNU Emacs 22.2.1 for Linux), a creation time is included into exported file as expected; however, when I use this option on Windows (GNU Emacs 23.3.1 for Windows), it is ignored. For example, #+OPTIONS: author:t creator:t timestamp:t email:t correctly includes the author, creator, and E-mail address but not a timestamp. Is this a platform issue or Emacs version issue? Is there a workaround? Thank you, -- TK
Re: [O] #+OPTIONS: timestamp:t Ignored
tkoy...@gmail.com writes: Hello, When I use the timestamp:t export option on Linux (GNU Emacs 22.2.1 for Linux), a creation time is included into exported file as expected; however, when I use this option on Windows (GNU Emacs 23.3.1 for Windows), it is ignored. For example, #+OPTIONS: author:t creator:t timestamp:t email:t correctly includes the author, creator, and E-mail address but not a timestamp. Is this a platform issue or Emacs version issue? Is there a workaround? What exporter are you using? There are many html, latex, docbook, odt Please include an example of org file and it's output. Thank you, -- TK --