Re: [O] Org Export to ODT Problem Files

2014-01-14 Thread Aric Gregson
Jambunathan K  writes:

> You are looking for this
>
> (custom-set-variables
>  '(org-odt-display-outline-level 0))

Thanks, Aric



Re: [O] Org Export to ODT Problem Files

2014-01-14 Thread Jambunathan K
Aric Gregson  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] Org Export to ODT Problem Files - Latex Equations Work

2014-01-13 Thread Aric Gregson
Bastien  writes:

> can you give more details about your setup? 

I am using the mathtoweb function and so far so good. Here is what I
have and what I understand of it, but I could be wrong about why it is
working. 

The file has this header:

#+OPTIONS:   LaTeX:t 

I have this in my .emacs file:

;; to convert latex equations to mathml for ODT export
; uses mattoweb (http://www.mathtoweb.com/cgi-bin/mathtoweb_home.pl)
(setq org-latex-to-mathml-convert-command
  "java -jar %j -unicode -force -df %o %I"
  org-latex-to-mathml-jar-file
  "~/.emacs.d/mathtoweb.jar")

Now it just works after updating to Java 7. 

> This could well deserve a link to worg/org-hacks.org!

Yes, some of those files are outdated and it has been somewhat
challenging to find all the needed info in one place. 

Thanks, Aric

-- 
~O
/\_,
###-\  |_
(*) / (*)




Re: [O] Org Export to ODT Problem Files

2014-01-13 Thread Aric Gregson
Jambunathan K  writes:

> 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.

Yes, this works very well for me. There is an issue with export of
$\geq$ that the author is looking into. 

>>   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. 

Maybe this is something that can be set in my odt reference file for
exporting? I have not yet investigated that.

Thanks, Aric

-- 
~O
/\_,
###-\  |_
(*) / (*)




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] Org Export to ODT Problem Files

2014-01-11 Thread Bastien
Jambunathan K  writes:

> 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

Thanks for the heads up.  I'm slow at learning the machinery
behind Open Document Format, but I'll put this on my todo list.

-- 
 Bastien



Re: [O] Org Export to ODT Problem Files - Latex Equations Work

2014-01-11 Thread Bastien
Hi Aric,

Aric  writes:

> I just wanted to update that I am able to export latex equations from Org 
> mode files directly to ODT files via the MathtoWeb program. Works
> very well. 

can you give more details about your setup? 

This could well deserve a link to worg/org-hacks.org!

Thanks in advance,

-- 
 Bastien



Re: [O] Org Export to ODT Problem Files

2014-01-10 Thread Jambunathan K
Bastien  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] 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  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 - Latex Equations Work

2014-01-10 Thread Aric
I just wanted to update that I am able to export latex equations from Org 
mode files directly to ODT files via the MathtoWeb program. Works very well. 
Removes one hurdle to using ORG and ODT instead of markdown. 

thanks,




Re: [O] Org Export to ODT Problem Files

2014-01-09 Thread Bastien
Hi Aric,

Aric  writes:

> There are pluses and minuses it seems between pandoc and 
> org export.

(Better to list possible improvements to org->odt separately,
one improvement per thread, so that people can keep this in
their TODO lists.)

> I can cut and paste the heavy math latex portions from a pandoc export, but 
> is there a setting that I am missing about latex code being interpreted on 
> export to odt?

No, I don't think you miss anything here, sorry.

-- 
 Bastien



Re: [O] Org Export to ODT Problem Files

2014-01-08 Thread Aric
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
  3. Lacks latex code export
  4. Figure and table references are by section, sort of like old fashioned 
latex.
  5. Author list and title are in appropriate places

Pandoc html (from org) to odt ->
  1. Includes tables
  2. Does not include figures
  3. Does not include pretty code mark-up
  4. Has latex code properly exported (i.e., $\geq$ is >= sign)
  5. Figure and table references are as 'expected', first table is 1, then 2, 
etc.
  6. author list is at end of file

I can cut and paste the heavy math latex portions from a pandoc export, but 
is there a setting that I am missing about latex code being interpreted on 
export to odt?

Thanks very much, Aric






Re: [O] Org Export to ODT Problem Files

2014-01-08 Thread Aric
Bastien  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.

Thank you, I will give this a try.

aric






Re: [O] Org Export to ODT Problem Files

2014-01-08 Thread Bastien
Aric Gregson  writes:

> Bastien  writes:
>
>> What version of Org and Emacs are you using?
>> M-x org-version RET
>
> 8.2.1-dist

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.

-- 
 Bastien



Re: [O] Org Export to ODT Problem Files

2014-01-08 Thread Aric Gregson
Bastien  writes:

> What version of Org and Emacs are you using?
> M-x org-version RET

8.2.1-dist

> M-x emacs-version RET

24.3.1 freebsd-amd64

Thanks, Aric

-- 
~O
/\_,
###-\  |_
(*) / (*)



Re: [O] Org Export to ODT Problem Files

2014-01-08 Thread Bastien
Hello,

Aric  writes:

> Is this an issue others have had or is it perhaps something within this file 
> that is causing the problem?

What version of Org and Emacs are you using?

M-x org-version RET
M-x emacs-version RET

Thanks,

-- 
 Bastien