[O] Babel-R TBLFM example

2014-06-24 Thread Shiyuan
Hi all, I am looking at the Babel R example in http://orgmode.org/worg/org-tutorials/org-R/org-R.html This short example show how to use code block in Org Tables. The example first makes an org-mode table, which I can follow and reproduce the result: #+name: tbl-example-data() #+begin_src R r

[O] org-ref in action

2014-06-24 Thread Leu Zhe
Thanks John, I have been using it for a while. It is a fantastic tool for org-mode to organize the bib. Great thanks again.

Re: [O] still seeing semi-regular lockups

2014-06-24 Thread Matt Lundin
Matt Lundin writes: > Eric Abrahamsen writes: > >> Nicolas Goaziou writes: >> >>> Hello, >>> >>> Eric Abrahamsen writes: >>> None of those three, I'm afraid! It was hanging on a variety of editing operations that, as far as I can tell, had little in common. There's a possibility

Re: [O] still seeing semi-regular lockups

2014-06-24 Thread Matt Lundin
Eric Abrahamsen writes: > Nicolas Goaziou writes: > >> Hello, >> >> Eric Abrahamsen writes: >> >>> None of those three, I'm afraid! It was hanging on a variety of editing >>> operations that, as far as I can tell, had little in common. There's a >>> possibility that they were list-item-related,

Re: [O] Passing values by reference to src-blocks

2014-06-24 Thread Thorsten Jolitz
Eric Schulte writes: >> Wrong usage of :var or limitations of header arguments? > > This is to be expected. The two blocks above compose to something like > > #+begin_src emacs-lisp > (file-name-nondirectory >(file-name-directory > (directory-file-name > (file-

Re: [O] Passing values by reference to src-blocks

2014-06-24 Thread Thorsten Jolitz
Thorsten Jolitz writes: > Hi List, > > this does not work, although I would think it should (at least if there > is no typo or so): > > , > | #+name: project-root > | #+header: :var buf-file=(buffer-file-name) > | #+begin_src emacs-lisp > | (file-name-directory > | (directory-file-name > |

Re: [O] Passing values by reference to src-blocks

2014-06-24 Thread Eric Schulte
Thorsten Jolitz writes: > Hi List, > > this does not work, although I would think it should (at least if there > is no typo or so): > I think everything is doing what it is supposed to from an Org-mode perspective, see below (with different functions). #+name: plus-foo #+header: :var buf-file=

Re: [O] How to treat string results of src-block calls like text in export?

2014-06-24 Thread Thorsten Jolitz
t...@tsdye.com (Thomas S. Dye) writes: Hi Thomas, > I use this a lot in my work, but hadn't tried it in a headline. I tried > it with the call line in a headline and that works, too. This subtree > is in a file called personal.org. > > * Jolitz > > #+name: project-name > #+header: :exports none

Re: [O] How to treat string results of src-block calls like text in export?

2014-06-24 Thread Thomas S. Dye
Aloha Thorsten, Thorsten Jolitz writes: > t...@tsdye.com (Thomas S. Dye) writes: > > Hi Thomas, > >> Thorsten Jolitz writes: >> >>> Hi List, >>> >>> with this org file >>> >>> , >>> | #+name: project-name >>> | #+header: :exports none >>> | #+begin_src emacs-lisp >>> | (mapconcat >>> |

Re: [O] org-ref in action

2014-06-24 Thread Matt Lundin
John Kitchin writes: > org-ref has basically stabilized. You can get the latest code at > https://github.com/jkitchin/jmax/blob/master/org-ref.org. > > I made a little screen capture video here to show you what it does: > https://www.youtube.com/watch?v=JyvpSVl4_dg > > Try it out, if it looks int

Re: [O] How to treat string results of src-block calls like text in export?

2014-06-24 Thread Thorsten Jolitz
t...@tsdye.com (Thomas S. Dye) writes: Hi Thomas, > Thorsten Jolitz writes: > >> Hi List, >> >> with this org file >> >> , >> | #+name: project-name >> | #+header: :exports none >> | #+begin_src emacs-lisp >> | (mapconcat >> |'capitalize >> |(split-string >> | (file-name-nond

[O] Passing values by reference to src-blocks

2014-06-24 Thread Thorsten Jolitz
Hi List, this does not work, although I would think it should (at least if there is no typo or so): , | #+name: project-root | #+header: :var buf-file=(buffer-file-name) | #+begin_src emacs-lisp | (file-name-directory | (directory-file-name | (file-name-directory buf-file))) | #+end_src

Re: [O] How to treat string results of src-block calls like text in export?

2014-06-24 Thread Thomas S. Dye
Aloha Thorsten, Thorsten Jolitz writes: > Hi List, > > with this org file > > , > | #+name: project-name > | #+header: :exports none > | #+begin_src emacs-lisp > | (mapconcat > |'capitalize > |(split-string > | (file-name-nondirectory > | (directory-file-name > | (f

[O] How to treat string results of src-block calls like text in export?

2014-06-24 Thread Thorsten Jolitz
Hi List, with this org file , | #+name: project-name | #+header: :exports none | #+begin_src emacs-lisp | (mapconcat |'capitalize |(split-string | (file-name-nondirectory | (directory-file-name | (file-name-directory |(buffer-file-name (current-buffer) |

Re: [O] org-ref in action

2014-06-24 Thread Ista Zahn
John, This is simply amazing. I think this covers basically every item on my org-mode reference handling wish list. It's really great, thank you! Will this be on Melpa soon? -Ista On Tue, Jun 24, 2014 at 2:45 PM, John Kitchin wrote: > Hello everyone, > > org-ref has basically stabilized. You

Re: [O] Enabling another language in org-babel

2014-06-24 Thread G. Jay Kerns
Great work, Ista! Cheers, Jay -- G. Jay Kerns, Ph.D. Youngstown State University http://gkerns.people.ysu.edu/ On 06/24/14 15:52, Ista Zahn wrote: > I just hacked up a rudimentary ob-stata.el by replacing "julia" with > "stata" in ob-julia.el by G. Jay Kerns (and making a few other minor > twe

Re: [O] Enabling another language in org-babel

2014-06-24 Thread Ista Zahn
I just hacked up a rudimentary ob-stata.el by replacing "julia" with "stata" in ob-julia.el by G. Jay Kerns (and making a few other minor tweaks). Only ":results output" works (no graphics, no :results value). In short it's in pretty rough shape, but it does work for some basic things. Perhaps some

Re: [O] org-ref in action

2014-06-24 Thread Thomas S. Dye
Hi John, John Kitchin writes: > Hello everyone, > > org-ref has basically stabilized. You can get the latest code at > https://github.com/jkitchin/jmax/blob/master/org-ref.org. > > I made a little screen capture video here to show you what it does: > https://www.youtube.com/watch?v=JyvpSVl4_dg >

[O] org-ref in action

2014-06-24 Thread John Kitchin
Hello everyone, org-ref has basically stabilized. You can get the latest code at https://github.com/jkitchin/jmax/blob/master/org-ref.org. I made a little screen capture video here to show you what it does: https://www.youtube.com/watch?v=JyvpSVl4_dg Try it out, if it looks interesting, and let

Re: [O] unattractive list spacing in ox-html export

2014-06-24 Thread Achim Gratz
Eric Schulte writes: > My browser (recent Firefox) *does* place extra spacing around list > elements with paragraphs (with no CSS). I assume this is standard. So > regardless of what browsers should do, Org-mode should handle what they > actually do. That's what I was saying, or at least trying

Re: [O] passing the contents of a block as an escaped string

2014-06-24 Thread Charles Berry
Alan Schmitt polytechnique.org> writes: > > Hello, > > I'm trying to write some filters from Pygments, and to record what I'm > doing and make my life simpler, I'm doing it in an orgmode buffer. In > that buffer, I have the code I want to highlight in a source block, and > the python code for t

Re: [O] how to handle backend-specific types as fuzzy link targets during export

2014-06-24 Thread Nicolas Goaziou
Hello, Eric Schulte writes: > Attached OK, now I get it. You're working at the wrong level. `latex-fragment' is an object (inline) type, but you're inserting it at the element's level. The equivalent (non inline) element is `latex-environment', which is, for example: \begin{equation} 1+1=

Re: [O] still seeing semi-regular lockups

2014-06-24 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> None of those three, I'm afraid! It was hanging on a variety of editing >> operations that, as far as I can tell, had little in common. There's a >> possibility that they were list-item-related, but really there wasn't >> much com

Re: [O] Thoughts on weaving variable documentation

2014-06-24 Thread Grant Rettke
Fabrice, Thank you for sharing that kind reminder and true inspiration. Looking forward to your results. Kind regards, gcr Grant Rettke | ACM, ASA, FSF, IEEE, SIAM g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Lif

Re: [O] unattractive list spacing in ox-html export

2014-06-24 Thread Nicolas Goaziou
Hello, Achim Gratz writes: > You can disagree all you want, that doesn't make the underlying problem go > away. The reason for the "unattractive spacing" is that list items, while > conceptually paragraphs, do not have additional spacing after them so the > list becomes more compact. The W3C d

Re: [O] unattractive list spacing in ox-html export

2014-06-24 Thread Eric Schulte
Achim Gratz writes: > Eric Schulte gmail.com> writes: >> I disagree, editing CSS shouldn't be required for reasonable default >> list spacing on HTML export. > > You can disagree all you want, that doesn't make the underlying problem go > away. The reason for the "unattractive spacing" is that

Re: [O] unattractive list spacing in ox-html export

2014-06-24 Thread Rick Frankel
On 2014-06-24 08:46, Achim Gratz wrote: Eric Schulte gmail.com> writes: I disagree, editing CSS shouldn't be required for reasonable default list spacing on HTML export. You can disagree all you want, that doesn't make the underlying problem go away. The reason for the "unattractive spacing"

Re: [O] how to handle backend-specific types as fuzzy link targets during export

2014-06-24 Thread Eric Schulte
Nicolas Goaziou writes: > Eric Schulte writes: > >> Sure. I have added a function to org-export-filter-parse-tree-functions >> which replaces a custom keyword with either a latex-fragment or an HTML >> link wrapped in a paragraph depending on the export backend. The latex >> fragment basically

Re: [O] how to handle backend-specific types as fuzzy link targets during export

2014-06-24 Thread Nicolas Goaziou
Eric Schulte writes: > Sure. I have added a function to org-export-filter-parse-tree-functions > which replaces a custom keyword with either a latex-fragment or an HTML > link wrapped in a paragraph depending on the export backend. The latex > fragment basically has the following content, > >

Re: [O] how to handle backend-specific types as fuzzy link targets during export

2014-06-24 Thread Eric Schulte
Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> In the function `org-export-resolve-fuzzy-link' at line 4078 of ox.el >> the `org-element-all-elements' variable is used to map over all elements >> in the parse tree when looking for a possible link target. However some >> trees ho

Re: [O] unattractive list spacing in ox-html export

2014-06-24 Thread Achim Gratz
Eric Schulte gmail.com> writes: > I disagree, editing CSS shouldn't be required for reasonable default > list spacing on HTML export. You can disagree all you want, that doesn't make the underlying problem go away. The reason for the "unattractive spacing" is that list items, while conceptually

Re: [O] Source blocks with captions

2014-06-24 Thread Alexander Baier
On 2014-06-23 21:23 Thomas S. Dye wrote: > Aloha Alexander, > > Alexander Baier writes: > >> On 2014-06-23 17:43 Thorsten Jolitz wrote: >>> Alexander Baier writes: >>> Hello org-moders! I just tried to put a caption under/on/above (or anywhere for that matter) my source code b

Re: [O] [PATCH] -for review- Tangling with variable transfer of variables

2014-06-24 Thread Rainer M Krug
"Charles C. Berry" writes: > On Mon, 23 Jun 2014, Rainer M Krug wrote: > >> "Charles C. Berry" writes: >> >> V> On Fri, 20 Jun 2014, Rainer M Krug wrote: >>> Attached please find =the reworked patch. 1) uses local() and closes connection 2) does not leave a variable cal;led f

[O] Org mode @ Stage LaTeX de Dunkerque (France)

2014-06-24 Thread Fabrice Niessen
Hello, FYI, I'll give 2 talks (of 1h30 each) during the "stage LaTeX de Dunkerque 2014": - Edit LaTeX in the Emacs tool I'll present Emacs, AUCTeX, RefTeX (thanks Carsten!) and many other useful packages or settings. - Generate a LaTeX document using a light syntax (Org mode) I'll presen

Re: [O] Thoughts on weaving variable documentation

2014-06-24 Thread Fabrice Niessen
Hello Grant, > A lot of people are weaving their Emacs init files for the obvious > reason: it is difficult to remember why > we configured stuff and other people definitely won't know why we did > it. There is a common operation > that occurs though when other people read our Emacs init: > > 1. T

Re: [O] [PATCH] -for review- Tangling with variable transfer of variables

2014-06-24 Thread Rainer M Krug
"Charles C. Berry" writes: > On Mon, 23 Jun 2014, Rainer M Krug wrote: > >> One more question concerning the variable transfer of tables: >> >> , >> |(let ((file (orgtbl-to-tsv value '(:fmt org-babel-R-quote-tsv-field))) >> | (header (if (or (eq (nth 1 value) 'hline) colnames-p)

Re: [O] Enabling another language in org-babel

2014-06-24 Thread Rainer M Krug
Eric Schulte writes: > Brendan Halpin writes: > >> Does there exist any documentation on extending org-babel to another >> language? >> > > Hi Brendan, > > There is a template [1] which may be filled out to add support for a new > language. More generally simply defining a function named > `org

Re: [O] how to handle backend-specific types as fuzzy link targets during export

2014-06-24 Thread Nicolas Goaziou
Hello, Eric Schulte writes: > In the function `org-export-resolve-fuzzy-link' at line 4078 of ox.el > the `org-element-all-elements' variable is used to map over all elements > in the parse tree when looking for a possible link target. However some > trees hold valid backend-specific types whic

Re: [O] Enabling another language in org-babel

2014-06-24 Thread Eric Schulte
Brendan Halpin writes: > Does there exist any documentation on extending org-babel to another > language? > Hi Brendan, There is a template [1] which may be filled out to add support for a new language. More generally simply defining a function named `org-babel-execute:foo' will cause babel to

[O] how to handle backend-specific types as fuzzy link targets during export

2014-06-24 Thread Eric Schulte
Hello, In the function `org-export-resolve-fuzzy-link' at line 4078 of ox.el the `org-element-all-elements' variable is used to map over all elements in the parse tree when looking for a possible link target. However some trees hold valid backend-specific types which are not members of the `org-e

[O] Enabling another language in org-babel

2014-06-24 Thread Brendan Halpin
Does there exist any documentation on extending org-babel to another language? Relatedly, is anyone working on adding Stata coverage to org-babel? Regards, Brendan -- Brendan Halpin, Head, Department of Sociology, University of Limerick, Ireland Tel: w +353-61-213147 f +353-61-202569 h +353-

Re: [O] LaTex best practice in org-mode

2014-06-24 Thread Thorsten Jolitz
Shiyuan writes: Hi Shiyuan, > Thank you very much for the detailed step-by-step instructions. I will > try it out. you might actually start with reading about filters , | http://orgmode.org/worg/dev/org-export-reference.html ` maybe thats all you need. > BTW: your email is very we

Re: [O] still seeing semi-regular lockups

2014-06-24 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: > None of those three, I'm afraid! It was hanging on a variety of editing > operations that, as far as I can tell, had little in common. There's a > possibility that they were list-item-related, but really there wasn't > much commonality. FYI, I recently fixed a b