Re: [Orgmode] how to upgrade org-mode version?
Kris, You may have discovered this in the meantime, but I gave you the wrong line for adding the org documentation to your info-path in emacs (so that M-x org-info gets you to the latest docs). It's not (add-to-list 'Info-default-directory-list "/path/to/org/doc") but: (add-to-list 'Info-directory-list "/path/to/org/doc") I don't know how long this has been broken in my own setup, but I just noticed it and thought I'd correct my advice to you. If you actually install org mode to a place that the info commands can find (/usr/local perhaps) you don't need this. But I just put the org repository right in my ~/.emacs.d/vendor/ directory, compile it in place, and leave it there. As long as I add the right paths to the org-mode/lisp and org-mode/doc, everything works. If you use stuff from the org contrib directory, you can also do: (add-to-list 'load-path "/home/you/newpath/org-mode/contrib/lisp") Scot ___ 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] Debate about "One clock per user, but user is identified"
Hi all, In the clock theme, I'm opening another debate, reason of the subject change. This is something I begin to really feel the need for. Let's explain. I've already convinced 3 to 4 of my Emacs (mainly) colleagues to go for Org-mode whenever writing any type of document (to be published via PDFLaTeX). They do it more and more, and we begin working in the same documents, stored under SVN. We begin using CLOCK times under big sections, and that's where the problem occurs: we have no way to distinguish between the times I've clocked there, and the ones of my main colleague. I don't ask for multiple clocks running simultaneously, but (as I currently envision it -- reason for collecting *your* ideas) for an identifier [something like `org-user-identifier'] to be added to the clock lines, so that we can filter based on the user, when multiple people have clocked in the same documents. That'd be good as well for managing a team project: being able to clock people's contribution to different tasks in one big document. Of course, some tasks would be worked on by a couple of persons. What do you think about all this? Best regards, Seb -- Sébastien Vauban ___ 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: Beamer presentation in the document
Hi Eric, "Eric Schulte" wrote: > Sébastien Vauban writes: >> >> 1. How could I use the same table in the slides as in the document, without >>copy/pasting it? >> >>Is there, maybe, some Babel black magic at hand? Export/import? > > The following babel solution should work. I was sure you had "black magic" to provide us with. Thanks a lot (once again)! > It uses a code block to copy the contents of the table into the presentation > on export. I played a bit with this example. Remarks follow. --8<---cut here---start->8--- #+TITLE: Complete Minimal Example #+AUTHOR:Sébastien Vauban #+EMAIL: wxhgmqzgw...@spammotel.com #+DATE: 2010-06-10 #+LANGUAGE: en_US # This code block won't show in any export #+source: echo #+begin_src emacs-lisp :var tab='(("echo")) :exports none tab #+end_src * Document ** Results #+ATTR_LaTeX: align=lr #+tblname: rate-&-interests | Rate (%) | Interests | |--+-| | 3.50 | 2564935.21 | | 4.00 | 2931354.52 | | 4.50 | 3297773.83 | | 5.00 | 3664193.15 | | 5.50 | 4030612.46 | |--+-| | 22.5 | 16488869.17 | #+TBLFM: @7$1=vsum(@-...@-ii)::@7$2=vsum(@-...@-ii) * Presentation Amounts -- here is the table #+call: echo(tab=rate-&-interests) :exports results #+results: echo(tab=rate-&-interests) | Rate (%) | Interests | | 3.5 | 2564935.21 | | 4.0 | 2931354.52 | | 4.5 | 3297773.83 | | 5.0 | 3664193.15 | | 5.5 | 4030612.46 | | 22.5 | 16488869.17 | #+ATTR_LaTeX: align=lr and the small explanation. --8<---cut here---end--->8--- 1. On the echo functionality itself, everything is perfect, but for the horizontal lines that are not echo'ed. 2. For Babel, more generally, some remarks that I have for a while, but always forget to report (as you're allowed to consider them as "details" ;-)): - Babel does not find the tables if the `#+tblname: XXX' instruction is not located at column 0 -- annoying for me, as I try to perfectly align all the text and source code based on `org-indent'-like functionality; - the `results' block is not "naturally" aligned either; - less a detail than the 2 above: would it be possible to leave some text between the `call' and the `results': in this example, so that the `align' statement does not move after the table whenever we `C-c C-c' the block for executing the `echo'? > I think I'll add the "echo" code block in the below example to the library > of babel, so in the future this should work w/o having to include the code > block in the file. I think so as well. This is a must for enabling us to insert slides into a document. And something nobody else (PowerPoint, even plain LaTeX?) can do (AFAIK). Best regards, Seb -- Sébastien Vauban ___ 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: Beamer presentation in the document
Hi, Sébastien Vauban wrote: > 3. How can I easily switch between exporting: >- the document, or >- the slides? > >I guess I must use include/exclude tags? Right? To exclude the slides is done via: --8<---cut here---start->8--- #+EXPORT_EXCLUDE_TAGS: presentation * Introduction * Chapter 1 * Chapter 2 * Conclusion * Presentation :presentation: :PROPERTIES: :LaTeX_CLASS: beamer :LaTeX_CLASS_OPTIONS: [presentation,t] :BEAMER_FRAME_LEVEL: 1 :BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default} :COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra) :END: ** Slide 1 ** Slide 2 --8<---cut here---end--->8--- "To only get the slides" is equivalent to "to exclude the document"; so, one solution can be to tag all the chapters in my document, and exclude such tags. Best regards, Seb -- Sébastien Vauban ___ 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: [Solved] [Orgmode] [Patch] possible Bug: non-interactive publishing (emacs 22.1)
Quoting Sebastian Rose : Sorry for the reply to my own mail. But as Carsten is on vacation, I thought it might make sense to add the `[Patch]' to the subject. This patch fixes batch-mode publishing. Tested in emacs24 like this: sh$ emacs -q -batch --eval='(org-publish "PROJECT_NAME" t)' Hi Sebastian, thanks, the patch works great (emacs 22)!!! That was fast. ___ 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: Daily Habit in time range 23:00 04:00
Alessandro Piras writes: > How can I express a daily habit TODO item that I can fulfill from 11:00PM to > 04:00AM? It is not possible AFAIK, org-habit is only working with whole day intervals. No easy solution comes to my mind. It would be very complex to apply hourly intervals to org-habit I think. Maybe you can try to use the variable `org-extend-today-until' and possibly make your day end at 04:00? Then a daily habit will do the job. * TODO Dayly habit SCHEDULED: <2009-12-15 Tue .+1d> :PROPERTIES: :STYLE:habit :END: I have not tried it myself but the source code of org-habit uses the variable once at least. And it might have other side effects. The end of the doc-string is also very funny :) Please reply if and how you make it work! Cheers! --8<---cut here---start->8--- org-extend-today-until is a variable defined in `org.el'. Its value is 0 Documentation: The hour when your day really ends. Must be an integer. This has influence for the following applications: - When switching the agenda to "today". It it is still earlier than the time given here, the day recognized as TODAY is actually yesterday. - When a date is read from the user and it is still before the time given here, the current date and time will be assumed to be yesterday, 23:59. Also, timestamps inserted in remember templates follow this rule. IMPORTANT: This is a feature whose implementation is and likely will remain incomplete. Really, it is only here because past midnight seems to be the favorite working time of John Wiegley :-) --8<---cut here---end--->8--- -- Mikael Fornius ___ 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] visiting the last node filed from Remember buffer
I have a question below, but first I want to say thanks, to Carsten of course for org-mode, but also to all of you who contribute the great tips and help on this forum. Often, shortly after I've stored a quick note using Remember, I go back to the note where it's been stored and add to it. Is there a convenient way to go to that note, i.e. to the location where Remember most recently stored a note, much as org-refile with two C-u prefixes (C-u C-u C-c C-w) takes me to the destination of the last org-refile? Ken ___ 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: visiting the last node filed from Remember buffer
"Ken Olstad" writes: > I have a question below, but first I want to say thanks, to Carsten of > course for org-mode, but also to all of you who contribute the great > tips and help on this forum. > > Often, shortly after I’ve stored a quick note using Remember, I go back > to the note where it’s been stored and add to it. Is there a > convenient way to go to that note, i.e. to the location where Remember > most recently stored a note, much as org-refile with two C-u prefixes > (C-u C-u C-c C-w) takes me to the destination of the last org-refile? M-x org-remember-goto-last-stored If you'd like to see all the functions related to an org feature (such as org-remember), you can use apropos: C-h a org remember [RET] This is convenient ways to browse all the tools at your disposal. Best, Matt ___ 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: how to upgrade org-mode version?
Scot Becker writes: > Kris, > > You may have discovered this in the meantime, but I gave you the wrong line > for adding the org > documentation to your info-path in emacs (so that M-x org-info gets you to > the latest docs). It's > not > > (add-to-list 'Info-default-directory-list "/path/to/org/doc") > > but: > > (add-to-list 'Info-directory-list "/path/to/org/doc") > > I don't know how long this has been broken in my own setup, but I just > noticed it and thought I'd > correct my advice to you. The first version works if you restart emacs. Info-directory-list is set by Info-default-directory-list once at startup. -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] Re: visiting the last node filed from Remember buffer
Matt Lundin writes: > "Ken Olstad" writes: > >> I have a question below, but first I want to say thanks, to Carsten of >> course for org-mode, but also to all of you who contribute the great >> tips and help on this forum. >> >> Often, shortly after I’ve stored a quick note using Remember, I go back >> to the note where it’s been stored and add to it. Is there a >> convenient way to go to that note, i.e. to the location where Remember >> most recently stored a note, much as org-refile with two C-u prefixes >> (C-u C-u C-c C-w) takes me to the destination of the last org-refile? The same sequence with the remember key works to go to the last remember note filing location. Put a double prefix on your org-remember key sequence If you start remember with C-M-R then C-u C-u C-M-R goes to the last stored note. -Bernt > > M-x org-remember-goto-last-stored > > If you'd like to see all the functions related to an org feature (such > as org-remember), you can use apropos: > > C-h a org remember [RET] > > This is convenient ways to browse all the tools at your disposal. > > Best, > Matt > > ___ > 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] Meta-grouping properties?
Sven Bretfeld wrote: >Hi all > ... >This would be easiest if I could make org aware who actually belongs to >the PR-Group and then just filter the Agenda View for John (or Mary >resp.). >Is that possible? Maybe the tutorial "Org-mode tricks for team management" by Juan Reyero at http://juanreyero.com/article/emacs/org-teams.html can provide a solution to the problem? At least it sounds like a similar problem that is described there. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpeWscmvFOvh.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
Re: [Orgmode] Re: visiting the last node filed from Remember buffer
Whenever I use remember or refile a subtree org-mode automatically sets the bookmarks "org-refile-last-stored" and "org-remember-last-stored". Therefore I can use the standard emacs bookmark system for that ("C-x r l" to list all bookmarks). -- Darlan At Thu, 10 Jun 2010 09:14:27 -0400, Bernt Hansen wrote: > > Matt Lundin writes: > > > "Ken Olstad" writes: > > > >> I have a question below, but first I want to say thanks, to Carsten of > >> course for org-mode, but also to all of you who contribute the great > >> tips and help on this forum. > >> > >> Often, shortly after I’ve stored a quick note using Remember, I go back > >> to the note where it’s been stored and add to it. Is there a > >> convenient way to go to that note, i.e. to the location where Remember > >> most recently stored a note, much as org-refile with two C-u prefixes > >> (C-u C-u C-c C-w) takes me to the destination of the last org-refile? > > The same sequence with the remember key works to go to the last remember > note filing location. > > Put a double prefix on your org-remember key sequence > If you start remember with C-M-R then > C-u C-u C-M-R goes to the last stored note. > > -Bernt > > > > > M-x org-remember-goto-last-stored > > > > If you'd like to see all the functions related to an org feature (such > > as org-remember), you can use apropos: > > > > C-h a org remember [RET] > > > > This is convenient ways to browse all the tools at your disposal. > > > > Best, > > Matt > > > > ___ > > 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
Re: [Orgmode] Re: how to upgrade org-mode version?
On Thu, Jun 10, 2010 at 10:08 AM, Bernt Hansen wrote: > Scot Becker writes: > >> Kris, >> >> You may have discovered this in the meantime, but I gave you the wrong line >> for adding the org >> documentation to your info-path in emacs (so that M-x org-info gets you to >> the latest docs). It's >> not >> >> (add-to-list 'Info-default-directory-list "/path/to/org/doc") >> >> but: >> >> (add-to-list 'Info-directory-list "/path/to/org/doc") >> >> I don't know how long this has been broken in my own setup, but I just >> noticed it and thought I'd >> correct my advice to you. > > The first version works if you restart emacs. Info-directory-list is > set by Info-default-directory-list once at startup. > > -Bernt Unless the environment variable INFOPATH is already set, in which case its value is used to set Info-directory-list (and the value of Info-default-directory-list is simply ignored). In my case, following the documentation on Info-directory-list, I changed the INFOPATH variable in my .profile file (I use bash). Fernando Náufel, D.Sc. fnau...@ic.uff.br http://fnaufel.wordpress.com http://www.uff.br/llarc Professor Adjunto (~Professor Doctor -- see http://en.wikipedia.org/wiki/Professor#Brazil) LLaRC - Laboratório de Lógica e Representação do Conhecimento DCT - Depto. de Ciência e Tecnologia PURO - Pólo Universitário de Rio das Ostras UFF - Universidade Federal Fluminense Brazil -- ___ 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 1/3] Removed unused test function.
* org.el (test): Removed unused test function. --- lisp/org.el |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 5cbd10a..2a2cef9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15571,10 +15571,6 @@ looks only before point, not after." (org-in-regexp "[a-zA-Z]+\\*?\\(\\(\\[[^][\n{}]*\\]\\)\\|\\({[^{}\n]*}\\)\\)*"))) -(defun test () - (interactive) - (message "%s" (org-inside-latex-macro-p))) - (defun org-try-cdlatex-tab () "Check if it makes sense to execute `cdlatex-tab', and do it if yes. It makes sense to do so if `org-cdlatex-mode' is active and if the cursor is -- 1.7.1 ___ 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 2/3] Use save-match-data macro instead of let.
* org.el (org-at-property-p): Use save-match-data macro instead of let. --- lisp/org.el | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 2a2cef9..7715ad7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13198,12 +13198,11 @@ allowed value." (save-excursion (beginning-of-line 1) (when (looking-at (org-re "^[ \t]*\\(:\\([[:alpha:]][[:alnum:]_-]*\\):\\)[ \t]*\\(.*\\)")) - (let ((match (match-data)) ;; Keep match-data for use by calling - (p (point)) ;; procedures. - (range (unless (org-before-first-heading-p) - (org-get-property-block - (prog1 (and range (<= (car range) p) (< p (cdr range))) -(set-match-data match)) + (save-match-data ;; Used by calling procedures + (let ((p (point)) + (range (unless (org-before-first-heading-p) + (org-get-property-block + (and range (<= (car range) p) (< p (cdr range (defun org-get-property-block (&optional beg end force) "Return the (beg . end) range of the body of the property drawer. -- 1.7.1 ___ 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 0/3] No sub/superscript in property keys and two small fixes.
Org-entities is great, thanks! I suggest not to fontify property keywords. I found an easy way to prevent org-mode to fontify sub/superscripts in property keys by skipping text with font eq org-special-keyword. What triggered me was the key :LAST_REPEAT: in org-habit who looked silly. I also stumbled upon an unused, unprefixed function named test which I removed. Earlier I used let instead of save-match-data in my patch to org-at-property-p which I also changed. Feel free to apply these patches to org-mode if you like them. Changes applies to Org-mode version 6.36trans (release_6.36.253.g1546e.dirty) Mikael Fornius (3): Removed unused test function. Use save-match-data macro instead of let. Do not fontify subscripts of property keys. lisp/org.el | 25 +++-- 1 files changed, 11 insertions(+), 14 deletions(-) ___ 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 3/3] Do not fontify subscripts of property keys.
* org.el (org-raise-scripts): Do not fontify sub/superscripts of text with face `org-special-keyword'. Makes property keys as :LAST_REPEAT: display correctly. --- lisp/org.el | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 7715ad7..9c7a427 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5515,14 +5515,16 @@ and subscriipts." org-match-substring-regexp org-match-substring-with-braces-regexp) limit t) - (let* ((pos (point)) table-p comment-p emph-p link-p) - (setq emph-p (get-text-property (match-beginning 3) 'org-emphasis)) - (setq link-p (get-text-property (match-beginning 3) 'mouse-face)) + (let* ((pos (point)) table-p comment-p + (mpos (match-beginning 3)) + (emph-p (get-text-property mpos 'org-emphasis)) + (link-p (get-text-property mpos 'mouse-face)) + (keyw-p (eq 'org-special-keyword (get-text-property mpos 'face (goto-char (point-at-bol)) (setq table-p (org-looking-at-p org-table-dataline-regexp) comment-p (org-looking-at-p "[ \t]*#")) (goto-char pos) - (if (or comment-p emph-p link-p) + (if (or comment-p emph-p link-p keyw-p) t (put-text-property (match-beginning 3) (match-end 0) 'display -- 1.7.1 ___ 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: visiting the last node filed from Remember buffer
So natural, I should have thought of it. Thanks! -Original Message- From: Bernt Hansen [mailto:be...@norang.ca] Sent: Thursday, June 10, 2010 8:14 AM To: Matt Lundin Cc: Ken Olstad; Emacs-orgmode@gnu.org Subject: Re: visiting the last node filed from Remember buffer Matt Lundin writes: > "Ken Olstad" writes: > >> I have a question below, but first I want to say thanks, to Carsten of >> course for org-mode, but also to all of you who contribute the great >> tips and help on this forum. >> >> Often, shortly after I’ve stored a quick note using Remember, I go back >> to the note where it’s been stored and add to it. Is there a >> convenient way to go to that note, i.e. to the location where Remember >> most recently stored a note, much as org-refile with two C-u prefixes >> (C-u C-u C-c C-w) takes me to the destination of the last org-refile? The same sequence with the remember key works to go to the last remember note filing location. Put a double prefix on your org-remember key sequence If you start remember with C-M-R then C-u C-u C-M-R goes to the last stored note. -Bernt > > M-x org-remember-goto-last-stored > > If you'd like to see all the functions related to an org feature (such > as org-remember), you can use apropos: > > C-h a org remember [RET] > > This is convenient ways to browse all the tools at your disposal. > > Best, > Matt > > ___ > 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] Re: visiting the last node filed from Remember buffer
Hi Darlan, Darlan Cavalcante Moreira writes: > Whenever I use remember or refile a subtree org-mode automatically sets the > bookmarks "org-refile-last-stored" and > "org-remember-last-stored". Therefore I can use the standard emacs bookmark > system for that ("C-x r l" to list all bookmarks). Nice. Could you explain more into details how do you automatically create the bookmark? This could go in Worg: http://orgmode.org/worg/org-hacks.php -- 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: how to upgrade org-mode version?
Thanks for the follow-up, I corrected my config. When I ran "M-x org-info" I saw the message "Info-find-file: Info file org does not exist". Running "make info" to produce the org info file resolved this. ___ 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: Beamer presentation in the document
Hi Sébastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >> Sébastien Vauban writes: >>> >>> 1. How could I use the same table in the slides as in the document, without >>>copy/pasting it? >>> >>>Is there, maybe, some Babel black magic at hand? Export/import? >> >> The following babel solution should work. > > I was sure you had "black magic" to provide us with. Thanks a lot (once > again)! > > >> It uses a code block to copy the contents of the table into the presentation >> on export. > > I played a bit with this example. Remarks follow. > > #+TITLE: Complete Minimal Example > #+AUTHOR:Sébastien Vauban > #+EMAIL: wxhgmqzgw...@spammotel.com > #+DATE: 2010-06-10 > #+LANGUAGE: en_US > > # This code block won't show in any export > #+source: echo > #+begin_src emacs-lisp :var tab='(("echo")) :exports none > tab > #+end_src > > * Document > > ** Results > >#+ATTR_LaTeX: align=lr > #+tblname: rate-&-interests >| Rate (%) | Interests | >|--+-| >| 3.50 | 2564935.21 | >| 4.00 | 2931354.52 | >| 4.50 | 3297773.83 | >| 5.00 | 3664193.15 | >| 5.50 | 4030612.46 | >|--+-| >| 22.5 | 16488869.17 | >#+TBLFM: @7$1=vsum(@-...@-ii)::@7$2=vsum(@-...@-ii) > > * Presentation > > Amounts -- here is the table > #+call: echo(tab=rate-&-interests) :exports results > > #+results: echo(tab=rate-&-interests) > | Rate (%) | Interests | > | 3.5 | 2564935.21 | > | 4.0 | 2931354.52 | > | 4.5 | 3297773.83 | > | 5.0 | 3664193.15 | > | 5.5 | 4030612.46 | > | 22.5 | 16488869.17 | > #+ATTR_LaTeX: align=lr > > and the small explanation. > Great points Thanks. > > 1. On the echo functionality itself, everything is perfect, but for >the horizontal lines that are not echo'ed. > hlines are preservable with the :hlines header argument, see the example below [1]. Were working on integrating the babel documentation in the org-mode documentation which should really help in terms of making these more exotic header arguments accessible/discoverable to users. > > 2. For Babel, more generally, some remarks that I have for a while, >but always >forget to report (as you're allowed to consider them as "details" ;-)): > >- Babel does not find the tables if the `#+tblname: XXX' instruction is not > located at column 0 -- annoying for me, as I try to perfectly align all > the text and source code based on `org-indent'-like functionality; > Good catch, this has been fixed. > >- the `results' block is not "naturally" aligned either; > Again, thanks for pointing this out. This has been fixed for results which already have an indented #+results: line, for the first time a block is run the results will not be indented currently, although it would probably be worthwhile to default to indenting the results to the same level as the code block -- I'll add this as a TODO. > >- less a detail than the 2 above: would it be possible to leave >some text between the `call' and the `results': in this example, so >that the `align' statement does not move after the table whenever >we `C-c C-c' the block for executing the `echo'? > See the example below [1], is it sufficient to squeeze the #+results line in between the #+attr_latex line and the table? If not I'll update the results handling so that we allow preservation of comment lines between #+results and it's contents. > > >> I think I'll add the "echo" code block in the below example to the library >> of babel, so in the future this should work w/o having to include the code >> block in the file. > > I think so as well. This is a must for enabling us to insert slides into a > document. And something nobody else (PowerPoint, even plain LaTeX?) can do > (AFAIK). > done. Thanks for all the great feedback! -- Eric > > Best regards, > Seb Footnotes: [1] --8<---cut here---start->8--- #+TITLE: Complete Minimal Example #+AUTHOR:Sébastien Vauban #+EMAIL: wxhgmqzgw...@spammotel.com #+DATE: 2010-06-10 #+LANGUAGE: en_US # This code block won't show in any export #+source: echo #+begin_src emacs-lisp :var tab='(("echo")) :exports none tab #+end_src * Document ** Results #+ATTR_LaTeX: align=lr #+tblname: rate-&-interests | Rate (%) | Interests | |--+-| | 3.50 | 2564935.21 | | 4.00 | 2931354.52 | | 4.50 | 3297773.83 | | 5.00 | 3664193.15 | | 5.50 | 4030612.46 | |--+-| | 22.5 | 16488869.17 | #+TBLFM: @7$1=vsum(@-...@-ii)::@7$2=vsum(@-...@-ii) * Presentation Amounts -- here is the table #+call: echo(tab=rate-&-interests) :exports results :hlines yes #+ATTR_LaTeX: align=lr #+results: echo(tab=rate-&-interests) | Rate (%) | Interests | |--+-| | 3.5 | 2564935.21 | | 4
[Orgmode] (require 'cl) seems not to be compiled
Hello, some time ago I had a problem with agenda pdf export due to flet macro not found, which could be worked around by putting (require 'cl) in .emacs. http://comments.gmane.org/gmane.emacs.orgmode/21837 Carsten Dominik pointed out this is unnecessary because of (eval-when-compile (require 'cl)) in the sources. But I still can't get it to work on several different systems with Ubuntu. It doesn't seem to be compiled in. - I think I can rule out version conflicts, never installed system wide anymore and on a new installation of Ubuntu 10.04 32bit with Emacs 23.1.1 (i486) from the repositories. -- That means: unzipping org-6.36c.zip and doing a simple make in the resulting directory, didn't change the makefile. - no errors or significant warnings during the make process - tried to remove all .el files from the lisp subdirectory to make sure that only .elc files are loaded. Do I have to edit the makefile for installing org as normal user in my home directory, so that the compiler finds cl.el or something? Everything else seems to work, though, but there might be performance issues or other instabilities when something is not compiled correctly, and, of course, orgmode is all about perfectonism ;) So, again, the steps until the error occurs are -load org file with C-x C-f -display agenda with C-c a a -try to export: C-x C-w agenda.pdf --> Symbol's function definition is void: flet The test org file contains * Item 1 ** Item 1.1 <2010-06-12 Sa> * Item 2 ** TODO Item 2.1 SCHEDULED: <2010-06-10 Do> My .emacs: (setq load-path (cons "~/app/org-6.36c/lisp" load-path)) (setq load-path (cons "~/app/org-6.36c/contrib/lisp" load-path)) (require 'org-install) ;;(require 'cl) (setq org-directory "~/orgfiles/") ;;(global-font-lock-mode 1) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(inhibit-startup-screen t) '(initial-buffer-choice nil) '(org-agenda-files (quote ("~/orgfiles/test.org"))) '(scroll-bar-mode (quote right))) (setq visible-bell t) (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (global-set-key "\C-c1" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (org-remember-insinuate) (setq org-default-notes-file (concat org-directory "/notes.org")) (define-key global-map "\C-cr" 'org-remember) ;; htmlize from contrib ;;(add-to-list 'load-path "~/app/org-6.36c/contrib/lisp") ;;(require 'htmlize) ; Enable habit tracking (setq org-modules (quote (org-habit))) ; global STYLE property values for completion (setq org-global-properties (quote (("STYLE_ALL" . "habit" ; position the habit graph on the agenda to the right of the default (setq org-habit-graph-column 50) ; TODO state logging (setq org-log-done 'time) ; save clock history across Emacs sessions (setq org-clock-persist 'history) (org-clock-persistence-insinuate) ;;(setq org-agenda-exporter-settings ;; '((ps-number-of-columns 2) ;; (ps-landscape-mode t) ;; (org-agenda-add-entry-text-maxlines 5) ;; (htmlize-output-type 'css))) ___ 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: lists, maths and export to latex
Hello, With the following minimal example, the list isn't properly exported to latex (please note there is no problem with html). The culprit is obviously the equation split across two lines at the end of the first item. --- * Example 1. A line full of text and an equation at the very end of it. \(a = 3\). 2. Second item --- is exported as --- \section{Example} \label{sec-1} 1. A line full of text and an equation at the very end of it. \(a = 3\). \begin{enumerate} \item Second item \end{enumerate} --- Tested on latest git. Thanks, -- Nicolas ___ 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 inline images patch
"Colin Fraizer" writes: > I use org-mode on Windows 7. It seems that the regexp for image files > excludes the ":" (colon) character. Could it be added to this: > "[-+./_0-9a-zA-Z]+" > to make this > "[-+./:_0-9a-zA-Z]+" > ? > I use a regexp for image files that adds characters often found in Windows paths, as shown in the following patch in function org-toggle-inline-images: --8<---cut here---start->8--- diff --git a/lisp/org.el b/lisp/org.el old mode 100644 new mode 100755 index ba4ea63..ef8a06c --- a/lisp/org.el +++ b/lisp/org.el @@ -15923,7 +15923,7 @@ BEG and END default to the buffer boundaries." (widen) (setq beg (or beg (point-min)) end (or end (point-max))) (goto-char (point-min)) - (let ((re (concat "\\[\\[\\(\\(file:\\)\\|\\([./~]\\)\\)\\([-+~./_0-9a-zA-Z]+" + (let ((re (concat "\\[\\[\\(\\(file:\\)\\|\\([./~]\\)\\)\\([-+~.:/\\_0-9a-zA-Z ]+" (substring (org-image-file-name-regexp) 0 -2) "\\)\\]" (if include-linked "" "\\]"))) old file ov img) --8<---cut here---end--->8--- It adds ':', space and backslash to the set of characters, so that things like the following work (org-insert-link sometimes inserts mixed back and forward slashes): --8<---cut here---start->8--- [[file:c:/cygwin/usr/share/pixmaps/xterm-color_48x48.xpm]] [[~/projects/appointment-soon.png]] [[file:c:\Documents and Settings\ggrubbs\projects/appointment-soon.png]] --8<---cut here---end--->8--- > -Original Message- > From: emacs-orgmode-bounces+orgmode=cfraizer@gnu.org > [mailto:emacs-orgmode-bounces+orgmode=cfraizer@gnu.org] On Behalf Of > Carsten Dominik > Sent: Tuesday, June 01, 2010 9:37 AM > To: Russell Adams > Cc: emacs-orgmode > Subject: Re: [Orgmode] Display inline images patch > > Hi Russel, > > looks like you are not running the latest version, I think this is > already fixed > > > - Carsten > > On May 31, 2010, at 9:30 PM, Russell Adams wrote: > >> I got irritated by my point jumping to the end of the buffer every >> time I toggled inline image display, so lets save excursion. ;] >> >> $ diff -Narub org.el~ org.el >> --- org.el~ 2010-05-20 10:12:45.0 -0500 >> +++ org.el2010-05-31 14:28:21.0 -0500 >> @@ -15489,6 +15489,7 @@ >> is how it will work for export. When INCLUDE-LINKED is set, also >> links >> with a description part will be inlined." >> (interactive "P") >> + (save-excursion >> (org-remove-inline-images) >> (goto-char (point-min)) >> (let ((re (concat "\\[\\[\\(file:\\|\\./\\)\\(~?" >> "[-+./_0-9a-zA-Z]+" >> @@ -15501,7 +15502,7 @@ >> (setq ov (make-overlay (match-beginning 0) (match-end 0))) >> (overlay-put ov 'display (create-image file)) >> (overlay-put ov 'face 'default) >> - (push ov org-inline-image-overlays) >> + (push ov org-inline-image-overlays)) >> >> (defun org-remove-inline-images () >> "Remove inline display of images." >> >> >> >> >> >> >> -- >> Russell Adamsrlad...@adamsinfoserv.com >> >> PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ >> >> Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 >> >> ___ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - 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 ___ 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: visiting the last node filed from Remember buffer
Sébastien Vauban writes: >> This could go in Worg: > > This is automatically done. Did not know about this, but yes it's there (in > the bookmark list, when `C-x r l'), without having set anything special. Aaarrgh! I *love* Org. -- 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: Beamer presentation in the document
Hi Eric, "Eric Schulte" wrote: > Sébastien Vauban writes: >> "Eric Schulte" wrote: >>> Sébastien Vauban writes: 1. How could I use the same table in the slides as in the document, without copy/pasting it? >>> >>> The following babel solution should work. >>> It uses a code block to copy the contents of the table into the presentation >>> on export. >> >> I played a bit with this example. Remarks follow. >> >> 1. On the echo functionality itself, everything is perfect, but for >>the horizontal lines that are not echo'ed. > > hlines are preservable with the :hlines header argument, see the example > below [1]. OK. Thanks. > Were working on integrating the babel documentation in the org-mode > documentation which should really help in terms of making these more > exotic header arguments accessible/discoverable to users. Now that's we (/ I) can't live anymore without both of them, it'd clearly be great having a unified documentation. >> 2. For Babel, more generally, some remarks that I have for a while, >>but always >>forget to report (as you're allowed to consider them as "details" ;-)): >> >>- Babel does not find the tables if the `#+tblname: XXX' instruction is >> not >> located at column 0 -- annoying for me, as I try to perfectly align all >> the text and source code based on `org-indent'-like functionality; > > Good catch, this has been fixed. Simply great. It caused me some minutes to understand why tables were reported as not found... >>- the `results' block is not "naturally" aligned either; > > Again, thanks for pointing this out. This has been fixed for results > which already have an indented > > #+results: > > line That's already great. > for the first time a block is run the results will not be indented > currently, although it would probably be worthwhile to default to indenting > the results to the same level as the code block -- I'll add this as a TODO. Less important, even if nice when it will be there. >>- less a detail than the 2 above: would it be possible to leave >>some text between the `call' and the `results': in this example, so >>that the `align' statement does not move after the table whenever >>we `C-c C-c' the block for executing the `echo'? > > See the example below [1], is it sufficient to squeeze the #+results > line in between the #+attr_latex line and the table? If not I'll update > the results handling so that we allow preservation of comment lines > between #+results and it's contents. Why only preserving comment lines? Why couldn't we imagine having the code somewhere and the results much farther? Even twice the results -- that'd be a work around for the echo command. >>> I think I'll add the "echo" code block in the below example to the library >>> of babel, so in the future this should work w/o having to include the code >>> block in the file. >> >> I think so as well. This is a must for enabling us to insert slides into a >> document. And something nobody else (PowerPoint, even plain LaTeX?) can do >> (AFAIK). > > done. Thanks a lot. I'll update tomorrow morning and test all of this. > Thanks for all the great feedback! -- Eric *Thank you very much*. Reporting is quite easy. Making it happen much less. Thanks a lot for your continuous help, and quick resolution of my problems. Best regards, Seb -- Sébastien Vauban ___ 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: visiting the last node filed from Remember buffer
Hi Bastien, Bastien wrote: > Darlan Cavalcante Moreira writes: > >> Whenever I use remember or refile a subtree org-mode automatically sets the >> bookmarks "org-refile-last-stored" and >> "org-remember-last-stored". Therefore I can use the standard emacs bookmark >> system for that ("C-x r l" to list all bookmarks). > > Nice. Could you explain more into details how do you automatically > create the bookmark? > > This could go in Worg: This is automatically done. Did not know about this, but yes it's there (in the bookmark list, when `C-x r l'), without having set anything special. Best regards, Seb -- Sébastien Vauban ___ 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: Beamer presentation in the document
Hi Sébastien, Sébastien Vauban writes: [...] >> for the first time a block is run the results will not be indented >> currently, although it would probably be worthwhile to default to indenting >> the results to the same level as the code block -- I'll add this as a TODO. > > Less important, even if nice when it will be there. > This should be possible now -- I've done a fairly thorough examination of the Org-babel code and tried to ensure that *everything* works well with indentation. It's very possible I've introduced some bugs in the process, please let me know if you find any. > >>>- less a detail than the 2 above: would it be possible to leave >>>some text between the `call' and the `results': in this example, so >>>that the `align' statement does not move after the table whenever >>>we `C-c C-c' the block for executing the `echo'? >> >> See the example below [1], is it sufficient to squeeze the #+results >> line in between the #+attr_latex line and the table? If not I'll update >> the results handling so that we allow preservation of comment lines >> between #+results and it's contents. > > Why only preserving comment lines? Why couldn't we imagine having the code > somewhere and the results much farther? Even twice the results -- that'd be a > work around for the echo command. > This is another feature which may not be well enough advertised. If a code block is named, then we already allow the block and it's results to live arbitrarily far apart as long as they're in the same buffer e.g. [1]. That allows for separation of code and results which I think is an important feature. What I don't want to separate by too far is the #+results: name line, and the actual results. Mainly because the purpose of that #+results: line is to identify the results. Given that I think allowing a continuous string of comment lines between a #+results and it's target e.g. --8<---cut here---start->8--- #+results: time # some comment about the time : Thu Jun 10 14:48:09 2010 : Thu Jun 10 14:47:58 2010 --8<---cut here---end--->8--- is acceptable, but I think allowing arbitrary distance between them subverts the purpose of the #+results: line. I hope that sheds some light on this issue. Please let me know if you agree/disagree of if you do think comment separation like the above does make sense, in which case I'll add it to the queue. Cheers -- Eric > > I think I'll add the "echo" code block in the below example to the library of babel, so in the future this should work w/o having to include the code block in the file. >>> >>> I think so as well. This is a must for enabling us to insert slides into a >>> document. And something nobody else (PowerPoint, even plain LaTeX?) can do >>> (AFAIK). >> >> done. > > Thanks a lot. I'll update tomorrow morning and test all of this. > > >> Thanks for all the great feedback! -- Eric > > *Thank you very much*. Reporting is quite easy. Making it happen much less. > Thanks a lot for your continuous help, and quick resolution of my problems. > Thanks, it's always a please hacking on Org-mode. -- Eric > > Best regards, > Seb Footnotes: [1] --8<---cut here---start->8--- * top #+results: time : Thu Jun 10 14:48:09 2010 : Thu Jun 10 14:47:58 2010 ** subheading #+srcname: time #+begin_src emacs-lisp :results prepend (current-time-string) #+end_src --8<---cut here---end--->8--- ___ 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: visiting the last node filed from Remember buffer
If I understand correctly, there's no hack, it's just what remember does (sets the bookmark) to implement org-remember-goto-last-stored. Cool. -Original Message- From: Bastien Guerry [mailto:bastiengue...@googlemail.com] On Behalf Of Bastien Sent: Thursday, June 10, 2010 11:10 AM To: Darlan Cavalcante Moreira Cc: Bernt Hansen; Ken Olstad; Matt Lundin; Emacs-orgmode@gnu.org Subject: Re: [Orgmode] Re: visiting the last node filed from Remember buffer Hi Darlan, Darlan Cavalcante Moreira writes: > Whenever I use remember or refile a subtree org-mode automatically sets the > bookmarks "org-refile-last-stored" and > "org-remember-last-stored". Therefore I can use the standard emacs bookmark > system for that ("C-x r l" to list all bookmarks). Nice. Could you explain more into details how do you automatically create the bookmark? This could go in Worg: http://orgmode.org/worg/org-hacks.php -- 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] Rescheduling an item works properly only if SCHEDULED is after the heading
I sometimes move the SCHEDULED keyword after textual content of a heading, because for me the content is more important to see than the keyword which is a technical detail of org implementation. The problem is if I use org-schedule on such a heading to reschedule the task then it inserts a new SCHEDULED keyword after the heading instead of modifying the existing keyword after the text content. Isn't it a bug? Shouldn't org always modify the existing keyword like it does when the keyword is immediately after the heading? Org-mode version 6.36 ___ 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