Re: [O] [RFC] Creole-style / Support for **emphasis**__within__**a word**

2014-03-24 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes:

 Good luck.

Got my answer.  The rest are just details.



[O] ATTN: Users of ODT exporter

2014-03-21 Thread Jambunathan K

ATTN: Users of ODT exporter

If you want to talk to me wrt exporter, please add a note here:
http://www.emacswiki.org/emacs/Jambunathan_K

I am leaving this list.

I WILL NEVER MAKE an assignment to Emacs.  i.e. The development that
happens on my repository will NEVER hit the Emacs trunk.







Re: [O] Is anyone spending money for Org-mode?

2014-03-15 Thread Jambunathan K

If I were you, I will segregate the funds as though the contributor -
developer or otherwise - will receive it.

Then, I will approach each contributor with,

This is your fair share.  Please receive it.  If the contributor
declines, I will ask the contributor How do you think I should
deploy your fair share?


Carsten Dominik carsten.domi...@gmail.com writes:

 Hi all,

 one question that was asked: How much donations come in? That varies.
 Some month it is $10, occasionally it can be $100.

 What Bastien and I have done in the past is use this money in a more
 or less private way. I think Bastien has at some point replaced his
 laptop in this way, and all in all I have done the same, I think. This
 felt OK previously, but it is not longer the right thing as far as I
 am concerned.

 I have seen a few good ideas here.

 1. Send it to the FSF. That is a possibility, but lets first try to do
 something more Org specific

 2. A Mug for every contributor. Stretches the available budget, and is
 work.
 We could make a list of contributors and start from the most commits
 or something.

 3. Help organise a conference. That would be a very good goal. Are
 there any plans to organise a conference?

 4. Redistribute to the most active developers for lighting up their
 day.

 I propose the following: Starting March 1, I will report here the
 donations I get once a month, and we will keep track of it and find a
 good way to spend it. So far this month: $66. Lets revisit the
 discussion in 2 or three months. Maybe by then there will be plans for
 a conference, if not, we see.

 - Carsten

 On Thu, Mar 13, 2014 at 8:55 PM, Eric Schulte schulte.e...@gmail.com
 wrote:

 Here's an impractical option. I see roughly 280 different
 contributors
 to Org-mode.
 
 git log|grep ^Author|sed 's/^.*:
 //;s/.*$//'|less|sort|uniq|less
 
 Maybe buy every contributor an Org-mode mug?
 
 --
 Eric Schulte
 https://cs.unm.edu/~eschulte
 PGP: 0x614CA05D
 
 



Re: [O] Is anyone spending money for Org-mode?

2014-03-13 Thread Jambunathan K
Carsten Dominik carsten.domi...@gmail.com writes:

 I would like to pass donations

Undoubtedly, to Nicolas Goaziou.



Re: [O] FW: How to load .el file during startup and execute its commands (Win7/org8)

2014-03-12 Thread Jambunathan K
M elwood...@web.de writes:

 have to load my settings file manually (open, eval-buffer, close) at
 each startup...

By hand, do

   M-x load-file RET path-to-file RET

Now after you have done this, do

  M-x list-command-history RET

And copy-paste the relevant portion to your .emacs.  That is all.  No
need to mess with load-path.



Here is what I get, when I follow the above sequence on one of my files.

(load-file ~/.emacs.d/lisp/hx.el)



Re: [O] Howto: different faces for begin_src and results

2014-03-10 Thread Jambunathan K
Miguel Ruiz rbeni...@inbox.com writes:

 I was wondering if it's possible to have different faces for
 #+begin_src/#+end_src and results so distinguishing the blocks is
 easier.

Put cursor on the character whose colour you want to change and do

M-x cusotmize-face



Re: [O] org-odt-export-to-odt: tables: column and row spacing: configure

2014-03-07 Thread Jambunathan K

If you want optimized column widths, I am afraid LibreOffice doesn't
honor the XML markup.  See
http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg01203.html

See http://lists.gnu.org/archive/html/emacs-orgmode/2014-02/msg00380.html


Uwe Brauer o...@mat.ucm.es writes:

 Hello

 I use org-odt-export-to-odt quite a bit. How can I configure it in order
 to set a different column and row spacing for tables? The default one is to 
 large
 for my taste,

 Thanks 

 Uwe Brauer 




Re: [O] org-odt-export-to-odt: tables: column and row spacing: configure

2014-03-07 Thread Jambunathan K

http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/txtXYCqBy8St9.txt

Uwe Brauer o...@mat.ucm.es writes:

 Hello

 I use org-odt-export-to-odt quite a bit. How can I configure it in order
 to set a different column and row spacing for tables? The default one is to 
 large
 for my taste,

 Thanks 

 Uwe Brauer 




[O] [RFC] Creole-style / Support for **emphasis**__within__**a word**

2014-03-04 Thread Jambunathan K

Nicolas

[RFC] Creole-style / Support for **emphasis**__within__**a word**

The attached files should speak for themselves.  Such an arrangement

a) Does not change the status quo AT ALL.
b) Provide more rope.

The patch is in the spirit of show and tell.  I will not provide a
formal patch.

That said, if I were to say Let's formalize this arrangement what will
you say?



.emacs.minimal.el
Description: application/emacs-lisp


emphasis.odt
Description: application/vnd.oasis.opendocument.text
#+OPTIONS: ':nil *:t -:t ::t :t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:nil c:nil creator:comment d:(not LOGBOOK) date:nil
#+OPTIONS: e:t email:nil f:t inline:t num:nil p:nil pri:nil prop:nil
#+OPTIONS: stat:t tags:t tasks:t tex:t timestamp:t toc:nil todo:t |:t
#+TITLE: a
#+DATE: 2014-03-04 Tue
#+AUTHOR: Jambunathan K
#+EMAIL: kjambunathan@debian-6.05
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 24.3.50.33 (Org mode 8.2.5h)

Support for **emphasis**__within__**a word**. ==A proposal==.

* Headline 1

**bold**and**bold**//italic// __underline__==and==++strike-through++ plain text


[O] [RFC] Creole-style / Support for **emphasis**__within__**a word**

2014-03-04 Thread Jambunathan K

Nicolas

(Re-sent with the diff file)

[RFC] Creole-style / Support for **emphasis**__within__**a word**

The attached files should speak for themselves.  Such an arrangement

a) Does not change the status quo AT ALL.
b) Provide more rope.

The patch is in the spirit of show and tell.

That said, if I were to say Let's formalize this arrangement what will
you say?

#+OPTIONS: ':nil *:t -:t ::t :t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:nil c:nil creator:comment d:(not LOGBOOK) date:nil
#+OPTIONS: e:t email:nil f:t inline:t num:nil p:nil pri:nil prop:nil
#+OPTIONS: stat:t tags:t tasks:t tex:t timestamp:t toc:nil todo:t |:t
#+TITLE: a
#+DATE: 2014-03-04 Tue
#+AUTHOR: Jambunathan K
#+EMAIL: kjambunathan@debian-6.05
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 24.3.50.33 (Org mode 8.2.5h)

Support for **emphasis**__within__**a word**. ==A proposal==.

* Headline 1

**bold**and**bold**//italic// __underline__==and==++strike-through++ plain text


emphasis.odt
Description: application/vnd.oasis.opendocument.text


.emacs.minimal.el
Description: application/emacs-lisp
diff --git a/lisp/org-element.el b/lisp/org-element.el
index 0faf1fd..131b442 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -2612,6 +2612,11 @@ Assume point is at the first star marker.
 CONTENTS is the contents of the object.
   (format *%s* contents))
 
+(defvar org-element--marker-type 
+  (loop for markers in  (mapcar 'car org-emphasis-alist)
+	for element-type in '(bold italic underline verbatim code strike-through)
+	collect (cons markers element-type)))
+
 (defun org-element-text-markup-successor ()
   Search for the next text-markup object.
 
@@ -2622,15 +2627,10 @@ and CDR is beginning position.
 (unless (bolp) (backward-char))
 (when (re-search-forward org-emph-re nil t)
   (let ((marker (match-string 3)))
-	(cons (cond
-	   ((equal marker *) 'bold)
-	   ((equal marker /) 'italic)
-	   ((equal marker _) 'underline)
-	   ((equal marker +) 'strike-through)
-	   ((equal marker ~) 'code)
-	   ((equal marker =) 'verbatim)
-	   (t (error Unknown marker at %d (match-beginning 3
-	  (match-beginning 2))
+	(cons
+	 (or (assoc-default marker org-element--marker-type)
+	 (error Unknown marker at %d (match-beginning 3)))
+	 (match-beginning 2))
 
 
  Code
diff --git a/lisp/org.el b/lisp/org.el
index f2bb99f..24f07f9 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4191,10 +4191,14 @@ After a match, the match groups contain these elements:
 	   (body (nth 3 e))
 	   (nl (nth 4 e))
 	   (body1 (concat body *?))
-	   (markers (mapconcat 'car org-emphasis-alist ))
+	   (markers (mapconcat (lambda (em)
+ (regexp-quote (car em))
+ )
+			   org-emphasis-alist \\|))
 	   (vmarkers (mapconcat
-		  (lambda (x) (if (eq (nth 2 x) 'verbatim) (car x) ))
-		  org-emphasis-alist )))
+		  (lambda (x)
+			(regexp-quote (if (eq (nth 2 x) 'verbatim) (car x) )))
+		  org-emphasis-alist \\|)))
   ;; make sure special characters appear at the right position in the class
   (if (string-match \\^ markers)
 	  (setq markers (concat (replace-match  t t markers) ^)))
@@ -4211,7 +4215,7 @@ After a match, the match groups contain these elements:
   (setq org-emph-re
 	(concat \\([ pre ]\\|^\\)
 		\\(
-		\\([ markers ]\\)
+		\\( markers \\)
 		\\(
 		[^ border ]\\|
 		[^ border ]
@@ -4223,7 +4227,7 @@ After a match, the match groups contain these elements:
   (setq org-verbatim-re
 	(concat \\([ pre ]\\|^\\)
 		\\(
-		\\([ vmarkers ]\\)
+		\\( vmarkers \\)
 		\\(
 		[^ border ]\\|
 		[^ border ]


[O] [RFC] Creole-style / Support for **emphasis**__within__**a word**

2014-03-04 Thread Jambunathan K

Nicolas

(Sorry for multiple posts.  `customize-save-variable' in the attached
minimal emacs -- which I foolishly added to the top of my .emacs --
wiped out all my customizations including IMAP and SMTP settings)

[RFC] Creole-style / Support for **emphasis**__within__**a word**

The attached files should speak for themselves.  Such an arrangement

a) Does not change the status quo AT ALL.
b) Provide more rope.

The patch is in the spirit of show and tell.  I will not provide a
formal patch.

What about formalizing such an arrangement...

#+OPTIONS: ':nil *:t -:t ::t :t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:nil c:nil creator:comment d:(not LOGBOOK) date:nil
#+OPTIONS: e:t email:nil f:t inline:t num:nil p:nil pri:nil prop:nil
#+OPTIONS: stat:t tags:t tasks:t tex:t timestamp:t toc:nil todo:t |:t
#+TITLE: a
#+DATE: 2014-03-04 Tue
#+AUTHOR: Jambunathan K
#+EMAIL: kjambunathan@debian-6.05
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 24.3.50.33 (Org mode 8.2.5h)

Support for **emphasis**__within__**a word**. ==A proposal==.

* Headline 1

**bold**and**bold**//italic// __underline__==and==++strike-through++ plain text


emphasis.odt
Description: application/vnd.oasis.opendocument.text


.emacs.minimal.el
Description: application/emacs-lisp
diff --git a/lisp/org-element.el b/lisp/org-element.el
index 0faf1fd..131b442 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -2612,6 +2612,11 @@ Assume point is at the first star marker.
 CONTENTS is the contents of the object.
   (format *%s* contents))
 
+(defvar org-element--marker-type 
+  (loop for markers in  (mapcar 'car org-emphasis-alist)
+	for element-type in '(bold italic underline verbatim code strike-through)
+	collect (cons markers element-type)))
+
 (defun org-element-text-markup-successor ()
   Search for the next text-markup object.
 
@@ -2622,15 +2627,10 @@ and CDR is beginning position.
 (unless (bolp) (backward-char))
 (when (re-search-forward org-emph-re nil t)
   (let ((marker (match-string 3)))
-	(cons (cond
-	   ((equal marker *) 'bold)
-	   ((equal marker /) 'italic)
-	   ((equal marker _) 'underline)
-	   ((equal marker +) 'strike-through)
-	   ((equal marker ~) 'code)
-	   ((equal marker =) 'verbatim)
-	   (t (error Unknown marker at %d (match-beginning 3
-	  (match-beginning 2))
+	(cons
+	 (or (assoc-default marker org-element--marker-type)
+	 (error Unknown marker at %d (match-beginning 3)))
+	 (match-beginning 2))
 
 
  Code
diff --git a/lisp/org.el b/lisp/org.el
index f2bb99f..24f07f9 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4191,10 +4191,14 @@ After a match, the match groups contain these elements:
 	   (body (nth 3 e))
 	   (nl (nth 4 e))
 	   (body1 (concat body *?))
-	   (markers (mapconcat 'car org-emphasis-alist ))
+	   (markers (mapconcat (lambda (em)
+ (regexp-quote (car em))
+ )
+			   org-emphasis-alist \\|))
 	   (vmarkers (mapconcat
-		  (lambda (x) (if (eq (nth 2 x) 'verbatim) (car x) ))
-		  org-emphasis-alist )))
+		  (lambda (x)
+			(regexp-quote (if (eq (nth 2 x) 'verbatim) (car x) )))
+		  org-emphasis-alist \\|)))
   ;; make sure special characters appear at the right position in the class
   (if (string-match \\^ markers)
 	  (setq markers (concat (replace-match  t t markers) ^)))
@@ -4211,7 +4215,7 @@ After a match, the match groups contain these elements:
   (setq org-emph-re
 	(concat \\([ pre ]\\|^\\)
 		\\(
-		\\([ markers ]\\)
+		\\( markers \\)
 		\\(
 		[^ border ]\\|
 		[^ border ]
@@ -4223,7 +4227,7 @@ After a match, the match groups contain these elements:
   (setq org-verbatim-re
 	(concat \\([ pre ]\\|^\\)
 		\\(
-		\\([ vmarkers ]\\)
+		\\( vmarkers \\)
 		\\(
 		[^ border ]\\|
 		[^ border ]


Re: [O] [RFC] Creole-style / Support for **emphasis**__within__**a word**

2014-03-04 Thread Jambunathan K

Jambunathan K kjambunat...@gmail.com writes:

 (with-eval-after-load 'org
   (setcar org-emphasis-regexp-components ^\\n)
   (setcar (cdr org-emphasis-regexp-components) ^\\n)
   (customize-save-variable 'org-emphasis-alist org-emphasis-alist))

A small correction 

Instead of \\n it should be \n.  So use the below form instead.

(with-eval-after-load 'org
  (setcar org-emphasis-regexp-components ^\n)
  (setcar (cdr org-emphasis-regexp-components) ^\n)
  (customize-save-variable 'org-emphasis-alist org-emphasis-alist))




Re: [O] Tables with line wrapping?

2014-02-22 Thread Jambunathan K
Peter Davis p...@pfdstudio.com writes:

 I'm using org-mode to prepare a document that will ultimately be
 exported to PDF. Unfortunately, I need to include a table whose contents
 will wrap as needed.

You can export to PDF via ODT.  Use list tables.  See the links at the
end of the following post.

https://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01101.html

The list items (that you see below) is not limited to single lines but
can be multi-line, multi-paragraph (including inline image links).  The
Hrules are optional.

Some of the attributes you see below won't work on Org trunk but will
work on my ELPA package.

http://cauvery.nfshost.com/wiki.pl/ODT_Exporter

--8---cut here---start-8---
#+ATTR_ODT: :widths 1,2,4,8
#+ATTR_ODT: :rel-width 80
#+ATTR_ODT: :list-table t
- -
- Row 1
  - 1.1
  - 1.2
  - 1.3
- -
- Row 2
  - 2.1
  - 2.2
  - 2.3
- -
--8---cut here---end---8---





[O] bug#16734: Default value org-odt-data-dir (in Emacs) makes no sense

2014-02-18 Thread Jambunathan K

See these posts.

http://permalink.gmane.org/gmane.emacs.orgmode/81330
http://permalink.gmane.org/gmane.emacs.orgmode/81364

If Org is run from Vanilla Emacs then setting then setting that to
`org-odt-data-dir' to nil should work (I think).

The primary consumer of `org-odt-data-dir' is a package distributor who
distributes a STANDALONE org.  He can set this variable to the location
in the file system where he has dumped the styles file.

From the archives:
http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00020.html


Glenn Morris r...@gnu.org writes:

 Package: emacs,org-mode
 Version: 24.3.50

 This refers to the version of Org mode in Emacs trunk.

 ./src/emacs -Q -l ox-odt
 C-h v org-odt-data-dir
   - Its value is /usr/share/emacs/etc/org

 This value is hard-coded (and autoloaded; why?) in org-version.el.
 This value makes no sense.
 For Emacs, it should be something based on data-directory.

 This was pointed out before in some moderately lengthy discussion:

 http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg2.html
 http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00070.html

 (In general, the setting of directory-related variables in ox-odt seems
 rather over-engineered.)





Re: [O] tricky odt export needs

2014-02-14 Thread Jambunathan K

Jambunathan K kjambunat...@gmail.com writes:

 In the pdf version of Emacs info manuals one typically sees all three of
 a Section number AND a Description AND a Page number, something like:

 See Section 3.1 [Tropical Storms], page 24.

 In Org context, I am wondering whether there is such a need.

I have added support for generating page nos.  See attachments for
sample test file.

--8---cut here---start-8---
#+OPTIONS: ':nil *:t -:nil ::t :t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:t c:nil creator:comment d:(not LOGBOOK) date:t
#+OPTIONS: e:t email:nil f:t inline:t num:3 p:nil pri:nil prop:nil
#+OPTIONS: stat:t tags:t tasks:t tex:t timestamp:t toc:t todo:t |:t
#+TITLE: headline
#+DATE: 2014-02-12 Wed
#+AUTHOR: Jambunathan K
#+EMAIL: kjambunat...@gmail.com
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 24.3.50.20 (Org mode 8.2.5h)

#+TOC: headlines


* Headline 1

Some text. See [[Headline 2]].

#+PAGEBREAK:
* Headline 2

Some more text.  
--8---cut here---end---8---



Page nos are disabled by default.  To enable pagenos, you need to

M-x customize-variable org-odt-caption-and-xref-settings

and choose a setting as below.

[X] Key: :TARGET:
Plist:
[X] Key: :xref-format
Choice: Value Menu TexInfo style
INS


The TexInfo style is provided more for trial run.  A variety of
different format strings can be chosen.



You can pull my changes from the following ELPA archive:

http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/

See instructions at http://cauvery.nfshost.com/wiki.pl/ODT_Exporter





pagenos-after-upate.odt
Description: application/vnd.oasis.opendocument.text


pagenos.odt
Description: application/vnd.oasis.opendocument.text
#+OPTIONS: ':nil *:t -:nil ::t :t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:t c:nil creator:comment d:(not LOGBOOK) date:t
#+OPTIONS: e:t email:nil f:t inline:t num:3 p:nil pri:nil prop:nil
#+OPTIONS: stat:t tags:t tasks:t tex:t timestamp:t toc:t todo:t |:t
#+TITLE: headline
#+DATE: 2014-02-12 Wed
#+AUTHOR: Jambunathan K
#+EMAIL: kjambunat...@gmail.com
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 24.3.50.20 (Org mode 8.2.5h)

#+TOC: headlines


* Headline 1

Some text. See [[Headline 2]].

#+PAGEBREAK:
* Headline 2

Some more text.  


Re: [O] org-odt table with borders on all sides

2014-02-10 Thread Jambunathan K

rajat mukherjee rajat.mukher...@cytel.com writes:

 org-odt table with borders on all sides

Try one of this

|---+---+---|
|  |   |  |
| a | b | c |
| d | e | f |
| g | h | i |
|---+---+---|

or


#+ATTR_ODT: :style GriddedTable
| a | b | c |
| d | e | f |
| g | h | i |

With the first version above, the vertical rules are indicated by 
and  markers.  The horizontal rules in the exported document will
match the hrules in the table.

If it doesn't work as expected in stock Org, try my package (which is
documented at http://cauvery.nfshost.com/wiki.pl/ODT_Exporter)




Re: [O] Need extra text in ODT export of headers

2014-02-08 Thread Jambunathan K

This is what I tried and I have LibreOffice 4.1.3.2 on Debian.  See
attachments for what I mean down below.

1. Export test.org to test.odt
2. Open test.odt, fix outline numbering and save as test.ott
3. Copy test.org to test-styled.org and apply test.ott as ODT_STYLES_FILE.
4. Export test-styled.org to test-styled.odt
5. I see that test-styled.odt has the required outline numbering.

   Don't be fooled by the numbering in TOC.  The TOC is not in sync with
   what the style says.  Just update the TOC (i.e., Update All) and
   everything will be just fine.

I am assuming that what I show here - with some variations thereof - is
what the OP wants to achieve.



test-styled.odt
Description: application/vnd.oasis.opendocument.text
#+OPTIONS: ':nil *:t -:nil ::t :t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:t c:nil creator:comment d:(not LOGBOOK) date:t
#+OPTIONS: e:t email:nil f:t inline:t num:t p:nil pri:nil prop:nil
#+OPTIONS: stat:t tags:t tasks:t tex:t timestamp:t toc:t todo:t |:t
#+TITLE: test
#+DATE: 2014-02-09 Sun
#+AUTHOR: Jambunathan K
#+EMAIL: kjambunat...@gmail.com
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 24.3.50.20 (Org mode 8.2.5h)

#+OPTIONS: tex:dvipng
#+ODT_STYLES_FILE: test.ott


* one

** two

*** three


test.ott
Description: application/vnd.oasis.opendocument.text-template


test.odt
Description: application/vnd.oasis.opendocument.text
#+OPTIONS: ':nil *:t -:nil ::t :t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:t c:nil creator:comment d:(not LOGBOOK) date:t
#+OPTIONS: e:t email:nil f:t inline:t num:t p:nil pri:nil prop:nil
#+OPTIONS: stat:t tags:t tasks:t tex:t timestamp:t toc:t todo:t |:t
#+TITLE: test
#+DATE: 2014-02-09 Sun
#+AUTHOR: Jambunathan K
#+EMAIL: kjambunat...@gmail.com
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+EXCLUDE_TAGS: noexport
#+CREATOR: Emacs 24.3.50.20 (Org mode 8.2.5h)

* one

** two

*** three



Christian Moe m...@christianmoe.com writes:

 Hi, Jambunathan,

 I was going to tell Dan the same thing, but for some reason, the below
 doesn't work for me with outline numbering. Can you confirm that it
 works for you?

 When I try, the paragraph styles from the template *do* get applied
 (tested by coloring some headings), but the custom outline numbering
 does not.

 To see if it ought to, I also tried to load styles from the OTT
 into an ODT document, but again, custom outline numbering did not follow
 along, so I'm not sure if it should be expected to work with Org ODT
 export either.

 Yours,
 Christian

 Jambunathan K writes:

 The following message is a courtesy copy of an article
 that has been posted to gmane.emacs.orgmode as well.

 Dan Griswold kc5...@gmail.com writes:

 The only downside right now seems to be that I have to do the outline
 numbering for each file in the manuscript. But there are only 9 of
 them.

 You just need to create a opendocument template file and have all the
 org file use it.

 See

(info (org) Applying custom styles)

 1. Export ONE document.
 2. Fix outline numbering
 3. Save the file as say custom-style.ott (Note: It is OTT and not ODT)
 4. Add a directive to ALL THE OTHER org file as below.

M-x org-export-insert-default-template odt

and modify the ODT_STYLES_FILE directive as below.

   #+ODT_STYLES_FILE: ~/a/b/custom-style.ott

 5. Now if I export the org files with (4), you will get the outline
numbering that you desire.



Re: [O] export tables to html and odt, table borders

2014-02-08 Thread Jambunathan K
Uwe Brauer o...@mat.ucm.es writes:

 Is there anything similar for the odt  exporter?

1. What SPECIFICALLY do you want?
2. How many tables do you have in your document?
3. What aspects do you want to be uniform across your tables?
4. What aspects you want changed on a per-table basis?

If you want glosses or an all out gridded table, you need to start using
the ELPA package or the use the :style GriddedTable. See following
posts:

http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg01203.html
http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg01088.html
http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg01312.html




Re: [O] Need extra text in ODT export of headers

2014-02-03 Thread Jambunathan K
Dan Griswold kc5...@gmail.com writes:

 The only downside right now seems to be that I have to do the outline
 numbering for each file in the manuscript. But there are only 9 of
 them.

You just need to create a opendocument template file and have all the
org file use it.

See

   (info (org) Applying custom styles)

1. Export ONE document.
2. Fix outline numbering
3. Save the file as say custom-style.ott (Note: It is OTT and not ODT)
4. Add a directive to ALL THE OTHER org file as below.

   M-x org-export-insert-default-template odt

   and modify the ODT_STYLES_FILE directive as below.

  #+ODT_STYLES_FILE: ~/a/b/custom-style.ott

5. Now if I export the org files with (4), you will get the outline
   numbering that you desire.




Re: [O] [ANN] ELPA package for ODT and JabRef exporters

2014-01-29 Thread Jambunathan K
Aric Gregson aorc...@mac.com writes:

 Jambunathan,

 I have tried to install this. I even created a blank .emacs file as you
 suggested. Everything appears to be fine with the exception of 

C-h v org-odt-styles-dir
C-h v org-odt-schema-dir

 These do not appear as options for me. I'm not sure if that matters.

Most likely that ODT backend is not loaded.  Try this.

1. Configure org-export-backends and add ODT to it.
2. Put (setq org-odt-data-dir nil) at the start of Emacs.
3. Visit an Org file and export to ODT

Now check the *Messages* buffer and the value of the above variables.


 Thanks, Aric




[O] [bug] Code snippets are not getting numbered

2014-01-28 Thread Jambunathan K

Nicolas

Code snippets are not getting numbered... Also take a look at
`org-export-resolve-coderef'.

The below example is from (info (org) Literal examples)

--8---cut here---start-8---
#+BEGIN_SRC emacs-lisp -n -r
(save-excursion  (ref:sc)
   (goto-char (point-min))   (ref:jump)
#+END_SRC

In line [[(sc)]] we remember the current position.  [[(jump)][Line (jump)]]
jumps to point-min.
--8---cut here---end---8---




Re: [O] [ANN] ELPA package for ODT and JabRef exporters

2014-01-27 Thread Jambunathan K

This message SUPERSEDES instructions in the parent post (at
http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg01134.html)

Elevator Pitch
==

I fixed few bugs in ELPA tarball (Thanks Benjamin).  Adding the
following URL to

http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/

to

   C-h v package-archives

should work now.

WARNING: Don't forget the trailing / in the above URL.


ELPA tar for ODT + JabRef
=

I have prepared an ELPA package

org-odt-*.tar

for easy distribution of bug fixes from private git repository [fn:1].

The package contains both ODT exporter and JabRef exporter.  It also
contains a standalone documentation (in both info and pdf format) for
the ODT exporter.

Pre-Requisites
==

Before installing the ODT tarball please ensure that you are using

1. org  8.0
2. Emacs  24.3.50

A good way to find out if you are running org  8.0 is to do this:

M-x locate-library ox

If you get a hit, then you are using org  8.0.

If you don't find ox.el, you need to upgrade to org  8.0.  The best way
to upgrade to the most recent org is via package manager (i.e., M-x
list-packages)



Steps for installing ODT + JabRef ELPA package
=

1. Clear out your .emacs.  (Not needed, if you know what you are doing)

2. Ensure that you are using org  8.0 (See previous instructions)

3. Update your package archives to include the org-odt repo.

(custom-set-variables
 '(package-archives
   (quote
((gnu . http://elpa.gnu.org/packages/;)
 (org-odt
  . http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/;)

4. Now do

   M-x list-packages

   Look out for org-odt package.  Install it.

5. Goto start of .emacs and add the following line.  (This should be the
   FIRST LINE in your .emacs)

   (setq org-odt-data-dir nil)

6. Check ON the ODT option under

M-x customize-variable RET org-export-backends RET

7. Restart Emacs

8. Make sure that the following commands point to the ELPA directory

   M-x locate-library RET ox-odt RET
   M-x locate-library RET ox-jabref RET
   C-h v org-odt-styles-dir
   C-h v org-odt-schema-dir

9. Visit test.org and export it. Enjoy.



Some existing gotchas and bugs wrt `org-odt-data-dir'
=

(5) above is needed to work around a bug in Emacs snapshot and Org build
system.



How to host the above files on your own ELPA server
==

If someone wants to distribute the above files, please put the following
files in your web-server.

1. Copy org-odt-MMDD.tar
2. Copy archive-contents

Hint for ELPA Hosting
==

See directory structure of http://orgmode.org/elpa/

1. Various tar files are under that directory.
2. archive-contents points to the very LATEST tar file.

   http://orgmode.org/elpa/archive-contents



ODT exporter and Copyright Issues and a Note to the Users
=

[fn:1] http://repo.or.cz/w/org-mode/org-kjn.git

The above repo. contains many bug-fixes and enhancements that are NOT
available with Emacs-24.4 or Orgmode git repo.

For some reasons, emacs-devel, Org developers and I don't meet eye to
eye. See
http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00509.html.  So
the enhancements that are distributed with the above archive are
unlikely to be avaible with Emacs or Org git repo.

To the people who rely on ODT exporter for their day to day use and want
it as part of Emacs

1. Find someone with Copyright Assignment to fix the critical issue(s).

2. Write to Gnu/Linux distributors - Debian, Gentoo etc - and persuade
   them to apply patches from my private repo before building the
   org-mode or Emacs deb packages.

Note to Org developers
==

If anyone comes this far, let me note that Bastien's latest change to
ox-odt.el resembles very much fix on my Org private repo.  I would argue
that this fix borrows very liberally from my un-assigned changes.  So
fill-in-the-blanks.




Re: [O] Which `odt-content' variable should I use? Why are there two?

2014-01-27 Thread Jambunathan K
Brady Trainor algeb...@uw.edu writes:

 I was browsing the customize group org-export-odt.


The old exporter and the new exporters share the same custom group.  So
you are seeing the old and new variables in the custom buffer.  (IMO
this is a bug.)



NEW variables do NOT have an extra export in their names
==

If you are using org  8.0, the variables that you are interested in
should come from ox-odt.el.

M-x find-library ox-odt
M-
C-s defcustom


(defcustom org-odt-prettify-xml nil
   ^^^
(defcustom org-odt-schema-dir
   ^^^

Note that NEW variables don't have export in their names.  Except for
change in the prefix, the functionality is for most part the same.



Migrate: Use search and replace


So, a simple renaming in your .emacs should suffice for migrating your
old settings to the new settings.

C-x C-f .emacs
M-% org-export-odt- org-odt-
C-x C-s







Re: [O] No title in org-export-as-odt

2014-01-27 Thread Jambunathan K
Brady Trainor algeb...@uw.edu writes:

 Miguel Ruiz rbenit68 at yahoo.es writes:

   Any hint to get rid of the title in a org-export-as-odt

If you are seeing `org-export-as-odt' then you are using old Org (
8.0).  Old exporters are no longer maintained.  So you upgrade to the
latest Org (org  8.0) via M-x list-packages.

Btw, I have a provided a fix as part of my ELPA package[fn:1].  If

   #+TITLE:

is made of just whitespaces, the exported document will no longer have
the corresponding fieldnames.

[fn:1] http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg01312.html




Re: [O] Aligned glosses in orgmode (for export to odt/doc)

2014-01-24 Thread Jambunathan K

Jambunathan K kjambunat...@gmail.com writes:

 Benjamin Slade sl...@jnanam.net writes:

 One potential solution would be an orgmode setup which produces
 borderless tables with an optimal width column setting. I don't know
 how to do this in orgmode though (or if it can be done currently).

In Office XML, the style:table-column-properties has
style:use-optimal-column-width=true.  Based on my little
experimentation, I find that LibreOffice doesn't honor this setting.
This is the reason why columns are emitted unoptimized.

From LibreOffice UI, if you choose Optimal Column Width, then the
table columns are emitted NOT with above XML attribute but with
hard-coded on-the-fly widths.

May be someone can take the above issue with LibreOffice folks...

 2. Open OrgOdtContentTemplate.xml and find a style named
 CustomTableCell.  Edit it so that it has no borders.

Ignore the above suggestion.  It is too tedious.  I have flushed out a
fix as part of the following ELPA tar


http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/org-odt-20140124.tar

With this fix, the behaviour of the rules in the ODT table will be much
the same as that in

(info (org) Tables in ODT export)

except for the following modification:

The ODT table will have top rule (or bottom rule) only if the Org-mode
table has one.

Similarly, ODT table will have left rule (resp. right rule) only if the
leftmost (resp. rightmost) data column has  and  markers.



To cut the long story short, here is how you produce a borderless table.
Use the :widths and :rel-width property to have the table look compact
and nice.


--8---cut here---start-8---

This table has no rules.  It occupies 80% of page width.  The columns
will be in the ratio of 4:7:10.

#+ATTR_ODT: :rel-width 80
#+ATTR_ODT: :widths 3,6,9
| a   | b | c |
| d   | e | f |


--8---cut here---end---8---



test.odt
Description: application/vnd.oasis.opendocument.text


Re: [O] Including Tables and Figures in TOC for org-odt-export

2014-01-23 Thread Jambunathan K
Rajat Mukherjee rajat.mukher...@cytel.com writes:

 Hello Org-mode users,
 Can any body direct me as to how to include list of tables and figures in the 
 toc when exporting to odt from orgmode.

Org cannot generate TOC of tables and figures.  You need to use
LibreOffice to insert Index of Table and Figures (by hand).

You are the first user to ask for this feature.  If I see more people
shouting out for this feature, I can consider adding it.

 Many thanks in advance,
 Rajat.




[O] [ANN] ELPA package for ODT and JabRef exporters

2014-01-23 Thread Jambunathan K

I have prepared an ELPA package

org-odt-*.tar

for easy distribution of bug fixes from private git repository [fn:1].

The package contains both ODT exporter and JabRef exporter.  You need to
make sure that you are using

1. org  8.0
2. Emacs  24.3.50



Steps for installing ODT + JabRef ELPA package
=

1. Clear out your .emacs.  (Not needed, if you know what you are doing)

2. Visit http://repo.or.cz/w/org-mode/org-kjn.git/tree/master and
   download the a tar file named org-odt-MMDD.tar.  (Click on the
   raw link)

   As of now, the file is available at:
   
   
http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/org-odt-20140123.tar

3. M-x package-install-file RET path-to-org-odt-*.tar RET

4. Goto start of .emacs and add the following line.  (It should be the
   first line in your .emacs)

   (setq org-odt-data-dir nil)

5. Check the ODT option under

M-x customize-variable RET org-export-backends RET

6. Restart Emacs

7. Make sure that the following commands point to the ELPA directory

   M-x locate-library RET ox-odt RET
   M-x locate-library RET ox-jabref RET
   C-h v org-odt-styles-dir
   C-h v org-odt-schema-dir

8. Visit test.org and export it. Enjoy.



Some existing gotchas and bugs
=

(4) above is needed to work around a bug in Emacs snapshot and Org build
system.


Wrt (2) and (3), I would have expected that the following

(custom-set-variables
 '(package-archives
   (quote
((gnu . http://elpa.gnu.org/packages/;)
 (org-odt
  . http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/;)

would suffice to do install via

  M-x list-packages.

Unfortunately for some reasons package.el refuses to download the
archive-contents located at
http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/archive-contents.
Any one interested in investigating this and if necessary file a bug
report against Emacs.



How to host the above files on your own ELPA server
==

If someone wants to distribute the above files, please put the following
files in your web-server.

1. Copy org-odt-MMDD.tar
2. Copy archive-contents

See directory structure of http://orgmode.org/elpa/

1. Various tar files are under that directory.
2. archive-contents points to the very latest tar file.

   http://orgmode.org/elpa/archive-contents



ODT exporter and Copyright Issues and a Note to the Users
=

[fn:1] http://repo.or.cz/w/org-mode/org-kjn.git

The above repo. contains many bug-fixes and enhancements that are NOT
available with Emacs-24.4 or Orgmode git repo.

For some reasons, emacs-devel, org developers and I don't meet eye to
eye. See
http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00509.html.  So
the above fixes are unlikely to be avaible with Emacs or Org git repo.

To the people who rely on ODT exporter for their day to day use and want
it as part of Emacs

1. Find someone with Copyright Assignment to fix the critical issue(s).

2. Write to Gnu/Linux distributors - Debian, Gentoo etc - and persuade
   them to apply patches from my private repo before building the
   org-mode or Emacs deb packages.

Note to Org developers
==

If anyone comes this far, let me note that Bastien's latest change to
ox-odt.el resembles very much fix on my Org private repo.  I would argue
that this fix borrows very liberally from my un-assigned changes.  So
fill-in-the-blanks.




Re: [O] Aligned glosses in orgmode (for export to odt/doc)

2014-01-23 Thread Jambunathan K
Benjamin Slade sl...@jnanam.net writes:

 Can anyone suggest how this (or some other solution to producing
 interlinear glosses) might be implemented in an orgmode-odt/doc/docx
 setup? One potential solution would be an orgmode setup which produces
 borderless tables with an optimal width column setting. I don't know
 how to do this in orgmode though (or if it can be done currently).

Feel free to use my ELPA package. I have documented the procedure here

http://permalink.gmane.org/gmane.emacs.orgmode/81347

Going forward, I will release my packages - ox-odt and org-jabref - via
ELPA tarball.  So, ELPA installation will be the recommended method for
accessing my private package.



You can ignore my earlier message at:

http://permalink.gmane.org/gmane.emacs.orgmode/81301




Re: [O] Citations and references in ODT

2014-01-23 Thread Jambunathan K


Try out the org-odt-* ELPA package and let me know how things go.


Aric Gregson aorc...@mac.com writes:

 --On January 19, 2014 11:16:53 AM +0530 Jambunathan K
 kjambunat...@gmail.com wrote:

 Are you still stuck here or you made some repairs and stuck elsewhere.
 ...
 IMO, starting from scratch (i.e., an empty .emacs) and installing Org
 via M-x list-packages is a sure way to have a working setup with minimal
 fuss.

 Yes, still stuck here. All works fine so long as I don't try to use
 your modified files, thus I imagined it was due to some error when
 installing your modified files for org, which it must be. I will look
 through and reinstall again and see what I can find. Otherwise, works
 well enough now without the ox-jabref.el.

 Aric




Re: [O] Citations and references in ODT

2014-01-23 Thread Jambunathan K
Jambunathan K kjambunat...@gmail.com writes:

 Try out the org-odt-* ELPA package and let me know how things go.

See

http://permalink.gmane.org/gmane.emacs.orgmode/81347




Re: [O] odt exporter on mixed org setup

2014-01-23 Thread Jambunathan K

Achim Gratz strom...@nexgo.de writes:

 That's the result of using Emacs' build system, not Org's.

Someone has to fix it...

It should either be

nil

or
(expand-file-name ./org/ data-directory)

If that path is wrong, the ODT exporter is really not usable.  I think
nil may be a good idea.








Re: [O] Aligned glosses in orgmode (for export to odt/doc)

2014-01-22 Thread Jambunathan K

Benjamin Slade sl...@jnanam.net writes:

 One potential solution would be an orgmode setup which produces
 borderless tables with an optimal width column setting. I don't know
 how to do this in orgmode though (or if it can be done currently).

This feature is available only in my private repo.  



If you are using Git see instructions at:

http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00522.html

   (Search for Download)

Once you download and copy the ox-odt.el file, make sure you do

M-x byte-compile-file

to create .elc file.



If you are using ELPA see instructions at:

http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg00518.html

(Search for Untar)



1. Identity where your styles files come from.  Look at the *Messages*
   buffer for clue.

2. Open OrgOdtContentTemplate.xml and find a style named
CustomTableCell.  Edit it so that it has no borders.

Replace this

style:style style:name=CustomTableCell style:family=table-cell
  style:table-cell-properties style:vertical-align=top 
fo:background-color=#ff fo:padding=0.097cm fo:border-left=0.002cm 
solid #00 fo:border-right=0.002cm solid #00 fo:border-top=0.002cm 
solid #00 fo:border-bottom=0.002cm solid #00

with this:

style:style style:name=CustomTableCell style:family=table-cell
  style:table-cell-properties style:vertical-align=top
  fo:background-color=#ff fo:padding=0.097cm


3. Create a tables as below.  (GriddedTable is part of C-h v
   `org-odt-table-styles').  WARNING: Don't try to understand the
   documentation.  I don't it understand it myself.

--8---cut here---start-8---

Rows will be in the ratio of 2:3:4

#+ATTR_ODT: :style GriddedTable
| 1 | 2 | 3 |
| _a_ | _b_ | _c_ |
| _d_ | _e_ | _f_ |


Rows will be in the ratio of 4:7:10.  Table will occupy 80% of page width.

#+ATTR_ODT: :rel-width 80
#+ATTR_ODT: :widths 3,6,9
#+ATTR_ODT: :style GriddedTable
| 1 | 2 | 3 |
| _a_ | _b_ | _c_ |
| _d_ | _e_ | _f_ |


--8---cut here---end---8---

4. Export it.  You will get the attached ODT file.



test.odt
Description: application/vnd.oasis.opendocument.text


Re: [O] odt exporter on mixed org setup

2014-01-22 Thread Jambunathan K
Achim Gratz strom...@nexgo.de writes:

 Bzzt. Wrong.

I have my reservations.  With stock Emacs Snapshot (i.e., without any
separate Org installation - git or elpa) at Bzr version 116124, at line
16, I am seeing

;;;###autoload
(defvar org-odt-data-dir /usr/share/emacs/etc/org
  The location of ODT styles.)

I hard-coded path, on a platform-independent file, makes me cringe?




Re: [O] orgstruct-mode taking over C-c C-f

2014-01-21 Thread Jambunathan K
Eric Abrahamsen e...@ericabrahamsen.net writes:

 Debugger entered--Lisp error: (void-function set-transient-map)

New function in snapshot builds.  From the ChangeLog

2013-12-23  Chong Yidong  c...@gnu.org

* subr.el (set-transient-map): Rename from
set-temporary-overlay-map.  Doc fix.






Re: [O] orgstruct-mode taking over C-c C-f

2014-01-21 Thread Jambunathan K
Eric Abrahamsen e...@ericabrahamsen.net writes:

 Debugger entered--Lisp error: (void-function set-transient-map)

New function in snapshot builds.  ChangeLog says

2013-12-23  Chong Yidong  c...@gnu.org

* subr.el (set-transient-map): Rename from
set-temporary-overlay-map.  Doc fix.




Re: [O] How to write medical journal articles with org-mode

2014-01-20 Thread Jambunathan K
regcl re...@channing.harvard.edu writes:

 I am looking for advice regarding how to write medical journal
 articles using org-mode.

 My primary motivations are the desire to ... automate the flow of data
 from computation to publication, avoid clerical errors, speed up the
 conversion of computational results to manuscript, and do 99.9% of my
 typing in emacs ;)

 My primary computation platform is linux clusters with OS X desktops.
 I have used org-mode for project management and HTML export of
 provisional computational results in working papers for ~1 year.

 I recently started using org-mode/babel/ESS/R to export computation
 results to HTML.

 It looks like the medical journals require MS word submissions.  I
 have used the scheme shown below to get MSword to/from my
 collaborators for comments  corrections ...

 doc.org--+
 ||
 v|
 M-x org-odt-export-to-odt|
 ||
 v| 
 Open office  |
 ||
 v|
 MS Word  |
 ||
 v|
 doc.docx |
 ||
 v|

You can do it in a single step with
`org-odt-preferred-output-format'. See

(info (org) Extending ODT export).

 1) Has anyone out there used org-mode to produce medical journal
 articles (other than demonstration of reproducible research)?

 3) How do I get references into MS word?

You can use ODT Export with JabRef using ox-jabref.el.  You may want to
check whether the JabRef project has layout files that can create
citations in a format acceptable to Medical Journals.  (Search the list
reverse chronologically.)





Re: [O] How to write medical journal articles with org-mode

2014-01-20 Thread Jambunathan K

regcl re...@channing.harvard.edu writes:

 org  latex  pandoc  docx ?

Too many moving parts.  Each part coming from different manufacturers.

The components will rub against each other and the resulting heat may
vaporize the lubricant.

Pick a workflow that has minimum dependencies - even if that means
throwing Emacs out the Windows.




Re: [O] odt exporter on mixed org setup

2014-01-18 Thread Jambunathan K
Rustom Mody rustompm...@gmail.com writes:

 Currently I have a setq on org-mode-hook

I don't run make install, I just do make.

Here is what I have in .emacs.

DO NOT do an explicit (require 'ox-backend).  Instead customize
`org-export-backends' and the ODT exporter there.

Here is the sequence I have in my .emacs.

(add-to-list 'load-path ~/src/org-mode/lisp/)
(require 'org-loaddefs)

(add-to-list 'load-path ~/src/org-mode/contrib/lisp/)

(setq org-odt-data-dir ~/src/org-mode/etc/)

(custom-set-variables
 '(org-export-backends
   (quote (ascii html icalendar latex odt org)))







Re: [O] odt exporter on mixed org setup

2014-01-18 Thread Jambunathan K

Rustom Mody rustompm...@gmail.com writes:

 On second thoughts

Don't disturb it
So long as it works
Scribble the notes somewhere
Tuck it in a safe place
(So that)
When times are bad
And things go awry
Revisit the memories
(And) Set things right again.








Re: [O] odt exporter on mixed org setup

2014-01-18 Thread Jambunathan K
Rustom Mody rustompm...@gmail.com writes:

 On second thoughts

Added few more lines, Sundays after Harvest season are the best :-)

Don't disturb it
So long as it works
Scribble the notes somewhere
Tuck it in a safe place

So that,
When times are bad
And things go awry
Revisit the memories
(And) Things are right again

Still if,

Things are beyond repair
Or gears rusted
Shout out my name
From the darkest corridors
Will come a repair-man.





Re: [O] Citations and references in ODT

2014-01-18 Thread Jambunathan K
Aric Gregson aorc...@mac.com writes:

 From http://permalink.gmane.org/gmane.emacs.orgmode/80832

 OpenDocument export failed: Symbol's function definition is void:
 org-element-cache-reset

 I also receive this error the first time that I try to open an org
 file. I can open the file if I try another time. 

Are you still stuck here or you made some repairs and stuck elsewhere.

The above error has nothing to do ox-odt.el or ox-jabref.el.  It says
your org-element.el is coming from some unexpected path.  The problem is
usually because of wrong installation.

 Jambunathan has any ideas as to why his exporter is not working with my
 set-up.

It is difficult for me to imagine how you set up things.  (There are so
many moving parts).  All I can say is this: Not related to odt/jabref
exporters.  Something is related to how you have setup things.  Nothing
more.

You will have better luck if

1. You start emacs with a blank .emacs
2. Install Org from ELPA.

Once you have a working ox-odt.el setup, then you can make additional
modifications to that setup and install ox-jabref.el.



Your best debug tools are

1. M-x find-library
2. M-x locate-library
3. M-x list-load-path-shadows.

You can run the above commands vis-a-vis the following libraries

1. org-loaddefs
2. org-compat
3. org-element.el

and investigate *for yourself* whether the paths are getting mixed up.
If you analyse the output, you will understand what I mean.  Most likely
there are stale or non-existent .elc files or the .elc files were
generated against a stale library.

IMO, starting from scratch (i.e., an empty .emacs) and installing Org
via M-x list-packages is a sure way to have a working setup with minimal
fuss.










Re: [O] odt exporter on mixed org setup

2014-01-16 Thread Jambunathan K
Rustom Mody rustompm...@gmail.com writes:

 Ended with: ox-odt cannot find factory style files

You need

(setq org-odt-data-dir ~/src/org-mode/etc/)

Modify the path.  If the *Messages* say that it is not able to find the
styles dir, it really means that it is not able to find the styles
files.

 Checked that it comes back it I use emacs23; goes away if I use
 emacs24 Checked that the messages when it works in emacs24 are like
 thus:

ODT exporter (and hence the style files) made it's appearance in
Emacs24.  (i.e., There is ALWAYS a styles file that the exporter can
safely fallback to.)  The styles file that the ODT exporter ACTUALLY
USES may come from stock Emacs and which may trail behind the git repo
over a period of time.

There is no ODT exporter in stock Emacs23.  So fallback MAY fail.



Stock Emacs has styles file under:

C-h v data-directory

If you installed Org as a standalone package, use apt to find out where
it is located.



Someone reported a bug on ox-odt.el paths not being modified when the
ODT exporter moved from contrib/ to lisp/ directory in git repo.
(Interested people can investigate and propose a patch.)  I don't have a
link to that post right now.



The way make system treats `org-odt-data-dir' is a bit flaky.  I didn't
pursue the issue further because I felt it is pointless arguing with
some people.





Re: [O] odt exporter on mixed org setup

2014-01-16 Thread Jambunathan K
Rustom Mody rustompm...@gmail.com writes:

 I could check that org-odt-data-dir is coming in bound to
 /usr/share/emacs/etc/org (which is non-existent) before the defvar in
 ox-odt.el, so that defvar is not happening

 And changing the prefix in local.mk does not seem to do anything

Don't worry about the make file.  (It is difficult for the make file to
cater to different distributions, different installations - git, release
tar file etc)

The most easiest setup will be ELPA or using ox-odt that ships with
Emacs proper.




Re: [O] odt exporter on mixed org setup

2014-01-16 Thread Jambunathan K
Rustom Mody rustompm...@gmail.com writes:

 org-odt-data-dir is coming in bound to /usr/share/emacs/etc/org (which
 is non-existent)

Open a bug against the packager.  (ox-odt.el is an exception.  It is
uncommon for Emacs libraries to come with auxiliary support files).

The distributors need to make sure

1. Style files are bundled correctly.
2. `org-odt-data-dir' is configured to point to (1).

I don't know much about the build system.




Re: [O] Citations and references in ODT

2014-01-14 Thread Jambunathan K

I have introduced a new variable `org-odt-cite-regexp'.  You can use M-x
customize-variable to change the default settings. [1, 4]

I would like to (eventually) add support for prenote and postnote
options for ODT export [2].  These intext options could be quite useful
when citation references use text rather than numbers [3].

[1] Download ox-odt.el and ox-jabref.el from my private repo at
http://repo.or.cz/w/org-mode/org-kjn.git

[2] http://orgmode.org/worg/org-tutorials/org-latex-export.html

[3]

(custom-set-variables
 '(org-jabref-odt-citation-transcoders
   (quote (org-jabref-odt-citation-reference/text
   . org-jabref-odt-bibliography/numbered

[4]

,[ C-h v org-odt-cite-regexp RET ]
| org-odt-cite-regexp is a variable defined in `ox-odt.el'.
| Its value is
| 
\\(?:\\(cite[[:word:]]*\\)\\(\\(?:\\[\\(?:.\\|\n\\)*]\\)?\\)\\({.*?}\\)\\)
| 
| Documentation:
| Regular expression to identify \cite[]{} fragments.
| After a match against this regular expression, various portions
| of the latex fragment - command, options and argument - is
| available in `match-string's 1, 2 and 3 respectively.
| 
| For example, given the following cite command
| 
| \citep[see][chap. 2]{jon90}
| 
| a match against the above regexp, will result in `match-string's
| as below:
| 
| 1 = citep
| 2 = [see][chap. 2]
| 3 = {jon90}.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 24.4 of Emacs.
| 
| [back]
`

Ken Mankoff mank...@gmail.com writes:

 Hi,

 I find the ODT export very useful. Working on another document
 imported from LaTeX I have a lot of \citep{} and \citet{} in addition
 to \cite{}. Is it possible for ox-jabref.el to support this even if it
 does not distinguish between the T and P?

 I edited the line near the bottom with the regex and changed

 (value (∧ (string-match cite{\\(.*?\\)} latex-frag)

 to

 (value (∧ (string-match cite?{\\(.*?\\)} latex-frag)

 But it did not help.

 -k.




Re: [O] Citations and references in ODT

2014-01-14 Thread Jambunathan K
Aric Gregson aorc...@mac.com writes:

 Ken Mankoff mank...@gmail.com writes:

 I find the ODT export very useful. Working on another document imported
 from LaTeX I have a lot of \citep{} and \citet{} in addition to \cite{}. Is
 it possible for ox-jabref.el to support this even if it does not
 distinguish between the T and P?

 On a similar note, would it be possible to add support for the markdown
 style of references?

 [@Authoryear; @anotherauthoryear]

 I have so many like this across files.

This will be an one-off change, so I am hesitant to consider this.

Side Note:
==

As far as Org is concerned, Citations are not standardized (i.e., They
are not defined as part of org-syntax [1]).  But, the current practive
is to support \cite[]{ } style of markups using non-core, contrib
modules like ox-bibtex and ox-jabref.

I am interested in considering all suggestions or use-cases that extends
or improves upon the current practice. For example, handling of prenote
and postnote arguments[2, 3].

[1] http://orgmode.org/worg/dev/org-syntax.html
[2] http://permalink.gmane.org/gmane.emacs.orgmode/80846
[3] This would require changes to JabRef *.layout files.

 Thanks, Aric




Re: [O] Org Export to ODT Problem Files

2014-01-14 Thread Jambunathan K
Aric Gregson aorc...@mac.com writes:

   4. Figure and table references are by section, sort of like old
 fashioned latex.

 For me, I am not writing a book or anything very long, just
 manuscripts. Thus, I would prefer just to label each figure in order and
 each table in order. I would therefore get Figure 1, Figure 2, etc and
 Table 1, Table 2, etc in the order of appearance in the text. There is
 no reference to section that way.

You are looking for this

(custom-set-variables
 '(org-odt-display-outline-level 0))




Re: [O] No ODT export option

2014-01-14 Thread Jambunathan K

Debian lags quite a bit (from few months to years).  It is difficult to
say what version they are packaging.

The best and easiest way to install latest Org would be to via GNU ELPA
or Org ELPA.  See http://orgmode.org/elpa.html.

M-x list-packages

Once you insall the package, restart Emacs and do

M-x customize-variable org-export-backends

and enable ODT.

ps: If you are new to Emacs/Org, you will have less troubles if you
start with an empty .emacs (or more specifically a .emacs that doesn't
have any Org specific configuration.)

Hendrik Boom hend...@topoi.pooq.com writes:

 On Fri, 10 Jan 2014 11:32:55 -0500, Ista Zahn wrote:

 Hi Ken,
 
 ODT export isn't enabled by default. You can enable it by putting
 
 (require 'ox-odt)
 
 in your config file and restart emacs.
 
 Best,
 Ista

 I'm having this problem on Debian testing, but not on Debian stable.
 I have installed the org-mode package on both systems.

 Inserting (require 'ox-odt) at the end of my  !/.emacs file gives me
 Warning (initialization): An error occurred while loading `/home/
 hendrik/.emacs':

 File error: Cannot open load file, ox-odt

 To ensure normal operation, you should investigate and remove the
 cause of the error in your initialization file.  Start Emacs with
 the `--debug-init' option to view a complete error backtrace.

 so it doesn't look as if it worked.

 For the record, there is a  /usr/share/emacs/site-lisp/org-mode/ ox-odt.el 
 file.

 Also, export to html works, presumably using the ox-html.el file in that 
 same directory, and I don't have to say (require 'ox-odt).  I'd preume 
 that file is found by the same mechanism, so not finding ox-odt by 
 default is a bit of a puzzle.

 The Debian testing system, which works, has similar files in teh same 
 place, but their names start with org- instead of ox-




Re: [O] Org Export to ODT Problem Files

2014-01-11 Thread Jambunathan K

 I'm slow at learning the machinery behind Open Document Format

Oh, OK.  If you say so.




Re: [O] Citations and references in ODT

2014-01-11 Thread Jambunathan K
Ken Mankoff mank...@gmail.com writes:

 I'm now trying to get ODT w/ references and failing.

Show me a snippet that causes the problem.  You can COMMENT a tree or
add a :no-export tag to bisect.  Or you copy can copy over a subtree and
experiment with it.

 The message I get is:

 OpenDocument export failed: Format specifier doesn't match argument
 type

Difficult to say where it is coming from.

 I did the following based on your instructions and some guessing.

 1) I put ox-odt.el and ox-jabref.el and etc/schema and etc/styles in
 my ~/emacs.d/elpa/org-2014017 folder. Some of that involved
 overwriting existing files.

At the minimum you may have to

  M-x byte-compile-file ox-odt.el

and may be fix regenerate autoloads.  See the recipe at the end of this
message for a cumbersome but a fool proof method.

 2) I downloaded JabRef application (I'm on OS X), and copied the JAR
 file from inside it into your unit test folder. I ran java -jar
 jabref and opened MyLibrary.bib with the program and saved it. I did
 this because I assume I have to tell JabRef about the bib file?

You need to install the Chicago jar file which contain the *.layout file
that JabRef needs.

From the command line look at the output formats that JabRef reports.
You should see ODF there.

Do M-x find-library ox-jabref.el and follow the instructions there.

ODT exporter has it's own citaion mechanism and doesn't depend on
ox-bibtex.el.

 If I export to HTML, I do see all the equations, despite the MathToWeb
 error.

HTML uses MathJax while ODT uses MathToWeb. Two different things.

Look at

M-x org-export-as-odf-TAB

for checking against simple latex equations.

Check if the latex equations are png files or something else.

 If I export to ODT, emacs reports

 OpenDocument export failed: Format specifier doesn't match argument
 type

 I notice at the top of your test-new.org file the following line:

 #+ODT_STYLES_FILE: ~/list-table-1.odt

You can extract the relevant sections from test-new.org and experiment
with the excerpts.

 But I cannot find a list-table-1.odt anywhere in the unit test ZIP
 file or in your org-mode git repo (which I cloned, but elsewhere and
 then copied the files from there to my org-mode elpa repo).

One thing you could do is this

1. Download org-*.tar file with wget or firefox.
2. Untar it.
3. Replace ox-odt.el, the style files and copy over the ox-jabref.el
   file.
4. Re-create the tar file (with the new files).
5. Do

   M-x package-install-file

   to install the new elpa.

 Any hints about where I took a wrong step will be appreciated.

 Thanks,

   -k.




Re: [O] Org Export to ODT Problem Files

2014-01-10 Thread Jambunathan K

Comparison is nice.  Using pandoc to do org-odt is definitely
substandard.

Aric aorc...@mac.com writes:

 Thank you very much for the upgrade notice. The export to ODT from org-mode 
 works very well now. There are pluses and minuses it seems between pandoc and 
 org export.

 Org export -
   1. Includes figures and tables
   2. Includes pretty code mark-up

You can suppress fontification with this variable.

C-h v org-odt-fontify-srcblocks

   3. Lacks latex code export

Use dvipng or mathtoweb.

1. Dvipng

   Pro: Less problematic
   Con: Uses png images of the formulae.

2. MathToWeb

   Pro: Uses MathML

   Con: MathToWeb is new kid on the block.  May prove to be problematic
   with more complex formulae.

   If ltx-mathml conversion is problematic for some equations, you can
   create ODF files (OpenDocumentFormula files created with
   LibreOffice Math) by hand and insert an Org link to them.

   4. Figure and table references are by section, sort of like old
 fashioned latex.

But tell me what you yourself want here.

I have some ideas on how xrefs can be improved for the section
titles. See 
http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00585.html

I would like to hear what things you desire for xrefs to tables, figures
and equations.

You were making some remarks about position of captions...





Re: [O] Org Export to ODT Problem Files

2014-01-10 Thread Jambunathan K
Bastien b...@gnu.org writes:

 Please try with Org 8.2.5 or later, an issue with multiple figures
 not showing up in LibreOffice 4.1.x has been fixed.

Cool.

While you are at it, you can take care of export issues with non-utf-8
(spanish encoded) Org files as well.

http://lists.gnu.org/archive/html/emacs-orgmode/2013-10/msg00873.html

Jambunathan K.
Git Repo: http://repo.or.cz/w/org-mode/org-kjn.git




Re: [O] Citations and references in ODT

2014-01-10 Thread Jambunathan K

Aric aorc...@mac.com writes:
Ken Mankoff mankoff at gmail.com writes:

ox-odt.el supports citation via ox-jabref.el.



Use my private files for JabRef support
===

JabRef support is NOT part of Org distribution.  It is part of my
private repo at:

 http://repo.or.cz/w/org-mode/org-kjn.git

I have shared instructions on how to use my git repo at

http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00522.html

Don't git pull my repository (I keep rebasing it against Org master
repo).  Just copy relvant files.



Unit Test file for citations (with a sample .bib file)
==

The following link

http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-09/msg00572.html

has link a test-odt.zip file which has jar file, a .org file and a .bib
file.



If you run in to issues, write me a note and I will happy to make fixes
or enhancements.



If you find ox-jabref.el support useful you can leave a note to or
petition Stefan Monnnier (and particularly Michale Albinus, Juanama and
Jay Belanger).









Re: [O] Citations and references in ODT

2014-01-10 Thread Jambunathan K

Aric aorc...@mac.com writes:
Ken Mankoff mankoff at gmail.com writes:

ox-odt.el supports citation via ox-jabref.el.



Use my private files for JabRef support
===

JabRef support is NOT part of Org distribution.  It is part of my
private repo at:

 http://repo.or.cz/w/org-mode/org-kjn.git

I have shared instructions on how to use my git repo at

http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00522.html

Don't git pull my repository (I keep rebasing it against Org master
repo).  Just copy relvant files.



Unit Test file for citations (with a sample .bib file)
==

The following link

http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-09/msg00572.html

has link a test-odt.zip file which has jar file, a .org file and a .bib
file.



If you run in to issues, write me a note and I will happy to make fixes
or enhancements.



If you find ox-jabref.el support useful and you want ox-odt.el supported
by the original author (that would be me) you can leave a note (or
petition emacs-devel) for ...





Re: [O] Colorizing 'emacs-lisp' when it is exported?

2013-12-28 Thread Jambunathan K

Sharon Kimble boudic...@talktalk.net writes:

 Re: Colorizing 'emacs-lisp' when it is exported?

Search for htmlize or htmlfontify in the Org-mode and Emacs manuals.

 For once, google has drawn a blank, unfortunately!

Emacs is self-documenting.  If you are serious about using Emacs you
will ditch google (and even Emacswiki).



Re: [O] Warning (initialization): Your `load-path' seems to contain your `.emacs.d' directory

2013-12-20 Thread Jambunathan K




Paul Harper harper.pau...@gmail.com writes:

 Warning (initialization): Your `load-path' seems to contain
 your `.emacs.d' directory: /home/username/.emacs.d/
 This is likely to cause problems...
 Consider using a subdirectory instead, e.g.:
 /home/username/.emacs.d/lisp

(I know nothing about starter kit)

On a related note, this warning occurs with Emacs from bzr trunk.  The
problem surfaced in the help list.  See

http://permalink.gmane.org/gmane.emacs.help/94823





Re: [O] tricky odt export needs

2013-12-20 Thread Jambunathan K

I will respond to other items as I visit them.  Meanwhile, I would like
to add the following note for discussion.

Christian Moe m...@christianmoe.com writes:

 When headings are not numbered in export (#+options: num:nil), current
 ODT export outputs a cross-reference with a descriptive text equal to
 the heading text of the item the dedicated target is in.

When we are typesetting a xref in a backend - I can authoritatively
speak for the ODT backend - we need not be resticted to ONE-OF but can
have ANY-COMBINATION-OF descriptors.  What I mean is this:

In the pdf version of Emacs info manuals one typically sees all three of
a Section number AND a Description AND a Page number, something like:

See Section 3.1 [Tropical Storms], page 24.

In Org context, I am wondering whether there is such a need.



http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Reference-Syntax.html#Reference-Syntax

(There are some variations on the xref markup to restrict whether te
See is present or not, capitalized or not)

http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Cross-Reference-Commands.html#Cross-Reference-Commands




Re: [O] tricky odt export needs

2013-12-19 Thread Jambunathan K

Christian Moe m...@christianmoe.com writes:

 You can do cross-references with ordinary links. Have a look at the
 manual section 4.2, Internal links. However, what you get out of the
 box is textual references to e.g. section headings, not page
 references. You can change that for each reference individually by
 right-clicking on them in LibreOffice. There should be a way to get
 page references by default, but off the cuff, I'm not sure how.

I am interested in rolling out support for xref by pagenumbers.  I would
like to know what the standard or recommended practice is like.

So, when one says I want pagenumbers for xref, what xref-es they have
in mind.  Do they mean ONE-or-SOME-or-ALL of a xref to outline headings,
figure, table, source listings, formula etc.

Personally I wouldn't recommend use of filters to end users.  Filters
are useful for programmers not for the layman.





Re: [O] Bug: Bad ODT files when including multiple images [7.9.3f (release_7.9.3f-17-g7524ef at /usr/share/emacs/24.3/lisp/org/)]

2013-12-18 Thread Jambunathan K

The fix is available in private repository:

http://repo.or.cz/w/org-mode/org-kjn.git

As far as schema validation with .rnc files go, draw:name is an optional
attribute of draw:frame.  So, I am not sure why LibreOffice is insisting
on draw:name to exist and be unique.

Due to the above issue, I have also retired the support for
short-caption.



See my not pertaining to LibreOffice upgrades here:

http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00477.html

Due to this issue, I proposed that I maintain ox-odt.el right within
Emacs bzr repo.  Unfortunately, it resulted in some heated exchanges.

   http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00509.html


To the people who rely on ODT exporter for their day to day use and want
it as part of Emacs

1. Find someone with Copyright Assignment to fix the critical issue(s).

2. Write to Gnu/Linux distributors - Debian, Gentoo etc - and persuade
   them to apply patches from my private repo before building the
   org-mode or Emacs deb packages.
   


Download the files.  Don't use git.

The files relevant to ODT are

1. lisp/ox-odt.el
2. etc/styles
3. etc/schema
4. contrib/lisp/ox-jabref.el

(3) above is optional.  (4) is needed if you need export citations with
JabRef.

Tim wiskey5al...@gmail.com writes:

 Let me upgrade my LibreOffice and report back.
 Jambunathan,
was wondering if you had a chance to look at this error ?  I can confirm
 it is an issue on my Ubuntu 13.10 system with :
- emacs 24.3.1
- org-mode 8.2.4 (org-plus-contrib elpa package 20131216)
- libreoffice 4.1.3.2

 I use the odt export to create student handouts and *really* don't want to go
 back through 200+ documents to add captions to all of the images !

 Thanks

 -Tim 




Re: [O] Bug: Bad ODT files when including multiple images [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]

2013-12-17 Thread Jambunathan K
Tim wiskey5al...@gmail.com writes:

 Jambunathan,
was wondering if you had a chance to look at this error ?  I can confirm
 it is an issue on my Ubuntu 13.10 system with :
- emacs 24.3.1
- org-mode 8.2.4 (org-plus-contrib elpa package 20131216)
- libreoffice 4.1.3.2

I can see the problem on my side.

 I use the odt export to create student handouts and *really* don't
 want to go back through 200+ documents to add captions to all of the
 images !

This issue is a bit unfortunate.  Please don't modify your Org files.  I
will circulate a fix - if not a fix, atleast a workaround - in another
day.

Jambunathan K.




Re: [O] new odt-exporter: problems with formatting in captions

2013-12-16 Thread Jambunathan K

Wrt items (1) and (2), I am planning to remove the support for short
captions.  (The caption going as part of table:name or draw:name) as
part of fix for

http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00100.html

The fix is not ready yet.  I am just feeling lazy after having not
looked at the code for almost an year now.

NOTE: If someone knows how to accommodate short captions (so that an
that an Index/TOC could be generated from within LibreOffice based on
it, please let me know.)



For the benefit of audience, if you use embedded images in your document
the document produced by the ODT exporter will be openable by
LibreOffice  4.0 but not with LibreOffice  4.1.  (In other words,
LibreOffice folks have introduced some backward incompatible changes.)

To ensure that the document produced by the exporter is usable resave
the document from within LibreOffice.  (i.e., make some trivial changes
to the ODT document and do a save again).  This way the XML produced by
the exporter will be re-written by LibreOffice and the problem will be
averted.



As a side note, I am discussing with Emacs maintainers whether they
would be comfortable about having me maintain the exporter right from
within Emacs repo.  I am not sure how the discussion will go.

http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00509.html


martin.guert...@gmx.de (Martin Gürtler) writes:

 Hi,

 I just converted a 150 page document I used to convert to odt with the old
 exporter. Following problems occurred:

 1. table with #+CAPTION
If the caption contains formatting (~, ==, _, ^), the exporter
produces an invalid content.xml.  

minimal example:

 ---8
 #+OPTIONS:   num:t toc:nil \n:nil @:t ::t |:t ^:{} -:t f:t *:t :nil

 * First paragraph
 #+CAPTION: A_{1}^{2}
 | head 1| head2|
 |---+--|
 | content 1 | content2 |
 ---8

 The problem can be seen in the following xml fragment:

 ---8
 table:table table:style-name=OrgTable 
  table:name=Alt;text:span 
  text:style-name=OrgSubscriptgt;1lt;/text:spangt;lt;text:span 
  text:style-name=OrgSuperscriptgt;2lt;/text:spangt;
 ---8

 The table:name attribute ends prematurely at the OrgSubscript. This
 could probably be mended by using single quotes for these attributes
 inside attributes.

 2. again #+CAPTION

if the caption contains a string with /escaped/ underlines (please
note the #+OPTION ^:t)

 ---8
 #+OPTIONS:   num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t :nil

 * First paragraph
 #+CAPTION: MMDD\_hhmmss.csv. 
 | head 1| head2|
 |---+--|
 | content 1 | content2 |
 ---8

 The escaped _ is not detected; instead, a literal \ and subscript
 are detected, and teh document is invalid as above. This escaping
 seems not to be mentioned in the documentation, probably because it
 is no longer valid. Might be of interest to people who want to
 convert old documents.

 3. the \ref syntax seems not to work anymore; substituting by \ref{text}
by [[text]] worked.   

 4. Empty lines between #+NAME and the respective table are no longer tolerated

 remarks: I like the new smart quotes. More comfortable than putting in
 the utf characters via C-8-RET (which is handy, though, for simple
 formulae).

 Regards

 Martin




Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?

2013-12-05 Thread Jambunathan K
AW alexander.will...@t-online.de writes:

 Thank you, customization worked, but it did not start word -- I'm going 
 another way now.

I am playing a guessing game and don't know what I am saying.  Try this.


M-: (shell-quote-argument (read-string Enter string:))
 

When prompted enter

whatever wine whatever %s

Now put whatever string you get in *Pp Eval Output* DIRECTLY in to your
.emacs.  See the attached snippet.el for an idea of what I get.

Instead of passing env as part of the command, I think you can add this
to your .emacs.

(setenv WINEPREFIX /home/AW/.wine-office)

You can also do

M-x setenv

to set environment variables.



snippet.el
Description: application/emacs-lisp


Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?

2013-12-05 Thread Jambunathan K

AW alexander.will...@t-online.de writes:
 Thank you, customization worked, but it did not start word -- I'm going 
 another way now.

I am playing a guessing game and really don't know what I am saying.

Try this.


M-: (shell-quote-argument (read-string Enter string:))
 

When prompted enter

whatever wine whatever %s

Now put whatever string you get in *Pp Eval Output* DIRECTLY in to your
.emacs.  See the attached snippet.el for what I get.

Instead of passing env as part of the command, I think you can add this
to your .emacs.

(setenv WINEPREFIX /home/AW/.wine-office)

You can also do

M-x setenv

to set environment variables.



snippet.el
Description: application/emacs-lisp


[O] FYI Emacs-24.4 survey

2013-12-05 Thread Jambunathan K

http://www.emacswiki.org/emacs/FrequentlyEnabledPackages_Emacs244_Survey




Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?

2013-12-05 Thread Jambunathan K
AW alexander.will...@t-online.de writes:

 I found out, that things are much more complicated:

Did you try my suggestion?

What happened?

I gave a snippet.el.  You just need to copy paste that to .emacs.  It is
easy to figure out where and how.

(I know nothing about shell programming or environment variables and
such things)

 Thanks to you and everyone who offered help, but it was not a good
 idea.

You are running away.  We aren't.

Give it a try, Buddy.  We will figure out something and make you happy.




Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?

2013-12-05 Thread Jambunathan K
Nick Dokos ndo...@gmail.com writes:

 Off the top of my head, I would say

 (add-to-list 'org-file-apps
  '(\\.doc . env WINEPREFIX=\/home/AW/.wine-office\ wine 
 \C:\\windows\\command\\start.exe\ /Unix 
 \/home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft 
 Office/Microsoft Word 2010.lnk\))


 i.e. just the command you provided enclosed in double quotes, except that
 certain characters within have to be escaped:

The easiest way to get the same effect is to use

M-x customize-variable RET org-file-apps RET

and specify a command.  Once it is saved, the .emacs will have the
resulting nightmarish string :-)



Another way to quote a string would be to use

   M-x pp-eval-expression RET (read-string Enter string: ) RET

and copy-paste the output from *Pp Eval Output* to .emacs or .el file.



[O] Handshake: Org-mode + Emacs releases

2013-12-04 Thread Jambunathan K

Nicolas

Nicolas Goaziou n.goaz...@gmail.com writes:

 I have a half baked patch which allows to use export framework to handle
 radio tables. I'll try to complete it by the end of the year and propose
 it on the ML.

I see that you are adding features and doing a very quick iteration.
Nothing wrong with it and each sprint has been well-timed and planned.

I am a bit apprehensive that (what you think as) essentials MAY get
missed in Vanilla Emacs proper.  So it would be good if you could
communicate with Emacs developers the Org-mode features that you want
packed in the upcoming Emacs release.  (If this is already communicated,
well and good)

Stefan was indicating mid-December for the current release.  Needless to
say, having features bundled as part of pre-test builds would get more
beta-testing and coverage.



Re: [O] Handshake: Org-mode + Emacs releases

2013-12-04 Thread Jambunathan K
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Jambunathan K kjambunat...@gmail.com writes:

 I am a bit apprehensive that (what you think as) essentials MAY get
 missed in Vanilla Emacs proper.  So it would be good if you could
 communicate with Emacs developers the Org-mode features that you want
 packed in the upcoming Emacs release.  (If this is already communicated,
 well and good)

 I am no maintainer so I cannot tell which Org revision should be merged
 with Emacs.

Just to clarify, I was interested in your comments as a developer who is
in-charge of org-element and ox  Co.  Essentially, I was asking a
convoluted question about the roadmap for features that you have taken
responsibility for vis-a-vis current Emacs release.

 (modulo some features that might be cherry picked from master) and
 would be the obvious safe choice for a quiet end of year.

Ok.  I am sure you will work this out with whoever is merging...

 FWIW, considering the 15 days time frame we have, I think 8.2.3 family
 is stable enough

 8.3 release (i.e. built from master) has some interesting features, but
 may require more work from Org developers during pretest phase.

I take your answer to mean that you don't foresee anything substantial
to be added to the current feature set.

It's possible for you to buy time if you would like to see more
feature-lets added or stabilized.  



Re: [O] Bug: Bad ODT files when including multiple images [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]

2013-12-04 Thread Jambunathan K
Christian Moe m...@christianmoe.com writes:

 This problem was also reported by Tyler Smith a couple of weeks back.

I was able to open test.odt provided by Tyler just fine.  Hence I did
not follow up the post (IIRC, Christian was also indicating a no
issue.)

http://permalink.gmane.org/gmane.emacs.orgmode/78579

I am using LibreOffice 4.0.1.2.

Tyler says he is using 4.0.4.2.  OP is using LibreOffice-4.1.3.2.  Is it
a problem only with recent LibreOffices?

Let me upgrade my LibreOffice and report back.












Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?

2013-12-04 Thread Jambunathan K

Nick Dokos ndo...@gmail.com writes:

 Off the top of my head, I would say

 (add-to-list 'org-file-apps
  '(\\.doc . env WINEPREFIX=\/home/AW/.wine-office\ wine 
 \C:\\windows\\command\\start.exe\ /Unix 
 \/home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft 
 Office/Microsoft Word 2010.lnk\))


 i.e. just the command you provided enclosed in double quotes, except that
 certain characters within have to be escaped:

  - \
 \ - \\

 The long string will probably be broken up into multiple lines by some
 mailer but it is supposed to be one long string with no newlines. I
 don't know if the spaces in the path will cause problems.

 Untested (except that I did evaluate the add-to-list and got no errors):
 no Word and no wine here.

 BTW, why not LibreOffice? Does it mishandle your .doc files?

 Nick

The easiest way to get the same effect is to use

M-x customize-variable RET org-file-apps RET

and specify a command.  Once it is saved, the .emacs will have the
resulting nightmarish string :-)



Another way to quote a string would be to use

   M-x pp-eval-expression RET (read-string Enter string: ) RET

and copy-paste the output from *Pp Eval Output* to .emacs or .el file.




Re: [O] Export issues

2013-12-02 Thread Jambunathan K

M-x locate-library org-loaddefs
M-x locate-library ox

M-x org-version

M-x list-load-path-shadows (and check for org.el and ox.el) and output.

All those commands will tell you that something is wrong in your setup.  


Sam Flint swfl...@flintfam.org writes:

 When I go to export a document to pdf, using C-c C-e, I get an error:
   Symbol's function definition is void: org-export-dispatch
 This diff should fix it:
   diff --git a/lisp/org.el b/lisp/org.el
   index c0c51c4..888478a 100644
   --- a/lisp/org.el
   +++ b/lisp/org.el
   @@ -19231,7 +19231,7 @@ boundaries.
(org-defkey org-mode-map \C-c\C-a 'org-attach)
(org-defkey org-mode-map \C-c}'org-table-toggle-coordinate-overlays)
(org-defkey org-mode-map \C-c{'org-table-toggle-formula-debugger)
   -(org-defkey org-mode-map \C-c\C-e 'org-export-dispatch)
   +(org-defkey org-mode-map \C-c\C-e 'org-export)
(org-defkey org-mode-map \C-c:'org-toggle-fixed-width-section)
(org-defkey org-mode-map \C-c\C-x\C-f 'org-emphasize)
(org-defkey org-mode-map \C-c\C-xf'org-footnote-action)

 Thanks




Re: [O] Bug: Bad ODT files when including multiple images [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]

2013-12-02 Thread Jambunathan K

 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]

The exporter(s) are re-written.  You should be using Org-8.*.

Use Elpa

   M-x list-packages

and install the org package.

or install from tar file or git.


orgmode.org/worg has instructions on how to use the new exporters.

If problem persists with new exporter, let me know.  I will be happy to
share a fix.

Enrico Scholz enrico.sch...@sigma-chemnitz.de writes:

 Hi,

 org-mode generates ODT files which can not be opened by libreoffice-4.1.3.2
 when more than one image is included. E.g. running (org-export-as-odt) on

  test.org ---
 * Test

 [[file:s01.png]]

 [[file:s01.png]]
 -

 and trying to open it with 'oowrite test.odt' gives a Read-Error/Error
 reading file message.  ODT created after removing one of the images is
 ok.

 It seems that libreoffice requires an unique 'draw:name' attribute for
 'draw:frame' tags.  This can be set by '#+CAPTION' (and the resulting
 ODT is working) but this option is not suitable for inline images.



 Enrico


 Emacs  : GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.19)
  of 2013-08-19 on koji-builder0.intern.sigma-chemnitz.de
 Package: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @
 /usr/share/emacs/24.3/lisp/org/)




Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-12-01 Thread Jambunathan K
Miguel Ruiz rbeni...@yahoo.es writes:

 (defconst org-file-apps-defaults-cygwin
 '((remote . emacs)
 (t . cygstart %s)
 (system . cygstart %s)
 (ps.gz . gv %s) 
 (eps.gz . gv %s)
 (dvi . xdvi %s)
 (fig . xfig %s)))
 (defun org-default-apps ()
   Return the default applications for this operating system.
   (cond
((eq system-type 'darwin) org-file-apps-defaults-macosx)
((eq system-type 'cygwin) org-file-apps-defaults-cygwin) 
    ((eq system-type 'windows-nt) org-file-apps-defaults-windowsnt)
(t org-file-apps-defaults-gnu)))

The cygwin issue your report should have been picked up by now.  It is a
good idea to do a

M-x report-emacs-bug

so that this issue is recorded.

 I suppose you would like to know I have also tweaked your directions
 about odt-mathml for cygwin:

 (setq org-latex-to-mathml-convert-command 
 java -jar $(cygpath -pw %j) -unicode -force -df %o %I)
 (setq org-latex-to-mathml-jar-file 
   /home/user/tmp-odt/mathtoweb.jar)

Thanks.  I see mathml has improved since I added support for it.  You
are the second ever user I heard from.  (Search for plasticml in the
mailing list to see the other mathml thread)

 with great success (Java 1.7 update 25, mathtoweb 4.0.0).

Good to hear that.




Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-11-30 Thread Jambunathan K

Miguel Ruiz rbeni...@yahoo.es writes:

Remove all your configurations and try this.  This will use windows
open.

(require 'org)  ;; Make sure org is loaded

(defun org-default-apps ()
  Return the default applications for this operating system.
  (cond
   ((eq system-type 'darwin)
org-file-apps-defaults-macosx)
   ((memq system-type '(cygwin windows-nt)) ;;  
org-file-apps-defaults-windowsnt)
   (t org-file-apps-defaults-gnu)))

 cygstart %s

Any reason why this one is preferable windows's default open.  Is
cygstart a recent addition or is it available even on older
distributions.

 - How can redefine or supress 'system in (org-open-file
 (org-odt-export-to-odt nil s v) 'system) line in ox-odt.el?

ODT files are zip files (can be opened in archive-mode) or they can be
opened in doc-view.

Use of 'system has generally not proved to be problematic in practice.
I think it is possible to accomplish what you want without touch or
modifying that particular line.

 - May I propose to developers to include (defconst
 org-file-apps-defaults-cygwin ... or similar?

It would be a good idea.

But, does the Emacs come from cygwin distribution or is it NT Emacs
(ftp://ftp.gnu.org/gnu/emacs/windows/).



Sorry, I am unable to provide concrete feedback.

As sometime user of Cygwin + Windows, I found that Cygwin is a pain and
started using native Windows Emacs and Gnu Win32 libraries.

I have now moved to Debian now.



Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-11-30 Thread Jambunathan K


Jambunathan K kjambunat...@gmail.com writes:

 (eval-after-load 'org
   '(when (eq system-type 'gnu/linux)
^
^
'cygwin
  (setcdr (assq 'system org-file-apps-defaults-gnu ) cygstart %s)
  (setcdr (assq t org-file-apps-defaults-gnu ) cygstart %s)))



Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-11-30 Thread Jambunathan K

Ignore my earlier suggestion.

 (if (eq system-type 'cygwin)
 (add-hook 'org-mode-hook
 '(lambda ()
 (delete '(\\.x?html?\\' . default) org-file-apps)
 (add-to-list 'org-file-apps '(\\.x?html?\\' . cygstart %s))
 (delete '(\\.pdf\\' . default) org-file-apps)
 (add-to-list 'org-file-apps '(\\.pdf\\' . cygstart %s))
 (delete '(\\.odt\\' . default) org-file-apps)
 (add-to-list 'org-file-apps '(\\.odt\\' . cygstart %s)

You can also remove the above settings.



Use the following setting instead.

`org-default-apps' uses the value of `org-file-apps-defaults-gnu' for
cygwin as well.  You just need to remove the mailcap entry in that
variable and replace it with cygstart as below.

(eval-after-load 'org
  '(when (eq system-type 'gnu/linux)
 (setcdr (assq 'system org-file-apps-defaults-gnu ) cygstart %s)
 (setcdr (assq t org-file-apps-defaults-gnu ) cygstart %s)))


 
As you rightly suggest, `org-default-apps' doesn't handle `system-type'
value of 'cygwin.



Re: [O] Split source block at point

2013-11-27 Thread Jambunathan K

C-h K C-c C-v C-d


Alexander Baier lexi.ba...@gmail.com writes:

 Hello together,

 is therer a command or a function that lets me split a source block at a
 given position?  I think what I mean is best demonstrated by looking at
 an example:

 Given this buffer:
 
 begin_src emacs-lisp
   (defun foo ()
 (bar))

   (baz (foo))
 end_src
 

 With point somewhere at the free line I want to invoke the split
 function and get this:
 
 begin_src emacs-lisp
   (defun foo ()
 (bar))
 end_src

 begin_src emacs-lisp
   (baz (foo))
 end_src
 
 This is similar to what M-RET does in message-mode.

 Do we already have something like this in org? And if not, do you think
 this is useful? Personally I find myself quite frequently splitting up
 soure blocks manually.

 Best regards,
 --
  Alexander Baier



Re: [O] Split source block at point

2013-11-27 Thread Jambunathan K
Jambunathan K kjambunat...@gmail.com writes:

 C-h K C-c C-v C-d
  ^
  ^
  k

Looks like the keybindings are not indexed the canonical way in the Org
manual.
  
 Alexander Baier lexi.ba...@gmail.com writes:

 Hello together,

 is therer a command or a function that lets me split a source block at a
 given position?  I think what I mean is best demonstrated by looking at
 an example:

 Given this buffer:
 
 begin_src emacs-lisp
   (defun foo ()
 (bar))

   (baz (foo))
 end_src
 

 With point somewhere at the free line I want to invoke the split
 function and get this:
 
 begin_src emacs-lisp
   (defun foo ()
 (bar))
 end_src

 begin_src emacs-lisp
   (baz (foo))
 end_src
 
 This is similar to what M-RET does in message-mode.

 Do we already have something like this in org? And if not, do you think
 this is useful? Personally I find myself quite frequently splitting up
 soure blocks manually.

 Best regards,
 --
  Alexander Baier



Re: [O] Near real-time preview of PDF/ODT export?

2013-11-25 Thread Jambunathan K


Alan Schmitt alan.schm...@polytechnique.org writes:

 where can I find documentation about creating a package?

(info (elisp) Packaging)



Re: [O] [BUG][ODT] Subtree export fails when link references target on higher level

2013-11-25 Thread Jambunathan K
Christian Moe m...@christianmoe.com writes:

 In ODT, the link can be useful anyway, as the ODT output is a
 reference field that can be automatically updated to a different
 format, e.g. to refer to a page number instead of the (missing)
 headline text.

When using page numbers, one may have to use Update Fields - an
extraneous step - to have a consistent doc.

With the use of section numbers, the extraneous step and the
inconsistency are altogether avoided.  Remember the section numbers
are computed by ODT exporter by hand (i.e., these section numbers are
NOT auto-magically plugged in by LibreOffice.)

It is more important to have a consistent document.  So, use of page
numbers can be an configurable option.  It should NOT be the default
option.  When using page numbers, please mention in the docstring/manual
that updating of fields is a user responsibility.



A potential patch will touch `org-odt-label-styles' and
`org-odt-category-map-alist' or steal significantly from these
variables.







Re: [O] [PATCH] Re: \newpage in HTML export

2013-11-25 Thread Jambunathan K

You could have used a #+PAGEBREAK and handled it as part of say an
advice to org-BACKEND-keyword in whatever BACKEND you are using.







Re: [O] managing articles in my personal library, and their citational material, using org mode instead of bibtex

2013-11-25 Thread Jambunathan K
Alan L Tyree alanty...@gmail.com writes:

 Is there such a DB and tool?

I don't use bibliography much.  But, I *feel* ox-jabref.el + JabRef is
worth exploring.

You may have to create a layout file - possibly for one each backend -
that's about it.

Jambunathan K.



Re: [O] ODT export produces odt file which MS Word 2007 can't open

2013-11-25 Thread Jambunathan K
Gary Oberbrunner ga...@oberbrunner.com writes:

 I don't have OpenOffice on this machine so can't check it there.

Using LibreOffice, I re-saved the file you shared to use
OpenDocument-v1.1 format.  Does Word import this file without errors?

Btw, the files created by the ODT exporter are marked as 1.2.



simple-list-v1.1.odt
Description: simple-list-v1.1.odt


Re: [O] ODT export produces odt file which MS Word 2007 can't open

2013-11-25 Thread Jambunathan K
Gary Oberbrunner ga...@oberbrunner.com writes:

 Yes, Word opens your resaved version with no errors.

So there is some truth to Word complaining when confronted with
OpenDocument v1.2 format files.

 It does have odd large bullets with the number 10 in the bullet;
 that is so weird I've attached a screen shot.

So importing of v1.1 files is not perfect.

So the bottomline is this:

When sharing a document created by Org ODT exporter to MS Word users, it
is good to add a note saying Dont Panic if MS Word complains about
document corruption etc.

 On Mon, Nov 25, 2013 at 5:38 AM, Jambunathan K
 kjambunat...@gmail.com wrote:

 Gary Oberbrunner ga...@oberbrunner.com writes:
 
  I don't have OpenOffice on this machine so can't check it there.
 
 
 Using LibreOffice, I re-saved the file you shared to use
 OpenDocument-v1.1 format. Does Word import this file without
 errors?
 
 Btw, the files created by the ODT exporter are marked as 1.2.



Re: [O] \newpage in HTML export

2013-11-21 Thread Jambunathan K
Eric Abrahamsen e...@ericabrahamsen.net writes:

 Emacs already has the concept of the page-delimiter (defaults to ^L),
 for page-related commands. I once floated the idea of making a
 page-break a full org element, that could be handled differently by
 different backends.

You are not alone.

The ODT model would be to create a Paragraph style with page-break
before or after.  It is not a standalone element but a special type of
paragraph.

http://lists.gnu.org/archive/html/emacs-orgmode/2013-08/msg00568.html

I have introduced #+PAGEBREAK and also #+ATTR_ODT: :style whatever for
specifically this purpose.

 I think I made it sound too complicated, though.

It is difficult to argue with Nicolas.

He has written down a list of things he want to accomplish somewhere.
Unless your suggestion is a bug or contributes to his list, he is
unlikely to consider it.

 Anyway, that's still a possibility.

Ok. Ok.



Re: [O] Problems with org-bibtex

2013-11-21 Thread Jambunathan K
Marvin Doyley marvin...@gmail.com writes:

 Symbol's function definition is void: bibtex-beginning-of-entry

Whenever you get an error, do

M-x toggle-debug-on-error

and post the *Backtrace* buffer.

I am still surprised why (even) regulars in this list fail to do it.



Re: [O] Is it possible to specify the starting number of headings at exporting

2013-11-21 Thread Jambunathan K

(info (org) Include files)



Yujie Wen yjwen...@gmail.com writes:

 Hi, there,

 I am wondering whether it is possible to define the starting number of
 headings when exporting org-mode files.

 The problem is that, I had a long Org file that I want to separate it
 into several small ones, each will be exported to a HTML file. But if
 so, every exported HTML will have the headings numbered from 1, while
 I prefer the headings be numbered as if they are exported from one
 file, to show the continuation of contents.

 I searched the Org document but didn't find anything useful. I would
 appreciate very much If you have come across some similar requirement
 and give me any guidance. Thanks!

 Regards,
 Yujie



Re: [O] managing articles in my personal library, and their citational material, using org mode instead of bibtex

2013-11-21 Thread Jambunathan K
Alan L Tyree alanty...@gmail.com writes:

 What I mean is to enter something like \cite{mann82} in the text and
 have it spit out (Mann 1982) in each and every export as well as
 constructing an entry for the bibliography.

(For benefit of others)

ox-jabref.el and JabRef can spit things out in different formats.  I

I have added support for the odt backend.  But I have fleshed out the
basic details so that it could be re-targeted for HTML or Plain Ascii
export.



Often the problem is that the author is stuck with a given DB and tool
and is unwilling to let go of investments that he has made in that
specific tool.  (This is perfectly understandable.)





[O] libxml-parse-xml-region: Raise runtime error, don't return nil

2013-11-10 Thread Jambunathan K

Christof

Christof Spitz christof.sp...@gmail.com writes:

 I found the bug: Windows-Emacs was missing the libxml2 library. I got
 the libxml2-2.7.8.-w32-bin.zip, copied the content of /bin into Emacs'
 /bin directory and now the formatting works.

This should have been very difficult to track down. 

ox-freemind.el does invoke `libxml-parse-xml-region'.  I think Emacs
should raise a runtime error (and not return nil) if the above API is
called but libxml is unavailable.

ps: This bug is a good excuse to audit other such wrapper calls (if
there are any) and make sure that they don't fall silently.








Re: [O] libxml-parse-xml-region: Raise runtime error, don't return nil

2013-11-10 Thread Jambunathan K
Christof Spitz christof.sp...@gmail.com writes:

 Emacs did return a runtime error

This is what Emacs does.  

From xml.c: 96
  message1 (libxml2 library not found);

and message1 (based on other uses elsewhere) seems to be used for
ordinary echo area messages (like prompt strings etc) as opposed to an
error message.



It is easy to check though.

I don't have access to a Windows machine.  It should really be an error
and not a simple informative message.  Try this:

1. Remove libxml
2. M-x toggle-debug-on-error RET
3. Export to freemind

Do you now get a backtrace buffer?  



Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-05 Thread Jambunathan K
Xebar Saram zelt...@gmail.com writes:

 Jambunathan: hi-lock-mode looks interesting and i will investigate it
 soon, is it per file settings, or can you define a word/fg-bg rule
 that will apply to all files?

IIRC, The patterns are per-file.  There are some 6 or so hi-lock faces
that you can customize.  

If you are running development version of Emacs you can further
customize `hi-lock-auto-select-face'.





Re: [O] freemind export?

2013-11-05 Thread Jambunathan K
Christof Spitz christof.sp...@gmail.com writes:

 Hello,

 seems the freemind export is no longer supported in org.mode. 

Not true.  The exporter is available over the new export framework.

 Though I found the ox-freemind.el somewhere on the net, 

You are looking for Jesus in a mosque.  The right place would
org-plus-contrib elpa distribution or a git checkout.

 I am desperately looking for a documentation. 

M-x find-library RET ox-freemind RET

Just look at English strings there.  That should give you a pretty good
idea of what you can do.

You can also search for the string - left or right - and you know that
the exporter already has some trick up it's sleeve.

 I want to position nodes on the left, for example, but I don't know
 how to pass optional parameters to the converter.

Unless you give an example, it is difficult for me to understand what
you want to achieve.  How does your Org file look like and what node you
want to position left.

 Thanks 
 Christof



Re: [O] freemind export?

2013-11-05 Thread Jambunathan K

See the attachment.

You can search for right and left in the XML produced.  First headline
goes right, second headline goes left, third one goes right, so on and
so forth.

If you could locate the bug I am willing to circulate a fix.



freemind.mm
Description: freemind.mm

Christof Spitz christof.sp...@gmail.com writes:

 Does freeplane do the placing or is it due to a POSITION switch in the
 mm-file? Could you post the exported mm-file please for comparison,
 please?

 Thanks
 Von: Jambunathan K
 Gesendet: 04.11.2013 07:37
 An: Christof Spitz
 Cc: emacs-orgmode@gnu.org
 Betreff: Re: freemind export?


Re: [O] Line breaks in org-mode having version control in mind

2013-11-05 Thread Jambunathan K

If you have really l...o...n...g lines you need to turn on some sort of
caching so that Emacs display doesn't start sucking.  

I believe the variable you need is this.  Just double check.  I use
development version of Emacs so the details could differ for your
specific version.

cache-long-scans
  Variable: Non-nil means that Emacs should use caches in attempt to
speedup buffer scans.

** `cache-long-line-scans' has been renamed to `cache-long-scans'
because it affects caching of paragraph scanning results as well.



Org files in sense paragraph oriented and not line-oriented.  There was
some work on Org Merge Driver.  (Search for it in the list).  I had also
pointed out this LibreOffice GSoC project earlier -
http://gsoc-tzvetelina.blogspot.in/ - the ideas discussed therein could
be of some relevance to building a Org merge driver.

Dror Atariah dror...@gmail.com writes:

 I am trying to extend my usage of org, and one of the things I want to
 integrate is version controlling of my org files. This is obviously
 straight forward, but I am wondering about the best line breaking
 approach to use. In my LaTeX docs I maintain one physical line per
 sentence [1]. This way, when I change one word in a paragraph, it
 affects only one line, and looking for differences between versions is
 easy. Otherwise, when using fill-paragraph for instance, one gets
 messy changes of the file, as the one word change can influence the
 whole paragraph.

 Therefore, as I mentioned, in LaTeX I use visual-line-mode and I
 insert manually line breaks at the end of sentences (or where *I* find
 appropriate). What would be the best practice for org? I understand
 that visual-line-mode has some problems when it comes to
 tables... What other issues are there? What do you do when you keep
 your org file under VC?

 Thanks in advance,
 Dror

 [1] http://tex.stackexchange.com/a/4378/412



Re: [O] freemind export?

2013-11-05 Thread Jambunathan K
Christof Spitz christof.sp...@gmail.com writes:

 #+TITLE: SUBJEKT
 #+AUTHOR: Christof
 #+OPTIONS: H:4

 * Headline 1

 ** Sub 1.1
 ** Sub 1.2

 * Headline 2

 ** Sub 2.1
 ** Sub 2.2

 Branch Headline 2 should be place to the left of the central SUBJECT
 in Freemind.

It is getting placed rightly.

Here is the screenshot of what I get (with no additional customizations
at my end).  I use freeplane, btw.

As for styles, you need to customize your styles in Freemind exporter
and move over the XML to ox-freemind.el.  If you have a specific
question wrt style, I can help.  But I need to be convinced that you are
using the right exporter i.e., no installation issues etc etc etc.

attachment: freemind.png

Re: [O] RLT (hebrew) tables and org-odt-export-to-odt problems

2013-11-05 Thread Jambunathan K

Uwe 

 r2ltableorg.org is the org file and displays the text as
 intended. However not all of the text was written in logical order by
 GNU emacs, but copied from some other sources.

I am venturing in to the wild here and it will take multiple iterations
for me to even get a feel for what needs to be happen.  I am not even
sure what is right or wrong here.  Anyways...



Further to our exchange on the emacs-devel list,

http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00134.html

I see that the file you passed me has no bi-directional markers
whatsoever.  I think presence of markers would affect how libreoffice
would layout the table.

I suggest that you pass me an Org file, that has the right
bidi-paragraph-direction (as a local variable) and has the right set of
bidi markers.

(Furthermore, explicitly mark the org file as utf-8 coded.  I am not
sure what coding system the attachment is coded to.  When I view the
attachment in Gnus, I only see the latin characters.)



As for getting the table cells laid right, try this out.

1. Export a hebrew.org file to hebrew.odt
2. Open the .odt file in LibreOffice.

   F11-Page Style-Default Page Style-Page-Text Direction-Set it to
   Right to Left.

   I think that this would set the predominant direction of your
   document.  I believe, it would correspond to bidi-paragraph-direction
   setting.

3. File-Save as-somefile.ott

   Now in your hebrew.org file, add this directive

   #+ODT_STYLES_FILE: hebrew.ott

   This will make the exported document an R2L document.

4. Export again.  See what happens



(The process is the same for setting your preferred font.)



Re: [O] freemind export?

2013-11-05 Thread Jambunathan K
Christof Spitz christof.sp...@gmail.com writes:

 1. could you send me the variable settings of the exporter in your .
 emacs? 

No customization at my end.

emacs -Q -l ~/.emacs-minimal


--8---cut here---start-8---
kjambunathan@debian-6:~$ cat .emacs-minimal

(add-to-list 'load-path ~/src/org-mode/lisp/)
(require 'org-loaddefs)

(add-to-list 'load-path ~/src/org-mode/contrib/lisp/)
(require 'ox-freemind)

--8---cut here---end---8---

C-c C-e f f

 2. could you send me / or point me to the latest version of
 ox-freemind.el that you are using?

I am using whatever that comes with Org-mode right now, with only change:
Do a add (require 'cl).

My version: 
http://repo.or.cz/w/org-mode/org-kjn.git

http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/01db56d04ad8842da74c358ae6e27fe8147f6808:/contrib/lisp/ox-freemind.el


Org-mode version: 

http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-freemind.el;hb=HEAD



Re: [O] Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)]

2013-11-05 Thread Jambunathan K

Please use ox-odt.el from here.  The version in my private repo has the
fix.  

http://repo.or.cz/w/org-mode/org-kjn.git

NB: Just download the file.  Don't do a git checkout (Because I keep
rebasing it)

Derek Feichtinger dfe...@gmail.com writes:

 Dear developers

 When exporting a document containing a table and using the :rel-width
 modifier (as documented in [info:org#Tables in ODT export]), an error
 is returned:

 #+ATTR_ODT: :rel-width 50
 | Area/Month | Jan | Feb | Mar | Sum |
 |---+---+---+---+---|
 | / |  | | |  |
 | l13 | r5 | r5 | r5 | r6 |
 | North America | 1 | 21 | 926 | 948 |
 | Middle East | 6 | 75 | 844 | 925 |
 | Asia Pacific | 9 | 27 | 790 | 826 |
 |---+---+---+---+---|
 | Sum | 16 | 123 | 2560 | 2699 |

 OpenDocument export failed: Format specifier doesn't match argument
 type

 Reason is that the plist-get in line 1458 of ox-odt.el returns a
 string
 reprensentation 50 of the :rel-width number, but the
 org-odt-table-style-format
 variable contains a %d conversion string for this parameter.

 (loop for (style-name props) in
 (plist-get org-odt-automatic-styles 'Table) do
 (when (setq props (or (plist-get props :rel-width) 96))
 (insert (format org-odt-table-style-format style-name props

 Either the conversion string should be changed to a %s or the
 plist-get
 obtained value should get converted to a string.

 Emacs : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2013-10-03 on hamsa, modified by Debian
 Package: Org-mode version 8.2.1 (8.2.1-30-g757f00-elpaplus @
 /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)

 Best regards
 Derek



Re: [O] freemind export

2013-11-05 Thread Jambunathan K
Brian Keats bke...@gmail.com writes:

 OK, thanks anyway. I'd love to help, but I'm not a programmer.

Freemind exporter is based upon HTML exporter.  If you tell me precisely
what markups you need i.e., circulate an Org file and the desired mm
file you want produced I can do further investigation.



Re: [O] export to odt, change the default font.

2013-11-02 Thread Jambunathan K

Looks like there are many people who are new to LibreOffice in general.
I strongly recommend this document.

http://wiki.documentfoundation.org/File:Ooo_for_students.odt

for introductory reading.

Jambunathan K kjambunat...@gmail.com writes:

 Uwe Brauer o...@mat.ucm.es writes:

 Hello

 I am searching the docs in order to configure the odt-export function. I
 cannot find anything concerning fonts. 

 I would like to have hebrew text exported using a particular font. 

 Can anybody give me a hint?

 1. Search for Stylist in the LibreOffice documents.  
 2. Make your font selection or whatever you want to change.
 3. Create a .ott file for the Hebrew document.
 4. Use ODT_STLYES_FILE to use a document-specific style.

 If that doesn't work and if you report back, I can investigate further
 and cook up a fix.

 

 As an aside, LibreOffice Stylist doesn't cater to table related
 elements.  Meaning, the Tables have to be styled using automatic styles
 (i.e., on a one-off basis, by hand).  So styling of Tables, is really an
 issue - Not exactly an issue, but a hassle - compared to other things.

 thanks

 Uwe Brauer 



  1   2   3   4   5   6   7   8   9   10   >