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

2014-05-17 Thread Achim Gratz
Aaron Ecay writes:
 Fixed.  (It actually required changes to the code, not the tests, since
 my commit made org-babel-graphical-output-file stricter).

OK.

 Good catch (especially since I recently pushed a patch changing some
 errors to user-errors *blush*).  Fixed.

Code review works. :-)


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




Re: [O] org-edit-src-code outside of org

2014-05-17 Thread Jorge A. Alfaro-Murillo
I figure it out, I am updating the variable that causes problems and it
is working very well so in case you want to use org-edit-src-code in
Message mode all is needed is:

#+BEGIN_SRC emacs-lisp
  (eval-after-load message
'(progn
   (define-key message-mode-map (kbd tab)
 (lambda ()
   (interactive)
   (if (not (org-try-structure-completion))
   (message-tab
   (define-key message-mode-map (kbd C-c ')
 (lambda ()
   (interactive)
   (org-edit-src-code)
   (setq-local org-edit-src-from-org-mode t)
#+END_SRC

I just used it right now =)

Jorge.




Re: [O] org-edit-src-code outside of org

2014-05-17 Thread Alexander Baier
On 2014-05-17 08:33 Jorge A. Alfaro-Murillo wrote:
 I figure it out, I am updating the variable that causes problems and it
 is working very well so in case you want to use org-edit-src-code in
 Message mode all is needed is:

 #+BEGIN_SRC emacs-lisp
   (eval-after-load message
 '(progn
(define-key message-mode-map (kbd tab)
  (lambda ()
(interactive)
(if (not (org-try-structure-completion))
(message-tab
(define-key message-mode-map (kbd C-c ')
  (lambda ()
(interactive)
(org-edit-src-code)
(setq-local org-edit-src-from-org-mode t)
 #+END_SRC

 I just used it right now =)

This has been bugging me for quite some time now, thank you very much
for this, it works like it's supposed to! :)

Regards,
-- 
Alexander Baier



[O] Symbol's value as variable is void: org-list-allow-alphabetical

2014-05-17 Thread Vikas Rawal
Why am I getting this error when I start my emacs?

defconst: Symbol's value as variable is void: org-list-allow-alphabetical
Symbol's value as variable is void: org-list-allow-alphabetical

My orgmode is updated using git repository.

I use emacs starter kit, and the error seems to have something to do with this 
variable not being set before my custom file 
(https://github.com/vikasrawal/orgpaper/blob/master/research-toolkit.org) is 
loaded.

Vikas





[O] Filter tasks when exporting to iCalendar

2014-05-17 Thread Chris Poole
Hi,

I'm trying to filter tasks such that only tasks that aren't done, but are
scheduled or have deadlines, are exported to iCalendar.

I have this so far:


(setq org-icalendar-use-scheduled '(todo-start)
org-icalendar-use-deadline '(todo-due)
org-icalendar-include-todo t
org-icalendar-include-body nil
org-icalendar-alarm-time 15
org-icalendar-with-timestamps 'active)

(defun gtd-filter-scheduled-todo-tasks (data backend info)
  Filter iCalendar export to include only TODO tasks that are
not done, but which are scheduled or have a deadline.
  (when (eq backend 'icalendar)
(org-element-map data 'headline
  (lambda (hl)
(when (or (not (equal 'todo (org-element-property :todo-type hl)))
  (equal DONE (org-element-property :todo-keyword hl))
  (not (or (org-element-property :scheduled hl)
   (org-element-property :deadline hl
  (org-export-ignore-element hl info))) info) data))

(defun gtd-export-agendas-and-calendar ()
  Store agenda views as plain text files, and export scheduled
events to a combined iCalendar file. Filter the calendar using
`gtd-filter-scheduled-todo-tasks', only allowing tasks that
aren't DONE, but are scheduled.
  (interactive)
  (org-store-agenda-views)
  (let ((org-export-filter-parse-tree-functions
'(gtd-filter-scheduled-todo-tasks)))
(org-icalendar-combine-agenda-files)))


But it leaves an empty calendar.ics file. Anyone know where I'm going wrong?
I assume that org-export-ignore-element is updating `info' in place.

I can't work out why it's not working...


Cheers,
Chris


Re: [O] Symbol's value as variable is void: org-list-allow-alphabetical

2014-05-17 Thread Vikas Rawal

 Why am I getting this error when I start my emacs?
 
 defconst: Symbol's value as variable is void: org-list-allow-alphabetical
 Symbol's value as variable is void: org-list-allow-alphabetical
 

Sorry, my emacs was loading an older version of Org. Will fix it.

Vikas



[O] html export doctype?

2014-05-17 Thread Dave Pawson
http://orgmode.org/manual/HTML-doctypes.html#HTML-doctypes

intimates that setting variable org-html-doctype
is usable here.

Version 8.2.6  does not show this variable?

how to select output format for html please?

tiA

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk



Re: [O] html export doctype?

2014-05-17 Thread Alexander Baier
On 2014-05-17 14:12 Dave Pawson wrote:
 http://orgmode.org/manual/HTML-doctypes.html#HTML-doctypes

 intimates that setting variable org-html-doctype
 is usable here.

 Version 8.2.6  does not show this variable?

I am running 8.2.6 here and for me org-html-doctype is defined. Maybe
you need to (require 'ox-html) ?

HTH,
-- 
Alexander Baier



Re: [O] html export doctype?

2014-05-17 Thread Dave Pawson
On 17 May 2014 13:24, Alexander Baier alexander.ba...@mailbox.org wrote:
 On 2014-05-17 14:12 Dave Pawson wrote:
 http://orgmode.org/manual/HTML-doctypes.html#HTML-doctypes

 intimates that setting variable org-html-doctype
 is usable here.

 Version 8.2.6  does not show this variable?

 I am running 8.2.6 here and for me org-html-doctype is defined. Maybe
 you need to (require 'ox-html) ?


Thanks, That worked.
 I'll add that to .emacs.


regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk



Re: [O] Preview tikz in org-mode (reduce margins of produced images)

2014-05-17 Thread Nick Dokos
Leu Zhe lzhe...@gmail.com writes:

 Hi ndokos,

 Thanks for you advice. 
 I added a attachment which matches my problem.

 Best regards!


 Content-Type: text/enriched
 Text-Width: 70

 #+LATEX_HEADER: \usepackage{tikz}
 #+LATEX_HEADER: \usepackage[siunitx]{circuitikz}


 x-colorparamdodger blue/param* A tikz preview test in org-mode

 /x-color
 ...

Unfortunately, you seem to have attached it as text/enriched and it is
messed up. Can you please attach it as text/plain?

Thanks!
-- 
Nick




[O] Enumeration within environment block

2014-05-17 Thread Xavier Garrido

Dear orgers,

I am using org-mode to write teaching class corrections in order to get 
them properly exported in pdf and html. What I would like to do is to 
insert not only the answer but also the questions. So, I have created a 
question environment as shown below


#+BEGIN_SRC org
#+TITLE: Question Test

#+BEGIN_QUESTION
1) Question bla bla bla bla
#+END_QUESTION

The answer to this question is ...

#+BEGIN_QUESTION
2) Question bla bla bla
#+END_QUESTION

The answer to this second question is...
#+END_SRC

The problem is that the enumeration number gets lost either in the 
=enumerate= env. in LaTeX or the =ol= tags in html and thus question 
restart to number 1 every time I have a BEGIN_QUESTION/END_QUESTION 
block. Is there a way to solve that issue or at least to force the item 
number ? (for instance, in LaTeX I can write \item[1],\item[2] and in 
html I can set the =ol= start value).


Thanks in advance,
Xavier



[O] Two letter combinations agenda and org-agenda-files variable

2014-05-17 Thread Igor Sosa Mayor
Hi,

if I define a org-agenda-custom-command in which I have a (so-called?)
two-letter combination agenda like this: 

--8---cut here---start-8---
(setq org-agenda-custom-commands
   '((x agenda)
 (h . HOME+Name tags searches) ; description for h prefix
 (hl tags +home+Lisa)
 (hp tags +home+Peter)
 (hk tags +home+Kim)))
--8---cut here---end---8---

is it possible to declare org-agenda-files in the head of the
combination in order to apply them to all the letter combinations (hl,
hp, hk)?

Many thanks in advance!

-- 
:: Igor Sosa Mayor :: joseleopoldo1...@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/  ::
:: jabberid: rogorido  ::::




[O] Insert calc vector directly into spreadsheet cells?

2014-05-17 Thread Steven Adrian
I would like to insert a calc vector directly into a range of spreadsheet
cells from a function. As a specific example, consider the calc index
function, which returns a calc vector of integers from 1 to n. Once calc has
started within an emacs session, the index function can be accessed from
within the scratch buffer as:

(calcFunc-index 10)

If the above function is evaluated, the echo area will display the calc
vector returned by the function:

(vec 1 2 3 4 5 6 7 8 9 10)

I would like to put these values into a range of cells with a table formula
like:

#+TBLFM: @1$1..@1$10=index(10)

But the formula above just puts the whole vector in each cell. Can anyone
tell me how to put the vector values in individual cells?





Re: [O] LaTeX cross references

2014-05-17 Thread Alan L Tyree


On 17/05/14 11:30, Alan L Tyree wrote:


On 17/05/14 11:26, Aaron Ecay wrote:

Hi Alan,

2014ko maiatzak 16an, Alan L Tyree-ek idatzi zuen:

G'day,

My org manuscript has cross references like this: see
[[id:4c473c51-b484-4a29-8fe7-118d8084a6f8][Limitations Acts]]

Exporting to LaTeX currently gives me:  see
\hyperref[sec-4-3]{Limitations Acts}

What I would like is: \ref{sec-4-3} since I am trying to end up with a
Word file for an editor that will be (ultimately) a printed book.

I'm sure this is a simple variable somewhere, but I'm frustrated trying
to find it.

I think you have two choices.  The first is to remove the description
from the link, leaving just:

[[id:4c473c51-b484-4a29-8fe7-118d8084a6f8]]

Sadly, this is not very informative to look at.

The other is to use an export filter like the following to convert the
exporter’s output to the desired format:

#+BEGIN_SRC emacs-lisp
   (defun awe-org-latex-filter-section-links (string backend plist)
   (if (and (org-export-derived-backend-p backend 'latex)
(string-match hyperref\\[\\(sec-.*?\\)\\] string))
   (let ((end-space (if (string-match-p  \\' string)   )))
 (concat (format \\ref{%s} (match-string 1 string))
 end-space))
 string))
   (add-to-list 'org-export-filter-link-functions 
#'awe-org-latex-filter-section-links)

#+END_SRC

Hope this helps,

Hi Aaron,
I'm adding the reply to the list.

It helps immensely. I'll give the filter a try later this weekend. 
Thanks for your help!


Alan

I'm having some trouble with this: when I try to evaluate the 
(add-to-list ..., I get a message:

Symbol's value as variable is void: org-export-filter-link-functions

Emacs: 24.3.1

Org-mode version 8.2.6 (release_8.2.6-958-g7c8559 @ 
/home/alant/.emacs.d/org-mode/lisp/)


Any help appreciated.

Cheers,
Alan



--
Aaron Ecay




--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:typh...@iptel.org




Re: [O] LaTeX cross references

2014-05-17 Thread Alan L Tyree


On 18/05/14 08:24, Alan L Tyree wrote:


On 17/05/14 11:30, Alan L Tyree wrote:


On 17/05/14 11:26, Aaron Ecay wrote:

Hi Alan,

2014ko maiatzak 16an, Alan L Tyree-ek idatzi zuen:

G'day,

My org manuscript has cross references like this: see
[[id:4c473c51-b484-4a29-8fe7-118d8084a6f8][Limitations Acts]]

Exporting to LaTeX currently gives me:  see
\hyperref[sec-4-3]{Limitations Acts}

What I would like is: \ref{sec-4-3} since I am trying to end up with a
Word file for an editor that will be (ultimately) a printed book.

I'm sure this is a simple variable somewhere, but I'm frustrated 
trying

to find it.

I think you have two choices.  The first is to remove the description
from the link, leaving just:

[[id:4c473c51-b484-4a29-8fe7-118d8084a6f8]]

Sadly, this is not very informative to look at.

The other is to use an export filter like the following to convert the
exporter’s output to the desired format:

#+BEGIN_SRC emacs-lisp
   (defun awe-org-latex-filter-section-links (string backend plist)
   (if (and (org-export-derived-backend-p backend 'latex)
(string-match hyperref\\[\\(sec-.*?\\)\\] 
string))
   (let ((end-space (if (string-match-p  \\' string)   
)))

 (concat (format \\ref{%s} (match-string 1 string))
 end-space))
 string))
   (add-to-list 'org-export-filter-link-functions 
#'awe-org-latex-filter-section-links)

#+END_SRC

Hope this helps,

Hi Aaron,
I'm adding the reply to the list.

It helps immensely. I'll give the filter a try later this weekend. 
Thanks for your help!


Alan

I'm having some trouble with this: when I try to evaluate the 
(add-to-list ..., I get a message:

Symbol's value as variable is void: org-export-filter-link-functions

Emacs: 24.3.1

Org-mode version 8.2.6 (release_8.2.6-958-g7c8559 @ 
/home/alant/.emacs.d/org-mode/lisp/)


Any help appreciated.


Forget this - I didn't have proper files loaded. Sorry for the noise, 
and many thanks toyou Aaron since it works a treat.


Alan




Cheers,
Alan



--
Aaron Ecay






--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:typh...@iptel.org




Re: [O] gnus-summary-move-article and org-store-link

2014-05-17 Thread Esben Stien
Bastien b...@gnu.org writes:

 (gnus-registry-initialize)
 (setq gnus-refer-article-method '(current (nnregistry)))

 this way, following Gnus links will find the message-id based
 on the registry, and you can safely move articles around.

Perfect; Thanks;)

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



Re: [O] LaTeX cross references

2014-05-17 Thread Aaron Ecay
Hi Alan (et al.),

I meant to reply to the list as well, thanks for forwarding.  And I'm
glad the filter works for you.

Aaron