public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Failed to convert markdown with latex to docx
@ 2022-11-22  2:29 swhoro
       [not found] ` <19d69c0f-a719-4308-9793-c75cc38a038fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: swhoro @ 2022-11-22  2:29 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 811 bytes --]

Part of my md file:

$$
APP:\ <MS\_SET,\enspace MS_{RELATION}>
$$


using this command:

 pandoc -f markdown+latex_macros -t docx -o my.docx .\Untitled-1.md

error report:

[WARNING] Could not convert TeX math
  APP:\ <MS\_SET,\enspace MS_{RELATION}>
  , rendering as TeX:

                     ^
  unexpected control sequence \enspace
  expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace

-- 
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/19d69c0f-a719-4308-9793-c75cc38a038fn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1405 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Failed to convert markdown with latex to docx
       [not found] ` <19d69c0f-a719-4308-9793-c75cc38a038fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-11-22  3:27   ` John MacFarlane
       [not found]     ` <554C26C7-5761-4F3A-B966-6494A50C35BD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2022-11-22  3:27 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

As it says: \enspace isn't recognized.
That needs to be fixed in the texmath library.

You can submit a bug report at
https://github.com/jgm/texmath/issues

In the mean time, you can work around this by including

\renewcommand{\enspace}{\hspace{0.5em}}

in your document, before this part.

> On Nov 21, 2022, at 6:29 PM, swhoro <swhoro404-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 
> Part of my md file:
> 
> $$
> APP:\ <MS\_SET,\enspace MS_{RELATION}>
> $$
> 
> 
> using this command:
> 
>  pandoc -f markdown+latex_macros -t docx -o my.docx .\Untitled-1.md
> 
> error report:
> 
> [WARNING] Could not convert TeX math
>   APP:\ <MS\_SET,\enspace MS_{RELATION}>
>   , rendering as TeX:
> 
>                      ^
>   unexpected control sequence \enspace
>   expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace
> 
> 
> -- 
> 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/19d69c0f-a719-4308-9793-c75cc38a038fn%40googlegroups.com.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Failed to convert markdown with latex to docx
       [not found]     ` <554C26C7-5761-4F3A-B966-6494A50C35BD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2022-11-22  7:04       ` swhoro
  0 siblings, 0 replies; 3+ messages in thread
From: swhoro @ 2022-11-22  7:04 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2099 bytes --]

There is new error.

[WARNING] Could not convert TeX math
  \renewcommand{\enspace}{\hspace{0.5em}}
  APP:\ <MS\_SET,\enspace MS_{RELATION}>
  , rendering as TeX:

                     ^
  unexpected "."
  expecting digit, "em", "pt", "in" or "cm"

在2022年11月22日星期二 UTC+8 11:28:00<fiddlosopher> 写道:

> As it says: \enspace isn't recognized.
> That needs to be fixed in the texmath library.
>
> You can submit a bug report at
> https://github.com/jgm/texmath/issues
>
> In the mean time, you can work around this by including
>
> \renewcommand{\enspace}{\hspace{0.5em}}
>
> in your document, before this part.
>
> > On Nov 21, 2022, at 6:29 PM, swhoro <swho...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > 
> > Part of my md file:
> > 
> > $$
> > APP:\ <MS\_SET,\enspace MS_{RELATION}>
> > $$
> > 
> > 
> > using this command:
> > 
> > pandoc -f markdown+latex_macros -t docx -o my.docx .\Untitled-1.md
> > 
> > error report:
> > 
> > [WARNING] Could not convert TeX math
> > APP:\ <MS\_SET,\enspace MS_{RELATION}>
> > , rendering as TeX:
> > 
> > ^
> > unexpected control sequence \enspace
> > expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace
> > 
> > 
> > -- 
> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/19d69c0f-a719-4308-9793-c75cc38a038fn%40googlegroups.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/f6960a6b-0692-4ba3-95b1-167e19ec00b3n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3710 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-22  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22  2:29 Failed to convert markdown with latex to docx swhoro
     [not found] ` <19d69c0f-a719-4308-9793-c75cc38a038fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-11-22  3:27   ` John MacFarlane
     [not found]     ` <554C26C7-5761-4F3A-B966-6494A50C35BD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-11-22  7:04       ` swhoro

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