Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a docx output? #1

Open
lhoupert opened this issue Mar 9, 2021 · 0 comments
Open

How to add a docx output? #1

lhoupert opened this issue Mar 9, 2021 · 0 comments

Comments

@lhoupert
Copy link

lhoupert commented Mar 9, 2021

Thank you very much Jaan for your work of putting together thsi repository.

Following your method, I tried to convert the markdown with tex equation into docx but I cannot make it work. Do you have any advice?

I added this bit of code in the makefile:

docx:
	pandoc $(FILENAME).md \
	--citeproc \
	--from=markdown+tex_math_single_backslash+tex_math_dollars \
	--to=docx \
	--output=$(BUILDDIR)/$(FILENAME).docx \
	--mathjax

But when I run make docx I got this error:

make docx                                                                    ✹ ✭ 20:26:51
pandoc essay.md \
--citeproc \
--from=markdown+tex_math_single_backslash+tex_math_dollars \
--to=docx \
--output=build/essay.docx \
--mathjax
[WARNING] Could not convert TeX math '
  f(a)=\frac{1}{2πi}∮_γ\frac{f(z)}{z-a}\,dz.
  \tag{1}
  \label{eq:1}
  ', rendering as TeX:
  f(a)=\frac{1}{2πi}∮_γ\frac{f(z)}{z-a}\,d
      ^
  unexpected "{"
  expecting "%", "\\label", "\\nonumber" or whitespace
[WARNING] Could not convert TeX math '\eqref{eq:1}', rendering as TeX:
  \eqref{eq:1}
        ^
  unexpected "{"
  expecting "%", "\\label", "\\nonumber" or whitespace

and the equation is not rendered properly like in pdf or html. Any idea of what I am doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant