* Converting html containing latex math to docx or epub @ 2022-09-09 2:15 Explorer [not found] ` <CAOYNTAxtO81qpu4dW--4p=a=-WBqN_uNWV06JMO0Rt7hs67G3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Explorer @ 2022-09-09 2:15 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 1049 bytes --] Hello I'm trying to convert html file containing mathematical expression in latex using the following command: pandoc -i integrals.html -o integrals_doc.docx But the output contains latex as it is. I also tried --mathml flag, but no luck. But if the source html file contains expression in mathml, it works fine while converting to docx. Similarly, I want to convert it to epub containing mathml expression, because the epub-reader we are targeting only support mathml expression. Any leads in this conversion from html containing latex to docx or epub with mathml will be very helpful. Thanks in anticipation -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAOYNTAxtO81qpu4dW--4p%3Da%3D-WBqN_uNWV06JMO0Rt7hs67G3Q%40mail.gmail.com. [-- Attachment #1.2: Type: text/html, Size: 1541 bytes --] [-- Attachment #2: integrals.html --] [-- Type: text/html, Size: 6690 bytes --] [-- Attachment #3: integral_doc.docx --] [-- Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document, Size: 11848 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CAOYNTAxtO81qpu4dW--4p=a=-WBqN_uNWV06JMO0Rt7hs67G3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Converting html containing latex math to docx or epub [not found] ` <CAOYNTAxtO81qpu4dW--4p=a=-WBqN_uNWV06JMO0Rt7hs67G3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2022-09-09 4:31 ` John MacFarlane [not found] ` <0C55983B-4301-4456-9354-066A2D714B52-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: John MacFarlane @ 2022-09-09 4:31 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Use -f html+tex_math_single_backslash That tells it to try to parse things in the form \(..\) or \[..\] as LaTeX math. > On Sep 8, 2022, at 7:15 PM, Explorer <kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello > I'm trying to convert html file containing mathematical expression in latex using the following command: > > pandoc -i integrals.html -o integrals_doc.docx > > But the output contains latex as it is. I also tried --mathml flag, but no luck. > > But if the source html file contains expression in mathml, it works fine while converting to docx. > > Similarly, I want to convert it to epub containing mathml expression, because the epub-reader we are targeting only support mathml expression. > Any leads in this conversion from html containing latex to docx or epub with mathml will be very helpful. > > Thanks in anticipation > > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAOYNTAxtO81qpu4dW--4p%3Da%3D-WBqN_uNWV06JMO0Rt7hs67G3Q%40mail.gmail.com. > <integrals.html><integral_doc.docx> ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <0C55983B-4301-4456-9354-066A2D714B52-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Converting html containing latex math to docx or epub [not found] ` <0C55983B-4301-4456-9354-066A2D714B52-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2022-09-09 7:39 ` Explorer 0 siblings, 0 replies; 3+ messages in thread From: Explorer @ 2022-09-09 7:39 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 2446 bytes --] Thanks a lot, this is helpful. They are being converted fine now. On Fri, Sep 9, 2022 at 10:01 AM John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Use -f html+tex_math_single_backslash > > That tells it to try to parse things in the form \(..\) or \[..\] as LaTeX > math. > > > > On Sep 8, 2022, at 7:15 PM, Explorer <kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hello > > I'm trying to convert html file containing mathematical expression in > latex using the following command: > > > > pandoc -i integrals.html -o integrals_doc.docx > > > > But the output contains latex as it is. I also tried --mathml flag, > but no luck. > > > > But if the source html file contains expression in mathml, it works fine > while converting to docx. > > > > Similarly, I want to convert it to epub containing mathml expression, > because the epub-reader we are targeting only support mathml expression. > > Any leads in this conversion from html containing latex to docx or epub > with mathml will be very helpful. > > > > Thanks in anticipation > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/CAOYNTAxtO81qpu4dW--4p%3Da%3D-WBqN_uNWV06JMO0Rt7hs67G3Q%40mail.gmail.com > . > > <integrals.html><integral_doc.docx> > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/0C55983B-4301-4456-9354-066A2D714B52%40gmail.com > . > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAOYNTAwmBQ8Z9KmKY15Jfr3R1Ts-SeXa-%3DjiLJDHOay%3DLeJoRQ%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 3855 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-09 7:39 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-09-09 2:15 Converting html containing latex math to docx or epub Explorer [not found] ` <CAOYNTAxtO81qpu4dW--4p=a=-WBqN_uNWV06JMO0Rt7hs67G3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2022-09-09 4:31 ` John MacFarlane [not found] ` <0C55983B-4301-4456-9354-066A2D714B52-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2022-09-09 7:39 ` Explorer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).