Re: [O] default headers for source code blocks

2014-09-09 Thread Ken Mankoff
What about custom template expansions? http://nicholasvanhorn.com/2014/04/07/org-structure-completion/ Advantage: your C-c C-v d sql RET becomes only On Sep 9, 2014, at 13:24, Subhan Michael Tindall > wrote: > > My apologies if this is in TFM, but I can’t seem to find it after substantial >

Re: [O] help debugging latex-overlays boxes

2014-09-09 Thread John Kitchin
Nick Dokos writes: > John Kitchin writes: > >> Nick Dokos writes: >> >> I have traced my problem. The issue is in the function >> org-preview-latex-fragment. At the end of the function, where it calls >> org-format-latex, the default-directory variable that is used in the >> function call has a

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread John Kitchin
Thorsten Jolitz writes: I use https://github.com/jkitchin/jmax/blob/master/org/doi-utils.org It is some code I wrote to build bibtex entries from a doi, and to download the pdf if you have access to it. I load it like this: (org-babel-load-file "doi-utils.org") You need to define some variable

Re: [O] Missing Agenda Export in ICS

2014-09-09 Thread Eric S Fraga
On Tuesday, 9 Sep 2014 at 10:46, SabreWolfy wrote: > I'm using Org-mode 8.2.7c. I exported my Agenda with "C-x C-w" and specified > an ICS file, which I then imported into Google Calendar. Many events > appeared, but some did not. An example of one, which did not appear, was a > standard timestamp

Re: [O] org-babel and lilypond broken after update

2014-09-09 Thread Steven Arntson
Achim Gratz writes: > Steven Arntson writes: >> org-babel-lilypond-compile-lilyfile: Searching for program: no such >> file >> or directory, /usr/bin/lilypond >> >> because I installed lilypond into /usr/local/lilypond/usr/bin. I tried >> "M-x customize-group lilypond RET" and "M-x describe funct

Re: [O] Difference :header-args: and :header-args+:?

2014-09-09 Thread Rainer M Krug
Achim Gratz writes: > Rainer M Krug writes: >> If this is the case, I would opt, in addition to the + operator, to >> have a - operator, which *removes* properties from the property set >> :header-args. > > Properties don't work that way, they're just strings. So the + adds a string to the end o

Re: [O] default headers for source code blocks

2014-09-09 Thread Thorsten Jolitz
Subhan Michael Tindall writes: > My apologies if this is in TFM, but I can’t seem to find it after > substantial digging. > > I’m using a lot of source code blocks lately. > > What I’d like is a way to specify a set of default headers to insert > when a new block is created. I have written an 'a

Re: [O] org-babel and lilypond broken after update

2014-09-09 Thread Achim Gratz
Steven Arntson writes: > org-babel-lilypond-compile-lilyfile: Searching for program: no such file > or directory, /usr/bin/lilypond > > because I installed lilypond into /usr/local/lilypond/usr/bin. I tried > "M-x customize-group lilypond RET" and "M-x describe function" but > couldn't solve the pr

Re: [O] org-babel and lilypond broken after update

2014-09-09 Thread Steven Arntson
Achim Gratz writes: > >> (setq ly-nix-ly-path "lilypond") > > With the next release these variables will go away and the corresponding > settings will become customizable. Two followup questions: 1. Now when I run "M-x org-babel-lilypond-tangle" I get org-babel-lilypond-compile-lilyfile: Search

Re: [O] org-babel and lilypond broken after update

2014-09-09 Thread Steven Arntson
Achim Gratz writes: > > BTW, you should not install both org and org-plus-contrib. Use the > latter if you need something from contrib, otherwsie use just plain org, > but never both. > > > Regards, > Achim. Thanks for this---it's like the 4th time I've been doing the same thing in two similar

Re: [O] default headers for source code blocks

2014-09-09 Thread Ista Zahn
Hi Subhan, I think the idea is that you should not set his on each individual block, but set global values. For example #+PROPERTY: header-args:sql :exports code :tangle yes :comments noweb Best, Ista On Tue, Sep 9, 2014 at 1:24 PM, Subhan Michael Tindall wrote: > My apologies if this is in T

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Rasmus
jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes: > Thomas S. Dye writes: > >> I don't manage my bibliography references in Org mode. I am >> used to managing a bibtex database and have never found the need >> to move everything to Org. > > Same here. Me too. I use the format

[O] default headers for source code blocks

2014-09-09 Thread Subhan Michael Tindall
My apologies if this is in TFM, but I can't seem to find it after substantial digging. I'm using a lot of source code blocks lately. What I'd like is a way to specify a set of default headers to insert when a new block is created. Right now: C-c C-v d sql RET #+begin_src sql #+end_src What I wan

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Jorge A. Alfaro-Murillo
Thomas S. Dye writes: I don't manage my bibliography references in Org mode. I am used to managing a bibtex database and have never found the need to move everything to Org. Same here. Bibtex mode has functions for automatic reference key generation: http://www.jonathanleroux.org/bibtex

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Thomas S. Dye
Aloha Christoph, I don't manage my bibliography references in Org mode. I am used to managing a bibtex database and have never found the need to move everything to Org. Christoph Groth writes: > Most solutions seem to be based around a central BibTeX file and take > advantage of RefTeX to navi

[O] bug#18430: 24.4.50; org-mode: File mode specification error: (error "`recenter'ing a window that does not display current-buffer.")

2014-09-09 Thread Glenn Morris
Leo Liu wrote: > In a recent build of emacs trunk, I constantly getting this error > whenever I open a .org file. Could this be fixed? Thanks, Leo See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18401#10

Re: [O] help debugging latex-overlays boxes

2014-09-09 Thread Nick Dokos
John Kitchin writes: > Nick Dokos writes: > > I have traced my problem. The issue is in the function > org-preview-latex-fragment. At the end of the function, where it calls > org-format-latex, the default-directory variable that is used in the > function call has a value of > "c:/Users/YUYUA~1/

Re: [O] latex header lines vs latex block

2014-09-09 Thread Thorsten Jolitz
Sebastien Vauban writes: > See http://lists.gnu.org/archive/html/emacs-orgmode/2014-06/msg00744.html > for Nicolas' answer on this point: > > ╭ > │ I suggest to use existing solutions instead: configure > │ `org-latex-classes'. > ╰ a related question: is this the right format to

Re: [O] help debugging latex-overlays boxes

2014-09-09 Thread John Kitchin
The issue seems to finally be the value of temporary-file-directory, which is defined in C-source, and I think that is where the ~1 comes from. I have a workaround solution, which is to set the temproary-file-directory variable this way: (setq temporary-file-directory (expand-file-name "~/../Local

Re: [O] org-babel and lilypond broken after update

2014-09-09 Thread Achim Gratz
Steven Arntson writes: > I updated some packages through the package manager, including org and > org-plus-contrib, and now "M-x ly-" gives "[no match]" in the > minibuffer. I didn't mess with my .emacs at all, which contains these > lines: The prefix has been changed from ly- to org-babel-lilypon

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Samuel Loury
Vikas Rawal writes: > There is bibretrieve (https://github.com/pzorin/bibretrieve) and bibfetch > (https://github.com/dschoepe/bibfetch/blob/master/bibfetch.el). Is it only a result of a google search or did you personally use one of those? -- Konubinix GPG Key: 7439106A Fingerprint: 5993

Re: [O] help debugging latex-overlays boxes

2014-09-09 Thread John Kitchin
Nick Dokos writes: I have traced my problem. The issue is in the function org-preview-latex-fragment. At the end of the function, where it calls org-format-latex, the default-directory variable that is used in the function call has a value of "c:/Users/YUYUA~1/AppData/Local/Temp/ltxpng/mole-balan

Re: [O] Difference :header-args: and :header-args+:?

2014-09-09 Thread Achim Gratz
Rainer M Krug writes: > If this is the case, I would opt, in addition to the + operator, to > have a - operator, which *removes* properties from the property set > :header-args. Properties don't work that way, they're just strings. > Initially I thought, to use :header-args+ instead of :header-ar

Re: [O] Difference :header-args: and :header-args+:?

2014-09-09 Thread Achim Gratz
Aaron Ecay writes: > Can you say more about the corner cases? It's been quite some time since I looked at this, but inline calls were quirky for instance since their point of call is ill-defined. > As to the non-scalability, that should be fixed by some combination of > the parser cache and retri

Re: [O] latex header lines vs latex block

2014-09-09 Thread Thorsten Jolitz
Sebastien Vauban writes: > Thorsten Jolitz wrote: >> Hi List, >> >> I often see many lines like this if Org files: >> >> , >> | #+LaTeX_CLASS: koma-book >> | #+LaTeX_HEADER: \usepackage[utf8]{inputenc} >> | #+LaTeX_HEADER: \usepackage[T1]{fontenc} >> | #+LaTeX_HEADER: \usepackage{palatino}

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Thorsten Jolitz
Vikas Rawal writes: >> >> It shouldn’t be too difficult to write a “capture” function in emacs >> that turns such records into entries in an org file. That would be >> automatic enough for me. >> > > There is bibretrieve (https://github.com/pzorin/bibretrieve) and > bibfetch > (https://github.

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Fabrice Popineau
I have written a couple of functions to export the Qiqqa library format to Org if anybody is interested. Qiqqa has been much more eager and acute to find online references to all my pdfs papers. Fabrice 2014-09-09 14:18 GMT+02:00 Vikas Rawal : > > > > It shouldn’t be too difficult to write a “c

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Vikas Rawal
> > It shouldn’t be too difficult to write a “capture” function in emacs > that turns such records into entries in an org file. That would be > automatic enough for me. > There is bibretrieve (https://github.com/pzorin/bibretrieve) and bibfetch (https://github.com/dschoepe/bibfetch/blob/master

Re: [O] [PATCH] org-table-beginning/end-of-field

2014-09-09 Thread Florian Beck
Hi Nicolas, thanks for the review. I hope the new version is an improvement. Nicolas Goaziou writes: > Also, note that you can avoid requiring MOVE-FN, ELEMENT and CMP-FN if > you decide that > > (< n 0) => (#'org-table-next-field :contents-end #'<=) > (> n 0) => (#'org-table-previous-fie

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Christoph Groth
Thorsten Jolitz wrote: > do you have a function that automatically fetches bibtex entries for > books from the web, given some info (title, year, author or so)? I haven’t yet started to manage literature with org mode, so I do not have anything so far. It’s usually easy to find BibTeX records on

Re: [O] latex header lines vs latex block

2014-09-09 Thread Sebastien Vauban
Thorsten Jolitz wrote: > Hi List, > > I often see many lines like this if Org files: > > , > | #+LaTeX_CLASS: koma-book > | #+LaTeX_HEADER: \usepackage[utf8]{inputenc} > | #+LaTeX_HEADER: \usepackage[T1]{fontenc} > | #+LaTeX_HEADER: \usepackage{palatino} > | #+LaTeX_HEADER: \bibliographystyle

[O] latex header lines vs latex block

2014-09-09 Thread Thorsten Jolitz
Hi List, I often see many lines like this if Org files: , | #+LaTeX_CLASS: koma-book | #+LaTeX_HEADER: \usepackage[utf8]{inputenc} | #+LaTeX_HEADER: \usepackage[T1]{fontenc} | #+LaTeX_HEADER: \usepackage{palatino} | #+LaTeX_HEADER: \bibliographystyle{alpha} | #+LaTeX_HEADER: \bibliography{

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Thorsten Jolitz
Christoph Groth writes: Hi, > Any comments? do you have a function that automatically fetches bibtex entries for books from the web, given some info (title, year, author or so)? -- cheers, Thorsten

[O] Missing Agenda Export in ICS

2014-09-09 Thread SabreWolfy
I'm using Org-mode 8.2.7c. I exported my Agenda with "C-x C-w" and specified an ICS file, which I then imported into Google Calendar. Many events appeared, but some did not. An example of one, which did not appear, was a standard timestamp event, where other "standard" ones also appeared. What are

Re: [O] Managing articles in orgmode and collaboration

2014-09-09 Thread Christoph Groth
Hi again, I’m replying to myself, as I think I’ve found a possible solution to my problem. Most publications have some kind of unique ID that can be present in BibTeX: a DOI number, a ISBN, a preprint ID, or an URL. One could use one these fields as an org-id unique ID for the publication’

Re: [O] [BUG] Entries from Org code blocks appear in agenda

2014-09-09 Thread Francesco Pizzolante
Hi Nicolas, >> I noticed that entries from Org code blocks are erroneously displayed in >> the agenda. >> >> Here's a very simple Org example in order to reproduce it >> (my-simple-test.org): >> >> * Test >> >> #+BEGIN_SRC org ,SCHEDULED: <2014-09-04 Thu 10:00> #+END_SRC > > This is a known bug

Re: [O] Difference :header-args: and :header-args+:?

2014-09-09 Thread Rainer M Krug
Aaron Ecay writes: > Hi Achim, > > 2014ko irailak 8an, Achim Gratz-ek idatzi zuen: >> >> Aaron Ecay writes: >>> Eric Schulte has said >>> that the deprecation of this feature is “premature”. I didn’t realize >>> at the time that the deprecation wa

Re: [O] org-babel and lilypond broken after update

2014-09-09 Thread Thorsten Jolitz
Steven Arntson writes: > have a look there for my answer -- cheers, Thorsten

Re: [O] Difference :header-args: and :header-args+:?

2014-09-09 Thread Rainer M Krug
Sorry about some points - see corrections below: Rainer M Krug writes: > Achim Gratz writes: > >> Aaron Ecay writes: >>> Eric Schulte has said >>> that the deprecation of this feature is “premature”. I didn’t realize >>> at the time that the depr

Re: [O] Difference :header-args: and :header-args+:?

2014-09-09 Thread Rainer M Krug
Achim Gratz writes: > Aaron Ecay writes: >> Eric Schulte has said >> that the deprecation of this feature is “premature”. I didn’t realize >> at the time that the deprecation was also included in the manual rather >> than just a code comment. Poss

[O] org-babel and lilypond broken after update

2014-09-09 Thread Steven Arntson
I'm an enthusiastic and error-prone new user of emacs (24.3.1) and org-babel (org 8.2.7c). I've been using lilypond mode in the context of org-mode documents, using the command "ly-tangle" to typeset music into midi and pdf files. It's been working great for the past few weeks, until today ... I