Re: [O] Exporting Code Blocks to PDF

2014-04-23 Thread Bernhard Pröll
Instead of switching fontsizes regularly, you might want to set the monofont size or scale: #+LATEX_HEADER: \setmonofont[Scale=0.8]{Source Code Pro} Bernhard John Hendy schrieb am Tue, 22. Apr 19:43: On Tue, Apr 22, 2014 at 6:28 PM, Elasady, Summer wrote: Hello Emacs World- I’m using LaT

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Hello, Bastien writes: > Nicolas, do you remember why we added IDs to all headlines and not > just the one that we be exported in the .ics file? It is a bit difficult to do otherwise. We don't know beforehand what headlines are going to be exported. We get this information when a headline is e

Re: [O] how to get "org-version" using emacs batch mode.

2014-04-23 Thread Supriya Sawant
Is it possible to redirect or get the output of batch mode command in variable. cmd = emacs --batch --eval '(message (org-version))' ouput=cmd print output i.e output contains version no.(output=7.9.3f) On Wed, Apr 23, 2014 at 12:00 PM, Bastien wrote: > Supriya Sawant writes: > > > emacs

Re: [O] how to get "org-version" using emacs batch mode.

2014-04-23 Thread Nicolas Richard
Supriya Sawant writes: > Is it possible to redirect or get the output of batch mode command in > variable. Assuming you use bash : $ MYOUTPUT=$(emacs --batch --eval '(princ (org-version))') $ echo $MYOUTPUT 8.2.5c -- Nico.

Re: [O] observations on updating to recent org

2014-04-23 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > Bastien writes: > >> Nicolas, do you remember why we added IDs to all headlines and not >> just the one that we be exported in the .ics file? > > It is a bit difficult to do otherwise. Assuming this is just difficult, not impossible, what would be the way

Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-23 Thread Eric Schulte
>> Looks useful to me, but ":file png" looks wrong, with too much >> implicit. We should find something less confusing. > > One option would be to use :file-ext instead, to generate a :file > parameter. I didn’t go this route because autogenerating :file from > other parameters seemed like too mu

Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-23 Thread Eric Schulte
Bastien writes: > Hi Aaron, > > Aaron Ecay writes: > >> How does this sound as an algorithm: >> 1. if :file is present, behave exactly as we do now >> 2. if :file is absent but :file-ext and a #+name is present, generate a >>:file parameter from :output-dir, the #+name, and :file-ext. > > I

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Bastien writes: > Assuming this is just difficult, not impossible, what would be the way > to do it? The major difficulty is to keep an association table between headlines in the pristine original buffer, and headlines in the copy being exported. Note that hooks and Babel code may have deleted o

Re: [O] Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)]

2014-04-23 Thread Reuben Thomas
On 21 April 2014 20:00, Bastien wrote: > Hi Reuben, > > Reuben Thomas writes: > > > 1. I customize org-file-apps's system command to be "xdg-open %s", > > then customize the default command to be the system command. > > Please share the value of `org-file-apps' (C-h v org-file-apps RET). > Valu

Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-23 Thread Skip Collins
On Tue, Apr 22, 2014 at 5:22 PM, Bastien wrote: > Mhh... okay then, thanks for mentioning it. The stackoverflow link contains what appears to be a good workaround that functions in old and new versions of bash. Perhaps Pascal Fleury could modify the org code to avoid using 'declare -A' when bash

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread Bastien
jdavidb...@adboyd.com (J. David Boyd) writes: > I've looked through all the latex, org-latex, org-beamer variables I can find > with customize-apropos, but not having any luck. You can use the LaTeX geometry package: \usepackage[margin=0.25in]{geometry} HTH, -- Bastien

[O] setting left margin in PDF output of ORG file

2014-04-23 Thread J. David Boyd
I can export an org file to a PDF no problem, looks great. However, how do I get rid of the huge left and right and top and bottom margins? I like my PDFs to have no more than .75" top, bottom, left and right. I've looked through all the latex, org-latex, org-beamer variables I can find with cu

Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-23 Thread Bastien
Hi, Eric Schulte writes: > One option might be to borrow naming behavior from the comment > functionality in ob-tangle which looks like the following (from line 426 > in ob-tangle.el). Indeed, it's safer than just using the buffer file name. Aaron, please go ahead with the patch when you want,

Re: [O] Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)]

2014-04-23 Thread Bastien
Hi Reuben, Reuben Thomas writes: > Value: ((auto-mode . emacs) > ("\\.mm\\'" . default) > ("\\.x?html?\\'" . default) > ("\\.pdf\\'" . default) > (t . "xdg-open %s") > (system . "xdg-open %s")) > > > What I've found is that, since .pdf documents can be opened in > Emacs > and

Re: [O] observations on updating to recent org

2014-04-23 Thread Greg Troxel
Greg Troxel writes: > Exporting to ical as a single file took a really long time, perhaps a > whole minute, whereas it used to take a second to a few seconds. The > resulting export did seem ok. I timed this. With 6161 lines in 14 org-mode files (about 2175 of which are due to PROPERTIE

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Hello, Greg Troxel writes: > I timed this. With 6161 lines in 14 org-mode files (about 2175 of which > are due to PROPERTIES/ID/END), doing a combined export took 88s of cpu > time. emacs-23.4.1, NetBSD 6, i386, plenty of RAM, Core i5 2.9 GHz. > In contrast, starting up emacs and generating t

Re: [O] observations on updating to recent org

2014-04-23 Thread Greg Troxel
Nicolas Goaziou writes: > Greg Troxel writes: > >> I timed this. With 6161 lines in 14 org-mode files (about 2175 of which >> are due to PROPERTIES/ID/END), doing a combined export took 88s of cpu >> time. emacs-23.4.1, NetBSD 6, i386, plenty of RAM, Core i5 2.9 GHz. >> In contrast, starting

Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-23 Thread Skip Collins
On Wed, Apr 23, 2014 at 10:13 AM, Pascal Fleury wrote: > (have not used bash3 in quite a long time :-) Even OS X Mavericks uses bash 3. So it will be around for quite a long time.

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Greg Troxel writes: > I guess that's an interesting question about what makes sense. Here's > the actual todo entry, with just a few words redacted. I don't see why > someone would want VEVENTS for this kind of history, but I suppose maybe > that's what you get when you turn on events from ina

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread J. David Boyd
Bastien writes: > jdavidb...@adboyd.com (J. David Boyd) writes: > >> I've looked through all the latex, org-latex, org-beamer variables I can >> find with customize-apropos, but not having any luck. > > You can use the LaTeX geometry package: > > \usepackage[margin=0.25in]{geometry} > > HTH, T

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread John Hendy
On Wed, Apr 23, 2014 at 11:59 AM, J. David Boyd wrote: > Bastien writes: > >> jdavidb...@adboyd.com (J. David Boyd) writes: >> >>> I've looked through all the latex, org-latex, org-beamer variables I can >>> find with customize-apropos, but not having any luck. >> >> You can use the LaTeX geometr

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread Nick Dokos
jdavidb...@adboyd.com (J. David Boyd) writes: > Bastien writes: > >> jdavidb...@adboyd.com (J. David Boyd) writes: >> >>> I've looked through all the latex, org-latex, org-beamer variables I can >>> find with customize-apropos, but not having any luck. >> >> You can use the LaTeX geometry package

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread J. David Boyd
John Hendy writes: > On Wed, Apr 23, 2014 at 11:59 AM, J. David Boyd wrote: >> Bastien writes: >> >>> jdavidb...@adboyd.com (J. David Boyd) writes: >>> I've looked through all the latex, org-latex, org-beamer variables I can find with customize-apropos, but not having any luck. >>> >>

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread J. David Boyd
Nick Dokos writes: > jdavidb...@adboyd.com (J. David Boyd) writes: > >> Bastien writes: >> >>> jdavidb...@adboyd.com (J. David Boyd) writes: >>> I've looked through all the latex, org-latex, org-beamer variables I can find with customize-apropos, but not having any luck. >>> >>> You ca

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Nicolas Goaziou writes: > Greg Troxel writes: >> I didn't try to turn this on. My icalendar-relevant settings are >> >> (setq org-icalendar-alarm-time 10) >> (setq org-icalendar-use-scheduled nil) >> (setq org-icalendar-use-deadline nil) >> >> I am trying to get ics entries o

Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-23 Thread Achim Gratz
Aaron Ecay writes: > How does this sound as an algorithm: > 1. if :file is present, behave exactly as we do now > 2. if :file is absent but :file-ext and a #+name is present, generate a >:file parameter from :output-dir, the #+name, and :file-ext. 3. If both :file and :file-ext are present, :f

Re: [O] [BUG] Cannot open load file: ob-sh

2014-04-23 Thread Achim Gratz
Bastien writes: > Nick Dokos writes: > >> Check local.mk for BTEST_OB_LANGUAGES: delete sh if present. > > Or rename sh to shell. No, delete it. There is no reason to include it there since it is automatically present when testing. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQk

Re: [O] [RFC] Sloppy `org-element-context'?

2014-04-23 Thread Nicolas Goaziou
Hello, Bastien writes: > I don't think `org-element-context' should be sloppy *at all*. [...] > For example, on a comment, (eq 'comment (car (org-element-at-point))) *coughs* (eq 'comment (org-element-type (org-element-at-point))) > should always return `t'. But if the user wants to open br

Re: [O] (org-insert-headline '(4)) should insert new headline before point

2014-04-23 Thread Leonard Randall
Hi Bastien, I just wanted to report an issue with this fix. In many use cases it makes C-RET less useful, and renders the speedkeys command `i' useless. It makes C-RET function much like M-RET, and it makes `i' insert headlines before any content. So if I call C-RET in the middle of the following

Re: [O] (org-insert-headline '(4)) should insert new headline before point

2014-04-23 Thread Leonard Randall
Sorry, I should clarify that the C-RET functions as expected in the content of an entry, it is only problematic when it is called from the headline. All best, Leonard On 23 April 2014 22:42, Leonard Randall wrote: > Hi Bastien, > I just wanted to report an issue with this fix. In many use cases

[O] Trying to separate clocked time /ranges/ from scheduled times in a clean-ish view.

2014-04-23 Thread Brady Trainor
I can't see how to get a clean view of clocked time ranges. Not just the length of time, but the actual start and end times. I would like to share my attempts to give you an idea. If I include (org-agenda-start-with-log-mode '(closed clock state)) in my agenda block, then I can see the

Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-23 Thread Eric Schulte
Skip Collins writes: > On Wed, Apr 23, 2014 at 10:13 AM, Pascal Fleury wrote: >> (have not used bash3 in quite a long time :-) > > Even OS X Mavericks uses bash 3. So it will be around for quite a long time. > I believe Bash 4 is GPLv3 and Bash 3 is GPLv2, so it is very possible that OSX will n

Re: [O] How do I chain babel blocks with arguments?

2014-04-23 Thread Eric Schulte
Alan Schmitt writes: > Hi Eric, > > On 2014-04-22 13:30, Eric Schulte writes: > >> Sorry, that's because the "x" should be "z". See the following. >> >> #+name: z >> : "bar" >> #+name: test3 >> #+begin_src emacs-lisp :var x="foo" >> x >> #+end_src >> >> #+RESULTS: test3 >> : foo >> >> #+name:te

Re: [O] Trying to separate clocked time /ranges/ from scheduled times in a clean-ish view.

2014-04-23 Thread Brady Trainor
On 4/23/2014 5:47 PM, Brady Trainor wrote: Day-agenda (W17): Wednesday 23 April 2014 agendatest: 7:45- 7:48 Clocked: (0:03) backflips:routine:: agendatest: 7:45- 7:50 Scheduled: backflips :routine:: agendatest: 7:48- 7:52 Clocked: (0:04) somersaults :routine::

[O] auto-roll-over of org-todo's?

2014-04-23 Thread Sharon Kimble
In my agenda I have several items I call my "weeklies" because they repeat weekly, this is one of them - --8<---cut here---start->8--- Desert island discs - radio 2 @ 1100 SCHEDULED: <2014-04-27 Sun +7d> --8<---cut here---end--

[O] Using font-lock-add-keywords to display caption than various table and images headers

2014-04-23 Thread Leu Zhe
According to the http://stackoverflow.com/questions/22937393/emacs-lisp-prettify-symbols-mode-for-latexby using font-lock-add-keywords, I can display the latin symbols instead of the English word like \alpha without changing the real contents. It is pretty great. Then a good idea came to my brain,