Re: [Orgmode] orgmode add-on that implements links to eshell buffers
This has been done now - eshell links can be activated through org- modules. - Carsten On Jan 4, 2011, at 4:02 PM, Carsten Dominik wrote: Hi Konrad, I suggest then that we install this as a contrib package - and once you have the assignment finished, we can move it. - Carsten On Jan 4, 2011, at 3:44 PM, Konrad Hinsen wrote: Hi Carsten, Hi Konrad, this looks good. Have you signed papers with the FSF, or do we have to make this a contributed file? I have started the FSF process in december, and got a message yesterday that the papers to be signed are on the way to me. I have no idea how long this will take, unfortunately. Konrad. - 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] Navigating sparse tree results
On Jan 5, 2011, at 1:38 AM, suvayu ali wrote: Hi, Is there any way to move to the next match after a sparse tree command. Say I search for a regexp with the sparse tree command, how do I to move to the next highlighted match? I was hoping something like `next-error' or `C-s' for isearch[fn:1]. This is a great idea. next-error and previous-error do now work on sparse tree results. In a standard Emacs, these commands are bound to M-g n M-g M-n M-g p M-g M-p - 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
[Orgmode] Capture template and elisp expression
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I want to use a Capture Template to record changes to files under version control. Everything works as expected, but I would like to include the current revision in the template. Therefore I tried the following: * %T %? at %a by Rainer M Krug, email: rai...@krugs.de %(vc-working-revision buffer-file-name) for the template, but I get an error: 2011-01-06 Thu 13:06 at [[file:~/Documents/Projects/BiocontrolAndAlienDynamics/nonSpatialAcacia/trunc/R/nsa.org::*Finalise][Finalise]] by Rainer M Krug, email: rai...@krugs.de %![Error: (wrong-type-argument stringp nil)] Any idea how I could get the revision of the org file from which the Capture has been initiated (here ~/Documents/Projects/BiocontrolAndAlienDynamics/nonSpatialAcacia/trunc/R/nsa.org )? Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel:+33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0lsL4ACgkQoYgNqgF2egqR+ACfYJeAc3K6DM9YQh5E7TleGscY i5oAn07YTRrie1i+7XieuyYcw9AOtFh/ =T3LH -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Display of time/date ranges in the agenda
Memnon Anon gegendosenflei...@googlemail.com writes: Hi Memnon, I have an entry ** Statustreffen (Bad Homburg) 2011-01-17 Mon 12:00--2011-01-18 Tue 13:30 Monday 17 January 2011 W03 uni:12:00.. (1/2): Statustreffen (Bad Homburg) Tuesday18 January 2011 uni:12:00.. (2/2): Statustreffen (Bad Homburg) What about: ** Statustreffen (Bad Homburg) 2011-01-17 Mon 12:00-23:59 2011-01-18 Tue 00:01-13:30 I use this for my night shifts... Hm, well, it's at least a workaround... It is inconvenient for items crossing several days, though. Indeed. Maybe I find some time to look at the code the next weekend... Bye, Tassilo ___ 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] OrgCamp in Paris, January 22nd
Dear all, some parisian Orgers are gathering for the first OrgCamp on earthn® :) OrgCamps are informal events where people gather IRL to contribute to Org by discussing how they use it and by doing contributions to the code, the manuals and the online tutorials. Here is the wiki for this event: http://www.lifehacking.fr/mediawiki/index.php/OrgModeCampJanvier2011#Participants # Location: FPH, 38 rue Saint Sabin, 75011 Paris # Time: 2pm-8pm I added a page on Worg to gather information on OrgCamps: http://orgmode.org/worg/orgcamps.html We will have wifi, so I guess some of us will be on freenode#org-mode. Thanks a lot to Frédéric Couchet (madix on IRC) for setting this up! -- Bastien ___ 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] Navigating sparse tree results
Hi Carsten and Seb, On Thu, Jan 6, 2011 at 3:37 AM, Carsten Dominik carsten.domi...@gmail.com wrote: On Jan 5, 2011, at 1:38 AM, suvayu ali wrote: Hi, Is there any way to move to the next match after a sparse tree command. Say I search for a regexp with the sparse tree command, how do I to move to the next highlighted match? I was hoping something like `next-error' or `C-s' for isearch[fn:1]. This is a great idea. next-error and previous-error do now work on sparse tree results. In a standard Emacs, these commands are bound to M-g n M-g M-n M-g p M-g M-p I was actually trying my hand on it after Seb's encouraging words but you got to it faster. Thanks a lot! :) -- 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] [bug] Must declare value as string in org-agenda-custom-commands easy customize interface
Only a minor annoyance. Posting in case anyone else runs into the same issue. In the easy customize interface, when setting the value for a variable in local settings for a custom command, the org-agenda-todo-ignore-deadlines value of all must be preceded by a single quote.[1] I expected this to automatically happen, as the easy customize interface generally takes care of such escaping. The parenthetical sexp leads me to believe this is the intended behavior. Is this correct? Footnotes: [1] http://cl.ly/3ta0 -- Jeffrey Horn 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] using (id Name) target in org-capture-templates
Thanks for the note. I did indeed mean to use headings. I think it would be nice to be able to have the file dynamic but the heading static in capture templates. In my case, I always want to find a particular heading in the buffer that the capture originated from. So I had to put the whole target spec in a function, as in: (setq org-capture-templates `((t Todo (local) entry (function (lambda () (set-buffer (org-capture-get :original-buffer)) (let ((hd Tasks)) (goto-char (point-min)) (if (re-search-forward (format org-complex-heading-regexp-format (regexp-quote hd)) nil t) (beginning-of-line 2) (goto-char (point-max)) (or (bolp) (insert \n)) (insert * hd \n) (beginning-of-line 0) ... most of which is copied from the file+heading case in org-capture.el What I'd like to be able to write in an org-capture-template is something like: (setq org-capture-templates `((t Todo (local) entry (function+heading (lambda () (org-capture-get :original-buffer)) Tasks)) ... Where the function sets the buffer, but org machinery is used to match the heading. Another idiom would be to allow a string-returning function wherever a string is currently allowed for the file target, so the above would be instead: (setq org-capture-templates `((t Todo (local) entry (file+heading (lambda () (org-capture-get :original-buffer)) Tasks)) ... The last is my preferred, as it would apply to all of the file+headline, file+olp, file+regexp, etc. target specifications in allowed for org-capture-templates. Thanks. -- Greg -- Greg Sullivan gregory.sulli...@baesystems.com (781)262-4553 (office) (978)430-3461 (cell) -Original Message- From: Giovanni Ridolfi [mailto:giovanni.rido...@yahoo.it] Sent: Thursday, December 23, 2010 6:42 AM To: Sullivan, Gregory (US SSA) Cc: Emacs-orgmode@gnu.org Subject: Re: [Orgmode] using (id Name) target in org-capture-templates Sullivan, Gregory (US SSA) gregory.sulli...@baesystems.com writes: I would like to have a template that will add a TODO below the Tasks heading in the current .org file. From the documentation, I would think that (setq org-capture-templates `((t Todo (local) entry (id Tasks) * TODO %? %i\n%T\n :prepend t) )) would work, Be careful: heading is not id. from the documentation of the variable in the file org-mode/lisp/org-capture.el target: (id \id of existing org entry\) File as child of this entry, or in the body of the entry Do you have a tree like the following? * Tasks :PROPERTIES: :ID: Tasks :END: If yes, then it works, if the :ID: value is unique. cheers, Giovanni ___ 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: Introducing gnugol - an org-mode-output web search client
Dave Taht d...@teklibre.org writes: So over the holiday I wrote a command line web search client with an emacs interface and called it gnugol. It uses the google json and bing json APIs to search the web, and outputs the results in plain text, in whatever format you're working in, notably, org, so you can navigate the results in the mind-set you're in. [...] On unrelated surfing (reddit), I ran into this: http://surfraw.alioth.debian.org/ Do you think it's possible that your two powers combined, would make you INVINCIBLE? I don't know how much they dink with the return stream; it may be not at all, which would be inauspicious for a combination. But if they're doing any sort of output capture/filter, then adding an org-mode flavor to the list might be really straightforward. - Allen S. Rout ___ 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] R: New handling of file output
Thomas S. Dye t...@tsdye.com writes: Aloha all, Here is an example of the new handling of file output with an R source code block that doesn't use base graphics: #+srcname: r-edge-angle-histogram #+begin_src R :results output graphics :var x=whole-adzes :file r/ adze_edge_angle.png :width 400 :height 300 library(ggplot2) adze.edge.angle - ggplot(x, aes(edge_angle)) adze.edge.angle + geom_histogram(aes(y=..density..)) + geom_density(weight=2) + xlab(Measured cutting edge angle (degrees)) #+end_src I was initially a bit baffled by this example. If anyone else is curious as to why, when graphics are generated by ggplot2, :results output is required in addition to :results graphics, please see Erik Iverson's original post on producing grid-based (e.g. lattice, ggplot2) R graphics with org-babel (bearing in mind of course that the header arg syntax has changed as per this thread). http://article.gmane.org/gmane.emacs.orgmode/26082 Dan #+results: [[file:r/adze_edge_angle.png]] Previously, the source line was: #+begin_src R :results output :var x=whole-adzes :file r/ adze_edge_angle.png :width 400 :height 300 The only change was to append graphics to :results output. All the best, Tom On Dec 21, 2010, at 6:57 AM, Dan Davison wrote: Dan Davison dandavis...@gmail.com writes: Please note the following changes to the way that org-babel handles file output. These may break existing org-babel files which use the :file header argument. :file filename should be understood as saying write the result to filename and return a link to filename. This works for all languages. For graphics languages (e.g. ditaa, dot, gnuplot) there is no change in behavior: result in the above is the graphics, and a link to the image is placed in the org buffer. For general-purpose languages (e.g. emacs-lisp, python, R, ruby, shell), the result written to file is the normal org-babel result (string, number, table). This is a backwards-incompatible change for R, which was previously interpreting :file to mean send graphics to file. I will send a separate email concerning R. Previously R understood :file filename to mean save graphics to filename[1]; now R behaves like other languages and sends the normal org-babel result to file (string, number, table). To tell R to save graphics[1] to file, use :results graphics. Some examples: Wrong! #+begin_src R :file img.png hist(rnorm(100)) img.png is going to contain this string. #+end_src Use :results graphics save graphics: #+begin_src R :file img.png :results graphics hist(rnorm(100)) But now img.png is going to contain graphics. #+end_src You may want to use `org-babel-default-header-args:R' to make this more convenient: #+begin_src emacs-lisp (setq org-babel-default-header-args:R '((:results . graphics))) #+end_src Alternatively the :results graphics header can be set in a property drawer for the subtree, or a #+babel: line, as usual. Now this will do what was intended #+begin_src R :file img.png hist(rnorm(100)) #+end_src Here is an example of saving something other than base graphics to file, and returning a link to the file. Note that :file is not used, and the filename must be returned. This could be used to save images created by non-base graphics libraries: #+begin_src R :results file :var file=savefile write.something.to.file - function(f) cat(hello, file=f) write.something.to.file(f=file) file #+end_src Dan * Footnotes [1] This only works for base graphics. In order to return a file link from a src block without telling babel to save any results to that file, use :results filename and do not use :file. The code block can of course write arbitrary content to filename. Some examples: Save the output of ls -l as a .csv file (recall that :results value is the default): #+begin_src sh :file dirlisting.csv :sep , ls -l #+end_src Send the text output of ls -l directly to file: #+begin_src sh :results output :file dirlisting.txt ls -l #+end_src Dan ___ 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 ___ 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] Quick note about subtree copy and paste
I just did a copy and paste and noticed that when I did so the copied properties included the ID which, after being copied, meant that the unique identifier became a non-unique identifier. Is it work tweaking the org-paste-special command to rip out ID properties? cheers, r ___ 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] worg: link problem
http://orgmode.org/worg/org-configs/org-config-examples.html David O'Toole's config has a broken link ___ 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] worg: link problem
Rustom Mody rustompm...@gmail.com writes: http://orgmode.org/worg/org-configs/org-config-examples.html David O'Toole's config has a broken link Fixed, thanks! -- Bastien ___ 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: Convert iCalendar files to org files
Hi, i created `ical2org'[1] to convert iCalendar files to org files in elisp. I just bumped to version 0.3.1. Now it also uses the duration of an entry and i added a frontend function to import the iCalendar into an agenda file. I also fixed a nasty bug of 0.2: It ignored the time of entries. Is there something of use missing? Are there more sensible defaults? 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: Bug?: Re: [Orgmode] Problem publishing symbolic links
At Mon, 20 Dec 2010 14:11:52 +1300, Aidan Gauland wrote: [1 text/plain; us-ascii (7bit)] On Sun, Dec 19, 2010 at 06:35:12PM +0100, David Maus wrote: Org checks the file modification time to determine whether to republish a file or not. Due to the nature of /sym/links their modification date does not change if the directory entry they are pointing to changes. Then shouldn't Org-mode check the modification time of the *target*? Indeed. Just pushed a patch to master. Best, --David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp26n68vO1pH.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Produce a pdf outline using the latex outline package of the notes in org file
Hi All, On and off reader and first time poster. The README_GIT advises to discuss the idea before making significant changes. I already made the changes on my local copy of an old stable version (org-6.33f) but I hope better late than never still applies. I keep most of my notes as outlines, which is what org-mode has simplified. I would like to export the outline as pdf but not as an article or report. I previously used the latex outline package and added a few modifications to get the output I liked. I added the changes to an old stable version of org-mode (org-6.33f), which worked nicely. The code is on github: https://github.com/juliusgb/emacs-org-tex-outline I'd like to add the changes to the current development version. I've searched the mailing lists and the org-issues site for this request or something similar and nothing turned up. That was my green light. While adding the changes to the current development code, I ran into an obstacle: I couldn't find org-install.el even with the find command; but org-install.el is part of the stable release. Is org-install.el only added before a stable release or I'm I missing something else? Another question: must all the contributions be stored in the contrib directory? I added the org-latex-outline.el in the lisp directory because all the other output formats, which depended on org-exp.el, org-install.el were in the lisp directory. The org-latex-outline.el also depends on org-latex.el and I wanted to avoid the sorrow of parting them. Maybe there's a better setup that I can use. I'm all ears. In addition, I've already signed the appropriate papers with FSF. Thanks, Julius ___ 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: Introducing gnugol - an org-mode-output web search client
On 6 Jan 2011, at 19:19, brian powell wrote: ** Example/possibilities: apt-get install surfraw ... [[eshell:*eshell*:(rename-buffer vvv)]] [[eshell:*eshell*:(rename-buffer ttt)]] There's no need for those two lines, because... [[eshell:vvv:date]] ... this one will create the eshell buffer vvv if it doesn't exist already. [[eshell:ttt:sr wikipedia goosh]] Same here. Konrad. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Properly format start and end times in time ranges. (was: Display of time/date ranges in the agenda)
* org-agenda.el (org-format-agenda-item): Properly format start and end times in time ranges, i.e., print the start time of the start date, no times for intermediate dates, and the end time with preceeding dots for the end date. With this patch, an entry with time range like this --8---cut here---start-8--- ** TESTENTRY 2011-01-07 Fri 19:05--2011-01-09 Sun 16:25 --8---cut here---end---8--- is shown in the agenda as follows: --8---cut here---start-8--- Friday 7 January 2011 private:19:05.. (1/3): TESTENTRY Saturday8 January 2011 private:... (2/3): TESTENTRY Sunday 9 January 2011 private:..16:25 (3/3): TESTENTRY --8---cut here---end---8--- Before, 19:05.. was used for all days of the entry. --- lisp/org-agenda.el | 45 ++--- 1 files changed, 42 insertions(+), 3 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index bf36758..3a20e2a 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -5164,12 +5164,39 @@ Any match of REMOVE-RE will be removed from TXT. (ts (if dotime (concat (if (stringp dotime) dotime ) (and org-agenda-search-headline-for-time txt - (time-of-day (and dotime (org-get-time-of-day ts))) + timerange + (time-of-day (and dotime +(cond + ;; Time ranges + ((string-match \\(.*\\)--\\(.*\\) ts) + (let* ((start (match-string 1 ts)) + (end (match-string 2 ts)) + (starttime (let ((time (org-parse-time-string start))) + (list (nth 4 time) +(nth 3 time) +(nth 5 time + (endtime (let ((time (org-parse-time-string end))) +(list (nth 4 time) + (nth 3 time) + (nth 5 time) +(catch 'tod + (when (equal date starttime) +(setq timerange 'start) +(setq time (org-get-time-of-day start 'string)) +(throw 'tod (org-get-time-of-day start))) + (when (equal date endtime) +(setq timerange 'end) +(setq time (org-get-time-of-day end 'string)) +(throw 'tod (org-get-time-of-day end))) + ;; Don't show a time for in-between dates + (setq timerange 'inbetween) + (throw 'tod nil + (t (org-get-time-of-day ts) stamp plain s0 s1 s2 t1 t2 rtn srp l duration thecategory) (and (org-mode-p) buffer-file-name (add-to-list 'org-agenda-contributing-files buffer-file-name)) - (when (and dotime time-of-day) + (when (and dotime time-of-day (not timerange)) ;; Extract starting and ending time and move them to prefix (when (or (setq stamp (string-match org-stamp-time-of-day-regexp ts)) (setq plain (string-match org-plain-time-of-day-regexp ts))) @@ -5243,7 +5270,19 @@ Any match of REMOVE-RE will be removed from TXT. (if noprefix (setq rtn txt) ;; Prepare the variables needed in the eval of the compiled format - (setq time (cond (s2 (concat + (setq time (cond ((eq timerange 'start) + (concat (org-agenda-time-of-day-to-ampm-maybe time) + (if org-agenda-timegrid-use-ampm + + ..))) +((eq timerange 'end) + (concat (if org-agenda-timegrid-use-ampm + + ..) + (org-agenda-time-of-day-to-ampm-maybe time))) +((eq timerange 'inbetween) + ... ) +(s2 (concat (org-agenda-time-of-day-to-ampm-maybe s1) - (org-agenda-time-of-day-to-ampm-maybe s2) (if org-agenda-timegrid-use-ampm ))) -- 1.7.4.rc1
Re: [Orgmode] Navigating sparse tree results
On Thu, Jan 6, 2011 at 1:02 PM, Carsten Dominik carsten.domi...@gmail.com wrote: I was actually trying my hand on it after Seb's encouraging words my apologies. I hope you had not spent too much time. No need for apologies, just an evening. :) I am still very novice at lisp, hope to become better so that I can contribute. :) -- 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
Re: [Orgmode] Navigating sparse tree results
On Jan 6, 2011, at 5:14 PM, suvayu ali wrote: Hi Carsten and Seb, On Thu, Jan 6, 2011 at 3:37 AM, Carsten Dominik carsten.domi...@gmail.com wrote: On Jan 5, 2011, at 1:38 AM, suvayu ali wrote: Hi, Is there any way to move to the next match after a sparse tree command. Say I search for a regexp with the sparse tree command, how do I to move to the next highlighted match? I was hoping something like `next-error' or `C-s' for isearch[fn:1]. This is a great idea. next-error and previous-error do now work on sparse tree results. In a standard Emacs, these commands are bound to M-g n M-g M-n M-g p M-g M-p I was actually trying my hand on it after Seb's encouraging words my apologies. I hope you had not spent too much time. - Carsten but you got to it faster. Thanks a lot! :) -- 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] [org-beamer] Question: How to insert different background images on different frames
Hello Org-mode users: I am still a beginner with org-mode and I am trying to make my first beamer presentation using org-mode exclusively. I had my moments of enlightenment but at the moment I am stuck, please bear with me if my question is very basic. I want to include different background images for different frames. The beamer solution is to use \usebackgroundtemplate. Let's say I want to insert the image on the 2nd frame, I would write the latex code as follows: \end{frame} %% frame 1 ends % Now we install the new template for the following frames: \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png} } \begin{frame} %% frame 2 begins %% This frame will have my_background_image as the background image. \end{frame} % Now we install another template, effective from now on, we will use a different background image \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_different_image.png} } \begin{frame} %% This frame will have my_different_image as the background image. \end{frame} For no image we can simply use \usebackgroundtemplate{}. Currently I tried to replicate this in org by doing something like this * frame 1 - item1 - item2 #+begin_latex \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png} } #+begin_latex * frame 2 This inserts the latex statement before \end{frame} (as expected). Is there a way to get the statement after \end{frame} in the exported .tex file? It would be even better if I can avoid using latex and let org handle this. I am sorry for such a basic query. Thanks in advance for any pointers of help. Much appreciated. Best Regards, S. ___ 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] Capture template and elisp expression
Rainer M Krug r.m.k...@gmail.com wrote: Hi I want to use a Capture Template to record changes to files under version control. Everything works as expected, but I would like to include the current revision in the template. Therefore I tried the following: * %T %? at %a by Rainer M Krug, email: rai...@krugs.de %(vc-working-revision buffer-file-name) for the template, but I get an error: 2011-01-06 Thu 13:06 at [[file:~/Documents/Projects/BiocontrolAndAlienDynamics/nonSpatialAcacia/trunc/R/nsa.org::*Finalise][Finalise]] by Rainer M Krug, email: rai...@krugs.de %![Error: (wrong-type-argument stringp nil)] Any idea how I could get the revision of the org file from which the Capture has been initiated (here ~/Documents/Projects/BiocontrolAndAlienDynamics/nonSpatialAcacia/trunc/R/nsa.org )? There are a few problems: the evaluation of the sexp happens in the capture buffer where buffer-file-name returns nil. Even if you could get the file name, vc-working-revision would return nil on a file that is not VC-registered and the template would barf. Those are easy problems to solve but there is another one that seems insurmountable (with current code): my original thought was to use the %a escape to pass the link to a lisp function, extract the file name from it[fn:1] and run vc-working-revision on it (with appropriate safeguards to catch non-VC files), something like this: * %T %? at %a by Rainer M Krug, email: rai...@krugs.de %(rk-custom-function-to-get-vc-revision \%a\) However, this fails because at the time that %(sexp) constructs are expanded, simple %a etc. constructs have not been expanded yet, so what the function above gets is a literal %a: the subtitution sequence is ;; %[] Insert contents of a file. ... ;; %() embedded elisp ... ;; Simple %-escapes (see lisp/org-capture.el, lines 1181-1229 or so). Moreover, this sequence was different and was changed deliberately (see the thread http://thread.gmane.org/gmane.emacs.orgmode/27649), so if it is changed back, Sebastion Rose will not be happy :-) So it seems there is no way to pass values from the capture context to a lisp function in the capture template, but maybe I'm missing something. Thanks, Nick Footnotes: [fn:1] Is there an easier way to get the filename of the file I was visiting when I initiated the capture? If not, should there be? Perhaps a %f escape? ___ 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] Capture template and elisp expression
On Jan 6, 2011, at 11:26 PM, Nick Dokos wrote: Rainer M Krug r.m.k...@gmail.com wrote: Hi I want to use a Capture Template to record changes to files under version control. Everything works as expected, but I would like to include the current revision in the template. Therefore I tried the following: * %T %? at %a by Rainer M Krug, email: rai...@krugs.de %(vc-working-revision buffer-file-name) for the template, but I get an error: 2011-01-06 Thu 13:06 at [[file:~/Documents/Projects/BiocontrolAndAlienDynamics/ nonSpatialAcacia/trunc/R/nsa.org::*Finalise][Finalise]] by Rainer M Krug, email: rai...@krugs.de %![Error: (wrong-type- argument stringp nil)] Any idea how I could get the revision of the org file from which the Capture has been initiated (here ~/Documents/Projects/BiocontrolAndAlienDynamics/nonSpatialAcacia/ trunc/R/nsa.org )? There are a few problems: the evaluation of the sexp happens in the capture buffer where buffer-file-name returns nil. Even if you could get the file name, vc-working-revision would return nil on a file that is not VC-registered and the template would barf. Those are easy problems to solve but there is another one that seems insurmountable (with current code): my original thought was to use the %a escape to pass the link to a lisp function, extract the file name from it[fn:1] and run vc-working-revision on it (with appropriate safeguards to catch non-VC files), something like this: * %T %? at %a by Rainer M Krug, email: rai...@krugs.de%(rk- custom-function-to-get-vc-revision \%a\) However, this fails because at the time that %(sexp) constructs are expanded, simple %a etc. constructs have not been expanded yet, so what the function above gets is a literal %a: the subtitution sequence is ;; %[] Insert contents of a file. ... ;; %() embedded elisp ... ;; Simple %-escapes (see lisp/org-capture.el, lines 1181-1229 or so). Moreover, this sequence was different and was changed deliberately (see the thread http://thread.gmane.org/gmane.emacs.orgmode/27649), so if it is changed back, Sebastion Rose will not be happy :-) So it seems there is no way to pass values from the capture context to a lisp function in the capture template, but maybe I'm missing something. Thanks, Nick Footnotes: [fn:1] Is there an easier way to get the filename of the file I was visiting when I initiated the capture? If not, should there be? Perhaps a %f escape? Hi Nick, you can use (buffer-file-name (org-capture-get :original-buffer)) and we could certainly introduce a special escape for it if helpful. If it is easier, we can also put the filename itself into the property list, and any other information we like. This should happen in the function org-capture, close to the location where the buffer is stored, so near this line: (org-capture-put :original-buffer orig-buf :annotation annotation :initial initial) org-capture uses this property list precisely so that it is simple to add any information required. Note that, after the template has been filled in, it is better to access information in the property list with (org-capture-get PROPERTY 'local) to avoid conflicts with other ongoing capture processes. Hope this helps. - 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 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [org-beamer] Question: How to insert different background images on different frames
Not sure what to say. I tried several placements and still wound up with the .tex file placing the second background declaration in an ineffective location (either inside the second frame environment or before the first frame's end). Maybe manually editing the .tex file directly is the best approach? Best regards, John On Thu, Jan 6, 2011 at 3:48 PM, Sunny Srivastava research.b...@gmail.comwrote: Hello Org-mode users: I am still a beginner with org-mode and I am trying to make my first beamer presentation using org-mode exclusively. I had my moments of enlightenment but at the moment I am stuck, please bear with me if my question is very basic. I want to include different background images for different frames. The beamer solution is to use \usebackgroundtemplate. Let's say I want to insert the image on the 2nd frame, I would write the latex code as follows: \end{frame} %% frame 1 ends % Now we install the new template for the following frames: \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png} } \begin{frame} %% frame 2 begins %% This frame will have my_background_image as the background image. \end{frame} % Now we install another template, effective from now on, we will use a different background image \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_different_image.png} } \begin{frame} %% This frame will have my_different_image as the background image. \end{frame} For no image we can simply use \usebackgroundtemplate{}. Currently I tried to replicate this in org by doing something like this * frame 1 - item1 - item2 #+begin_latex \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png} } #+begin_latex * frame 2 This inserts the latex statement before \end{frame} (as expected). Is there a way to get the statement after \end{frame} in the exported .tex file? It would be even better if I can avoid using latex and let org handle this. I am sorry for such a basic query. Thanks in advance for any pointers of help. Much appreciated. Best Regards, S. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Capture template and elisp expression
Carsten Dominik carsten.domi...@gmail.com wrote: [fn:1] Is there an easier way to get the filename of the file I was visiting when I initiated the capture? If not, should there be? Perhaps a %f escape? Hi Nick, you can use (buffer-file-name (org-capture-get :original-buffer)) and we could certainly introduce a special escape for it if helpful. If it is easier, we can also put the filename itself into the property list, and any other information we like. This should happen in the function org-capture, close to the location where the buffer is stored, so near this line: (org-capture-put :original-buffer orig-buf :annotation annotation :initial initial) org-capture uses this property list precisely so that it is simple to add any information required. Note that, after the template has been filled in, it is better to access information in the property list with (org-capture-get PROPERTY 'local) to avoid conflicts with other ongoing capture processes. Hope this helps. It sure does - thanks! 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] [org-beamer] Question: How to insert different background images on different frames
Thank you John. I also tried a bunch of modifications, but could not do it. I thought may be there is a way to handle this through :PROPERTY:, but I am not skilled enough to figure out a way. On Thu, Jan 6, 2011 at 6:27 PM, John Hendy jw.he...@gmail.com wrote: Not sure what to say. I tried several placements and still wound up with the .tex file placing the second background declaration in an ineffective location (either inside the second frame environment or before the first frame's end). Maybe manually editing the .tex file directly is the best approach? Best regards, John On Thu, Jan 6, 2011 at 3:48 PM, Sunny Srivastava research.b...@gmail.comwrote: Hello Org-mode users: I am still a beginner with org-mode and I am trying to make my first beamer presentation using org-mode exclusively. I had my moments of enlightenment but at the moment I am stuck, please bear with me if my question is very basic. I want to include different background images for different frames. The beamer solution is to use \usebackgroundtemplate. Let's say I want to insert the image on the 2nd frame, I would write the latex code as follows: \end{frame} %% frame 1 ends % Now we install the new template for the following frames: \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png} } \begin{frame} %% frame 2 begins %% This frame will have my_background_image as the background image. \end{frame} % Now we install another template, effective from now on, we will use a different background image \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_different_image.png} } \begin{frame} %% This frame will have my_different_image as the background image. \end{frame} For no image we can simply use \usebackgroundtemplate{}. Currently I tried to replicate this in org by doing something like this * frame 1 - item1 - item2 #+begin_latex \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png} } #+begin_latex * frame 2 This inserts the latex statement before \end{frame} (as expected). Is there a way to get the statement after \end{frame} in the exported .tex file? It would be even better if I can avoid using latex and let org handle this. I am sorry for such a basic query. Thanks in advance for any pointers of help. Much appreciated. Best Regards, S. ___ 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] Re: Produce a pdf outline using the latex outline package of the notes in org file
Hi Julius, Julius Gamanyi julius...@gmail.com writes: While adding the changes to the current development code, I ran into an obstacle: I couldn't find org-install.el even with the find command; but org-install.el is part of the stable release. Is org-install.el only added before a stable release or I'm I missing something else? You can create lisp/org-install.el with make lisp/org-install.el Another question: must all the contributions be stored in the contrib directory? I think only contributions from people who haven't signed the FSF papers need to be limited to the contrib directory but Bastien or Carsten would have a more official comment on that. I added the org-latex-outline.el in the lisp directory because all the other output formats, which depended on org-exp.el, org-install.el were in the lisp directory. The org-latex-outline.el also depends on org-latex.el and I wanted to avoid the sorrow of parting them. Maybe there's a better setup that I can use. I'm all ears. In addition, I've already signed the appropriate papers with FSF. Great! Regards, Bernt ___ 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] How do I include text between a range of line numbers with #INCLUDE
I would like to include a part of a file (between a given range of line numbers) instead of the whole file. Is there a way to do that in org-mode? Sincerely, - venkatesh ___ 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: Produce a pdf outline using the latex outline package of the notes in org file
On Jan 7, 2011, at 3:22 AM, Bernt Hansen wrote: Hi Julius, Julius Gamanyi julius...@gmail.com writes: While adding the changes to the current development code, I ran into an obstacle: I couldn't find org-install.el even with the find command; but org-install.el is part of the stable release. Is org-install.el only added before a stable release or I'm I missing something else? You can create lisp/org-install.el with make lisp/org-install.el Another question: must all the contributions be stored in the contrib directory? I think only contributions from people who haven't signed the FSF papers need to be limited to the contrib directory but Bastien or Carsten would have a more official comment on that. The contrib directory contains both stuff where no FSF papers have been signed, and also things where it has not yet been determined if they are generally useful and if they will be used by a significant number of people. Normally such new contributions are added to contrib/lisp, and then moved to lisp/ once it has been decided to do so. So I would recommend that your initial patch puts it into contrib/lisp, with corresponding changes to the org-modules variable in lisp/org.el and in contrib/README. And, if you like, documentation on Worg. This is how I used to handle this - the decision about org-latex-outline.el will of course be made by Bastien. One thing: all files in lisp/ must have names which are unique within the first 8 characters, due to Emacs rules which require unique names for, I believe, MS-DOS. org-latex-outline.el would not fulfill this requirement. Maybe org-ltxol.el or so? Or maybe even better the code can eventually simply be integrated into org-latex.el? - 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