Re: [O] Requesting some help with scheduled repeated tasks
Hi Sagar, Sagar Shankar writes: > Thanks Christopher, the latter option seems to accomplish what I > require though not very elegant I though so first, too. But by now I came to like that approach a lot. It provides so much flexibility with the individual instances (like moving, keeping notes, cancellation, etc.). Give it some time and maybe you'll like it in the end ;-) Regards, Andreas > > With Regards, > Sagar > > On Mon, Jan 26, 2015 at 6:49 PM, Christopher Witte > wrote: > > > > Hi Sagar, > > I think you either want a repeating task see > http://orgmode.org/manual/Repeated-tasks.html > > > or to use org-clone-subtree-with-time-shift see > http://orgmode.org/manual/Structure-editing.html#Structure-editing > > > I think repeated tasks repeat for ever, so from your description > org-clone-subtree-with-time-shift might be better. > > > > I hope that helps, > Chris. > > > > > > On 26 January 2015 at 14:13, Sagar Shankar > wrote: > > > Hi all, been using Org-Mode for just over a month now and have > stumbled into something that I cannot still figure out how to > implement. > > > I want to set aside a fixed amount of time each day (say 2 > hours) at a specific time(18-00-20:00 say) to work on a > specific task. I want this task to repeat for 7 days and for > state changes (from TODO to DONE) to be tracked for those 7 > days. The latter while ideal, is also optional, as in a base > case, I'd be happy to just get the task automatically marked > TODO 7 times in my Agenda till the 7 days are over. > > > Right now, I've tried using the following syntax: > > > > ** TODO Work on XYZ > SCHEDULED: <2015-01-21 Wed 20:30-21:30>-- <2015-01-28 Wed > 20:30-21:30> > > > When I mark this as complete for today, all the other > occurrences are also marked as DONE, which I do not want. > Another confusing factor is that instead of counting 7 > occurrences of this task, Org counts it as 8 (which is another > thing I'd love to get explained) > > > I know tracking repeated tasks is best suited for Org-Habits > but I cannot find anywhere in the documentation for that > module, a parameter that allows me to track habits for only 7 > times or 8 times say, and for that habit to be inserted into > the agenda at a specific time only. > > > Would really appreciate some advice! > > > Thanks for your time, > Sagar
Re: [O] Requesting some help with scheduled repeated tasks
Thanks Christopher, the latter option seems to accomplish what I require though not very elegant With Regards, Sagar On Mon, Jan 26, 2015 at 6:49 PM, Christopher Witte wrote: > Hi Sagar, > > I think you either want a repeating task see > http://orgmode.org/manual/Repeated-tasks.html > > or to use org-clone-subtree-with-time-shift see > http://orgmode.org/manual/Structure-editing.html#Structure-editing > > I think repeated tasks repeat for ever, so from your description > org-clone-subtree-with-time-shift might be better. > > I hope that helps, > Chris. > > On 26 January 2015 at 14:13, Sagar Shankar wrote: > >> Hi all, been using Org-Mode for just over a month now and have stumbled >> into something that I cannot still figure out how to implement. >> >> I want to set aside a fixed amount of time each day (say 2 hours) at a >> specific time(18-00-20:00 say) to work on a specific task. I want this task >> to repeat for 7 days and for state changes (from TODO to DONE) to be >> tracked for those 7 days. The latter while ideal, is also optional, as in a >> base case, I'd be happy to just get the task automatically marked TODO 7 >> times in my Agenda till the 7 days are over. >> >> Right now, I've tried using the following syntax: >> >> ** TODO Work on XYZ >>SCHEDULED: <2015-01-21 Wed 20:30-21:30>-- <2015-01-28 Wed 20:30-21:30> >> >> When I mark this as complete for today, all the other occurrences are >> also marked as DONE, which I do not want. Another confusing factor is that >> instead of counting 7 occurrences of this task, Org counts it as 8 (which >> is another thing I'd love to get explained) >> >> I know tracking repeated tasks is best suited for Org-Habits but I cannot >> find anywhere in the documentation for that module, a parameter that allows >> me to track habits for only 7 times or 8 times say, and for that habit to >> be inserted into the agenda at a specific time only. >> >> Would really appreciate some advice! >> >> Thanks for your time, >> Sagar >> > >
Re: [O] HTML --> Org-mode?
I think the answer may be something like: (shell-command-to-string (concat "pandoc -f html -t org <<< '" :html "'" ) Though I'm not quite sure how to go about it just yet. On Mon, Jan 26, 2015 at 3:50 PM, Tory S. Anderson wrote: > man pandoc will be your friend. It guided me to the following simple > (interactive) use: > > pandoc -f html -t org > how are you? > I am good > *how are you?* /I am good/ > > I won't be able to help you much farther than that, though. > - Tory > > Matt Price writes: > > > That should be enough. I would need to feed a string form emacs to > > pandoc, then capture the output as a new string that can be output in > > the export filter. Do you know how to do that part? > > Thanks, > > Matt > > > > On Mon, Jan 26, 2015 at 3:31 PM, Tory S. Anderson > > wrote: > > > > Using the magic wizard program Pandoc, I just had success with a > > simple little example: > > > > pandoc -o test.org test.html > > > > Input test.html: > > > > > > TEST strong! > > > > Cell 1 > > Cell 2 > > Cell 3 > > Cell 4 > > > > > > > > > > Output test.org: > > *TEST strong!* > > Cell 1 > > Cell 2 > > Cell 3 > > Cell 4 > > > > I'm not sure how sophisticated the strings you are dealing with, > > but pandoc might do the trick for you. > > - Tory > > > > > > > > > > Matt Price writes: > > > > > Hmm, > > > > > > Looks like I asked this about a year ago and didn't follow up on > > it. > > > Does anyone know a way to generate org-mode syntax from an html > > > string? I would like to extend zotxt slightly (see my last post) > > and > > > at present zotxt can pull citations 7 bibliography entries from > > Zotero > > > only in plain-text and HTML form. The plaintext form loses > > > information, so I would like to translate the HTML into org-mode > > > syntax. > > > > > > Since this would have to happen in the context of an > > > > > > (org-add-link-type ) > > > > > > invocation, it would be best if this could be done directly in > > emacs > > > somehow... > > > > > > Thanks as always, > > > > > > Matt > > >
Re: [O] truncate-lines for org tables, visual-line-mode for rest?
How do you configure this parameter to achieve that effect? On Mon, Jan 26, 2015 at 1:48 PM, Tory S. Anderson wrote: > I solve this problem in my tables by using a table length-constraining > parameter: > > | my table | long-cell | > | | <10> | > | | tons of text that should be cut off at a reasonable length (just > 10 chars) and not run on forever | > | | >| > > > produces: > > | my table | long-cell | > | | <10> | > | | tons of te | > | || > > > "Vladimir Alexiev" writes: > >> I use visual-line-mode to wrap long lines on display. >> But for org tables, wrapping makes the display very confused. >> Is it possible to have truncate-lines ONLY for lines that represent tables? > -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
[O] save folded state
I am trying to map over a buffer with headlines in various states of folded, and get context around certain elements. I find I need to fully expand the buffer to get the context in the way I am currently doing it (e.g. getting the lines around the element), but I would like to put the buffer back to the way it was when I am finished. This is not done with the usual macros like save-excursion, save-restriction, etc... Is there a way to do this other than a temp buffer? thanks, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu
[O] question about org-element-map missing link in caption
In the following org document, org-element-map only finds one link, but the buffer acts like there are two links. The free link is found, but the link label buried in the caption is not found. However, it exports correctly, and the caption link is clickable, so the buffer certainly thinks it is a link. Is this expected behavior? * test links #+caption: some text label:test | a | b | | 1 | 3 | label:test2 #+BEGIN_SRC emacs-lisp (org-element-map (org-element-parse-buffer) 'link (lambda (link) (org-element-property :path link))) #+END_SRC #+RESULTS: | test2 | -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu
Re: [O] exporting zotxt or orgref links to HTML and ODF
Matt, Thanks for sharing this. I'm afraid that I'm very new at reading Emacs Lisp at this point. But I appreciate the explanation of your aims and how you've tried to meet them. I'll try to contribute as I can along the way. Best regards, Will On 1/26/15 2:40 PM, Matt Price wrote: Hi will, I haven't gotten very far with this yet, but adding a couple of lines to the definition of org-add-link-type in org-zotxt.el (around line 150, https://bitbucket.org/egh/zotxt-emacs/src/74702e2b2f2aa0427f099eb4fe69dce8709f67fc/org-zotxt.el?at=master) at least allows for unformatted, plain-text reproduction of citations: -- (org-add-link-type "zotero" (lambda (rest) (zotxt-select-key (substring rest 15))) (lambda (path desc format) (if (and (eq format 'latex) (string-match "^@\\(.*\\)$" desc)) (format "\\cite{%s}" (match-string 1 desc)) nil) (if ( eq format 'html) (format "%s" desc) nil))) --- A better option would be to somehow acquire the html that the Zotero extension "zotxt" generates when zotxt.el requests the formatted citation from it. I'm not quite sure how to do this, but I htink the action happens zotxt-choose-deferred, which starts on line 125 of zotxt.el (https://bitbucket.org/egh/zotxt-emacs/src/74702e2b2f2aa0427f099eb4fe69dce8709f67fc/zotxt.el?at=master): - (defun zotxt-choose-deferred (&optional method search-string) "Prompt a user for a search string, then ask the user to select an item from the citation. If METHOD is supplied, it should be one of :title-creator-year, :fields, or :everything. If SEARCH-STRING is supplied, it should be the search string." (if (null method) (let ((method-name (zotxt-completing-read "Zotero search method (nothing for title, creator, year): " zotxt-quicksearch-method-names nil t nil nil "title, creator, year"))) (setq method (cdr (assoc method-name zotxt-quicksearch-method-names) (if (null search-string) (setq search-string (read-string (format "Zotero quicksearch (%s) query: " (cdr (assq method zotxt-quicksearch-method-to-names)) (lexical-let ((d (deferred:new))) (request (format "%s/search" zotxt-url-base) :params `(("q" . ,search-string) ("method" . ,(cdr (assq method zotxt-quicksearch-method-params))) ("format" . "bibliography")) :parser 'json-read :success (function* (lambda (&key data &allow-other-keys) (let* ((results (mapcar (lambda (e) (cons (cdr (assq 'text e)) (cdr (assq 'key e data)) (count (length results)) (citation (if (= 0 count) nil (if (= 1 count) (car (car results)) (zotxt-completing-read "Select item: " results (key (cdr (assoc-string citation results (deferred:callback-post d (if (null citation) nil `((:key ,key :citation ,citation d)) - My lisp isn't good enough to read this function properly, but apparently the :citation property of the result item plist is set to the 'text' object of each item. If one could also add the 'html' object which the zotxt Zotero plugin returns (the nomenclature is a little misleading, I know), then that information could be made available to emacs/org for use on export. See line 307-309 of the zotxt extension, here: https://bitbucket.org/egh/zotxt/src/a12d538ae9245b142fdb0b2d241e43b82221/extension/bootstrap.js?at=master Not sure if this helps much? It's the best I have so far! Thanks, Matt On Mon, Jan 26, 2015 at 12:49 PM, Monroe, Willwrote: Matt, I don't have much to contribute at this stage but as someone who uses org heavily for outlining and
Re: [O] Wanderlust and org-capture
>> ... ./contrib/lisp/org-wl.el at least in the current master branch. > > This file is not in my org files integrated in emacs. That's why I didn't find > it. Are there many differences between integrated org (emacs git repo), elpa > package and git repository? I think one can regard the contrib directory as a source of extra modules. With this view the difference between git orgmode and the elpa orgmode package (and also the orgmode that comes with Emacs) is the development that lies between the versions. AFAICS the orgmode elpa package is very close to the HEAD in the orgmode git repo. IIRC the contrib directory is a place for experimentation. The modules might need further testing before they find their way into a release. Further there might be licensing issues. BTW I just found http://orgmode.org/worg/org-contrib/ which has a list of modules of the contrib directory. Best regards, Marco -- http://www.wahlzone.de GPG: 0x49010A040A3AE6F2
Re: [O] org-html-h
Hi Sébastien, Sébastien Brisard writes: > my blog (sbrisard.github.io) is entirely written with > org-mode. Looks pretty. > Org-mode offers everything I need, except for one minor > detail. It is very difficult to include the same CSS file in the > html-head of several files located at various levels of the directory > hierarchy. > I do not really like this trick > http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html#sec-6. > For > the time being, I configured several projects (one for each level), > see https://github.com/sbrisard/blog/blob/master/sb-blog.el. But I am > not happy with this solution either. > I think that it would be great if org-html-head and > org-html-head-extra behaved as org-html-preamble and > org-html-postamble, which can be set to either a string, or a > function. This offers great flexibility for the configuration of the > pre/postamble (I use it to conditionnaly include DISQUS comments in > the postamble). > Would it be possible to mimick the same behavior with org-html-head > and org-html-head-extra? Or would this be too much work? You could use macros: #+MACRO: my-style (eval (concat "#+HTML_HEAD_EXTRA: " (if t "
Re: [O] exporting zotxt or orgref links to HTML and ODF
Hi will, I haven't gotten very far with this yet, but adding a couple of lines to the definition of org-add-link-type in org-zotxt.el (around line 150, https://bitbucket.org/egh/zotxt-emacs/src/74702e2b2f2aa0427f099eb4fe69dce8709f67fc/org-zotxt.el?at=master) at least allows for unformatted, plain-text reproduction of citations: -- (org-add-link-type "zotero" (lambda (rest) (zotxt-select-key (substring rest 15))) (lambda (path desc format) (if (and (eq format 'latex) (string-match "^@\\(.*\\)$" desc)) (format "\\cite{%s}" (match-string 1 desc)) nil) (if ( eq format 'html) (format "%s" desc) nil))) --- A better option would be to somehow acquire the html that the Zotero extension "zotxt" generates when zotxt.el requests the formatted citation from it. I'm not quite sure how to do this, but I htink the action happens zotxt-choose-deferred, which starts on line 125 of zotxt.el ( https://bitbucket.org/egh/zotxt-emacs/src/74702e2b2f2aa0427f099eb4fe69dce8709f67fc/zotxt.el?at=master ): - (defun zotxt-choose-deferred (&optional method search-string) "Prompt a user for a search string, then ask the user to select an item from the citation.If METHOD is supplied, it should be one of :title-creator-year, :fields, or :everything.If SEARCH-STRING is supplied, it should be the search string." (if (null method) (let ((method-name (zotxt-completing-read "Zotero search method (nothing for title, creator, year): " zotxt-quicksearch-method-names nil t nil nil "title, creator, year")))(setq method (cdr (assoc method-name zotxt-quicksearch-method-names) (if (null search-string) (setq search-string(read-string (format "Zotero quicksearch (%s) query: " (cdr (assq method zotxt-quicksearch-method-to-names)) (lexical-let ((d (deferred:new)))(request (format "%s/search" zotxt-url-base) :params `(("q" . ,search-string) ("method" . ,(cdr (assq method zotxt-quicksearch-method-params))) ("format" . "bibliography")) :parser 'json-read :success (function* (lambda (&key data &allow-other-keys) (let* ((results (mapcar (lambda (e) (cons (cdr (assq 'text e)) (cdr (assq 'key e data))(count (length results)) (citation (if (= 0 count) nil(if (= 1 count) (car (car results)) (zotxt-completing-read "Select item: " results (key (cdr (assoc-string citation results (deferred:callback-post d (if (null citation) nil `((:key ,key :citation ,citationd)) - My lisp isn't good enough to read this function properly, but apparently the :citation property of the result item plist is set to the 'text' object of each item. If one could also add the 'html' object which the zotxt Zotero plugin returns (the nomenclature is a little misleading, I know), then that information could be made available to emacs/org for use on export. See line 307-309 of the zotxt extension, here: https://bitbucket.org/egh/zotxt/src/a12d538ae9245b142fdb0b2d241e43b82221/extension/bootstrap.js?at=master Not sure if this helps much? It's the best I have so far! Thanks, Matt On Mon, Jan 26, 2015 at 12:49 PM, Monroe, Will wrote: > Matt, > > I don't have much to contribute at this stage but as someone who uses org > heavily for outlining and writing, zotero for citation management, and who > is obliged to provide copies as Word documents (I'm an instructional > designer at at law school), I appreciate the question. > > I also appreciate the point to zotxt! Didn't know about that. > > I hope you get some good replies. > > Will > > - > Will Monroe, Ph.D. > Head of Instructional Technology > Paul M. Hebert Law Center > 225.578.7838 > will.mon...@law.lsu.edu > > On 1/26/15 10:29 AM, Matt Price wrote: > > Hi eveyrone, > > I've just looked back through my email archives and from what I can tell, > almost everyone who uses Org to write papers uses LaTex for the final > product. > > I have never learned to use Latex, mostly because, as a humanist, almost > none of my colleagues can use LaTex files, and the same goes for journals I > interact with, which generally prefer Word submission(!). Because of this, > I am still trying to figure out a way to use org-mode for scholarly > writing. At present, I write my first, very rough drafts in Org, then > export to ODT and add citations from Zotero (we don't really use Bibtex > either); after this step, I can't r
[O] Binding org-html-head to a function?
Hello, my blog (sbrisard.github.io) is entirely written with org-mode. Org-mode offers everything I need, except for one minor detail. It is very difficult to include the same CSS file in the html-head of several files located at various levels of the directory hierarchy. I do not really like this trick http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html#sec-6. For the time being, I configured several projects (one for each level), see https://github.com/sbrisard/blog/blob/master/sb-blog.el. But I am not happy with this solution either. I think that it would be great if org-html-head and org-html-head-extra behaved as org-html-preamble and org-html-postamble, which can be set to either a string, or a function. This offers great flexibility for the configuration of the pre/postamble (I use it to conditionnaly include DISQUS comments in the postamble). Would it be possible to mimick the same behavior with org-html-head and org-html-head-extra? Or would this be too much work? Thanks for your thoughts, Sébastien
[O] org-html-h
Hello, my blog (sbrisard.github.io) is entirely written with org-mode. Org-mode offers everything I need, except for one minor detail. It is very difficult to include the same CSS file in the html-head of several files located at various levels of the directory hierarchy. I do not really like this trick http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html#sec-6. For the time being, I configured several projects (one for each level), see https://github.com/sbrisard/blog/blob/master/sb-blog.el. But I am not happy with this solution either. I think that it would be great if org-html-head and org-html-head-extra behaved as org-html-preamble and org-html-postamble, which can be set to either a string, or a function. This offers great flexibility for the configuration of the pre/postamble (I use it to conditionnaly include DISQUS comments in the postamble). Would it be possible to mimick the same behavior with org-html-head and org-html-head-extra? Or would this be too much work? Thanks for your thoughts, Sébastien
Re: [O] HTML --> Org-mode?
Using the magic wizard program Pandoc, I just had success with a simple little example: pandoc -o test.org test.html Input test.html: TEST strong! Cell 1 Cell 2 Cell 3 Cell 4 Output test.org: *TEST strong!* Cell 1 Cell 2 Cell 3 Cell 4 I'm not sure how sophisticated the strings you are dealing with, but pandoc might do the trick for you. - Tory Matt Price writes: > Hmm, > > Looks like I asked this about a year ago and didn't follow up on it. > Does anyone know a way to generate org-mode syntax from an html > string? I would like to extend zotxt slightly (see my last post) and > at present zotxt can pull citations 7 bibliography entries from Zotero > only in plain-text and HTML form. The plaintext form loses > information, so I would like to translate the HTML into org-mode > syntax. > > Since this would have to happen in the context of an > > (org-add-link-type ) > > invocation, it would be best if this could be done directly in emacs > somehow... > > Thanks as always, > > Matt
Re: [O] truncate-lines for org tables, visual-line-mode for rest?
On Monday, 26 Jan 2015 at 21:43, Vladimir Alexiev wrote: > I use visual-line-mode to wrap long lines on display. > But for org tables, wrapping makes the display very confused. > Is it possible to have truncate-lines ONLY for lines that represent tables? I have the same issue. I do have visual-line-mode bound to a key so I can toggle this on and off easily but it would definitely be nice if I didn't have to do anything... however, I think it will be difficult to automate this. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-726-gd34b80.dirty
[O] HTML --> Org-mode?
Hmm, Looks like I asked this about a year ago and didn't follow up on it. Does anyone know a way to generate org-mode syntax from an html string? I would like to extend zotxt slightly (see my last post) and at present zotxt can pull citations 7 bibliography entries from Zotero only in plain-text and HTML form. The plaintext form loses information, so I would like to translate the HTML into org-mode syntax. Since this would have to happen in the context of an (org-add-link-type ) invocation, it would be best if this could be done directly in emacs somehow... Thanks as always, Matt
Re: [O] org-info.js
Phillip Lord writes: > Can anyone tell me where the source code for org-info at > > http://orgmode.org/org-info.js > > is? This verison if minified. > > There are these: > > https://github.com/SebastianRose/org-info-js/ A copy of this version is on Worg under code/org-info-js, the plain source is org-info-src.js. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
Re: [O] truncate-lines for org tables, visual-line-mode for rest?
I solve this problem in my tables by using a table length-constraining parameter: | my table | long-cell | | | <10> | | | tons of text that should be cut off at a reasonable length (just 10 chars) and not run on forever | | | | produces: | my table | long-cell | | | <10> | | | tons of te | | || "Vladimir Alexiev" writes: > I use visual-line-mode to wrap long lines on display. > But for org tables, wrapping makes the display very confused. > Is it possible to have truncate-lines ONLY for lines that represent tables?
[O] truncate-lines for org tables, visual-line-mode for rest?
I use visual-line-mode to wrap long lines on display. But for org tables, wrapping makes the display very confused. Is it possible to have truncate-lines ONLY for lines that represent tables?
[O] org-info.js
Can anyone tell me where the source code for org-info at http://orgmode.org/org-info.js is? This verison if minified. There are these: https://github.com/SebastianRose/org-info-js/ https://github.com/RickMoynihan/org-info-js Some of the web pages aabout org-info aren't working. http://orgmode.org/worg/code/org-info-js/index.html Unfortunately, it is only output to documents including it in minified forms and as a link. Phil
Re: [O] [PATCH] Find a link after point in `org-open-at-point'
Hello, Samuel Loury writes: >> I would like to propose a patch for `org-open-at-point' to find a link >> after point when called inside a paragraph. It had this behavior at some >> time and I think lost it during the org-element re-factoring. This patch >> restores this ancient behavior with the new way the function is >>coded. Thanks for the patch. However, I removed this because it is too sloppy. I want `org-open-at-point' to be predictable. If you rely on this, I suggest to defadvice `org-open-at-point' instead. Regards, -- Nicolas Goaziou
Re: [O] [ob-R] combine :post and :colnames
Hi, Aaron Ecay writes: > 2015ko urtarrilak 25an, Rasmus-ek idatzi zuen: >> Should add a note on this to the manual? Or is it clear enough as it >> is? > > I think it would be a good idea to add a note about this in the manual. > Perhaps in the form of another example in the node for the :post header > argument (info "(org) post") which shows how to use :post to process a > tabular result. I'm a bit busy right now, but here's a quick proposal. If you are happy with it, I'll push it. —Rasmus -- With monopolies the cake is a lie! >From 721926ad040c3bf0d46660bdbf2543ea9645b3aa Mon Sep 17 00:00:00 2001 From: rasmus Date: Mon, 26 Jan 2015 18:24:39 +0100 Subject: [PATCH] org.texi: New example on babel :post header * org.texi (post): Clarification and new example. --- doc/org.texi | 32 +--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 65c9309..defd015 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -15979,10 +15979,11 @@ code block execution. When a post argument is given, the results of the code block will temporarily be bound to the @code{*this*} variable. This variable may then be included in header argument forms such as those used in @ref{var} header argument specifications allowing passing of results to other code -blocks, or direct execution via Emacs Lisp. +blocks, or direct execution via Emacs Lisp. Additional header arguments may +be passed to the @code{:post}-function. -The following example illustrates the usage of the @code{:post} header -argument. +The following two examples illustrate the usage of the @code{:post} header +argument. The first example shows how to attach a attribute-line via @code{:post}. @example #+name: attr_wrap @@ -16007,6 +16008,31 @@ argument. :END: @end example +The second examples shows how to use @code{:post} together with the +@code{:colnames} header argument. +@example +#+name: round-tbl +#+begin_src emacs-lisp :var tbl="" fmt="%.3f" + (mapcar (lambda (row) +(mapcar (lambda (cell) + (if (numberp cell) + (format fmt cell) +cell)) +row)) + tbl) +#+end_src + +#+begin_src R :colnames yes :post round-tbl[:colnames yes](*this*) +set.seed(42) +data.frame(foo=rnorm(1)) +#+end_src + +#+RESULTS: +| foo | +|---| +| 1.371 | +@end example + @node prologue @subsubsection @code{:prologue} @cindex @code{:prologue}, src header argument -- 2.2.2
Re: [O] Autogenerating beamer overlay parameter?
On Monday, 26 Jan 2015 at 09:22, Loris Bennett wrote: [...] > Aaron and Eric: I understand what is meant about this being more of a > beamer question, but I'm only really interested in using Beamer via Org. sure but the point is that beamer may have a solution to your problem which then automatically will be usable within org whereas trying to find an org based solution is likely to be clumsy at best. YMMV, of course, so I hope you find a solution either way. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-717-gd36bd8
[O] exporting zotxt or orgref links to HTML and ODF
Hi eveyrone, I've just looked back through my email archives and from what I can tell, almost everyone who uses Org to write papers uses LaTex for the final product. I have never learned to use Latex, mostly because, as a humanist, almost none of my colleagues can use LaTex files, and the same goes for journals I interact with, which generally prefer Word submission(!). Because of this, I am still trying to figure out a way to use org-mode for scholarly writing. At present, I write my first, very rough drafts in Org, then export to ODT and add citations from Zotero (we don't really use Bibtex either); after this step, I can't really go back to Org, which is of course very frustrating. I would prefer to write exclusively in Org, then export to ODT when I have a high-quality draft that I want to share with colleagues; in some cases, I would also like to export directly to HTML for posting on a blog or course website. In fact, one use case that would really help me is a very simple one: when writing course syllabi, I would really like to just get the full references to course readings to show up in HTML exports. My question: does anyone yet have a workflow that lets them export directly to HTML or ODT? I've just tried using zotxt again ( https://bitbucket.org/egh/zotxt-emacs/overview -- first time in a while); it is remarkably easy to use in Org itself. By default, though, the links simply aren't handled in the HTML and ODT exports, and so the cites will be completely absent. Here is the text inserted by zotxt for a single citation: [[zotero://select/items/0_TI27HJ5I][Suchman, Lucy. “Subject Objects.” Feminist Theory 12, no. 2 (August 1, 2011): 119–45. http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.]] --- In HTML, I would like to replace this with something like this: (Suchman 2011) and then have Org generate a bibligraphy somewhere, a bit like org-ref seems to do, It would be nice if I could steal the styles from somehwere, the way org-ref seems to do. For ODT< it seems a little more complicated. Here is the rather lengthy equivalent that Zotero itself produces for my default style (Chicago) in Libreoffice: --- 1http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.}","plainCitation":"Lucy Suchman, “Subject Objects,” Feminist Theory 12, no. 2 (August 1, 2011): 119–45, http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml."; },"citationItems":[{"id":149,"uris":[" http://zotero.org/users/20/items/TI27HJ5I"],"uri":["; http://zotero.org/users/20/items/TI27HJ5I"],"itemData":{"id":149,"type":"article-journal","title":"Subject objects","container-title":"Feminist Theory","page":"119-145","volume":"12","issue":"2","URL":" http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml" ;,"ISSN":"14647001","author":[{"family":"Suchman","given":"Lucy"}],"issued":{"date-parts":[["2011",8,1]]}}}],"schema":" https://github.com/citation-style-language/schema/raw/master/csl-citation.json"} RNDuhNYYpC1hN"/>Lucy Suchman, “Subject Objects,” Feminist Theory 12, no. 2 (August 1, 2011): 119–45, http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.}","plainCitation":"Lucy Suchman, “Subject Objects,” Feminist Theory 12, no. 2 (August 1, 2011): 119–45, http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml."; },"citationItems":[{"id":149,"uris":[" http://zotero.org/users/20/items/TI27HJ5I"],"uri":["; http://zotero.org/users/20/items/TI27HJ5I"],"itemData":{"id":149,"type":"article-journal","title":"Subject objects","container-title":"Feminist Theory","page":"119-145","volume":"12","issue":"2","URL":" http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml" ;,"ISSN":"14647001","author":[{"family":"Suchman","given":"Lucy"}],"issued":{"date-parts":[["2011",8,1]]}}}],"schema":" https://github.com/citation-style-language/schema/raw/master/csl-citation.json"} RNDuhNYYpC1hN"/> -- I'm not sure what the best way to do this is; it may be that zotxt could be extended to get zotero to do the heavy lifting here. I know Erik H reads this list, so if you have any suggestions, Erik, I would love to hear them. But maybe other people also have suggestions about modifying export filters - -that would also be really helpful for me. Thanks as always, Matt
Re: [O] Requesting some help with scheduled repeated tasks
Sagar Shankar writes: > Hi all, been using Org-Mode for just over a month now and have stumbled into > something that I cannot still figure out how to implement. > > I want to set aside a fixed amount of time each day (say 2 hours) at a > specific > time(18-00-20:00 say) to work on a specific task. I want this task to repeat > for > 7 days and for state changes (from TODO to DONE) to be tracked for those 7 > days. > The latter while ideal, is also optional, as in a base case, I'd be happy to > just get the task automatically marked TODO 7 times in my Agenda till the 7 > days > are over. > > Right now, I've tried using the following syntax: > > ** TODO Work on XYZ > SCHEDULED: <2015-01-21 Wed 20:30-21:30>-- <2015-01-28 Wed 20:30-21:30> > > When I mark this as complete for today, all the other occurrences are also > marked as DONE, which I do not want. Another confusing factor is that instead > of > counting 7 occurrences of this task, Org counts it as 8 (which is another > thing > I'd love to get explained) Wednesday to Wednesday is 8 days. I guess you really want Wednesday to Tuesday. I would set up 7 separate tasks, by creating the first and then using C-c C-x c to make 6 clones of the task shifted by a day. Cheers, Loris > I know tracking repeated tasks is best suited for Org-Habits but I cannot find > anywhere in the documentation for that module, a parameter that allows me to > track habits for only 7 times or 8 times say, and for that habit to be > inserted > into the agenda at a specific time only. > > Would really appreciate some advice! > > Thanks for your time, > Sagar > -- This signature is currently under construction.
Re: [O] [PATCH] Find a link after point in `org-open-at-point'
Samuel Loury writes: > I would like to propose a patch for `org-open-at-point' to find a link > after point when called inside a paragraph. It had this behavior at some > time and I think lost it during the org-element re-factoring. This patch > restores this ancient behavior with the new way the function is coded. > > Please find the patch attached in this mail. Actually, I just found out that the behavior could be the same in items. Please find attached the modified patch. Best regards, From e05f1a54af26f2eebc4b33fe961951af65e70195 Mon Sep 17 00:00:00 2001 From: Konubinix Date: Mon, 26 Jan 2015 08:44:06 +0100 Subject: [PATCH] Find a link after point in `org-open-at-point' * lisp/org.el (org-open-at-point): Look for a link after point but in the same line as (point) when called inside a paragraph or an item. Now, the user doesn't have to move the cursor to the link to call `org-open-at-point'. --- lisp/org.el | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 1041c13..73ff1fc 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -10694,7 +10694,8 @@ link in a property drawer line." (org-element-lineage (org-element-context) '(comment comment-block footnote-definition footnote-reference - headline inlinetask link node-property timestamp) + headline inlinetask link node-property + timestamp paragraph item) t)) (type (org-element-type context)) (value (org-element-property :value context))) @@ -10870,6 +10871,12 @@ link in a property drawer line." (= (org-element-property :post-affiliated context) (line-beginning-position))) (org-footnote-action)) + ;; On a paragraph, find a link on the current line after point. + ((memq type '(paragraph item)) + (save-excursion + (if (re-search-forward org-any-link-re (line-end-position) t) + (org-open-at-point) + (user-error "No link found" (t (user-error "No link found") (move-marker org-open-link-marker nil) (run-hook-with-args 'org-follow-link-hook))) -- 2.1.4 -- Konubinix GPG Key: 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A signature.asc Description: PGP signature
Re: [O] Requesting some help with scheduled repeated tasks
Hi Sagar, I think you either want a repeating task see http://orgmode.org/manual/Repeated-tasks.html or to use org-clone-subtree-with-time-shift see http://orgmode.org/manual/Structure-editing.html#Structure-editing I think repeated tasks repeat for ever, so from your description org-clone-subtree-with-time-shift might be better. I hope that helps, Chris. On 26 January 2015 at 14:13, Sagar Shankar wrote: > Hi all, been using Org-Mode for just over a month now and have stumbled > into something that I cannot still figure out how to implement. > > I want to set aside a fixed amount of time each day (say 2 hours) at a > specific time(18-00-20:00 say) to work on a specific task. I want this task > to repeat for 7 days and for state changes (from TODO to DONE) to be > tracked for those 7 days. The latter while ideal, is also optional, as in a > base case, I'd be happy to just get the task automatically marked TODO 7 > times in my Agenda till the 7 days are over. > > Right now, I've tried using the following syntax: > > ** TODO Work on XYZ >SCHEDULED: <2015-01-21 Wed 20:30-21:30>-- <2015-01-28 Wed 20:30-21:30> > > When I mark this as complete for today, all the other occurrences are also > marked as DONE, which I do not want. Another confusing factor is that > instead of counting 7 occurrences of this task, Org counts it as 8 (which > is another thing I'd love to get explained) > > I know tracking repeated tasks is best suited for Org-Habits but I cannot > find anywhere in the documentation for that module, a parameter that allows > me to track habits for only 7 times or 8 times say, and for that habit to > be inserted into the agenda at a specific time only. > > Would really appreciate some advice! > > Thanks for your time, > Sagar >
[O] Requesting some help with scheduled repeated tasks
Hi all, been using Org-Mode for just over a month now and have stumbled into something that I cannot still figure out how to implement. I want to set aside a fixed amount of time each day (say 2 hours) at a specific time(18-00-20:00 say) to work on a specific task. I want this task to repeat for 7 days and for state changes (from TODO to DONE) to be tracked for those 7 days. The latter while ideal, is also optional, as in a base case, I'd be happy to just get the task automatically marked TODO 7 times in my Agenda till the 7 days are over. Right now, I've tried using the following syntax: ** TODO Work on XYZ SCHEDULED: <2015-01-21 Wed 20:30-21:30>-- <2015-01-28 Wed 20:30-21:30> When I mark this as complete for today, all the other occurrences are also marked as DONE, which I do not want. Another confusing factor is that instead of counting 7 occurrences of this task, Org counts it as 8 (which is another thing I'd love to get explained) I know tracking repeated tasks is best suited for Org-Habits but I cannot find anywhere in the documentation for that module, a parameter that allows me to track habits for only 7 times or 8 times say, and for that habit to be inserted into the agenda at a specific time only. Would really appreciate some advice! Thanks for your time, Sagar
Re: [O] [bug] ox-taskjuggler
Søren Mikkelsen writes: > On 2015-01-23 09:59, Christian Egli wrote: >> Søren Mikkelsen writes: >> >>> It works, but only for tasks that aren't having a start >>> attribute. It is possible to give a warning if the start >>> attribute already exists and make the default one, the one >>> specified in the attributes (drawer)? >> >> What exactly doesn't work? Are there two start entries in the task? >> One because of the SCHEDULED property and one because of the the >> start property? >> >> Then you might have to remove the start property from >> org-taskjuggler-valid-task-attributes before adding the other >> valid attributes i.e. >> >> ;; Add other valid attributes. (org-taskjuggler--indent-string >> (org-taskjuggler--build-attributes task >> org-taskjuggler-valid-task-attributes)) >> >> Might have to become (untested) >> >> ;; Add other valid attributes. (org-taskjuggler--indent-string >> (org-taskjuggler--build-attributes task (remq 'start >> org-taskjuggler-valid-task-attributes))) >> >> HTH Christian >> > The problem by removing the start attribute is that it destroys the > backward compatibility. I want ox-taskjuggler to accept both methods, > where the start property attribute overrules the scheduled attribute, > if this is present. I don't understand. You get the start of a task using org-taskjuggler-get-start. This can be either the start attribute or the SCHEDULED attribute. Then you insert this in the task if it is non-nil. Since you have dealt with this attribute already you don't need to handle it in org-taskjuggler--build-attributes. Hence you remove it (just for this call) from the list of task attributes that need to be handled. HTH Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland
Re: [O] Wanderlust and org-capture
Hi, At Fri, 23 Jan 2015 20:32:24 +0100, Marco Wahl wrote: > There is ./contrib/lisp/org-wl.el at least in the current master branch. This file is not in my org files integrated in emacs. That's why I didn't find it. Are there many differences between integrated org (emacs git repo), elpa package and git repository? > See (info "(org)Installation") for setting the load-path. Then you can > activate module org-wl using M-x customize-variable org-modules. Thanks, I will try it. > A comparison with the existing org-wl could be interesting. I think the already existing file is better than mine because I don't know wanderlust code. Regards, -- Cédric Chépied
Re: [O] Autogenerating beamer overlay parameter?
writes: > On Friday, 23 Jan 2015 at 09:11, Loris Bennett wrote: >> Hi, >> >> I want to have the element of a list in a Beamer presentation appear >> one-by-one and then finally colour one entry red, so I do the following: > > [...] > >> This works, but is there something generic I can use to generate "number >> of elements list + 1" to use to get the highlighting to occur at the >> right place? > > No idea but I would suggest you look in the beamer manual and/or ask in > a LaTeX forum as this is not really an org question. You already have > the org syntax sorted... you just need to fill it in with the > appropriate beamer invocation. Aaron and Eric: I understand what is meant about this being more of a beamer question, but I'm only really interested in using Beamer via Org. I suppose the question is really: "How I can count the items in a list in Org?" I would then have to think about how I wanted how to pass this information on to Beamer. Cheers, Loris -- This signature is currently under construction.
Re: [O] [ob-R] combine :post and :colnames
Hi Rasmus, 2015ko urtarrilak 25an, Rasmus-ek idatzi zuen: > Should add a note on this to the manual? Or is it clear enough as it > is? I think it would be a good idea to add a note about this in the manual. Perhaps in the form of another example in the node for the :post header argument (info "(org) post") which shows how to use :post to process a tabular result. Thanks, -- Aaron Ecay
[O] [PATCH] Find a link after point in `org-open-at-point'
Dear all, I would like to propose a patch for `org-open-at-point' to find a link after point when called inside a paragraph. It had this behavior at some time and I think lost it during the org-element re-factoring. This patch restores this ancient behavior with the new way the function is coded. Please find the patch attached in this mail. Best regards, From ea1d4d061a74d7797bf5cf78dc2722eb0baaf7be Mon Sep 17 00:00:00 2001 From: Konubinix Date: Mon, 26 Jan 2015 08:44:06 +0100 Subject: [PATCH] Find a link after point in `org-open-at-point' * lisp/org.el (org-open-at-point): Look for a link after point but in the same line as (point) when called inside a paragraph. Now, the user doesn't have to move the cursor to the link to call `org-open-at-point'. --- lisp/org.el | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 1041c13..5373179 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -10694,7 +10694,9 @@ link in a property drawer line." (org-element-lineage (org-element-context) '(comment comment-block footnote-definition footnote-reference - headline inlinetask link node-property timestamp) + headline inlinetask link node-property + timestamp paragraph + ) t)) (type (org-element-type context)) (value (org-element-property :value context))) @@ -10870,6 +10872,12 @@ link in a property drawer line." (= (org-element-property :post-affiliated context) (line-beginning-position))) (org-footnote-action)) + ;; On a paragraph, find a link on the current line after point. + ((memq type '(paragraph)) + (save-excursion + (if (re-search-forward org-any-link-re (line-end-position) t) + (org-open-at-point) + (user-error "No link found" (t (user-error "No link found") (move-marker org-open-link-marker nil) (run-hook-with-args 'org-follow-link-hook))) -- 2.1.4 -- Konubinix GPG Key: 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A signature.asc Description: PGP signature