Re: [O] problems with latex custom classes in new exporter

2013-05-12 Thread Peter Salazar
Brilliant. That worked perfectly. Thank you!


On Sat, May 11, 2013 at 10:37 PM, Nick Dokos ndo...@gmail.com wrote:

 Peter Salazar cycleofs...@gmail.com writes:

  I use a LaTeX custom class which I hired someone to create for me,
  which I load as a preference file
  latex.el: http://pastebin.com/SW0Xqe2h  (the custom class is called
  ilija).
 
  It worked perfectly up to org 7.9.4.
 
  But now my PDF documents are coming out all
  garbled: http://i.imgur.com/hys33MS.png
 
  Here's the Org PDF LaTeX Output:
  http://pastebin.com/rQmkzBYa
 
  I don't really know how to interpret all those errors, except that I
  do notice this:
 
  Package hyperref Error: Wrong driver option `xetex',
  (hyperref)because XeTeX is not detected.
 
  Again, it was working before I upgraded to 8.0.2, and it still works
  perfectly when I load org-7.9.4 instead of org-8.0.2.
 
  Reference: OSX 10.8.3, Aquamacs 2.4 / Emacs 23.3.50.1 / org-8.0.2.
 

 The old org-latex-to-pdf-process variable (which you are initializing
 in your latex.el file) has been renamed to org-latex-pdf-process. I
 presume that you are not touching the latter, so it's left at default,
 so the exporter ends up invoking pdflatex instead of xelatex.

 You probably want to duplicate the setting in latex.el so that it will
 continue working in both 8.0 and 7.9.4, rather than eliminating the old
 one:

 --8---cut here---start-8---
 (setq org-latex-to-pdf-process
   '(xelatex -interaction nonstopmode %f
  xelatex -interaction nonstopmode %f)) ;; for multiple passes

 (setq org-latex-pdf-process
   '(xelatex -interaction nonstopmode %f
  xelatex -interaction nonstopmode %f)) ;; for multiple passes
 --8---cut here---end---8---

 or just:

 --8---cut here---start-8---
 (setq org-latex-pdf-process org-latex-to-pdf-process)
 --8---cut here---end---8---

 (Untested).
 --
 Nick





[O] bug#14379: bug#14379: Several Org source files cannot be loaded in isolation

2013-05-12 Thread Achim Gratz
Carsten Dominik writes:
 I have asked Erik to fix these.

These errors do not exist in Org 8 anymore, in other words they are
already fixed (by the introduction of ob-core, as it were).


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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada





Re: [O] unexpected appearance of x^2 in pdf file

2013-05-12 Thread Nicolas Goaziou
Hello,

Paul Stansell paulstans...@gmail.com writes:

 I may be under a misapprehension, but I expected the pdf output
 (created by C-c C-e l p) from the attached org file to show similar
 results for both lines.  Instead, however, the simple

   x^2

 outside of the verbatim environment puts the caret above the 2 even
 though I have set

   #+OPTIONS: ^:nil

 This seems to be because org-mode exports x^2 as x\^2 in the tex file.
  I think exporting it as x\^{}2 would give a better result.

This should be now fixed. Thank you for reporting this.


Regards,

-- 
Nicolas Goaziou



[O] bug#14379: bug#14379: Several Org source files cannot be loaded in isolation

2013-05-12 Thread Carsten Dominik
I missed that, thank you.

- Carsten


On 12.5.2013, at 09:34, Achim Gratz strom...@nexgo.de wrote:

 Carsten Dominik writes:
 I have asked Erik to fix these.
 
 These errors do not exist in Org 8 anymore, in other words they are
 already fixed (by the introduction of ob-core, as it were).
 
 
 Regards,
 Achim.
 -- 
 +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+
 
 SD adaptation for Waldorf rackAttack V1.04R1:
 http://Synth.Stromeko.net/Downloads.html#WaldorfSDada






Re: [O] unexpected appearance of x^2 in pdf file

2013-05-12 Thread Paul Stansell
Hi Nicolas,

Thanks for fixing that last problem, that's great!

I've also come across a couple of other unexpected results exporting
other latex equations to pdf.  Examples are given in the attached org
file.  Both are quite trivial with easy work-arounds.  In both cases,
because the embedded png equations (displayed by C-c C-x C-l) are
formatted correctly, the problem in the exported pdf file might go
unnoticed.

Regards,

Paul


equation_line_breaks.org
Description: Binary data


[O] [PATCH] org-table: several cleanups

2013-05-12 Thread Achim Gratz
From 5972eaf924c726c1791fe6968e5b5b5abf053431 Mon Sep 17 00:00:00 2001
From: Achim Gratz strom...@stromeko.de
Date: Sun, 12 May 2013 11:09:31 +0200
Subject: [PATCH] org-table: several cleanups

* lisp/org.el (org-table-clean-did-remove-column),
  lisp/org-table.el (org-table-clean-did-remove-column): Move defvar,
  this dynamic variable is only used in org-table.
* lisp/org-table.el (org-table-colgroup-info): Remove unused defvar
  for `org-table-colgroup-info'.
  (org-table-clean-before-export): Let-bind regular expression strings
  and remove unused matching group.  Let-bind `remove-column-p' and
  use in cond statement rather than branching via if (also remove code
  duplication across the two branches).  Remove the code associated
  with the unused `org-table-colgroup-info'.
  (orgtbl-export): Remove unused internal function.
---
 lisp/org-table.el | 82 ++-
 lisp/org.el   |  1 -
 2 files changed, 27 insertions(+), 56 deletions(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index 8e461c8..fd58187 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -419,69 +419,41 @@ (defun org-table-cookie-line-p (line)
 			 (org-split-string (match-string 1 line)
 	   [ \t]*|[ \t]*)))
 
-(defvar org-table-colgroup-info nil)	; Dynamically scoped.
+(defvar org-table-clean-did-remove-column nil) ; dynamically scoped
 (defun org-table-clean-before-export (lines optional maybe-quoted)
   Check if the table has a marking column.
 If yes remove the column and the special lines.
-  (setq org-table-colgroup-info nil)
-  (if (memq nil
-	(mapcar
-	 (lambda (x) (or (string-match ^[ \t]*|- x)
-			 (string-match
-			  (if maybe-quoted
-  ^[ \t]*| *?\\([\#!$*_^ /]\\) *|
-^[ \t]*| *\\([\#!$*_^ /]\\) *|)
-			  x)))
-	 lines))
-  ;; No special marking column
-  (progn
-	(setq org-table-clean-did-remove-column nil)
-	(delq nil
-	  (mapcar
-	   (lambda (x)
-		 (cond
-		  ((org-table-colgroup-line-p x)
-		   ;; This line contains colgroup info, extract it
-		   ;; and then discard the line
-		   (setq org-table-colgroup-info
-			 (mapcar (lambda (x)
-   (cond ((member x '( lt;)) :start)
-	 ((member x '( gt;)) :end)
-	 ((member x '( lt;gt;)) :startend)))
- (org-split-string x [ \t]*|[ \t]*)))
-		   nil)
-		  ((org-table-cookie-line-p x)
-		   ;; This line contains formatting cookies, discard it
-		   nil)
-		  (t x)))
-	   lines)))
-;; there is a special marking column
-(setq org-table-clean-did-remove-column t)
+  (let*
+  ((special (if maybe-quoted
+		^[ \t]*| *?[\#!$*_^/ ] *|
+		  ^[ \t]*| *[\#!$*_^/ ] *|))
+   (ignore  (if maybe-quoted
+		^[ \t]*| *?[!$_^/] *|
+		  ^[ \t]*| *[!$_^/] *|))
+   (remove-column-p
+	(not (memq nil
+		   (mapcar
+		(lambda (line)
+		  (or (string-match ^[ \t]*|- line)
+			  (string-match special line)))
+		lines)
 (delq nil
 	  (mapcar
-	   (lambda (x)
+	   (lambda (line)
 	 (cond
-	  ((org-table-colgroup-line-p x)
-	   ;; This line contains colgroup info, extract it
-	   ;; and then discard the line
-	   (setq org-table-colgroup-info
-		 (mapcar (lambda (x)
-			   (cond ((member x '( lt;)) :start)
- ((member x '( gt;)) :end)
- ((member x '( lt;gt;)) :startend)))
-			 (cdr (org-split-string x [ \t]*|[ \t]*
+	  ((or (org-table-colgroup-line-p line)  ;; colgroup info
+		   (org-table-cookie-line-p line);; formatting cookies
+		   (and remove-column-p
+			(string-match ignore line))) ;; non-exportable data
 	   nil)
-	  ((org-table-cookie-line-p x)
-	   ;; This line contains formatting cookies, discard it
-	   nil)
-	  ((string-match ^[ \t]*| *\\([!_^/$]\\|\\$\\) *| x)
-	   ;; ignore this line
-	   nil)
-	  ((or (string-match ^\\([ \t]*\\)|-+\\+ x)
-		   (string-match ^\\([ \t]*\\)|[^|]*| x))
+	  ((and remove-column-p
+		(or (string-match ^\\([ \t]*\\)|-+\\+ line)
+			(string-match ^\\([ \t]*\\)|[^|]*| line)))
 	   ;; remove the first column
-	   (replace-match \\1| t nil x
-	   lines
+	   (replace-match \\1| t nil line))
+	  (t line)))
+	   lines))
+(setq org-table-clean-did-remove-column remove-column-p)))
 
 (defconst org-table-translate-regexp
   (concat \\( @[-0-9I$]+ \\| [a-zA-Z]\\{1,2\\}\\([0-9]+\\|\\) \\))
diff --git a/lisp/org.el b/lisp/org.el
index b9d3894..6e4a6b4 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4292,7 +4292,6 @@ (defun org-at-table-hline-p ()
 	(looking-at org-table-hline-regexp))
 nil))
 
-(defvar org-table-clean-did-remove-column nil)
 (defun org-table-map-tables (function optional quietly)
   Apply FUNCTION to the start of all tables in the buffer.
   (save-excursion
-- 
1.8.2.2


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

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:

Re: [O] Bibliography

2013-05-12 Thread Nicolas Goaziou
Hello,

Vikas Rawal vikasli...@agrarianresearch.org writes:

 Actually, ox-html.el also tries to do something with bibliographies,
 which introduces the duplication.
 
 We should decide if the code handling them should be in contrib/ or in
 the various export back-ends. Since HTML handling requires external
 programs, I lean towards the former.

 I agree. Better to keep it separately in contrib/

 If we agree, I'll remove the faulty code from ox-html.el and prepare
 a new version for ox-bibtex.el.

 +1 from me.

 By the way, where should the bibliography be inserted: at the keyword or
 at the end of the document (in both HTML and LaTeX)?

 at the keyword please.

Here's a new take on the problem. You need to use latest maint (or
master) revision. What do you think?

I'm Cc'ing Taru Karttunen, the org-exp-bibtex.el author, to know if he
agrees with the changes.


Regards,

-- 
Nicolas Goaziou


ox-bibtex.el
Description: application/emacs-lisp


Re: [O] unexpected appearance of x^2 in pdf file

2013-05-12 Thread Nicolas Goaziou
Hello,

Paul Stansell paulstans...@gmail.com writes:

 I've also come across a couple of other unexpected results exporting
 other latex equations to pdf.  Examples are given in the attached org
 file.  Both are quite trivial with easy work-arounds.  In both cases,
 because the embedded png equations (displayed by C-c C-x C-l) are
 formatted correctly, the problem in the exported pdf file might go
 unnoticed.

 \[ x = y 
  +1 \]

 \[ x = y 
  + 1 \]

This is to be expected. In the second case, the second line defines
a list item, which has precedence over any LaTeX snippet.

 \[ x = \begin{array}{cc}
   y  u \\
   z  v
 \end{array} \]

 \[ x = 
\begin{array}{cc}
   y  u \\
   z  v
\end{array} \]

I think this is because of a limitation on the number of lines a LaTeX
snippet can span across (IIRC, 3 is the maximum).

In both cases, I suggest to use LaTeX environments instead:

  \begin{equation*}
  x = y
  + 1
  \end{equation*}

and

  \begin{equation*}
  x =
  \begin{array}{cc}
y  u \\
z  v
  \end{array}
  \end{equation*}


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] org-table: several cleanups

2013-05-12 Thread Carsten Dominik
Hi Achim,

this looks allright for me.  Please go ahead and apply when you have tested it.

- Carsten

On 12.5.2013, at 11:11, Achim Gratz strom...@nexgo.de wrote:

 From 5972eaf924c726c1791fe6968e5b5b5abf053431 Mon Sep 17 00:00:00 2001
 From: Achim Gratz strom...@stromeko.de
 Date: Sun, 12 May 2013 11:09:31 +0200
 Subject: [PATCH] org-table: several cleanups
 
 * lisp/org.el (org-table-clean-did-remove-column),
  lisp/org-table.el (org-table-clean-did-remove-column): Move defvar,
  this dynamic variable is only used in org-table.
 * lisp/org-table.el (org-table-colgroup-info): Remove unused defvar
  for `org-table-colgroup-info'.
  (org-table-clean-before-export): Let-bind regular expression strings
  and remove unused matching group.  Let-bind `remove-column-p' and
  use in cond statement rather than branching via if (also remove code
  duplication across the two branches).  Remove the code associated
  with the unused `org-table-colgroup-info'.
  (orgtbl-export): Remove unused internal function.
 ---
 lisp/org-table.el | 82 ++-
 lisp/org.el   |  1 -
 2 files changed, 27 insertions(+), 56 deletions(-)
 
 diff --git a/lisp/org-table.el b/lisp/org-table.el
 index 8e461c8..fd58187 100644
 --- a/lisp/org-table.el
 +++ b/lisp/org-table.el
 @@ -419,69 +419,41 @@ (defun org-table-cookie-line-p (line)
(org-split-string (match-string 1 line)
  [ \t]*|[ \t]*)))
 
 -(defvar org-table-colgroup-info nil) ; Dynamically scoped.
 +(defvar org-table-clean-did-remove-column nil) ; dynamically scoped
 (defun org-table-clean-before-export (lines optional maybe-quoted)
   Check if the table has a marking column.
 If yes remove the column and the special lines.
 -  (setq org-table-colgroup-info nil)
 -  (if (memq nil
 - (mapcar
 -  (lambda (x) (or (string-match ^[ \t]*|- x)
 -  (string-match
 -   (if maybe-quoted
 -   ^[ \t]*| *?\\([\#!$*_^ /]\\) *|
 - ^[ \t]*| *\\([\#!$*_^ /]\\) *|)
 -   x)))
 -  lines))
 -  ;; No special marking column
 -  (progn
 - (setq org-table-clean-did-remove-column nil)
 - (delq nil
 -   (mapcar
 -(lambda (x)
 -  (cond
 -   ((org-table-colgroup-line-p x)
 -;; This line contains colgroup info, extract it
 -;; and then discard the line
 -(setq org-table-colgroup-info
 -  (mapcar (lambda (x)
 -(cond ((member x '( lt;)) :start)
 -  ((member x '( gt;)) :end)
 -  ((member x '( lt;gt;)) 
 :startend)))
 -  (org-split-string x [ \t]*|[ \t]*)))
 -nil)
 -   ((org-table-cookie-line-p x)
 -;; This line contains formatting cookies, discard it
 -nil)
 -   (t x)))
 -lines)))
 -;; there is a special marking column
 -(setq org-table-clean-did-remove-column t)
 +  (let*
 +  ((special (if maybe-quoted
 + ^[ \t]*| *?[\#!$*_^/ ] *|
 +   ^[ \t]*| *[\#!$*_^/ ] *|))
 +   (ignore  (if maybe-quoted
 + ^[ \t]*| *?[!$_^/] *|
 +   ^[ \t]*| *[!$_^/] *|))
 +   (remove-column-p
 + (not (memq nil
 +(mapcar
 + (lambda (line)
 +   (or (string-match ^[ \t]*|- line)
 +   (string-match special line)))
 + lines)
 (delq nil
 (mapcar
 -(lambda (x)
 +(lambda (line)
(cond
 -   ((org-table-colgroup-line-p x)
 -;; This line contains colgroup info, extract it
 -;; and then discard the line
 -(setq org-table-colgroup-info
 -  (mapcar (lambda (x)
 -(cond ((member x '( lt;)) :start)
 -  ((member x '( gt;)) :end)
 -  ((member x '( lt;gt;)) :startend)))
 -  (cdr (org-split-string x [ \t]*|[ \t]*
 +   ((or (org-table-colgroup-line-p line)  ;; colgroup info
 +(org-table-cookie-line-p line);; formatting cookies
 +(and remove-column-p
 + (string-match ignore line))) ;; non-exportable data
  nil)
 -   ((org-table-cookie-line-p x)
 -;; This line contains formatting cookies, discard it
 -nil)
 -   ((string-match ^[ \t]*| *\\([!_^/$]\\|\\$\\) *| x)
 -;; ignore this line
 -nil)
 -   ((or (string-match ^\\([ \t]*\\)|-+\\+ x)
 -(string-match ^\\([ \t]*\\)|[^|]*| x))
 +   ((and 

Re: [O] unexpected appearance of x^2 in pdf file

2013-05-12 Thread Paul Stansell
Nicolas,

 \[ x = y
  +1 \]

 \[ x = y
  + 1 \]

 This is to be expected. In the second case, the second line defines
 a list item, which has precedence over any LaTeX snippet.

Okay, I realised it was switching to the itemise environment, but I
didn't know it took precedence over the latex environment.

 \[ x = \begin{array}{cc}
   y  u \\
   z  v
 \end{array} \]

 \[ x =
\begin{array}{cc}
   y  u \\
   z  v
\end{array} \]

 I think this is because of a limitation on the number of lines a LaTeX
 snippet can span across (IIRC, 3 is the maximum).

Maybe, but I see the same problem with the following two line example

\[ x =
   \begin{array}{cc} z  v  \end{array} \]

 In both cases, I suggest to use LaTeX environments instead:

   \begin{equation*}
   x = y
   + 1
   \end{equation*}

Yes, I tried that, but as I understand it I need to
\usepackage{amsmath} to access the latex equation* environment.  But
then I get an error about Command \iint already defined.  I tried
the solution described at
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=alreadydef, but it
didn't work for me.

Anyway, never mind, these are all quite trivial points.

Thanks very much for your help,

Paul



Re: [O] Bug in structmode++?

2013-05-12 Thread The Dude
- Igor Sosa Mayor writes:

 I don't want to be annoying... but am I really alone with this problem?
 Am Wed, May 01, 2013 at 05:03:51PM +0200, Igor Sosa Mayor wrote:

No, you're not alone.  I'm experiencing the same behavior and I'm
running the exact same versions.   It's really annoying.

org-version: 8.0.2; emacs-version: 24.3.1

 Hi,
 
 Orgstruct minor mode is working with the mail-mode a little strange.
 
 If I write a simple list where every item is smaller than a line, I can
 use M-RET and a new item is inserted as expected.
 
 But if the item goes over one line, the second line is not indented and
 moreover M-RET does not work anymore.
 
 org-version: 8.0.2; emacs: 24.3.1
 
 thanks in advance
 
 -- 
 :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com ::
 :: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/  ::
 :: jabberid: rogorido  ::::

cheers
-- 
-dude

Too brief? Here's why! http://emailcharter.org




[O] ical2org.py

2013-05-12 Thread aitor
Hi,

I've implemented a little script which converts ics files to
org-mode. You can find the script here:

https://github.com/asoroa/ical2org.py

It is equivalent to the awk script from Eric S. Fraga located here:

http://orgmode.org/worg/org-tutorials/org-google-sync.html

It's main differences being:

- it only converts the events which fall into a timeframe (by default 3
  months before and after the current day)

- it handles recurrent events of 'dayly', 'weekly' and 'yearly' types.

- it also deals correctly with timezones etc.


best,
aitor



Re: [O] Bug in structmode++?

2013-05-12 Thread Christopher Schmidt
The Dude rafal.kowal...@mac.com writes:
 No, you're not alone.  I'm experiencing the same behavior and I'm
 running the exact same versions.   It's really annoying.

 org-version: 8.0.2; emacs-version: 24.3.1

Please give the current master a try.

Christopher



Re: [O] unexpected appearance of x^2 in pdf file

2013-05-12 Thread Nicolas Goaziou
 \[ x = y
  +1 \]

 \[ x = y
  + 1 \]

 This is to be expected. In the second case, the second line defines
 a list item, which has precedence over any LaTeX snippet.

 Okay, I realised it was switching to the itemise environment, but I
 didn't know it took precedence over the latex environment.

Technically, this is a latex fragment, not a latex environment (which is
what I suggested to use). The difference is that the former is inline
(i.e. it is contained in a paragraph) whereas the latter isn't.
Non-inline elements always have precedence over inline ones.

 \[ x = \begin{array}{cc}
   y  u \\
   z  v
 \end{array} \]

 \[ x =
\begin{array}{cc}
   y  u \\
   z  v
\end{array} \]

 I think this is because of a limitation on the number of lines a LaTeX
 snippet can span across (IIRC, 3 is the maximum).

 Maybe, but I see the same problem with the following two line example

 \[ x =
\begin{array}{cc} z  v  \end{array} \]

I see. This should be fixed. Thanks for insisting.

 In both cases, I suggest to use LaTeX environments instead:

   \begin{equation*}
   x = y
   + 1
   \end{equation*}

 Yes, I tried that, but as I understand it I need to
 \usepackage{amsmath} to access the latex equation* environment.  But
 then I get an error about Command \iint already defined.  I tried
 the solution described at
 http://www.tex.ac.uk/cgi-bin/texfaq2html?label=alreadydef, but it
 didn't work for me.

A package is conflicting with amsmath, probably wasysym. Try to add
nointegrals option to wasysym in `org-latex-default-packages-alist'.


Regards,

-- 
Nicolas Goaziou



[O] Bug: exporting radio targets

2013-05-12 Thread Meng Weng Wong
In 8.0.2, when I export to HTML or Ascii, all my radio targets get clobbered by 
the first.

Am I doing something wrong?


--
Test Case
--


#+TITLE: Test Org Radio Export

This is a test written for org-version: 8.0.2 (release_8.0.2-112-g0ea11e)

#+OPTIONS: toc:nil
#+AUTHOR: Meng Weng Wong
#+EMAIL: mengw...@pobox.com
#+DATE: [2013-05-12 Sun 23:19]

* header 0
- first radio target
- second radio target
- third radio target

* header 1
links to my first radio target.
* header 2
links to my second radio target.
* header 3
links to my third radio target.




--
Test Result:
--

___

 TEST ORG RADIO EXPORT

 Meng Weng Wong
___


 [2013-05-12 Sun 23:19]


Table of Contents
_




This is a test written for org-version: 8.0.2
(release_8.0.2-112-g0ea11e)


1 header 0
==

  - first radio target
  - second radio target
  - third radio target


2 header 1
==

  links to my first radio target.


3 header 2
==

  links to my first radio target.


4 header 3
==

  links to my first radio target.




Re: [O] Bug: exporting radio targets

2013-05-12 Thread Nicolas Goaziou
Hello,

Meng Weng Wong mengw...@gmail.com writes:

 In 8.0.2, when I export to HTML or Ascii, all my radio targets get clobbered 
 by the first.

 Am I doing something wrong?

No, that's a bug. It should be fixed in maint branch.

Thank you for the report and the test case.


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: exporting radio targets

2013-05-12 Thread Meng Weng Wong
On 12 May, 2013, at 11:58 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:

 No, that's a bug. It should be fixed in maint branch.
 
 Thank you for the report and the test case.

Thank you, I can confirm it is fixed by commit 
e7cd6f1875f880effc437ad893d729bcfb9b1da6





Re: [O] Upgrading to the new exporter; documenting my experience

2013-05-12 Thread Nicolas Goaziou
Hello,

George Jones elu...@gmail.com writes:

 FWIW, I've documented my steps towards updating to the new exporter


 https://github.com/eludom/HOWTO/blob/master/newOrgModeExporter/upgradingToTheNewOrgModeExporter.txt

From your document:


 7.2 Thing I might not understand in the new exporter   
  
    
  

  
 7.2.1 TODO Understand what happened to #+TEXT in the new exporter? 
  
 -- 
  

  
   How do you specify text that is to be before the first section?  
  

Easy: just write it before the first section.

 7.2.2 TODO Understand the template categories for export ? 
  
 -- 
  

  
   I want to insert a default set of headers, I typed   
  
   ,
  
   | CTRL-C CTRL-E #
  
   `
  
   and it asks me for a Options Category?  What's that?  ? does 
not   
   list options.
  

Try TAB for a completion list. It expects an export back-end or
default. If you provide a back-end, it will only insert options
specific to it.


Regards,

-- 
Nicolas Goaziou



[O] Skim.app support for org-mac-link-grabber.el

2013-05-12 Thread Daniil Frumin
Hi, all!

I use org-mac-link-grabber.el 
http://orgmode.org/worg/org-contrib/org-mac-link-grabber.html almost every 
day. However, it lacks support for an app that I'd like to use together with 
org-mode. 

Skim.app is a light and fast PDF reader for Mac OS X with a note-taking 
ability. I wrote a little patch for org-mac-link-grabber.el to support grabbing 
links to documents.

What it does:

* Grabs not just the link to file, but a page

* Inserts the selected text as a description, if present. Otherwise
  inserts filename, p. page #

* The shortcut is set to [S]

* Defines a new skim link type

It would be interesting to also add some support for importing notes from Skim 
to org.

Since Skim.app is not present in clean OS X installs, by default support for 
grabbing links from it is disabled. You can enable it by customizing group 
`org-mac-link-grabber'.

So, maybe it's possible to get this patch into the tree? It's my first time 
hacking on org (or even any major elisp extension), so it's probably that I've 
messed up somewhere with a commit format or whatnot.

Cheers.

-- Daniil Frumin


0001-Adding-Skim.app-support-to-org-mac-link-grabber.el.patch
Description: Binary data


Re: [O] Bug in structmode++?

2013-05-12 Thread Igor Sosa Mayor
Am Sun, May 12, 2013 at 03:59:00PM +0100, Christopher Schmidt wrote:
 Please give the current master a try.

After the commit 0ea11e26e46f2f562c1997cf1645dd744d5f6f2f you did, it
seems to work again.

thanks a lot.

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



Re: [O] using gnuplot's splot and every commands on org-mode table data

2013-05-12 Thread Achim Gratz
Eric Schulte writes:
 This does look like a bug to me.  Can you isolate where the value of
 data in your example is first assigned the wrong value?

The error lies in how ob-sh tries to determine if it needs to process a
table or a vector and then forgets to check for 'hline, thus ending up
in the vector branch with the table data.

 Thanks for reporting.  I will save your example for when I next have
 development time.

Here's a suggestion for a quick fix.  I've also implemented :hlines
processing for ob-sh (it was ignoring that header arg unconditionally)
and added an experimental header arg :hline-string to control how hlines
get actually exported.  BTW, trailing blank lines in the output get
swallowed when re-importing to Org, I'm not sure if that is supposed to
happen or not.

From 06056792c96c4c5996db5dd13e857658e6d4a573 Mon Sep 17 00:00:00 2001
From: Achim Gratz strom...@stromeko.de
Date: Sun, 12 May 2013 20:36:51 +0200
Subject: [PATCH] ob-sh: detect tables correctly, add :hlines processing and
 :hline-string header arg

* lisp/ob-sh.el (org-babel-variable-assignments:sh): Check for
  :hlines yes and use header arg :hlines-string if
  defined (default to hline) and add this to the call of
  `org-babel-sh-var-to-sh'.
  (org-babel-sh-var-to-sh, org-babel-sh-var-to-string): Add additional
  optional string argument `hline' and use it for the :hline parameter
  in the call to `orgtbl-to-generic'.

Thanks to Paul Stansell for pointing out the error.
---
 lisp/ob-sh.el | 19 ---
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/lisp/ob-sh.el b/lisp/ob-sh.el
index f11b799..72f3c19 100644
--- a/lisp/ob-sh.el
+++ b/lisp/ob-sh.el
@@ -88,26 +88,31 @@ (defun org-babel-load-session:sh (session body params)
 
 (defun org-babel-variable-assignments:sh (params)
   Return list of shell statements assigning the block's variables.
-  (let ((sep (cdr (assoc :separator params
+  (let ((sep (cdr (assoc :separator params)))
+	(hline (when (string= yes (cdr (assoc :hlines params)))
+		 (or (cdr (assoc :hline-string params))
+		 hline
 (mapcar
  (lambda (pair)
(format %s=%s
 	   (car pair)
-	   (org-babel-sh-var-to-sh (cdr pair) sep)))
+	   (org-babel-sh-var-to-sh (cdr pair) sep hline)))
  (mapcar #'cdr (org-babel-get-header params :var)
 
-(defun org-babel-sh-var-to-sh (var optional sep)
+(defun org-babel-sh-var-to-sh (var optional sep hlines)
   Convert an elisp value to a shell variable.
 Convert an elisp var into a string of shell commands specifying a
 var of the same value.
-  (format org-babel-sh-var-quote-fmt (org-babel-sh-var-to-string var sep)))
+  (format org-babel-sh-var-quote-fmt (org-babel-sh-var-to-string var sep hline)))
 
-(defun org-babel-sh-var-to-string (var optional sep)
+(defun org-babel-sh-var-to-string (var optional sep hline)
   Convert an elisp value to a string.
   (let ((echo-var (lambda (v) (if (stringp v) v (format %S v)
 (cond
- ((and (listp var) (listp (car var)))
-  (orgtbl-to-generic var  (list :sep (or sep \t) :fmt echo-var)))
+ ((and (listp var) (or (listp (car var)) 'hline))
+  (orgtbl-to-generic var  (list :sep (or sep \t)
+:fmt echo-var
+:hline hline)))
  ((listp var)
   (mapconcat echo-var var \n))
  (t (funcall echo-var var)
-- 
1.8.2.2


Giving ob-gnuplot (and possible ob-awk, which also uses
orgtbl-to-generic) a similar treatment would allow to do this directly
without going through ob.sh of course.


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

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds


Re: [O] [PATCH] org-table: several cleanups

2013-05-12 Thread Achim Gratz
Carsten Dominik writes:
 this looks allright for me.  Please go ahead and apply when you have
 tested it.

I've reworked it a bit.  There are no automated tests for this
functionality, but I hope to have covered everything in my manual
testing.  Installed on master.


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




[O] org-mime

2013-05-12 Thread Joseph Vidal-Rosset

Hello,



I just made a clean installation of org packages and contrib in order to
be able to convert latex equations in gnus. But I meet the following
problem that I am going to describe:



Generating a png image seems to work via M-x org-preview-latex-fragment


\begin{equation}
((A \to B) \to A) \to A
\end{equation}


But with M-x org-mime-htmlize, the png image is not loaded. Why? Your
help is welcome. 







Re: [O] Bibliography

2013-05-12 Thread Vikas Rawal
  By the way, where should the bibliography be inserted: at the keyword or
  at the end of the document (in both HTML and LaTeX)?
 
  at the keyword please.
 
 Here's a new take on the problem. You need to use latest maint (or
 master) revision. What do you think?


This works fine except that I can't place it at the keyword. How does
one do it? I thought having a line say [BIBLIOGRAPHY] would work but
it does not.

Vikas




Re: [O] Skim.app support for org-mac-link-grabber.el

2013-05-12 Thread Ivan Andrus
Just two comments from someone who didn't know org-mac-link-grabber existed 
until today (I'm gonna try it out) and hasn't (yet) contributed to org-mode.

1. It looks like it's actually enabled by default
2. You can detect whether it should be enabled by default with something like

( 0 (length (shell-command-to-string
  mdfind kMDItemCFBundleIdentifier == 
'net.sourceforge.skim-app.skim')))

which will tell whether you have skim installed.  I haven't looked at 
org-mac-link-grabber to see if other similar changes could be made.  So the 
defcustom would be changed to

(defcustom org-mac-grab-Skim-app-p
  ( 0 (length (shell-command-to-string
mdfind kMDItemCFBundleIdentifier == 
'net.sourceforge.skim-app.skim')))
  Enable menu option [S]kim to grab page links from Skim.app
  :tag Grab Skim.app page links
  :group 'org-mac-link-grabber
  :type 'boolean)

-Ivan

On May 12, 2013, at 12:29 PM, Daniil Frumin difru...@gmail.com wrote:

 Hi, all!
 
 I use org-mac-link-grabber.el 
 http://orgmode.org/worg/org-contrib/org-mac-link-grabber.html almost every 
 day. However, it lacks support for an app that I'd like to use together with 
 org-mode. 
 
 Skim.app is a light and fast PDF reader for Mac OS X with a note-taking 
 ability. I wrote a little patch for org-mac-link-grabber.el to support 
 grabbing links to documents.
 
 What it does:
 
 * Grabs not just the link to file, but a page
 
 * Inserts the selected text as a description, if present. Otherwise
  inserts filename, p. page #
 
 * The shortcut is set to [S]
 
 * Defines a new skim link type
 
 It would be interesting to also add some support for importing notes from 
 Skim to org.
 
 Since Skim.app is not present in clean OS X installs, by default support for 
 grabbing links from it is disabled. You can enable it by customizing group 
 `org-mac-link-grabber'.
 
 So, maybe it's possible to get this patch into the tree? It's my first time 
 hacking on org (or even any major elisp extension), so it's probably that 
 I've messed up somewhere with a commit format or whatnot.
 
 Cheers.
 
 -- Daniil Frumin
 0001-Adding-Skim.app-support-to-org-mac-link-grabber.el.patch




Re: [O] Bibliography

2013-05-12 Thread Vikas Rawal
 This works fine except that I can't place it at the keyword. How does
 one do it? I thought having a line say [BIBLIOGRAPHY] would work but
 it does not.
 

Figured it myself.

Placing the line '#+BIBLIOGRAPHY: blah blah...' at the right place did
it.

Thanks again,

Vikas



Re: [O] [mobileorg-android] Re: Agenda in MobileOrg for Android

2013-05-12 Thread James Harkins
 OK, so I'm reviving this old thread.

 I tried to set up MobileOrg again and failed completely - again.  Sorry
 for my post being a bit harsh, but I'm really frustrated with this
 situation, especially that I hear people claiming it works for them...

For the sake of completion, and so that MobileOrg doesn't get too bad
a rap, discussion of the MobileOrg/Android config issue continued on
the MobileOrg/Android mailing list.

One main point:

Any versions of MobileOrg (for android) with the new interface (I
think 0.9.5+, but I don't remember the exact version number) depend on
some new code in org-mode itself to handle pulling. Marcin was using
an older org version, which doesn't include the new stuff. This is
almost certainly the cause of the pull failures reported here.

I think it's only within the last 4-6 weeks that some org-mobile-pull
bugs were fixed in org, so in general, the newer the org version, the
better. For myself, with those bug fixes, pulling from mobile is just
working.

I'll leave off any discussion of the interface issues, except to note
that the MobileOrg/Android developers are more than willing to listen
to user experiences. (I'm not one of those developers, just a
generally satisfied user.)

hjh



[O] [PATCH] Export: Override headline numbering via properties

2013-05-12 Thread Mark Edgington
* lisp/ox.el (org-export-numbered-headline-p): If the `:NUMBERED' property is
defined for a headline, turn numbering on when the property value is y
(otherwise turn numbering off).  Do the same if the `:INHERITED_NUMBERED'
property is defined for a headline, except make this property inherited by
child nodes.  If both properties are nil or not defined, resort to the
default numbering
behavior.

TINYCHANGE
---
 lisp/ox.el | 10 --
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index 06513d2..137db9e 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -3721,8 +3721,14 @@ INFO is a plist holding contextual information.
   Return a non-nil value if HEADLINE element should be numbered.
 INFO is a plist used as a communication channel.
   (let ((sec-num (plist-get info :section-numbers))
-   (level (org-export-get-relative-level headline info)))
-(if (wholenump sec-num) (= level sec-num) sec-num)))
+   (level (org-export-get-relative-level headline info))
+(numbered (org-export-get-node-property :NUMBERED headline))
+(inherited-numbered (org-export-get-node-property
:INHERITED_NUMBERED headline t))) ; y, n, or nil
+(if numbered ; if the numbered property is defined
+(equal numbered y) ; anything other than y means un-numbered
+(if inherited-numbered
+(equal inherited-numbered y)
+(if (wholenump sec-num) (= level sec-num) sec-num) ;
default behavior

 (defun org-export-number-to-roman (n)
   Convert integer N into a roman numeral.
--
1.8.2.2