[O] :exports not being respected

2016-08-09 Thread Vikas Rawal
I have a with just the following header, and it is not respecting :exports in 
my R source blocks. The pdf file created has source code as well as the results.

What is wrong? Has the syntax changed again? I have not done anything with 
org-export-babel-evaluate.

#+TITLE: Title of this document
#+TODO: NOTES EXERCISE | DONE
#+OPTIONS: toc:nil
#+LATEX_CLASS: article
#+PROPERTY: header-args :eval never-export
#+PROPERTY: header-args :session ec404


I am on Org-mode version 8.3.5 (release_8.3.5-1026-g096f42)

Vikas




[O] How to pass an array of integers to a C code block with :var?

2016-08-09 Thread Alef Farah
Hi,

I am trying to use babel's :var to pass an array of integers to a C code
block. I can do it like this:

#+begin_src C :var arr='(1 2) :includes 
printf("%d %d\n", arr[0], arr[1]);
#+end_src

However, I wish to assign the output of another code block to the
variable, like this:

#+name: input
#+begin_src sh
seq 2
#+end_src

#+begin_src C :var arr=input :includes 
printf("%d %d\n", arr[0], arr[1]);
#+end_src

But this way, "arr" is evaluated as a string. I tried formatting the
output of the input code block as '(1 2), but it is still evaluated as a
string.

Is there any way to do this without manually grabbing the list from the
results of the input code block and pasting it in the C block?



Re: [O] Scaling of image previews in org-mode

2016-08-09 Thread Johannes Brauer
thank you for the hint, I will give it a try

Johannes

> Am 08.08.2016 um 01:16 schrieb John Kitchin :
> 
> I use this code here:
> https://github.com/jkitchin/scimax/blob/master/scimax-org.el#L957
> 
> to provide inline scaling in Emacs when it is not built with imagemagick.
> 
> Johannes Brauer writes:
> 
>> Hi!
>> 
>> If I insert a jpg in my org-mode document, I can preview it but not scale 
>> its width, like so:
>> 
>> Add the following code to my init.el file:
>> (setq org-image-actual-width nil)
>> 
>> Then insert this code in my document, where I want the image to appear:
>> #+ATTR_ORG: :width 20
>> [[./test.jpg]]
>> 
>> No matter which value I give for the width argument the image appears in the 
>> buffer always in its original size.
>> 
>> However, scaling for html export with #+attr_html works fine.
> 
> Export is not the same as the inline scaling. I am not sure what happens
> with export, but the browser may be doing the scaling.
> 
>> 
>> What is going wrong?
>> 
>> (Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ 
>> /Users/johannes/Library/Preferences/Aquamacs 
>> Emacs/Packages/elpa/org-20160704/)
>> 
>> Johannes
> 
> 
> -- 
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu




Re: [O] Request: Move org-eww from contrib to core

2016-08-09 Thread Rasmus
Marco Wahl  writes:

> Hi!
>
>> Matt Lundin  writes:
>>
>>> Given that the coming release of emacs 25 ships with the eww browser, I
>>> think it would be worthwhile to make org-eww.el a core org-mode module.
>>> I have been using eww instead of emacs-w3m for some time now with no
>>> problems. Since org ships with support for emacs-w3m, an external
>>> package, it seems to makes sense also to support eww, the built-in
>>> browser.
>>
>> In this case, we need to add a mechanism to throw an error when this
>> module is loaded without Eww being available. As a reminder, Org 9 still
>> supports Emacs 24.3.
>>
>>> I noticed that Marco Wahl, the author of org-eww.el, is on the
>>> contributors list, so, if I understand correctly, there shouldn't be
>>> copyright issues.
>>
>> There could be if we integrated patches from people without FSF
>> assignment. I didn't check, but I don't think it happened though.
>
> In 2014 I signed the assignment for Emacs (946878).
>
> (Just curious: is there a public list containing all the assignments?
> Found nothing after duckduckgoing for 5 minutes.)

No. If you have a Fencepost login you can access the list.

Org keeps a public list on Worg, though.

http://orgmode.org/worg/org-contribute.html

Rasmus

-- 
Enough with the blah blah!




[O] Controlling exported Beamer quote indentation / width

2016-08-09 Thread Jarmo Hurri

Greetings.

Currently in my Beamer slides quotes in second-level lists get cropped
outside the view window. Attached is a demo of this. How do I control
the indentation and/or the width of the quote?

As an interesting side effect, the attached file takes ages (like 30
seconds of processor time) to be exported and opened as a PDF, while
much larger files get processed in just a few seconds. No idea why this
is the case.

Jarmo

#+STARTUP: beamer

#+TITLE: Quoting indentation demo
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+BEAMER_THEME: Madrid
#+BEAMER_FONT_THEME: serif

* This is what I am talking about
  - top level list
- second level list
  #+BEGIN_QUOTE
  The indentation of this quote is already such that any longer
  text will be cut outside the screen. How do I control this?
  #+END_QUOTE