Re: [O] :var problems with R
Hi Neuwirth, On Thu, Jun 21, 2012 at 8:14 AM, Neuwirth Erich wrote: > The following works > #+name: xvar > #+begin_src emacs-lisp > "ahaRx" > #+end_src Why are you not using something that you know works? Try the following for example. #+name: xvar |"ahaRx"| #+name: myblock #+begin_src R :var xxx=xvar xxx #+end_src #+RESULTS: myblock : ahaRx As I understand it, Babel can read from tables and lists only. Actually, to me, reading from a block of text doesn't make much sense for a source block. What kind of data structure would it represent (other than a long string of course :-p)? GL -- Suvayu Open source is the future. It sets us free.
Re: [O] Beginner's question
Hi Erich, Neuwirth Erich wrote: > Can anybody explain why my example does not work? > > #+TBLNAME: example-table > |1| > |2| > |3| > |4| > #+NAME: table-length > #+BEGIN_SRC emacs-lisp :var table=example-table > (length table) > #+END_SRC > > #+RESULTS: table-length > : 4 > #+name: xvar > 123 > #+name: myblock > #+begin_src emacs-lisp :var xxx=xvar > (* xxx xxx) > #+end_src > > I need to pass string constants and numeric values o code segments this way. Put a `:' in front of your value. That way, Babel can locate and read the value. #+name: xvar : 123 #+name: myblock #+begin_src emacs-lisp :var xxx=xvar (* xxx xxx) #+end_src #+results: myblock : 15129 Best regards, Seb -- Sebastien Vauban
Re: [O] [Feature Request] org-mobile edit:add nodes
Henning Weiss gmail.com> writes: > > > On Tue, May 22, 2012 at 7:54 PM, Bastien gnu.org> wrote: > > > Hi Henning, > > Henning Weiss gmail.com> writes: > > I have refined the edit nodes patch. Aaron Peromsik has helped me > > with developing and testing it. He hasn't reported any problems with > > it and I have been using it for a couple of weeks now without > > experiencing any problems. > Thanks. Can someone else test this patch? I'm not using org-mobile.el. > > To make the testing of the new edit nodes more attractive, someone could compile the new editnodes branch from mobileorg-android. This branch adds support for refiling, deleting and archiving nodes. Further explanation can be found here. > > Henning > > For what it's worth, I have continued using the editnodes branch of mobileorg for Android along with Henning's editnodes patches for org-mode, and I have not had trouble with adding, deleting, or editing nodes. (Though as I have mentioned, it would be nice if there were a way to configure it to put new nodes at the top of the nodes at a given level instead of the bottom.) -- Aaron
Re: [O] Format a whole column using ";%.2f" in orgtbl?
Am Freitag, 15. Juni 2012, 19:01:35 schrieb Michael Brand: > Hi Alexander > > On Fri, Jun 15, 2012 at 4:34 PM, AW wrote: > > [...] > > > > Desired outoput: > > | 100.00 | Value | > > | 150.00 | Value | > > > > #+TBLFM: $1=%s;%.2f > > > > [...] > > What you tried would be > > | 100.00 | Value | > | 150.00 | Value | > > #+TBLFM: $1=$0;%.2f > > $0 is the current table field. What I recommend is > > | 100.00 | Value | > | 150.00 | Value | > > #+TBLFM: $1 = $0 +.0; f-2 > > because of the behavior I explained in the tables shown here: > http://orgmode.org/worg/org-faq.html#table-float-fraction > > Michael O.K., thank you very much for your help. This is a nice trick! Unfortunately, my tables have other formulas than only one: | Values | Desc. | |+---| | 100.00 | Value | | 150.00 | Value | | 250. | sum | |+---| | 500. | End | #+TBLFM: @4$1=@2$1+@3$1::@5$1=vsum(@I..@II)::$1=$0 +.0; f-2 I get at least every number in column 1 with a dot, but without ".00", as needed: *Do I have to ad '; f-2' to every formula?* And besides that, I've never seen this description "f-2". Is it explained somewhere for non-mathematicians? You know, if there are differences between this and ";%.2f", I should better be aware of them. Regards Alexander
Re: [O] Beginner's question
On Thu, Jun 21, 2012 at 10:53 AM, Sebastien Vauban wrote: > Put a `:' in front of your value. That way, Babel can locate and read the > value. I didn't know about this syntax! Thanks a lot. :) -- Suvayu Open source is the future. It sets us free.
Re: [O] Beginner's question
Hi Suvayu, suvayu ali wrote: > On Thu, Jun 21, 2012 at 10:53 AM, Sebastien Vauban > wrote: >> Put a `:' in front of your value. That way, Babel can locate and read the >> value. > > I didn't know about this syntax! Thanks a lot. :) It simply is the way short results (a few lines) are presented... No black magic ;-) Best regards, Seb -- Sebastien Vauban
[O] Invalid function: with-parsed-tramp-file-name with Perl
Hi, When I try to run a Perl script remotely via ":dir", I get the following error: ,- | org-babel-local-file-name: Invalid function: with-parsed-tramp-file-name `- However, using the same remote host I can successfully run both R and bash scripts. There was a thread couple of years ago where this function cropped up: http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg01712.html but there seemed to be no real resolution and it occurred with version 7.01trans and a bleeding edge emacs 24. I am using Org 7.8.11 with Emacs 23.2.1. Any ideas? Loris
[O] [BUG] Export of sub- and superscripts to LaTeX inconsistent in tables?
Hello! When I use superscripts/subscripts in tables, they are incorrectly exported to LaTeX -- the placement of math-mode marks ($), braces ({, }) seems mixed up. As an example an excerpt of my current laboratory book. | Calculation | Zn layers | E_tot [eV/atom] (new) | (interpolated) | \Delta{}E_tot [meV/atom] | |-+---+--++---| [...] The energy difference \Delta{}E_tot seems [...] This gets exported as: \begin{center} \begin{tabular}{l} Calculation & Zn layers & E_tot [eV/atom] (new) & (interpolated) & \D\ elta\{}E_tot [meV/atom] \\ \hline \end{tabular} \end{center} The energy difference $\Delta${}E$_{\mathrm{tot}}$ seems [\ldots{}] Outside the table it works as expected. You can see 3 errors in the export of "\Delta{}E_tot" to latex in the table: 1. There are no $ marks. During PDF-Conversion this causes "! Extra }, or forgotten $" messages. 2. The braces around the subscript are missing -- only the first character thus is recognized as a subscript by (pdf)latex. 3. For some reason, the opening brace after Delta is escaped. The problem doesn't depend on the specific case of a LaTeX entity before the subscript (i.e. \Delta{}). It occurs too throughout the document for combinations like "E_gb", though of course the escaped brace ( \{} ) doesn't occur there. When explicitly writing "E_{tot}" in the table, this was exported as "E_\{tot\}", which is just as unexpected. I tested this with a freshly pulled version from the git repository and with the org-mode sample above as the contents of a minimal file with the same result. king regards, Yu
Re: [O] Setting Face of clocking info in Modeline
Achim Gratz writes: > Nick Dokos writes: >> That's not right - it went in with commit 37fafb7b and git says: >> >> $ git describe 37fafb7b >> release_7.8.09-248-g37fafb7 > > Git describe by default describes from the object pointed to until the > next annotated tag. Annotated tags live in the maint branch, not in > master for org. So what the above means is "the relase tag on maint for > 7.8.09 plus 248 more commits on master". > >> so it should certainly be in 7.8.11: > > No. That commit was done on master and has not yet been merged or > cherry-picked into maint, so it is not in any release yet. > > > Regards, > Achim. It's definitely in release_7.8.11 (git commit 6cddf74). lisp/org-clock.el, line 340: --8<---cut here---start->8--- (defcustom org-clock-clocked-in-display 'mode-line _docstring_ :group 'org-clock :type '(choice (const :tag "Mode line" mode-line) (const :tag "Frame title" frame-title) (const :tag "Both" both) (const :tag "None" nil))) --8<---cut here---end--->8--- Followign a link to gitweb. (Sorry for the long link): [1]: http://orgmode.org/w/?p=org-mode.git;a=blob;f=lisp/org-clock.el;h=70c015b38f0a121d313c4d8ead17354da5e6c235;hb=6cddf7425096a743c02b9a17ad8e12b61f514210#l340 Cheers, Moritz Ulrich -- Moritz Ulrich
Re: [O] Setting Face of clocking info in Modeline
Achim Gratz wrote: > Nick Dokos writes: > > That's not right - it went in with commit 37fafb7b and git says: > > > > $ git describe 37fafb7b > > release_7.8.09-248-g37fafb7 > > Git describe by default describes from the object pointed to until the > next annotated tag. Annotated tags live in the maint branch, not in > master for org. So what the above means is "the relase tag on maint for > 7.8.09 plus 248 more commits on master". > > > so it should certainly be in 7.8.11: > > No. That commit was done on master and has not yet been merged or > cherry-picked into maint, so it is not in any release yet. > > OK - thanks for explaining. Time to find out more about tags. Sorry for the noise. Nick
Re: [O] Invalid function: with-parsed-tramp-file-name with Perl
Loris Bennett wrote: > Hi, > > When I try to run a Perl script remotely via ":dir", I get the following > error: > > ,- > | org-babel-local-file-name: Invalid function: with-parsed-tramp-file-name > `- > > However, using the same remote host I can successfully run both R and > bash scripts. > > There was a thread couple of years ago where this function cropped up: > > http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg01712.html > > but there seemed to be no real resolution and it occurred with version > 7.01trans and a bleeding edge emacs 24. I am using Org 7.8.11 with > Emacs 23.2.1. > > Any ideas? > Try adding (require 'tramp) in your .emacs somewhere (probably before you load org but it should not be too sensitive). Does that solve it? If so, then it should probably be added to ob.el for a permanent solution. Nick
Re: [O] Setting Face of clocking info in Modeline
Moritz Ulrich googlemail.com> writes: > It's definitely in release_7.8.11 (git commit 6cddf74). That particular tag is on the wrong side of the merge (on master, not on maint). Again, if you want that particular commit, you need to pull from master, not from maint and not any release published so far. Achim.
Re: [O] [BUG] Export of sub- and superscripts to LaTeX inconsistent in tables?
Yu wrote: > Hello! > > When I use superscripts/subscripts in tables, they are incorrectly > exported to LaTeX -- the placement of math-mode marks ($), braces ({, > }) seems mixed up. > > As an example an excerpt of my current laboratory book. > > > | Calculation | Zn layers | E_tot [eV/atom] (new) | > (interpolated) | \Delta{}E_tot [meV/atom] | > |-+---+--++---| > [...] > The energy difference \Delta{}E_tot seems [...] > > > This gets exported as: > > \begin{center} > \begin{tabular}{l} > Calculation & Zn layers & E_tot [eV/atom] (new) & (interpolated) & > \D\ > elta\{}E_tot [meV/atom] \\ > \hline > \end{tabular} > \end{center} > > > The energy difference $\Delta${}E$_{\mathrm{tot}}$ seems [\ldots{}] > > > Outside the table it works as expected. > > You can see 3 errors in the export of "\Delta{}E_tot" to latex in the table: > 1. There are no $ marks. During PDF-Conversion this causes > "! Extra }, or forgotten $" messages. > 2. The braces around the subscript are missing -- only the first > character thus is > recognized as a subscript by (pdf)latex. > 3. For some reason, the opening brace after Delta is escaped. > > The problem doesn't depend on the specific case of a LaTeX entity > before the subscript (i.e. \Delta{}). It occurs too throughout the > document for combinations like "E_gb", though of course the escaped > brace ( \{} ) doesn't occur there. > > When explicitly writing "E_{tot}" in the table, this was exported as > "E_\{tot\}", which is just as unexpected. > > I tested this with a freshly pulled version from the git repository > and with the org-mode sample above as the contents of a minimal file > with the same result. > I think you'll be happier with the new exporter: it does this correctly I think, and if you find other problems, I'm sure Nicolas will be happy to fix them. At the risk of putting words into Bastien's mouth, I would say that at this point, the old latex exporter should probably be considered unmaintained: nobody is putting much time into it. To use the new exporter, see a post of mine from a couple of days ago: http://thread.gmane.org/gmane.emacs.orgmode/56993/focus=57007 HTH, Nick
[O] graphics size
In org-mode for R I am using something like :results output graphics :file first.png :exports both and in the block then here is a plot command. How can I control the dimensions of first.png?
Re: [O] [dev] About a beamer back-end
Hello, Eric S Fraga writes: >> See `org-element-drag-backward' and `org-element-drag-forward'. > > Okay. Will it be easy to bind these to M- etc. to achieve > consistent behaviour? I.e. does org-metaup know what to do with > blocks? I hope that, one day, they will replace current `org-metaup' and `org-metadown'. If you want to try them out (there has been no serious debugging for them), you can (defalias 'org-metaup 'org-element-drag-backward) `org-element-drag-backward' is a strict super-set for `org-metaup'. > As a point for discussion and evaluation, attached is an example slide > (both org and pdf) demonstrating the type of thing I tend to do for some > of my beamer documents. Thanks for this example, and for feedback from other Org users. Although more logical, it appears that the block syntax for Beamer wouldn't be that great. Nested blocks are hard to parse (by a human) due to their uniform fontification (contrary to headlines, whose fontification change at every level). Also, the syntax is very heavy. Not more than property drawers, but, at least, you can hide those. I'll keep headlines for blocks. But I think I'll introduce a couple of small changes. - Sectioning and packages are extracted from `org-e-latex-classes'. Since calling Beamer back-end is explicit, it can be applied on any tex file, not only when that file starts with "\documentclass{beamer}". Additionally, an equivalent to `org-beamer-use-parts' is unnecessary. - An headline at `org-e-beamer-frame-level' level becomes a frame, unless it has the "noframe" tag. In that case, its contents are inserted between surrounding frames. - Any headline above that level has a block type (depending on the BEAMER_env property). Without that property, the headline is still a block ("\begin{block}{title}...\end{block}"). - Since above some level, everything is a block, there is no "low level headline" anymore. Thus, the H:num OPTION item sets `org-e-beamer-frame-level'. There's no use for BEAMER_FRAME_LEVEL keyword. It also means you can't make lists out of headlines. - An headline below `org-e-beamer-frame-level' with an "appendix" tag becomes an appendix part. - An headline with a "note" tag becomes a note between frames if at `org-e-beamer-frame-level', within current frame otherwise. - There is no separate syntax for \alert{} command: it is the default output for bold objects (i.e. *text* becomes \alert{text}). - Obviously, all special tags specified in this list are customizable. Unfortunately I cannot get rid of "normal" environment property. There is also some work to do on overlays and, perhaps, links. But let's start with headlines first. Regards, -- Nicolas Goaziou
[O] Setting a deadline in a template
I'm sure there's a simple answer to this but i can't seem to tease it out of the on-line docs. I want to set up a capture template for entering incoming work that automatically sets a deadline for the item when it's entered. Ideally, I'd like it to set a deadline 4 business hours in the future of the current time, but that's a tricky calculation and I'd settle for current time plus a day. I've tried the naive approach: ... DEADLINE: %T+1 ... Doesn't work so well. What's the proper way? Thanks, maaab -- Michael Baum You should never have your best trousers on when you go out to fight for freedom and truth. - Ibsen
Re: [O] [dev] About a beamer back-end
Nicolas Goaziou writes: > - There is no separate syntax for \alert{} command: it is the default > output for bold objects (i.e. *text* becomes \alert{text}). Would bold then be archived with some other markup? Or would it just not be possible to get bold text (without defaulting to \bold{·})? The noframe tag sounds good. Perhaps a pause tag would also be nice. –Rasmus -- C is for Cookie
Re: [O] [dev] About a beamer back-end
Hi Nicolas, First, a big thank you for your work on this as well... Here, inline, a couple of quick remarks... Nicolas Goaziou wrote: > Eric S Fraga writes: > >>> See `org-element-drag-backward' and `org-element-drag-forward'. >> >> Okay. Will it be easy to bind these to M- etc. to achieve >> consistent behaviour? I.e. does org-metaup know what to do with >> blocks? > > I hope that, one day, they will replace current `org-metaup' and > `org-metadown'. > > If you want to try them out (there has been no serious debugging for > them), you can > > (defalias 'org-metaup 'org-element-drag-backward) > > `org-element-drag-backward' is a strict super-set for `org-metaup'. > >> As a point for discussion and evaluation, attached is an example slide >> (both org and pdf) demonstrating the type of thing I tend to do for some >> of my beamer documents. > > Thanks for this example, and for feedback from other Org users. > > Although more logical, it appears that the block syntax for Beamer > wouldn't be that great. Nested blocks are hard to parse (by a human) > due to their uniform fontification (contrary to headlines, whose > fontification change at every level). > > Also, the syntax is very heavy. Not more than property drawers, but, at > least, you can hide those. > > I'll keep headlines for blocks. But I think I'll introduce a couple of > small changes. OK! > - Sectioning and packages are extracted from `org-e-latex-classes'. > Since calling Beamer back-end is explicit, it can be applied on any > tex file, not only when that file starts with > "\documentclass{beamer}". Additionally, an equivalent to > `org-beamer-use-parts' is unnecessary. I did not understand that one. > - An headline at `org-e-beamer-frame-level' level becomes a frame, > unless it has the "noframe" tag. In that case, its contents are > inserted between surrounding frames. I never needed that -- yet --, but this is surely a great addition. I'm wondering, though, how you support the special case of "beamer frame level" set to 0, where we need to add the tag "B_frame" (in fact, the property) to show where the frame really begins. > - Any headline above that level has a block type (depending on the > BEAMER_env property). Without that property, the headline is still > a block ("\begin{block}{title}...\end{block}"). > > - Since above some level, everything is a block, there is no "low level > headline" anymore. Thus, the H:num OPTION item sets > `org-e-beamer-frame-level'. There's no use for BEAMER_FRAME_LEVEL > keyword. It also means you can't make lists out of headlines. > > - An headline below `org-e-beamer-frame-level' with an "appendix" tag > becomes an appendix part. Nice. > - An headline with a "note" tag becomes a note between frames if at > `org-e-beamer-frame-level', within current frame otherwise. Not used yet (in pure Beamer neither), but that's the following step on my todo list... > - There is no separate syntax for \alert{} command: it is the default > output for bold objects (i.e. *text* becomes \alert{text}). I liked the fact we had 2 types of highlighting (bold, in black, and alert, in red, in my case). I would say that, as Beamer has those 2 different highlightings, we should be able to still support both. Is this a problem?[1] > - Obviously, all special tags specified in this list are customizable. > > Unfortunately I cannot get rid of "normal" environment property. There > is also some work to do on overlays and, perhaps, links. But let's > start with headlines first. Fantastic work! Thanks a lot. Best regards, Seb [1] I've even done the opposite: I now have an `alert' macro as well in my normal documents. -- Sebastien Vauban
Re: [O] Invalid function: with-parsed-tramp-file-name with Perl
Nick Dokos writes: > Loris Bennett wrote: > >> Hi, >> >> When I try to run a Perl script remotely via ":dir", I get the following >> error: >> >> ,- >> | org-babel-local-file-name: Invalid function: with-parsed-tramp-file-name >> `- >> >> However, using the same remote host I can successfully run both R and >> bash scripts. >> >> There was a thread couple of years ago where this function cropped up: >> >> http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg01712.html >> >> but there seemed to be no real resolution and it occurred with version >> 7.01trans and a bleeding edge emacs 24. I am using Org 7.8.11 with >> Emacs 23.2.1. >> >> Any ideas? >> > > Try adding > > (require 'tramp) > > in your .emacs somewhere (probably before you load org but it should > not be too sensitive). Does that solve it? No, unfortunately not. I get the same error. > If so, then it should probably be added to ob.el for a permanent solution. > > Nick > > -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de
Re: [O] Invalid function: with-parsed-tramp-file-name with Perl
Loris Bennett wrote: > Nick Dokos writes: > > > Loris Bennett wrote: > > > >> Hi, > >> > >> When I try to run a Perl script remotely via ":dir", I get the following > >> error: > >> > >> ,- > >> | org-babel-local-file-name: Invalid function: with-parsed-tramp-file-name > >> `- > >> > >> However, using the same remote host I can successfully run both R and > >> bash scripts. > >> > >> There was a thread couple of years ago where this function cropped up: > >> > >> http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg01712.html > >> > >> but there seemed to be no real resolution and it occurred with version > >> 7.01trans and a bleeding edge emacs 24. I am using Org 7.8.11 with > >> Emacs 23.2.1. > >> > >> Any ideas? > >> > > > > Try adding > > > > (require 'tramp) > > > > in your .emacs somewhere (probably before you load org but it should > > not be too sensitive). Does that solve it? > > No, unfortunately not. I get the same error. Maybe it has something to do with the declaration in ob.el then (line 43): (declare-function with-parsed-tramp-file-name "tramp" (filename var &rest body)) with-parsed-tramp-file-name is a macro, not a function. Can you try commenting out that line in ob.el and checking again? Not sure what mayhem will ensue, but who knows? Nick
Re: [O] Setting a deadline in a template
Michael Baum wrote: > I'm sure there's a simple answer to this but i can't seem to tease it out of > the on-line docs. I > want to set up a capture template for entering incoming work that > automatically sets a deadline for > the item when it's entered. Ideally, I'd like it to set a deadline 4 business > hours in the future of > the current time, but that's a tricky calculation and I'd settle for current > time plus a day. > > I've tried the naive approach: > ... > DEADLINE: %T+1 > ... > > Doesn't work so well. What's the proper way? > Off the top of my head, I suspect you will need to write your own function to produce the template you want. Nick
Re: [O] Setting a deadline in a template
Something like: (format-time-string (car org-time-stamp-formats) (time-add (current-time) (seconds-to-time (* days 60 60 24 Sylvain.
Re: [O] graphics size
Neuwirth Erich writes: > In org-mode for R I am using something like > > :results output graphics :file first.png :exports both > > and in the block then here is a plot command. > > How can I control the dimensions of first.png? Please see http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html#sec-3-1 In particular, :height, :width, :units, and :res All the best, Tom > > > In org-mode for > R I am using something like:results output graphics :file > first.png :exports bothand in the block then > here is a plot command.How can I control the dimensions of first.png? -- Thomas S. Dye http://www.tsdye.com
Re: [O] [dev] About a beamer back-end
Hello, Rasmus writes: >> - There is no separate syntax for \alert{} command: it is the default >> output for bold objects (i.e. *text* becomes \alert{text}). > > Would bold then be archived with some other markup? Or would it just > not be possible to get bold text (without defaulting to \bold{·})? You have six different markups to play with: * _ + / = ~. You can associate bold to any one. By default, I think alert is sufficiently close to bold so it can replace it. Any other choice would be surprising. > The noframe tag sounds good. Do you have any example of the use you have in mind? I don't know what kind of contents one would like add between frames (excepted notes). > Perhaps a pause tag would also be nice. Yes, that's an idea to keep for overlays. Regards, -- Nicolas Goaziou
Re: [O] :var problems with R
Neuwirth Erich writes: > The following works > #+name: xvar > #+begin_src emacs-lisp > "ahaRx" > #+end_src > > #+RESULTS: xvar > : ahaR > #+name: myblock > #+begin_src R :var xxx=xvar > xxx > #+end_src > > #+RESULTS: myblock > : ahaRx > > But when I replace emacs-lisp with R in the first code block, it does > not work any more. > I think it should because R also returns the character value in that case. > > Any ideas? > This works here: #+name: xvar #+begin_src R "ahaRx" #+end_src #+RESULTS: xvar : ahaRx #+name: myblock #+begin_src R :var xxx=xvar xxx #+end_src #+RESULTS: myblock : ahaRx You don't say what doesn't work, which makes it difficult to diagnose what might be going wrong on your end. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Format a whole column using ";%.2f" in orgtbl?
Hi Alexander On Thu, Jun 21, 2012 at 12:15 PM, AW wrote: > | Values | Desc. | > |+---| > | 100.00 | Value | > | 150.00 | Value | > | 250. | sum | > |+---| > | 500. | End | > #+TBLFM: @4$1=@2$1+@3$1::@5$1=vsum(@I..@II)::$1=$0 +.0; f-2 > > I get at least every number in column 1 with a dot, but without ".00", as > needed: The ending dot is Calc syntax and means a float with fraction 0. > *Do I have to ad '; f-2' to every formula?* Yes, else the Calc result is inserted without change. There is a formula debugger that shows the formatting steps nicely: "C-c {" The "+.0" is necessary too to convert Calc integer to Calc float for some cases as shown in the example tables here: http://orgmode.org/worg/org-faq.html#table-float-fraction All together: #+TBLFM: @4$1=@2$1+@3$1 +.0; f-2::@5$1=vsum(@I..@II) +.0; f-2::$1=$0 +.0; f-2 This is what I recommend just in general and what I do always myself as a habit because it can deal also with higher precision or the case when those of the fields resulting in an empty string should remain empty instead of a "0.00". If you don't want to be prepared for all that, for your current example you can still use just #+TBLFM: @4$1=@2$1+@3$1;%.2f::@5$1=vsum(@I..@II);%.2f::$1=$0;%.2f > And besides that, I've never seen this description "f-2". Is it explained > somewhere for non-mathematicians? For an explanation see the URLs to the Calc manual mentioned here http://orgmode.org/worg/org-faq.html#table-float-fraction after "For f3 and f-3 see `d f' (`calc-fix-notation')". Michael
Re: [O] [dev] About a beamer back-end
Nicolas Goaziou writes: >> The noframe tag sounds good. > Do you have any example of the use you have in mind? I don't know > what > kind of contents one would like add between frames (excepted notes). - If you are to repeat frames - Imagine a complicated tikz picture which you don't want to render twice. - If you use the source for an article (beamer-article), and some content is only meant for the article version and not indented for slides. >> Perhaps a pause tag would also be nice. > Yes, that's an idea to keep for overlays. –Rasmus -- May the Force be with you
Re: [O] [dev] About a beamer back-end
Hi Nicolas, On Thu, Jun 21, 2012 at 4:37 PM, Nicolas Goaziou wrote: > > If you want to try them out (there has been no serious debugging for > them), you can > > (defalias 'org-metaup 'org-element-drag-backward) > > `org-element-drag-backward' is a strict super-set for `org-metaup'. > I will try this out today. > I'll keep headlines for blocks. But I think I'll introduce a couple of > small changes. > > - Sectioning and packages are extracted from `org-e-latex-classes'. > Since calling Beamer back-end is explicit, it can be applied on any > tex file, not only when that file starts with > "\documentclass{beamer}". Additionally, an equivalent to > `org-beamer-use-parts' is unnecessary. > This would be a welcome addition in line with the org philosophy of org documents being backend agnostic. > - An headline at `org-e-beamer-frame-level' level becomes a frame, > unless it has the "noframe" tag. In that case, its contents are > inserted between surrounding frames. > In one of your follow-up replies you mention you are not sure what could be the use case. The beamer package has the option handout, that allows one to produce handouts for your slides with text in between frames included in the final pdf. This addition would make that process as simple as adding the handout option to beamer and recompiling the latex source! > - Any headline above that level has a block type (depending on the > BEAMER_env property). Without that property, the headline is still > a block ("\begin{block}{title}...\end{block}"). > This is also a very nice addition. > - Since above some level, everything is a block, there is no "low level > headline" anymore. Thus, the H:num OPTION item sets > `org-e-beamer-frame-level'. There's no use for BEAMER_FRAME_LEVEL > keyword. It also means you can't make lists out of headlines. > This will again cleanup the syntax and make it more uniform across backends. :) > - An headline below `org-e-beamer-frame-level' with an "appendix" tag > becomes an appendix part. > I would appreciate this feature a lot! > - An headline with a "note" tag becomes a note between frames if at > `org-e-beamer-frame-level', within current frame otherwise. > > - There is no separate syntax for \alert{} command: it is the default > output for bold objects (i.e. *text* becomes \alert{text}). > I am a little apprehensive about this. Bold is something I use (and see others use) frequently in presentations. I would suggest changing the choice to something that is less used in presentations. The `_' markup could be a good candidate or one of the two `=' or `~' could be used (since they render to something very similar in the pdf). But this is not an important point; as long as this is configurable, I'm happy. :) > - Obviously, all special tags specified in this list are customizable. > A huge thank you for all the wonderful and hard work you have put in. :) -- Suvayu Open source is the future. It sets us free.
Re: [O] :var problems with R
Meanwhile I learned that #+name: xvar : waterfall #+name: myblock #+begin_src R :var xxx=xvar print(xxx) #+end_src #+RESULTS: myblock : waterfall ans so will #+name: xvar2 : water #+name: myblock2 #+begin_src R :var xxx=xvar2 xxx #+end_src #+RESULTS: myblock2 : water The critical missing piece for me was the colon in front of the value in a name definition. I wanted this because I am running a project on different machines, and I want to give the name od subdirectories through this mechanism. Ir seems cleaner than using code in a programming language when we just need constants. And I explained the problem seems to be that a value returned by R in a named block is not accessible as a named "variable". In this case, I would rather stay with R which I need anyhow and I have to explain to my coworkers. Using emacs-lisp additionally would just make things harder to understand fore some of the project members. This also works now #+name: rvar #+begin_src R "raha" #+end_src #+RESULTS: rvar : raha #+name: rvartest #+begin_src R :var xxx=rvar xxx #+end_src I had misunderstood something there.
Re: [O] Format a whole column using ";%.2f" in orgtbl?
Hi Michael Thank you very much for your quick, qualified and satisfying answer! Alexander > Hi Alexander > > On Thu, Jun 21, 2012 at 12:15 PM, AW wrote: > > | Values | Desc. | > > | > > |+---| > > | > > | 100.00 | Value | > > | 150.00 | Value | > > | > > | 250. | sum | > > | > > |+---| > > | > > | 500. | End | > > > > #+TBLFM: @4$1=@2$1+@3$1::@5$1=vsum(@I..@II)::$1=$0 +.0; f-2 > > > > I get at least every number in column 1 with a dot, but without ".00", as > > > needed: > The ending dot is Calc syntax and means a float with fraction 0. > > > *Do I have to ad '; f-2' to every formula?* > > Yes, else the Calc result is inserted without change. There is a > formula debugger that shows the formatting steps nicely: "C-c {" > > The "+.0" is necessary too to convert Calc integer to Calc float for > some cases as shown in the example tables here: > http://orgmode.org/worg/org-faq.html#table-float-fraction > > All together: > #+TBLFM: @4$1=@2$1+@3$1 +.0; f-2::@5$1=vsum(@I..@II) +.0; f-2::$1=$0 +.0; > f-2 > > This is what I recommend just in general and what I do always myself > as a habit because it can deal also with higher precision or the case > when those of the fields resulting in an empty string should remain > empty instead of a "0.00". If you don't want to be prepared for all > that, for your current example you can still use just > > #+TBLFM: @4$1=@2$1+@3$1;%.2f::@5$1=vsum(@I..@II);%.2f::$1=$0;%.2f > > > And besides that, I've never seen this description "f-2". Is it explained > > somewhere for non-mathematicians? > > For an explanation see the URLs to the Calc manual mentioned here > http://orgmode.org/worg/org-faq.html#table-float-fraction > after "For f3 and f-3 see `d f' (`calc-fix-notation')". > > Michael
[O] Bug: org-clone-subtree-with-time-shift adds a empty :ID:-textline [7.8.11]
Hallo all, when I do a org-clone-subtree-with-time-shift command, it adds up a "left over" line with just ":ID:" in it. The most simple way to produce it is with cloning just a single TODO item like this on: .. TODO Trockenstellen SCHEDULED: <2012-12-30 Son> :PROPERTIES: :ID: 81f8d39d-5c69-4acf-88c4-add66c5ac46d :END: .. will produce by cloning 2 times with +1d shift that one with a extra empty :ID: line in each clone. .. TODO Trockenstellen SCHEDULED: <2012-12-31 Mon> :PROPERTIES: :ID: :ID: 945ac3a6-9217-448c-86d0-19941ad3bb9b :END: TODO Trockenstellen SCHEDULED: <2013-01-01 Die> :PROPERTIES: :ID: :ID: 430edfc4-8144-4420-976b-ef5a32665cdb :END: . This happens only if the 1st entry has a :ID: line, where the org-clone-subtree-with-time-shift get called. The :ID: line gets added in the versions 7.8.11 and 7.8.9 The versions 6.33x and 7.01g from the debian installation dont have that bug. Markus -- Emacs : GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-12-11 on brahms, modified by Debian Package: Org-mode version 7.8.11 current state: == (setq org-log-done 'time org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-agenda-files '("~/Org/") org-mobile-post-pull-hook '((lambda nil (shell-command "scp ~/Org/stage/mobileorg.org hetzi@140.78.94.22:/home/staff/hetzi/Org/MobileOrg/") ) ) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-directory "~/Org/" org-tag-alist '(("TA" . 116)) org-babel-pre-tangle-hook '(save-buffer) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-mobile-pre-pull-hook '((lambda nil (shell-command "scp hetzi@140.78.94.22:/home/staff/hetzi/Org/MobileOrg/mobileorg.org /home/staff/hetzi/Org/stage/ ") ) ) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((src org-babel-exp-non-block-elements)) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-occur-hook '(org-first-headline-recenter) org-mobile-post-push-hook '((lambda nil (shell-command "scp -r ~/Org/stage/* hetzi@140.78.94.22:/home/staff/hetzi/Org/MobileOrg/") ) ) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) )
Re: [O] Checkboxes for description lists
Hello Nicolas, Nicolas Goaziou wrote: > "Sebastien Vauban" writes: >> Nicolas Goaziou wrote: >>> "Sebastien Vauban" writes: >>> It seems we can't put footnotes in the left part of the description. Is it intended? Could that restriction be removed? >>> >>> That's not really intended, and the fix is easy, but I have a question >>> first: how would it be rendered in LaTeX? >>> >>> Apparently, >>> >>> "\item[tag text\footnote{contents}] item's contents" >>> >>> isn't valid. >> >> I would then say just after the [...] part, so that it stays closer to where >> we want to put it. >> >> But, then, you'll say the user can already do that. True. > > I've added support for footnote references in item tags. Since it's > quite tricky in LaTeX back-end (as much as nested footnote references), > I'd appreciate if you could test it and tell me if it works as expected. I don't think it works as expected: --8<---cut here---start->8--- - C-c C-e[1] :: Appelle le dispatcher - C-c a[2] a :: Appelle l'agenda * Footnotes [1] E pour export [2] C-c a est un préfixe commun à beaucoup de commandes --8<---cut here---end--->8--- gets exported to: --8<---cut here---start->8--- \begin{itemize} \item C-c C-e\footnote{E pour export } :: Appelle le dispatcher \item C-c a\footnote{C-c a est un préfixe commun à beaucoup de commandes } a :: Appelle l'agenda \end{itemize} --8<---cut here---end--->8--- That is, not as a description list... Best regards, Seb [1] DEFINITION NOT FOUND: 1 [2] DEFINITION NOT FOUND: 2 -- Sebastien Vauban
Re: [O] [bug] Text macros don't get replaced
On Jun 20, 2012, at 6:34 AM, Nicolas Goaziou wrote: > Hello, > > "Sebastien Vauban" > writes: > >> I'm using text macros, and want them to be replaced both in the text body, >> but >> as well in the title or date of the document: >> >> #+MACRO: thesoft ABC >> #+MACRO: thedate November 2011 >> >> #+TITLE: Data Sheet: {{{thesoft}}} >> #+AUTHOR:{{{thesoft}}} >> #+DATE: Copyright (c) {{{thedate}}} >> >> With the new LaTeX exporter, it does work for TITLE and AUTHOR, but not for >> DATE. > > It should be fixed in master. Thank you. Any chance of getting them to work in Clocktable and/or Dynamic Block lines? Example: #+MACRO: when lastweek #+TITLE: Summary Report for {{{when}}} * Clock Report for {{{when}}} #+BEGIN: clocktable :block {{{when}}}
Re: [O] [dev] About a beamer back-end
Hello, "Sebastien Vauban" writes: >> - Sectioning and packages are extracted from `org-e-latex-classes'. >> Since calling Beamer back-end is explicit, it can be applied on any >> tex file, not only when that file starts with >> "\documentclass{beamer}". Additionally, an equivalent to >> `org-beamer-use-parts' is unnecessary. > > I did not understand that one. At the moment, beamer exporter is hooked into regular latex exporter when latex class is "beamer". This restriction is unnecessary when you consider beamer as an independent back-end (i.e. you can call beamer export even on your "article" setup). > I'm wondering, though, how you support the special case of "beamer frame > level" set to 0, where we need to add the tag "B_frame" (in fact, the > property) to show where the frame really begins. Would you mind providing an example for that? I am not aware of that special case. > I liked the fact we had 2 types of highlighting (bold, in black, and > alert, in red, in my case). > > I would say that, as Beamer has those 2 different highlightings, we should be > able to still support both. Is this a problem? Not really a problem, but Org limits text markup to six elements. You can easily choose to use another one for bold (i.e. with filters), though. Regards, -- Nicolas Goaziou
[O] Unable to edit time in timestamps
Hi everybody, I'm an absolute beginner with emacs and orgmode. When I insert a timestamp using C-u C-c . I'm unable to edit the time using S-left or S-right even when cursor is placed in the right end of the timestamp. Even in this case, S-left and S-right changes the date. I'm using aquamacs (emacs 24.1) with orgmode 7.8.11 Can somebody help me ? Thanks a lot for this beautiful pice of software Alawin
Re: [O] **: Re: [dev] About a beamer back-end
Hi Nicolas, > "Sebastien Vauban" writes: > >>> - Sectioning and packages are extracted from `org-e-latex-classes'. >>> Since calling Beamer back-end is explicit, it can be applied on any >>> tex file, not only when that file starts with >>> "\documentclass{beamer}". Additionally, an equivalent to >>> `org-beamer-use-parts' is unnecessary. >> >> I did not understand that one. > > At the moment, beamer exporter is hooked into regular latex exporter > when latex class is "beamer". This restriction is unnecessary when you > consider beamer as an independent back-end (i.e. you can call beamer > export even on your "article" setup). Cool... >> I'm wondering, though, how you support the special case of "beamer frame >> level" set to 0, where we need to add the tag "B_frame" (in fact, the >> property) to show where the frame really begins. > > Would you mind providing an example for that? I am not aware of that > special case. For sure, I'm willing to do so. Here an ECM of that feature: --8<---cut here---start->8--- #+TITLE: "Free" beamer frame level #+OPTIONS: H:3 num:t toc:t #+startup: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation,t] #+BEAMER_HEADER_EXTRA: \usetheme{PaloAlto}\usecolortheme{default} #+BEAMER_FRAME_LEVEL: 0 * Introduction ** Slide 1 :B_frame: :PROPERTIES: :BEAMER_env: frame :END: - =BEAMER_FRAME_LEVEL: 0= gives you some flexibility in deciding what is and isn't a frame. - For example, this frame is directly located under the section "Introduction". * Analysis ** Client *** Slide 2 :B_frame: :PROPERTIES: :BEAMER_env: frame :END: - This frame is located under the section "Analysis", subsection "Client". *** Slide 3 :B_frame: :PROPERTIES: :BEAMER_env: frame :END: - You explicitly have to say which headlines are a frame by setting the =BEAMER_env: frame= property. ** Supplier *** Slide 4 :B_frame: :PROPERTIES: :BEAMER_env: frame :END: - This becomes visible through the =B_frame= tag (visual aid only). * Conclusion ** Slide 5 :B_frame: :PROPERTIES: :BEAMER_env: frame :END: - This frame is directly located under the section "Conclusion". - No need to create a (stupidly) redundant subsection called "Conclusion"... --8<---cut here---end--->8--- >> I liked the fact we had 2 types of highlighting (bold, in black, and >> alert, in red, in my case). >> >> I would say that, as Beamer has those 2 different highlightings, we should be >> able to still support both. Is this a problem? > > Not really a problem, but Org limits text markup to six elements. You > can easily choose to use another one for bold (i.e. with filters), > though. Sorry to insist, but I don't think it's a good idea to suppress the distinction between alert (generally mapped to @ in private Org configurations) and bold (*). If I follow your advice, to get back the bold, I would have to override another symbol, like + for example. Not mentioning the fact it won't be standard (if I ever distribute my Org file), but I can't export my slides once to Beamer PDF, once to a standard document PDF without seeing big differences in the interpretation of the symbols. While, on the contrary, if we have an apart symbol for alert (apart from bold, as foreseen in Beamer), and if we include such a line for the standard PDF export: \providecommand{\alert}[1]{\textbf{#1}} or, better \providecommand{\alert}[1]{{\textcolor{red}{\bfseries{#1 we win on both sides (we can export to both Beamer and standard doc with both bold and alert differentiated), don't we? Best regards, Seb -- Sebastien Vauban
Re: [O] Unable to edit time in timestamps
Alain Winter wrote: > Hi everybody, > > I'm an absolute beginner with emacs and orgmode. When I insert a > timestamp using C-u C-c . I'm unable to edit the time using S-left or > S-right even when cursor is placed in the right end of the > timestamp. Even in this case, S-left and S-right changes the date. > I'm using aquamacs (emacs 24.1) with orgmode 7.8.11 > That's correct: the docs say so too. > Can somebody help me ? > What happens if you put the cursor *on* the hour part of the time stamp and press S-up or S-down? e.g. here v <2012-06-20 Wed 20:10> ^ (hope the ascii art makes it). Nick
Re: [O] using an exported zotero library with org-mode
Hello Myles, Myles English writes: > Do you know if it exports the collection's (pdf) files too or just a > .bib file? No it doesn't. I wonder what is the purpose of retrieving pdfs from a collection., Since even after retrieval from zotero, (in rdf format) Its hard to search/open a needed pdf file. In any case if retrieval of a collection is important, one easy way to it would be using pyzotero[1][2]. > 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? No, It only syncs one way i.e., references from zotero collection to bib. Nothing more. Footnotes: [1] https://github.com/urschrei/pyzotero [2] http://pyzotero.readthedocs.org/en/latest/#retrieving-collections Yagnesh
Re: [O] Error when changing todo-state [7.8.11]
Am 20.6.2012 schrieb Nick Dokos: > Eric S Fraga wrote: > > "state" has been changed to "org-state". > > That's probably the cause of the problem, but there is still the question > of whether "state" is used in some customization that the OP has done > or whether there are inconsistencies in the update (i.e. old bits lying > around and being used in preference to the new ones). > > Nick > Changing "state" to "org-state" in org-checklist.el solved the problem. Thank you, Eric and Nicholas, for your hints! Salome
[O] BBDB Sync (Was: Re: [Orgmode] Re: contact management in org-mode?)
I was searching through the list archives when I came across this old thread. I thought I would point out some recent developments in the BBDB world that might be of general interest to Emacs users. I am the author of a sync tool that can perform bi-directional sync between MS Outlook / Google Contacts / Emacs BBDB. You can set up a sync profile between any folder in one of those with any folder in any of the other two. It's been released to the bbdb-info audience, and it seems to be working quite well (no complaints yet of ASynK eating up peoples contacts.) Give it a shot by visiting the project page at: http://karra-asynk.appspot.com/ Further, BBDB v3 is getting ready to come out of alpha status, as per a recent mail on bbdb-info by the current maintainer Roland Winkler. All in all, there is some action on the BBDB side of the world, and this is a great time for the faithful to return to the fold :) -Karra -- *From*: Darlan Cavalcante Moreira*Subject*:Re: [Orgmode] Re: contact management in org-mode? *Date*:Sun, 25 Oct 2009 10:51:07 -0300*User-agent*:Wanderlust/2.15.6 (Almost Unreal) Emacs/23.1 Mule/6.0 (HANACHIRUSATO) -- If there was someway to sync (two-way) bbdb with google contacts all problems would be solved for me, since I can sync my phone with google contacts and Evolution can read/write from/to google contacts (although nowadays I use wanderlust in Emacs instead of evolution, which obviously can use bbdb). Darlan At Sun, 25 Oct 2009 02:04:18 -0400, Charles Philip Chan wrote: >* * >* Russell Adams writes:* >* * >* > I'm migrating out of it as fast as I can. The import/export tools are* >* > terrible / nonexistant unless you know elisp,* >* * >* Have you tried any of these.* >* * >* http://www.emacswiki.org/emacs/BbdbImporters* >* http://www.emacswiki.org/emacs/BbdbExporters* >* * >* ?* >* * >* I am currently using bbdb-vcard-import.el and bbdb-vcard-export.el with* >* no problems. I have also used bbdb-rf.el in the past.* >* * >* Charles* >* * >* -- * >* Linux: Because a PC is a terrible thing to waste.* >* (By address@hidden, Mark Komarinski)*
[O] Org Mode TOOD two way sync tool
I am the author of ASynK (http://karra-asynk.appspot.com), a PIM sync tool and framework written in python that works across a variety of PIM providers such as Outlook, Google and BBDB. I am considering extending ASynK to do a bi-directional sync of Outlook tasks to Org Mode tasks. To be able to do this I need a working read/write API for reading and creating TODOs in org mode. *"Offline parsers"* My first preference is to be able to parser org files without required Emacs - this is the approach that I have implemented for BBDB sync. I considered PyOrgMode (https://github.com/bjonnh/PyOrgMode/network), but it appears unable to process TODOs, or even recurring events. To be able to extend PyOrgMode so I can read and write TODOs, I needed a full description of the format of TODO entries in all its forms. The Org manual itself has this information, I'm sure but scattered all over the place, given its real audience. Can someone point me to some sort of a concise representation, if any, of the org file format grammar? *org-protocol* * * By quickly reading the documentation I figured that org-protocol can be used to create entries, but is there a way to use it to do generic queries like "list all TODOs in a specified file, with a particular property value" and such? Any help is much appreciated. -Karra