org-mode-ox-odt
org-mode-ox-odt copied to clipboard
org with equations, some equations are not converted when placed in a src block
Hi
I found to my surprise that a src block #+begin_src latex prevents the conversion of equations. I attach the org and the odt file testmath.odt testmath.txt
I confirm the bug. Do this as a workaround
(add-to-list 'org-src-lang-modes '("latex" . latex))
I will fix the bug after some time ....
src
blocks are pre-formatted blocks. So, you will get latex source for the equation as opposed to equation itself. You can compare the behaviour with HTML exporter.
You will get
for
* Some math with a source block
#+begin_src latex
\begin{equation}
\label{eq:test:2}
\int dx
\end{equation}
#+end_src
* With out a source block
\begin{equation}
\label{eq:test:2}
\int dx
\end{equation}
The hassle-free way to get math
in libreoffice
is either to use images or starmath
.
You may want to consult the following articles if you want to typeset equations using starmath
.
"JK" == Jambunathan K @.***> writes:
The hassle-free way to get
math
inlibreoffice
is either to use images orstarmath
.
You may want to consult the following articles if you want to typeset equations usingstarmath
.
Are right, I recall having seen such a document. The documents in questions are just an interchange with students who for one reason or the other do not use LaTeX but stick to MS Word. I have to send them some formulas that involve matrices etc, and starmath, although close to say plain tex requires some time to get acquainted with. So I rather stick to latex for the moment.
Maybe the png version would be enough. How do I enable that for the odt export? Sorry for this elementary question.....
See end of this node
https://www.gnu.org/software/emacs/manual/html_mono/org.html#Math-formatting-in-HTML-export
This method requires that the dvipng program, dvisvgm or ImageMagick suite is available on your system. You can still get this processing with
#+OPTIONS: tex:dvipng
#+OPTIONS: tex:dvisvgm
or
#+OPTIONS: tex:imagemagick
On Tue, 15 Mar, 2022, 16:52 Uwe Brauer, @.***> wrote:
"JK" == Jambunathan K @.***> writes:
The hassle-free way to get
math
inlibreoffice
is either to use images orstarmath
. You may want to consult the following articles if you want to typeset equations usingstarmath
.Are right, I recall having seen such a document. The documents in questions are just an interchange with students who for one reason or the other do not use LaTeX but stick to MS Word. I have to send them some formulas that involve matrices etc, and starmath, although close to say plain tex requires some time to get acquainted with. So I rather stick to latex for the moment.
Maybe the png version would be enough. How do I enable that for the odt export? Sorry for this elementary question.....
— Reply to this email directly, view it on GitHub https://github.com/kjambunathan/org-mode-ox-odt/issues/171#issuecomment-1067872615, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXTBKEWXAZN3ZOYZVC3EQTVABXHBANCNFSM5QXZXBIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
"JK" == Jambunathan K @.***> writes:
Thanks very useful, again
#+OPTIONS: tex:dvipng
Works, but the enumeration of the equation environment does not really work, all equations end up with (1)
#+OPTIONS: tex:dvisvgm
It is installed but the conversion seems not to work
or
#+OPTIONS: tex:imagemagick
Work, and I cannot distinguish the result from dvipng.
thanks
A problem! the followiing contruction is not converted to odt, but to html (with a subdirectory including the png image for the equation) maybe this has to do what you said about starmath testmath.txt
"JK" == Jambunathan K @.***> writes:
I confirm the bug. Do this as a workaround
(add-to-list 'org-src-lang-modes '("latex" . latex))
I did but it did not help.
I will fix the bug after some time ....
Ok. It is not that urgent or sever.