I am willing to convert my latex file to MS word (docx extension) to share it with some of my co-authors that do not use latex (they should!!).
I have two issues:
1) In the tex file I include some figures. However, when I convert the file, I got the following error message: "pandoc could no find image 'Figure1", skipping.
The files with the two figures are in the same folder I am working. Is there any way I can ask pandoc to include those figures in the docx file?
2) A part from point 1), everything works fine. However, pandoc cannot convert two equations (I got the latex code instead of the two equations). The MWE generating those equations is:
\documentclass[12pt, A4paper]{article}
\usepackage{amssymb}
\usepackage{amsmath}
\begin{document}
Consistently, the probabilities in Eq. (1) and Eq. (2) are defined as follows, respectively:
\[
(\alpha)P\left[\frac{1}{2}+\mu \right] =
\setlength{\arraycolsep}{0pt}
\renewcommand{\arraystretch}{2}
\left\{
\begin{array}{l @{\quad} l r l}
0 & \text{if } & \mu &{} < -\dfrac{1}{2}\\
\alpha\mu & \text{if } & -\dfrac{1}{2} &{} \leq \mu \leq \dfrac{1}{2}\\
1 & \text{if } & \mu &{}> \dfrac{1}{2}
\end{array}
\right.
\]
and:
\[
P\left[\frac{1}{2}+\gamma \mu -(\alpha -1)\right]=
\setlength{\arraycolsep}{0pt}
\renewcommand{\arraystretch}{2}
\left\{
\begin{array}{l @{\quad} l r l}
0 & \text{if} & \gamma\mu &{} < \alpha -\dfrac{3}{2}\\
\dfrac{1}{2}+\gamma \mu -(\alpha -1) & \text{if} &{} \alpha -\frac{3}{2} &{}\leq \gamma \mu \leq \alpha -\frac{1}{2}\\
1 & \text{if } & \gamma \mu &{}> \alpha -\frac{1}{2}
\end{array}
\right.
\]
\vspace{0.5cm}
\end{document}
Why this is the case? Is there any chance I can write the two equations above such as I get the identical result but they are written in a way pandoc can convert? Thanks in advance.
odt
usingtex4ht
(commandmk4ht oolatex filename
) and then convert it to docx using LibreOffice. I was able to convert your sample, with some issues.tex4ht
, which cause compilation error (but the document compiles correctly), it can be fixed with one declaration in the document. other issue seems to be bug in my version of LibreOffice, it don't display relation operators at beginning of the table cell (for example& {} <
isn't displayed). This can be also fixed with a change in the code, but it isn't really elegant. I have LO 5.0 installed, so it is possible that it is fixed in more recent LO versions