[O] [PATCH] ob-R.el, redundant list
Aloha all, I noticed a redundant list of R device header arguments in ob-R.el. The attached patch removes the redundant list, along with two setq's that appeared to be unnecessary. All the best, Tom From 843e173e1135a15a542afa9795de0cd7ed4672e0 Mon Sep 17 00:00:00 2001 From: Thomas Dye t...@tsdye.com Date: Mon, 18 Jun 2012 19:49:58 -1000 Subject: [PATCH] * lisp/ob-R.el: Removed reduntant list of header arguments --- lisp/ob-R.el | 23 --- 1 files changed, 8 insertions(+), 15 deletions(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 0802736..7e8f80e 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -245,27 +245,20 @@ current code buffer. (:pdf . pdf) (:ps . postscript) (:postscript . postscript))) - (allowed-args '(:width :height :bg :units :pointsize - :antialias :quality :compression :res - :type :family :title :fonts :version - :paper :encoding :pagecentre :colormodel - :useDingbats :horizontal)) (device (and (string-match .+\\.\\([^.]+\\) out-file) (match-string 1 out-file))) (extra-args (cdr (assq :R-dev-args params))) filearg args) (setq device (or (and device (cdr (assq (intern (concat : device)) devices))) png)) -(setq filearg - (if (member device '(pdf postscript svg tikz)) file filename)) -(setq args (mapconcat - (lambda (pair) - (if (member (car pair) allowed-args) - (format ,%s=%S - (substring (symbol-name (car pair)) 1) - (cdr pair)) )) - params )) (format %s(%s=\%s\%s%s%s) - device filearg out-file args + device + (if (member device '(pdf postscript svg tikz)) file filename) + out-file + (mapconcat (lambda (pair) + (format %s=%S +(substring (symbol-name (car pair)) 1) +(cdr pair))) + (remove-if-not #'(lambda (pair) (eq (cdr (assoc (car pair) org-babel-header-args:R)) :any)) params) ,) (if extra-args , ) (or extra-args (defvar org-babel-R-eoe-indicator 'org_babel_R_eoe') -- 1.7.5.4 -- Thomas S. Dye http://www.tsdye.com
Re: [O] [OT] Generate animations (programmatic)
Is POV-Ray out of the question? - command-line driven - outputs many graphic types - very programmable - can (be programmed to) read and parse intermediary text/data files - robust - render to animation later with ffmpeg or mencoder - and can import a variety of existing pictures or frames (a sort of 'transcode')
Re: [O] [PATCH] Re: [BUG] [babel] R graphics header arg :units
t...@tsdye.com (Thomas S. Dye) writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi all, I am having troubles in using the header argument :units which is implemented for R source blocks. Example: #+begin_src R :results graphics :file wideplot.png :width 14 :height 7 :units cm plot(1:10, 1:10) #+end_src This expands to : png(filename=wideplot.png,height=7,units=cm,width=14) : plot(1:10, 1:10) : dev.off() and leads -- when evaluated -- to the error : Fehler in match.arg(units, c(in, px, cm, mm)) : : 'arg' must be NULL or a character vector I guess this is a bug, correct? Otherwise, how do I correctly use this header argument? Regards, Andreas Aloha all, The attached patch handles quoted string values for R device header arguments. With the patch the following works as expected: #+header: :width 100 :height 100 :units mm :res 120 #+BEGIN_SRC R :results graphics :file test.png x - c(1,2,3,4,5) y - x plot(x,y) #+END_SRC All the best, Tom Hi Tom, very nice. With your patch I can confirm the :units argument accepts quoted strings! Thanks a lot, Andreas
Re: [O] Rebuilding the Agenda hides inline Images
Marcus Klemm marcus.klemm at googlemail.com writes: Hello Org-mode developers, I have an org document with some inline images that I'd like to be displayed permanently. I can switch them on using org-toggle-inline-images, but whenever the agenda is rebuilt, either manually or by an idle timer, they disappear, so I have to call org-toggle-inline-images twice (switch inline images off, then on again ) to get them back. I have found no clues in the manual or mailing list for this being the intended behavior, so I guess I found a bug. Ciao, Marcus Klemm Over a week and no reaction at all? Really? This is a serious problem for me. If you need more information about my setup or if there is a bug tracker I should use, please tell me! Ciao, Marcus Klemm
Re: [O] Rebuilding the Agenda hides inline Images
Hi Marcus, Marcus Klemm marcus.kl...@googlemail.com writes: I have an org document with some inline images that I'd like to be displayed permanently. I can switch them on using org-toggle-inline-images, but whenever the agenda is rebuilt, either manually or by an idle timer, they disappear, so I have to call org-toggle-inline-images twice (switch inline images off, then on again ) to get them back. I have found no clues in the manual or mailing list for this being the intended behavior, so I guess I found a bug. Do you have (setq org-startup-with-inline-images t) ? It is in the manual, section 4.4 Handling links: `C-c C-x C-v (`org-toggle-inline-images')' Toggle the inline display of linked images. Normally this will only inline images that have no description part in the link, i.e. images that will also be inlined during export. When called with a prefix argument, also display images that do have a link description. You can ask for inline images to be displayed at startup by configuring the variable `org-startup-with-inline-images'(6). HTH, -- Bastien
Re: [O] Rebuilding the Agenda hides inline Images
Bastien b...@gnu.org writes: Hi Bastien: Do you have (setq org-startup-with-inline-images t) ? I have the above set to t and I have the same problem. The images will disappear when the agenda is build. I have to toggle it twice for the images to reappear. Charles -- If a machine couldn't run a free operating system, we got rid of it. -- Richard Stallman (Open Sources, 1999 O'Reilly and Associates) pgpIUA6w4PCDO.pgp Description: PGP signature
Re: [O] [OT] Generate animations (programmatic)
Perhaps Asymptote would meet your needs: http://asymptote.sourceforge.net/ It is even supported by babel, can output to multiple formats (mpg, gif, SVG, 3D pdf and many others) and is fully programmable (depending on the complexity of your models, you could directly program it in Asymptote, it has a c++ like syntax). Check out some of the examples here: http://asymptote.sourceforge.net/gallery/animations/ Chris. On 19 June 2012 05:05, Torsten Wagner torsten.wag...@gmail.com wrote: Hi, its a bit OT (well maybe there is a babel solution ;) ) I am looking for a way to generate small animations for educational purpose. I know many here did/do/plan to do similar things, thus I would like to ask here. Those animations need to follow some underlying algorithms (I would need a correct physical, chemical, biological behavior). I'm not an art person (so please don't tell me to get pen and paper) and do not have the time (well the animations should help me but they are not my daytime job) to spend hours or even weeks in getting Blender and Co creating (superb) animations. Thus I am looking for: * Possibly a programmatic way to create animations * Something with a good balance of effort vs. output * Possibility to either inject results from other programs (scilab, python, matlab, etc.) or to include the necessary behavioral model * The output should be readable on many different platforms (Linux, Mac, Windows, Android, IOS, etc) * An open and well described output format * An open and well described workflow Well, the last two points are important to me, since I might use the animations for longer time (course material) and I would like to have a chance to open and modify them even in 3, 5 or even 10 years. My ideas so far * Processing language (seems interesting and fast to get results, however, not really an open output format, can't see the future of it clearly) * ProcessingJS (this solves the problem of having a easy to read output format, other problems are still the same) * Adobe flash (violates several of the above requirements, plugins on different platforms are a mess) * SVG + HTML5 (this looks promising as many web-browser would be capable to open it without plugin, but I can't find a programmatic easy way to start with this, any authoring tools, libs or APIs?) * TIKz + animation (I use Tikz already and really like it. Never used the animation package. However, animated PDFs are only readable with the Adobe Reader) * Python (well Python as a general language might work nice, however, which package could be used for animation? I used once pygames but this seems to be graphically disadvantaged) * Inkscape (there are modules to do animation, but how to get my behavior model into it?) * Blender, Gimp (steep learning curve, many many ours of work to get an animation) * Synfig, Pencil, ktoon, etc (maybe faster results compared to Blender, but again, how to get my behavior model into it?) * Powerpoint, Libreoffice Presenter (well, as soon as it comes to a bit more complex animations this becomes fast a nightmare) Ideally, I would love to see something like TikZ with a good way to add animations and to finally generate a SVG-based animation readable by almost all webbrowsers. This embedded in a language which allows me to perform the behavioral modeling too and I would be quite happy already. I would be glad if some of you could share there ways, ideas and workflows to do this kind of animations. All the best Torsten
Re: [O] Smart Quotes Exporting
Hello, Mark Shoulson m...@kli.org writes: Well, wait; regexps can make some pretty darn good guesses at the beginnings or ends of strings. I know that. They make a good job, I just want a better one. This isn't quite it; beginning-of-string followed by quote, then punctuation and then spaces is also a close-quote, etc... There is a lot of fine-tuning. But even what I currently have was able to handle your Caesar said, /Alea Jacta est./ example. No, it doesn't handle that, actually, it's just sheer luck. Indeed, the quoting function is applied to \. There's absolutely no space, punctuation, etc. to save the day. So it makes a wild guess with a probability of 0.5 of success. Since the guess is always the same, /a/ will always fail. The case where a quote both sits at the edge of a string (i.e. at the border of some element, formatting, etc) *and* does not have whitespace next to it, with possible punctuation, does not seem to be a normal occurrence to me. If I'm wrong, how common *is* it? Even if it rarely happens, it can be _very_ annoying to have to cope with bad guesses. If it can be avoided, I see no reason not to do so. Now, here the infrastructure I propose. Internally, the two following functions are required. #+begin_src emacs-lisp (defun org-export--smart-quotes-in-element (element backend) Replace plain quotes with smart quotes in ELEMENT. ELEMENT is an Org element or a secondary string. BACKEND is the back-end to check for rules, as a symbol. This is a destructive operation. Return new element. (let* ((type (org-element-type element)) (properties (and type (nth 1 element ;; Destructively apply changes to secondary string, if any. (let ((secondary (and type (assq type org-element-secondary-value-alist (when secondary (let* ((sec-symbol (cdr secondary)) (sec-value (plist-get properties sec-symbol))) (when sec-value (setq properties (plist-put properties sec-symbol (org-export--smart-quotes-in-element sec-value backend))) ;; Destructively change `:caption' if present. Since it's a dual ;; keyword, apply smart quotes to both CAR and CDR, if required. (let ((caption (plist-get :caption properties))) (when caption (setq properties (plist-put properties :caption (cons (org-export--smart-quotes-in-element (car caption) backend) (and (cdr caption) (org-export--smart-quotes-in-element (cdr caption) backend))) ;; Recursively apply changes to contents. Rebuild ELEMENT along ;; the way, with updated strings. (let ((contents (if type (org-element-contents element) element)) previous current next acc) (while contents (setq current (pop contents) next (car contents) previous current) (push (cond ((stringp current) ;; CURRENT is a string: Call ;; `org-export-quotation-marks' with appropriate ;; information. (org-export-quotation-marks current (and previous (if (stringp previous) (length (and (string-match +\\' previous) (match-string 0 previous))) (org-element-property :post-blank previous))) (and next (if (not (stringp next)) 0 (length (and (string-match \\` + next) (match-string 0 next) backend)) ;; CURRENT is recursive: Move into it. ((plist-get properties :contents-begin) (org-export--smart-quotes-in-element current backend)) ;; Otherwise, just accumulate CURRENT. (t current)) acc)) ;; Re-build transformed element. (if (or (not type) (eq type 'plain-text)) (nreverse acc) (nconc (list type properties) (nreverse acc)) (defun org-export-set-smart-quotes (tree backend info) Replace plain quotes with smart quotes in TREE. BACKEND is the back-end, as a symbol, used for transcoding. INFO is a plist used as a communication channel. This is a destructive operation. This function is meant to be used as a parse tree filter for back-ends activating smart quotes. ;; Destructively apply smart quotes to parsed keywords in info. (let ((value (plist-get info :title))) (when value (setq info (plist-put info :title (org-export--smart-quotes-in-element value backend) ;;
[O] using an exported zotero library with org-mode
Hi, In case anyone else is wondering about this. There are now several examples of managing bibliographies and associated papers in orgmode [1][2][3]. Typically these involve a collection of pdf journal papers, a .bib file, notes.org and draft_paper.org. There has also been a bit of discussion of zotero on this list. The difference here is that I have been using Zotero [4] as the 'capture'; to download papers and bibrefs. I recently found out that Zotero can export a library of journal papers and includes the path to the attachment (the pdf file) in the file = {} field. The main advantage I am pointing out here is that the pdf file doesn't not need to be renamed manually. So, if the Zotero collection is exported from the GUI to ~/tmp/bib/library, then the result is ~/tmp/library/library.bib, with entries such as file = {my.pdf:files/1/my.pdf:application/pdf} and the pdf at ~/tmp/library/files/1/my.pdf RefTex can't currently access the 'file' field (first noted in Sept 2011 [5]) and so needs this patch: #+BEGIN_SRC elisp :tangle allow-file-field.patch diff --git a/lisp/reftex-cite.el b/lisp/reftex-cite.el index e1d2e92..f6adbcd 100644 --- a/lisp/reftex-cite.el +++ b/lisp/reftex-cite.el @@ -1063,8 +1063,10 @@ While entering the regexp, completion on knows citation keys is possible. ((= l ?T) (reftex-abbreviate-title (reftex-get-bib-field title entry))) ((= l ?v) (reftex-get-bib-field volume entry)) - ((= l ?y) (reftex-get-bib-field year entry) - + ((= l ?y) (reftex-get-bib-field year entry)) + ;; zotero path to the (pdf) file + ((= l ?z) (nth 1 (split-string +(reftex-get-bib-field file entry) :)) (if (string= rpl ) (setq b (match-beginning 2) e (match-end 2)) (setq b (match-beginning 3) e (match-end 3))) #+END_SRC And then the now-familiar setup in .emacs making use of the %z place holder for the path to the pdf: #+BEGIN_SRC elisp (setq reftex-default-bibliography (quote(/home/myles/tmp/bib/library/library.bib))) ;; so that the functions contained in the strings can be evaluated ;; http://old.nabble.com/adding-datestamp-to-reftex-set-cite-format-td31794462.html (defadvice reftex-format-citation (before eval-citation-format) (setq format (eval format))) (defun org-mode-reftex-setup () (load-library reftex) (and (buffer-file-name) (file-exists-p (buffer-file-name)) (reftex-parse-all) (progn ;enable auto-revert-mode to update reftex when bibtex file changes on disk ;;(global-auto-revert-mode t) (reftex-parse-all) ;add a custom reftex cite format to insert links (reftex-set-cite-format '((?b . [[bib:%l][%l-bib]]) (?n . [[notes:%l][%l-notes]]) (?p . [[library:%l][%z]]) (?t . %t) (?h . (concat * %l - %t\n:PROPERTIES:\n:Created: (substring (format-time-string (org-time-stamp-format t t)) 1 -1) \n:Custom_ID: %l\n:file: [[library:%z][file]]\n:bib: [[bib:%l][bib]]\n:END:\n)) (define-key org-mode-map (kbd C-c )) 'reftex-citation) (define-key org-mode-map (kbd C-c () 'org-mode-reftex-search)) (add-hook 'org-mode-hook 'org-mode-reftex-setup) (setq org-link-abbrev-alist '((bib . ~/tmp/bib/library/library.bib::%s) (notes . ~/tmp/bib/notes.org::#%s) (library . ~/tmp/bib/library/%s))) #+END_SRC A potential problem is what happens when the collection is re-exported from zotero? But I will burn that bridge when I come to it. Any comments are of course welcome but I am really just posting for posterity. Myles Footnotes: [1] http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/ [2] http://article.gmane.org/gmane.emacs.orgmode/2406/match=bibliography [3] http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/ [4] http://www.zotero.org/ [5] http://comments.gmane.org/gmane.emacs.auctex.devel/2662
Re: [O] Selective export of Babel code blocks
Hi Tom, On Mon, Jun 18, 2012 at 9:05 PM, Thomas S. Dye t...@tsdye.com wrote: The :noweb header argument can take several values to control when these noweb references are expanded. Many of these don't show in the Org-mode manual on Worg. Here they are in org.texi: [...] I had missed these options! no-export might be the way to go. In any case, there seems to be a myriad of ways to go about this. The choice depends on John's preferences. :) Cheers, -- Suvayu Open source is the future. It sets us free.
Re: [O] [dev] About a beamer back-end
Hello, Eric S Fraga e.fr...@ucl.ac.uk writes: Well, I will have to chime in with a contrary view. I like using headlines to define blocks, and I use blocks on almost every frame. I have the following reasons for preferring a headline approach: - the proposed approach does not easily (at all?) cater for blocks within blocks I may be missing your point, but you can have nested blocks. What would be more difficult to achieve with blocks? - ease of hiding of content: org for me is still primarily an outliner! You can hide blocks too. - being able to re-arrange content in a frame quickly (M-up, etc.) See `org-element-drag-backward' and `org-element-drag-forward'. - within frames, there is no other use for lower level headlines. Using these for blocks seems appropriate. What else could they be used for? Good question. One idea would be to use them as outline tools that would have no impact on export (they would help hiding frame contents in the buffer but would be ignored in produced LaTeX code). Obviously, both approaches (blocks or headlines) have drawbacks. I'm still unsure about which one would be the quickest/cleanest/most useful. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] ob-R.el, redundant list
t...@tsdye.com (Thomas S. Dye) writes: Aloha all, I noticed a redundant list of R device header arguments in ob-R.el. The attached patch removes the redundant list, along with two setq's that appeared to be unnecessary. All the best, Tom Applied, Thanks! -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] [PATCH] Re: [BUG] [babel] R graphics header arg :units
t...@tsdye.com (Thomas S. Dye) writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi all, I am having troubles in using the header argument :units which is implemented for R source blocks. Example: #+begin_src R :results graphics :file wideplot.png :width 14 :height 7 :units cm plot(1:10, 1:10) #+end_src This expands to : png(filename=wideplot.png,height=7,units=cm,width=14) : plot(1:10, 1:10) : dev.off() and leads -- when evaluated -- to the error : Fehler in match.arg(units, c(in, px, cm, mm)) : : 'arg' must be NULL or a character vector I guess this is a bug, correct? Otherwise, how do I correctly use this header argument? Regards, Andreas Aloha all, The attached patch handles quoted string values for R device header arguments. With the patch the following works as expected: #+header: :width 100 :height 100 :units mm :res 120 #+BEGIN_SRC R :results graphics :file test.png x - c(1,2,3,4,5) y - x plot(x,y) #+END_SRC All the best, Tom Applied, Thanks Tom -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] Selective export of Babel code blocks
On Tue, Jun 19, 2012 at 7:55 AM, suvayu ali fatkasuvayu+li...@gmail.com wrote: Hi Tom, On Mon, Jun 18, 2012 at 9:05 PM, Thomas S. Dye t...@tsdye.com wrote: The :noweb header argument can take several values to control when these noweb references are expanded. Many of these don't show in the Org-mode manual on Worg. Here they are in org.texi: [...] I had missed these options! no-export might be the way to go. In any case, there seems to be a myriad of ways to go about this. The choice depends on John's preferences. :) Indeed! Thanks for all the options. I haven't gotten to plugging in my actual code yet but will try these ways and get back to the list! Thanks all! John Cheers, -- Suvayu Open source is the future. It sets us free.
Re: [O] using an exported zotero library with org-mode
Hello, Myles English mylesengl...@gmail.com writes: Hi, In case anyone else is wondering about this. There are now several examples of managing bibliographies and associated papers in orgmode [1][2][3]. Typically these involve a collection of pdf journal papers, a .bib file, notes.org and draft_paper.org. There has also been a bit of discussion of zotero on this list. […] Any comments are of course welcome but I am really just posting for posterity. FWIW I have been using zotexo[1] which does automatic exportation to bib file from a Zotero collection and org-mode, reftex with similar simple setup as you described for writeup. Zotexo interacts with MozRepl[2] for the exportation. The setup for zotexo very simple with just couple of file local variables. But I haven't yet integrated note taking with org-mode. your setup is looks nice, thanks for sharing.. Ideally It would be nice to have a elisp interface with zotero client API(js) just as Magit for Git (Since Zotero UI is not so pretty for a Emacs user). It seems possible, but would be huge task. Another small info, Recently I crossed the zotero.org account limit 100mb (free), So now I switched to cloudme[3] which is offering free WebDAV service for upto 3gb. Thanks., Yagnesh Footnotes: [1] https://github.com/vitoshka/zotexo [2] https://github.com/bard/mozrepl [3] http://www.cloudme.com/en
Re: [O] Rebuilding the Agenda hides inline Images
Moritz Ulrich ulrich.mor...@googlemail.com writes: Hi Moritz It's the same with narrowing. org-mode really deserves a patch to preserve buffer state when the agenda is rebuild. Agreed. Charles -- Linux poses a real challenge for those with a taste for late-night hacking (and/or conversations with God). (By Matt Welsh) pgpAG5J73qzyW.pgp Description: PGP signature
Re: [O] Rebuilding the Agenda hides inline Images
Charles Philip Chan cpchan at bell.net writes: Bastien bzg at gnu.org writes: Hi Bastien: Do you have (setq org-startup-with-inline-images t) ? I have the above set to t and I have the same problem. The images will disappear when the agenda is build. I have to toggle it twice for the images to reappear. Do you use, by any chance, a custom block agenda? I wanted to reply to Bastien as fast as possible, so I tried to reproduce my problem at work. I installed Emacs (v23) and orgmode, created a document with inline images and built the agenda. The images did not disappear, everything worked as I would expect. At home, I use Emacs 24 and have many customizations (from worg's tipps and tricks page, mostly) in my .emacs. I also almost exclusively use a custom block agenda showing me the events of today and the next 7 days, my todo list seperated into generic TODO-items, items I have marked as next (custom TODO keyword), items marked as waiting (dito) etc. I also have the agenda use the whole emacs frame, not splitting it. So now I have to disable all of those customizations and try again, one by one ... won't happen until the day after tomorrow (deadlines). By the way, I found using the iimage minor mode to be a good workaround. Ciao, Marcus
Re: [O] Rebuilding the Agenda hides inline Images
Marcus Klemm marcus.kl...@googlemail.com writes: Hi Marcus: Do you use, by any chance, a custom block agenda? Yes, I do. I wanted to reply to Bastien as fast as possible, so I tried to reproduce my problem at work. I installed Emacs (v23) and orgmode, created a document with inline images and built the agenda. The images did not disappear, everything worked as I would expect. Interesting. At home, I use Emacs 24 and have many customizations (from worg's tipps and tricks page, mostly) in my .emacs. Same here. So now I have to disable all of those customizations and try again, one by one ... won't happen until the day after tomorrow (deadlines). Hum, I will try to debug some more too. By the way, I found using the iimage minor mode to be a good workaround. Interesting. Thanks for the tip. I have iimage turn off ever since orgmode started to support inline images. Charles -- ..you could spend *all day* customizing the title bar. Believe me. I speak from experience. (By Matt Welsh) pgpQp5MtAUYx7.pgp Description: PGP signature
[O] Scheduling time+effort or (ab-?)using org-agenda-default-duration
Hi org people, I am trying to make my life a bit easier and would love some advice. * Short: Has anyone a little schedule/timestamp function which takes time of day (e.g. 10:20 or 10pm) and schedules/timestamps items as time+effort (e.g. 10:20+0:30)? A tiny change to org-agenda-format-item (s.b.) seems to work, but I am worried about side effects. * Long: Whenever new things come up, I quickly capture it, set a reasonable effort and schedule it for tomorrow unless there is a cogent reason to do otherwise. Each morning, I go through my daily agenda, do some rescheduling if necessary and happily start ticking things of the list. So far, I avoided setting specific time-slots for items. However, I feel like it is time to test a different approach and actually assign times. So I start with a bunch of items and want to shuffle them around in the timetable, or rather sort them morning to evening. I usually (always?!) finish items in one run, so it would be convenient to just enter a start time and get a timestamp with a duration of starttime+effort. I had a look at the different functions involved, and bumped into `org-agenda-default-appointment-duration' (didn't know about that one) which is used in `org-agenda-format-item' (and only there afaict). #+begin_src emacs-lisp ;; Try to set s2 if s1 and `org-agenda-default-appointment-duration' are set (when (and s1 (not s2) org-agenda-default-appointment-duration) (setq s2 (org-minutes-to-hh:mm-string (+ (org-hh:mm-string-to-minutes s1) org-agenda-default-appointment-duration #+end_src The easiest way to get the behavior I think I would like is a tiny change like #+begin_src emacs-lisp ;; Try to set s2 if s1 and `org-agenda-default-appointment-duration' are set (when (and s1 (not s2) org-agenda-default-appointment-duration) (if (org-get-effort) ; prefer effort over org-agenda-default-appointment-duration (setq s2 (org-minutes-to-hh:mm-string (+ (org-hh:mm-string-to-minutes s1) (org-duration-string-to-minutes (org-get-effort) (setq s2 (org-minutes-to-hh:mm-string (+ (org-hh:mm-string-to-minutes s1) org-agenda-default-appointment-duration) #+end_src ... which seems to work afaict after very superficial testing. Are there any side effects I missed? Breaking org would seriously mess up my life :)
Re: [O] New Link Syntax: Adding ATTRIBUTES
Samuel Wales samolog...@gmail.com writes: Hmm, maybe something like this: $[link http://mysite.example; :label Example :html-attr ... :latex-attr ...] Code that adds functionality or safety to this syntax (including all future code) will also apply to other features than links. For a new feature, replace the first element with id, fancy-date, or whatever idea you have. It might even be possible to open it up to the user in a safe and convenient way. Samuel Neat idea. IIUC, a read macro and something like funcall would do a lot of the work. I'd like to see something like this, so the Org-mode buffer could reflect the underlying, possibly user-extended, semantics: $[link http://mysite.example; :label Example :html-attr ... :latex-attr ... :org-attr ...] All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] using an exported zotero library with org-mode
Yagnesh, On Wed, 20 Jun 2012 01:47:30 +0900, Yagnesh Raghava Yakkala said: Hello, Myles English mylesengl...@gmail.com writes: Hi, In case anyone else is wondering about this. There are now several examples of managing bibliographies and associated papers in orgmode [1][2][3]. Typically these involve a collection of pdf journal papers, a .bib file, notes.org and draft_paper.org. There has also been a bit of discussion of zotero on this list. […] Any comments are of course welcome but I am really just posting for posterity. FWIW I have been using zotexo[1] which does automatic exportation to bib file from a Zotero collection and org-mode, reftex with similar simple setup as you described for writeup. Zotexo interacts with MozRepl[2] for the exportation. The setup for zotexo very simple with just couple of file local variables. Thanks for the suggestion. Do you know if it exports the collection's (pdf) files too or just a .bib file? The front page says it can synchronize BibTex file and Zotero collection so can you really edit the .bib file and write the changes back to Zotero, from emacs? But I haven't yet integrated note taking with org-mode. your setup is looks nice, thanks for sharing.. Ideally It would be nice to have a elisp interface with zotero client API(js) just as Magit for Git (Since Zotero UI is not so pretty for a Emacs user). It seems possible, but would be huge task. The way I use it now, I can't really imagine how that might be useful, I think Zotero is best as a 'capture' tool, no doubt if such a thing existed I would probably find it indispensable. Another small info, Recently I crossed the zotero.org account limit 100mb (free), So now I switched to cloudme[3] which is offering free WebDAV service for upto 3gb. Thanks., Yagnesh Footnotes: [1] https://github.com/vitoshka/zotexo [2] https://github.com/bard/mozrepl [3] http://www.cloudme.com/en -- Myles
Re: [O] exporting a table
Nick Dokos writes: This is with version Org-mode version 7.8.10 (release_7.8.10-688-gd06428 @ /home/nick/elisp/org-mode/lisp/) Do yourself a favor and issue: git fetch --tags origin to get the correct version displayed. Regards, 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
Re: [O] Documentation for the new exporter
Where is the documentation for the new exporter that is in the works? http://orgmode.org/worg/dev/org-export-reference.html Nick and Thorsten, Thanks. Vikas