Re: [Orgmode] [OT] recutils
But since recfiles, the text files of recutils, are not hierarchically organized I am still considering to use only Org for the case of my collection of music. Org would have the advantages of outlining, hyperlinks, column view, todo, tags, agenda view, export for publishing and many others. Thus my wish for the file format would be to somehow keep in mind Org to potentially I noticed the file format is very similar to the layout of property drawers. Could recutils read an org file using those drawers with minor changes? That'd be a neat way to externally cross reference Org files and do reporting! Thanks. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ 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: org-indent mode not indenting free text?
Hi Eric, Erik Iverson er...@ccbr.umn.edu writes: It only appears defined for Emacs 23.2, So in particular, 23.1.50 is 'stuck' in between these two version checks, and maybe that's causing Antti's issue? Sorry for the confusion and my apologies for any trouble I have caused. When introducing this patch I referred to the documentation that said with-silent-modifications was introduced in Emacs 23.2, hence the test for this version. I was completely unaware of Emacs 23.1.50, which must have this function, otherwise org-indent-mode should not work as it is currently implemented. In earlier versions of org-indent-mode the call to with-silent-modifications had been using org-unmodified (see [1] for why it has been changed), hence my attempt to redefine with-silent-modifications with org-unmodified when unavailable. The problems on Emacs 23.1.50 prove that these two are not really interchangeable, but I was hoping for close enough. As I understand, the crashes Emacs 23.1.50 with org-indent-mode have nothing to do with the bug that got fixed by with-silent-modifications, so these are really different issues. For the reasons outlined above my attempted patch is botched, but I'm not sure how to proceed. Maybe a better idea is to revert org-indent back to using org-unmodified and implementing this macro using with-silent-modifications on Emacsen where it is available. Since org-unmodified is used in many more places this would need some testing, but it might be easier to maintain in the long run. (defmacro org-unmodified (rest body) Execute body without changing `buffer-modified-p'. Also, do not record undo information. (if (not (fboundp 'with-silent-modifications)) `(set-buffer-modified-p (prog1 (buffer-modified-p) (let ((buffer-undo-list t) before-change-functions after-change-functions) ,@body))) `(with-silent-modifications ,@body))) The version check in org-indent.el should probably be replaced by a feature-check for with-silent-modifications to avoid the bug in [1]. [1] http://comments.gmane.org/gmane.emacs.orgmode/31927 Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves ___ 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] Elisp code to insert a word in table
Ah, I need more help, though... I have tried this code. I made it as simple as possible to clarify my question. (defun add-word () (interactive) '(org-table-put (@2 $2 word!))) and execute in a buffer having a table already. It did not work at all. But also I kept wondering what could happen if there are two separate tables in the same buffer? I checked cells with C-c?, then realized that the cell locations are not unique in more than one table. So, there must be a way to identify the table in question. Thanks again. soichi 2010/12/3 ishi soichi soichi...@gmail.com Thanks for such a quick response! soichi 2010/12/3 Carsten Dominik carsten.domi...@gmail.com Hi Ishi, On Dec 3, 2010, at 10:00 AM, ishi soichi wrote: Hi. I'm trying to write an elisp code to enter words into a table of org-mode. after designating a buffer, which already contains a table, I simply wrote, '(insert test! @2$2) does not work obviously. indeed. Do I need to move the point to the particular cell before inserting? You could to that, using the functions org-table-goto-line and then org-table-goto-column. However, it is easier to use, for programmatic access to fields, the functions `org-table-put' and `org-table-get'. - 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] Elisp code to insert a word in table
ishi soichi soichi...@gmail.com wrote: Ah, I need more help, though... I have tried this code. I made it as simple as possible to clarify my question. (defun add-word () (interactive) '(org-table-put (@2 $2 word!))) and execute in a buffer having a table already. It did not work at all. Four problems: o point must be *in* the table before you call org-table-put (which incidentally also answers your question below about multiple tables). o line and column are integers: @2 and $2 is syntax for table formulas in the spreadsheet, not for providing arguments to this function. o quoting returns the quoted expression unevaluated, so the last line of your function does not do anything much; in particular, it does *not* call org-table-put at all (if it had you would have gotten an error). o lisp functions are called like this: (func arg1 arg2 ...) and *not* like this: (func (arg1 arg2 ...)) So your function should look something like this: (defun add-word () (interactive) (save-excursion (goto-char some-place-inside-the-table) (org-table-put 2 2 word! t))) where you'll have to figure out how to get the point somewhere inside the table. In the simplest case, providing a character position will work, but is obviously not very general. I won't try to explain the save-excursion here: see its documentation for more details. I'd recommend you spend some time studying the Introduction to Emacs Lisp guide: http://www.gnu.org/software/emacs/emacs-lisp-intro/html_node/index.html But also I kept wondering what could happen if there are two separate tables in the same buffer? I checked cells with C-c?, then realized that the cell locations are not unique in more than one table. So, there must be a way to identify the table in question. HTH. Nick ___ 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] [OT] recutils
I would highly appreciate any comment or suggestion on improving the format, the utilities, or whatever. Wow! The ability to have a _relational_ database with foreign keys in a simple text file is so great news for me. A dream I had for many years now. Or is it lack of knowledge from my side about already existing solutions before recutils? I don't think there is anything similar. Initially I just wanted a simple format to store fields in readable and writable files. Something really simple. Then additional features came to my mind and I implemented them. But note that the relational characteristics in recutils are not very sophisticated. You can't have keys composed by more than one field, for example. The rule here is: if you need something more complex then you probably should be using a real relational dbms instead :) I was thinking about using sqlite from the command line and together with shell scripts for stuff like my collection of music with recordings, MIDI files, scores and so on. Because at least for me editing a text file is by far simpler, more interactive and more convenient than editing with SQL I will prefer recutils over sqlite. Additionally, text files are tool-independent. You could even print your database :) But since recfiles, the text files of recutils, are not hierarchically organized I am still considering to use only Org for the case of my collection of music. Org would have the advantages of outlining, hyperlinks, column view, todo, tags, agenda view, export for publishing and many others. Thus my wish for the file format would be to somehow keep in mind Org to potentially - convert the files bidirectionally between the format of recfiles and Org, with or without something like literate programming of org-babel I don't think it is generally possible to map the relationships between record types in a recfile to hierarchies in an org file. For example, in a recfile you could have something like: %rec: Album %key: Name %type: Year date Name: Loving You Year: 1957 Author:Name: Elvis Presley ... %rec: Author %key: Name Name: Elvis Presley You could extract: * Albums ** Elvis Presley *** Loving You But then, what if several authors authored an album? %rec: Album Name: Sounds of Silence Author:Name: Simon Author:Name: Garfunkel You could group by Album or by Author then. - use recutils as a language extension to org-babel, recutils reading data streamed to its stdin from org-babel and piping back to into org-babel result (no writing by recutils to the file) That sounds interesting. Would be nice to store rec data into the org files. Thanks for the suggestions :) -- Jose E. Marchesijema...@gnu.org GNU Project http://www.gnu.org ___ 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] [OT] recutils
Thus my wish for the file format would be to somehow keep in mind Org to potentially I noticed the file format is very similar to the layout of property drawers. Could recutils read an org file using those drawers with minor changes? That'd be a neat way to externally cross reference Org files and do reporting! The parser implemented by librec would need a lot of changes to achieve this. But you can always pre-process the org files in a wrapper, that would remove anything that is not a drawer and the indentation. -- Jose E. Marchesijema...@gnu.org GNU Project http://www.gnu.org ___ 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] Encoded slashes in capture protocol URIs (via Chromium)
I've just had quite a bit of trouble setting up org capture protocol handling with the Chromium web browser. Using the Javascript function encodeURIComponent() replaces slashes with a %2F, as expected; the problem is then that xdg-open fails to open URIs containing %2F. Eventually I realised that xdg-open *can* accept a %2F, but *only* if it comes after a ? in the URI. So, as an ugly hack, I set the identifying character for the org-capture template that handles my bookmarks to be a ?; this way, any occurrence of %2F will come after a ?, so xdg-open won't complain! So the bookmarklet (attached to the F4 key in chromium, using the yakshave extension looks like this: yak.bindings.add({ 'f4': { onkeydown: function(event) { eval('location.href=org-protocol:/capture:/?/ + encodeURIComponent(location.href) + / + encodeURIComponent(document.title) + / + encodeURIComponent(window.getSelection());'); } } }); Of course this is basically a horrible hack; but it might help some of you out very slightly! -- Edward Lilley ejlil...@gmail.com http://www.ugnus.uk.eu.org/~edward/ ___ 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: SQLite in 7.01h?
I believe all you need to do is change 'Sqlite' to 'sqlite' (all lower case) in the +BEGIN_SRC line. --Mike ___ 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] BUG [PATCH]: org-clone-subtree-with-time-shift doesn't clean empty property drawers in entire subtree
If using org-clone, C-c C-x c, on a subtree instead of a single item, the loop to call org-remove-empty-drawer-at isn't executing on every item of the subtree. Changing the re-search-forward seems to do the trick. Mike --- lisp/org.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 66514a2..e5a20d3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7603,7 +7603,7 @@ and still retain the repeater to cover future instances of the task. (and idprop (if org-clone-delete-id (org-entry-delete nil ID) (org-id-get-create t))) -(while (re-search-forward org-property-drawer-re nil t) +(while (re-search-forward org-property-start-re nil t) (org-remove-empty-drawer-at PROPERTIES (point))) (goto-char (point-min)) (when doshift -- 1.7.3.2 ___ 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] Encoded slashes in capture protocol URIs (via Chromium)
I solved it in a different way, but none the less very hacky :) http://www.mail-archive.com/emacs-orgmode@gnu.org/msg33861.html http://www.mail-archive.com/emacs-orgmode@gnu.org/msg33861.html/Mattias On Sat, Dec 4, 2010 at 15:23, Edward Lilley ejlil...@gmail.com wrote: I've just had quite a bit of trouble setting up org capture protocol handling with the Chromium web browser. Using the Javascript function encodeURIComponent() replaces slashes with a %2F, as expected; the problem is then that xdg-open fails to open URIs containing %2F. Eventually I realised that xdg-open *can* accept a %2F, but *only* if it comes after a ? in the URI. So, as an ugly hack, I set the identifying character for the org-capture template that handles my bookmarks to be a ?; this way, any occurrence of %2F will come after a ?, so xdg-open won't complain! So the bookmarklet (attached to the F4 key in chromium, using the yakshave extension looks like this: yak.bindings.add({ 'f4': { onkeydown: function(event) { eval('location.href=org-protocol:/capture:/?/ + encodeURIComponent(location.href) + / + encodeURIComponent(document.title) + / + encodeURIComponent(window.getSelection());'); } } }); Of course this is basically a horrible hack; but it might help some of you out very slightly! -- Edward Lilley ejlil...@gmail.com http://www.ugnus.uk.eu.org/~edward/ ___ 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 -- * Mattias Jämting * www.jwd.se | matt...@jwd.se | 070-6760182 *Internet, Coding, Design, Usablility - since 1998 * ___ 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] specifying priority with template expansion
On Fri, Dec 3, 2010 at 5:42 PM, David A. Thompson thompd...@gmail.com wrote: Most of my todos are neither associated with deadlines nor are they scheduled. Schedules and deadlines have seemed a more time-intensive way to go relative to setting priorities (but perhaps this is a 'Green Eggs and Ham' thing?) Maybe. :-) They were certainly the ticket for me. I guess the main difference is that I generally am typically able to recognize, when recording a todo, whether it's in the 'urgent/asap' pile (A), the 'try-and-get-it-done-sometime-soon' pile (B), or in a 'sure-would-be-nice-to-get-it-done' pile (C). Given that, it seemed both logical and more efficient to immediately prioritize the item rather than going back later and prioritizing the item. Someone else is probably better suited to address your original post. As far as additional thoughts, I was only thinking about keystroke savings: 1) You can set priorities in agenda view by typing a comma and choosing priority. You can set them anywhere with =C-c ,=. Or, you can simply type them, =[#A]=. 2) Say you type them. That's four keystrokes. You could use =%?= in a template to past the cursor within the priority cookie, like =[#%?]=. But then you need two keystrokes to get out. 3) Whether 2) saves more time than 1) isn't clear to me, but might fit your case until/if/when priorities are added to templates. Hope this helps, Jeff -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ 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] [OT] recutils
On Sat, Dec 04, 2010 at 01:28:39PM +0100, Jose E. Marchesi wrote: You could extract: * Albums ** Elvis Presley *** Loving You But then, what if several authors authored an album? %rec: Album Name: Sounds of Silence Author:Name: Simon Author:Name: Garfunkel * Albums ** Album 1 :PROPERTIES: :NAME: Sounds of Silence :BAND: The Beegees :YEAR: 1912 :NOTE: I haven't a clue about these bands :END: ** Album 2 :PROPERTIES: :NAME: Ethel the Aardvark goes quantity surveying :BAND: Monty Python :YEAR: 1978 :NOTE: A musical adaptation of a children's book :END: An operation across all child topics of Albums ought not be difficult. Just an idea. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ 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] Texi2dvi: forcing a recompile?
On Sat, Dec 4, 2010 at 3:20 PM, Mike McLean mike.mcl...@pobox.com wrote: I solve this with a forced remove: (setq org-latex-to-pdf-process (quote (rm %b.pdf texi2dvi -p -b -c -V %f))) Nice! Very clever. Thanks for the tip! (CC-ing to the list, hope that's OK) -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ 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] Texi2dvi: forcing a recompile?
Small problem: if the file doesn't exist, rm fails with error, which stops the process (the PDF file is not produced). This happens if I create a new source file in my project. On Sat, Dec 4, 2010 at 3:22 PM, Jeff Horn jrhorn...@gmail.com wrote: On Sat, Dec 4, 2010 at 3:20 PM, Mike McLean mike.mcl...@pobox.com wrote: I solve this with a forced remove: (setq org-latex-to-pdf-process (quote (rm %b.pdf texi2dvi -p -b -c -V %f))) Nice! Very clever. Thanks for the tip! (CC-ing to the list, hope that's OK) -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ 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] Texi2dvi: forcing a recompile?
On Sat, Dec 04, 2010 at 03:28:30PM -0500, Jeff Horn wrote: On Sat, Dec 4, 2010 at 3:22 PM, Jeff Horn jrhorn...@gmail.com wrote: On Sat, Dec 4, 2010 at 3:20 PM, Mike McLean mike.mcl...@pobox.com wrote: I solve this with a forced remove: (setq org-latex-to-pdf-process (quote (rm %b.pdf texi2dvi -p -b -c -V %f))) Nice! Very clever. Thanks for the tip! (CC-ing to the list, hope that's OK) Small problem: if the file doesn't exist, rm fails with error, which stops the process (the PDF file is not produced). This happens if I create a new source file in my project. change rm %b-pdf to rm -f %b.pdf, that should take care of it. -- Dr. Joost Kremers Georg-August-Universität Seminar für Deutsche Philologie Käte-Hamburger-Weg 3 D-37073 Göttingen ___ 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] Texi2dvi: forcing a recompile?
Thanks for the help. I'm not really sure what's going on. A PDF file is produced in my source directory, but not in my output directory. I receive an error message saying the PDF file was not produced. I didn't realize the customize menu had many different processes in the value menu. I wanted something that would run bibtex, and I see there is a process that runs pdflatex, bibtex, then pdflatex twice more. I get the expected result with that process, so I think I'll stick with it for now. Thanks for the help, Jeff On Sat, Dec 4, 2010 at 3:46 PM, Joost Kremers joostkrem...@fastmail.fm wrote: On Sat, Dec 04, 2010 at 03:28:30PM -0500, Jeff Horn wrote: On Sat, Dec 4, 2010 at 3:22 PM, Jeff Horn jrhorn...@gmail.com wrote: On Sat, Dec 4, 2010 at 3:20 PM, Mike McLean mike.mcl...@pobox.com wrote: I solve this with a forced remove: (setq org-latex-to-pdf-process (quote (rm %b.pdf texi2dvi -p -b -c -V %f))) Nice! Very clever. Thanks for the tip! (CC-ing to the list, hope that's OK) Small problem: if the file doesn't exist, rm fails with error, which stops the process (the PDF file is not produced). This happens if I create a new source file in my project. change rm %b-pdf to rm -f %b.pdf, that should take care of it. -- Dr. Joost Kremers Georg-August-Universität Seminar für Deutsche Philologie Käte-Hamburger-Weg 3 D-37073 Göttingen ___ 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 -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ 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] Texi2dvi: forcing a recompile?
In my case the rm does generate an error, but the process doesn't stop. On 12/4/10 3:28 PM, Jeff Horn wrote: Small problem: if the file doesn't exist, rm fails with error, which stops the process (the PDF file is not produced). This happens if I create a new source file in my project. On Sat, Dec 4, 2010 at 3:22 PM, Jeff Horn jrhorn...@gmail.com wrote: On Sat, Dec 4, 2010 at 3:20 PM, Mike McLean mike.mcl...@pobox.com wrote: I solve this with a forced remove: (setq org-latex-to-pdf-process (quote (rm %b.pdf texi2dvi -p -b -c -V %f))) Nice! Very clever. Thanks for the tip! (CC-ing to the list, hope that's OK) -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ 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] Elisp code to insert a word in table
I'd recommend you spend some time studying the Introduction to Emacs Lisp guide: Thanks for pointing this out. I have recently started programming in elisp, and am still having difficulty in basic understanding. But the code worked. So thanks for your help. soichi ___ 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] Date calculations in spreadsheet
I'm working with a small spreadsheet, and would like to know how to manage date calculations within the spreadsheet. For example, * How to do date calculations in a spreadsheet? |--+--| | Date | Days elapsed | |--+--| | [2009-12-03 Thu] | | | [2010-12-03 Fri] | 365 | | [2010-12-06 Mon] |3 | |--+--| The question: What's the simplest way to construct a column formula for the second column to deliver the indicated results? And finally, my usual obligatory apology for not noticing the exhaustive thread on exactly this topic that I've undoubtedly missed. 8^) Thanks, -Ethan ___ 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] Date calculations in spreadsheet
Ethan Ligon li...@are.berkeley.edu wrote: I'm working with a small spreadsheet, and would like to know how to manage date calculations within the spreadsheet. For example, * How to do date calculations in a spreadsheet? |--+--| | Date | Days elapsed | |--+--| | [2009-12-03 Thu] | | | [2010-12-03 Fri] | 365 | | [2010-12-06 Mon] |3 | |--+--| The question: What's the simplest way to construct a column formula for the second column to deliver the indicated results? In the format above, there are problems that have nothing to do with dates: you'd need conditional code to distinguish between the first row and later rows. So I reorganized your table a bit in order to illustrate the date calculation: --8---cut here---start-8--- * How to do date calculations in a spreadsheet? |--+--+--| | Date start | Date end | Days elapsed | |--+--+--| | [2009-12-03 Thu] | [2010-12-03 Fri] | 365 | | [2010-12-03 Fri] | [2010-12-06 Mon] |3 | #+TBLFM: $3 = date($2) - date($1) --8---cut here---end---8--- And finally, my usual obligatory apology for not noticing the exhaustive thread on exactly this topic that I've undoubtedly missed. 8^) Well, after this I felt duty bound to find the thread: http://thread.gmane.org/gmane.emacs.orgmode/7741 Actually, it's only one of the threads on date calculations and is not exhaustive, but what the hey ;-) Many thanks to Chris Randle for coming up with the original solution. I have now used his answer some half a dozen times to answer questions on the list: the gift that keeps on giving, to coin a phrase... Nick ___ 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] exporting as latex sections
Aloha Suvayu, On Dec 3, 2010, at 4:26 PM, suvayu ali wrote: Hi org-mode users, I have been collaborating on a big (many contributors) paper. For all my various contributions to the paper I need to provide the latex source as a section of a latex document. Is there some way I can export to latex without all the preamble and header information from the org-mode file? Or just exporting to latex and manually removing all that is the only way to do it? While we are at it if I were to attempt to write my own version of latex export function which does this instead, where should I be looking? I'm not very good at lisp, so some suggestions would be really helpful if I need to take this route. Thanks for any help/suggestions. -- Suvayu I don't know any way to do this with the Org-mode LaTeX exporter (though there may be some way I don't know yet). This might not be an option you want to follow, or something you have already thought about, but you could achieve your result using LaTeX source code blocks and then tangle, rather than export, your contribution. This has the advantage that it is relatively simple to tangle different chunks, in case you are contributing to different parts of the paper. #+source: chunk1 #+begin_src latex :tangle chunk1.tex This is chunk 1. #+end_src #+source: chunk2 #+begin_src latex :tangle chunk2.tex This is chunk 2. #+end_src Hope this helps. All the best, Tom ___ 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] Date calculations in spreadsheet
On Sun, Dec 5, 2010 at 01:56, Nick Dokos nicholas.do...@hp.com wrote: Ethan Ligon li...@are.berkeley.edu wrote: |--+--| | Date | Days elapsed | |--+--| | [2009-12-03 Thu] | | | [2010-12-03 Fri] | 365 | | [2010-12-06 Mon] | 3 | |--+--| |--+--+--| | Date start | Date end | Days elapsed | |--+--+--| | [2009-12-03 Thu] | [2010-12-03 Fri] | 365 | | [2010-12-03 Fri] | [2010-12-06 Mon] | 3 | #+TBLFM: $3 = date($2) - date($1) and then |--+--| | Date start | Days elapsed | |--+--| | [2009-12-03 Thu] | | | [2010-12-03 Fri] | 365 | | [2010-12-06 Mon] |3 | #+TBLFM: $2 = date($1) - date(@-1$1) :: @2$2 = string() Michael ___ 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] exporting as latex sections
Hi Thomas, On Sun, Dec 5, 2010 at 2:51 AM, Thomas S. Dye t...@tsdye.com wrote: Aloha Suvayu, On Dec 3, 2010, at 4:26 PM, suvayu ali wrote: Hi org-mode users, I have been collaborating on a big (many contributors) paper. For all my various contributions to the paper I need to provide the latex source as a section of a latex document. Is there some way I can export to latex without all the preamble and header information from the org-mode file? Or just exporting to latex and manually removing all that is the only way to do it? While we are at it if I were to attempt to write my own version of latex export function which does this instead, where should I be looking? I'm not very good at lisp, so some suggestions would be really helpful if I need to take this route. Thanks for any help/suggestions. -- Suvayu I don't know any way to do this with the Org-mode LaTeX exporter (though there may be some way I don't know yet). This might not be an option you want to follow, or something you have already thought about, but you could achieve your result using LaTeX source code blocks and then tangle, rather than export, your contribution. This has the advantage that it is relatively simple to tangle different chunks, in case you are contributing to different parts of the paper. #+source: chunk1 #+begin_src latex :tangle chunk1.tex This is chunk 1. #+end_src #+source: chunk2 #+begin_src latex :tangle chunk2.tex This is chunk 2. #+end_src I hadn't thought of org-babel! Thanks a lot, this makes much more sense. :) Hope this helps. All the best, Tom -- Suvayu Open source is the future. It sets us free. ___ 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: specifying priority with template expansion
Jeff Horn jrhorn...@gmail.com writes: Someone else is probably better suited to address your original post. As far as additional thoughts, I was only thinking about keystroke savings: 1) You can set priorities in agenda view by typing a comma and choosing priority. You can set them anywhere with =C-c ,=. Or, you can simply type them, =[#A]=. Or just use '+' and '-'. With ABC Priorities, thats even less keystrokes ;) - Memnon ___ 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] Re: Org-mode Code Blocks Manuscript: Request For Comments
Aloha Detlef, On Dec 2, 2010, at 9:58 PM, Detlef Steuer wrote: Hi! I very much appreciate your article as a nice introduction to org- babel and its uses. As I'm going to introduce my colleagues into the nice world of org-babel giving a talk sometime next term I'll shamelessly steal from your work. (Of course giving attribution!) Some remarks: If you send it to Journal of _Statistical_ Software may be you should be a little bit more focused on statistics. You article introduces org-babel as a multi-language frontend to literate programming. What it is, but there is little statistics in it. In their article Gentleman and Lang introduced the statistical compendium. In my opinion emacs + org-mode + babel + all-programming-languages-we-know + LaTeX + HTML export build the first incarnation of a tool to really create such a compendium, org-babel being central in that chain. May be you can use some of Tom Dye's data to give an example of a self-contained statistical workflow. I used his introduction given in Worg to do my first steps in that direction. (Thx again Tom!) Doing everything beginning with data-cleaning over data analysis to template generating and report publishing and presentation in one text-file. That feature was, what caught me immediately as a statistician. If you want to focus on the simulation side (may be more focused on academics) I would stress the always-correctness of graphs in articles. You all know what I mean... Just my 2 cents. Of course it is great as it stands and surely I'm biased by my own needs. Detlef (a statistician) Thanks very much for the helpful comments and especially your perspective on the Journal of Statistical Software. I'm interested to learn how you've developed a statistical workflow with Org-mode beyond my first tentative steps in that direction. It would be great to have an example of your progress on Worg, if you can find the time. All the best, Tom On Thu, 02 Dec 2010 12:28:27 -0700 Eric Schulte schulte.e...@gmail.com wrote: Hi, Dan Davison, Tom Dye, Carsten Dominik and myself have been working on a paper introducing Org-mode's code block functionality. We plan to submit this paper to the Journal of Statistical Software. As both Org-mode and the code block functionality are largely products of this mailing list community, and in the spirit of an open peer review process we are releasing the current draft of the paper here to solicit your review and comments. Both the .org and .pdf formats of the paper are available at the following locations. http://cs.unm.edu/~eschulte/org-paper/babel.org http://cs.unm.edu/~eschulte/org-paper/babel.pdf Thanks -- 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 ___ 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] Questions about org-capture templates and usage
I apologize if I am breaking netiquette* by posting multiple questions in a single posting. If so, please let me know, and I will pare the following down into bite-sized chunks. I have fallen in love with org-capture, from the start. I have had some problems, and questions. The following is a short list of some of my questions and issues . I'm sorry to do it this way, but perhaps it's a tradeoff: many messages, or one long one. Which is more annoying? 1. Eventually a tutorial will surely be available. I haven't found one. Useful tutorials for me would be 1. How to make general templates, and pitfalls. 2. Advanced usages of org-capture: using functions, etc. 3. Common errors and causes 2. Documentation is minimal, while the complexity of the system is great. 3. I have had to modify my usage to accomodate to changes in org-capture, relative to org-remember. Some differences devolve from explicit design features 1. It is no longer necessary to auto-save uncommitted items. As a consequence there seems (as I understand it) to no longer be a way to use a prefix key to allow one to visit the item in it's context AFTER committing it with C-c C-c. I have spend a good deal of time worrying over this, but haven't solved the problem. Probably 90% of the times I save (C-c C-c) the Captured item, I stumble over how to find it again to enhance or review the item. *Is there a way to do this, or can we request a way to do this?* 4. I would like to be able to capture to a non-orgmode file. My remember template saved some notes, a list of items from an agenda search, or any text was marked as a region, as a memo wrapped up as a latex memo, with a latex memo header and an \end{document. It is my understanding that this won't work anymore because capture will not save to a non-orgmode file. *Is this correct, and/or what, if anything can I do to make this work?* ` I have thought that it might be possible to make a custom agenda report for such searches, that could be edited before final export. I would want this to be printable as a memo. 5. Requests for Features: 1. An indication of the current target would be useful on either the modeline or the CAPTURE header line. 2. Likewise, an indicator or nestedness of unsaved capture items. (probably not worth the clutter). 3. Is there a way to go to the last captured item? Is there a ring that can be cycled through? *This would be useful* Thank you for this fantastic work. Alan Davis ___ 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: [babel] Enabling language mode for plantuml?
Rainer M Krug r.m.k...@gmail.com writes: On 12/03/2010 12:31 PM, zwz wrote: Rainer M Krug r.m.k...@gmail.com writes: Hi I would like to be able to edit code blocks of plantuml via C-', but I get the message No such language mode: plantuml-mode Is there an easy way of defining this new language mode, so that I can edit it via C-'? I don't need syntax highlighting at the moment, although ' as the comment character would be nice. Thanks, Rainer Hi, Rainer I wrote a plantuml-mode, which is now not perfect but usable. It is available on: http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/ Just copy the code and save it as plantuml-mode.el in a path where emacs finds its libraries. Just a quick question: whenever I add the line #+begin_src emacs-lisp (load-file ~/.emacs.d/site-lisp/plantuml-mode.el) #+end_src to load the plantuml-mode into my emacs.org file, the message window opens when starting emacs --- when I comment it out, it doesn't. Am I doing something wrong here? Rainer try (require 'plantuml-mode) btw, you should have the latest plantuml.jar ___ 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: [babel] Enabling language mode for plantuml?
No, but I am considering to make a repository on github for all my emacs-stuff. I will inform you when it is done :) Rainer M Krug r.m.k...@gmail.com writes: Hi zwz That looks great. Do you have a repository, where I could check for updates? Rainer On Fri, Dec 3, 2010 at 12:31 PM, zwz zhangwe...@gmail.com wrote: Rainer M Krug r.m.k...@gmail.com writes: Hi I would like to be able to edit code blocks of plantuml via C-', but I get the message No such language mode: plantuml-mode Is there an easy way of defining this new language mode, so that I can edit it via C-'? I don't need syntax highlighting at the moment, although ' as the comment character would be nice. Thanks, Rainer Hi, Rainer I wrote a plantuml-mode, which is now not perfect but usable. It is available on: http://zhangweize.wordpress.com/2010/09/20/update-plantuml-mode/ Just copy the code and save it as plantuml-mode.el in a path where emacs finds its libraries. Best regards, zwz ___ 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