Dear John,

Thanks for the information below. For some reason I didn't see your response when you posted it. I have just now tried the latest version of pandoc from the downloads page (pandoc 2.1.1 Compiled with pandoc-types 1.17.3, texmath 0.10.1, skylighting 0.6) and I am getting the same problem. The output in linear format of Word is ((xxx…xx)┬(} ))┬n which does not render correctly. This seems to be about the same as what I was getting before: ((xxx…xx)┬⏟)┬n and not what I would expect to get: ⏟(xxx…xx)┬n

From what I can tell the binary is using a version of texmath that contains the below mentioned fix?

Thanks for any help you can give us.
Emma

On Tuesday, 3 October 2017 21:52:27 UTC+1, John MacFarlane wrote:
This bug got fixed in texmath in February 2016.

If you compile your pandoc against the most recent version
of texmath, it should work.

Anyway, this will be fixed in the pandoc 2.0 binary
packages.  Or you can try (at your own risk) a binary
from pandoc-nightlies.


+++ Emma Cliffe [Oct 03 17 02:36 ]:
>   Morning,
>   I am having trouble getting pandoc to convert underbrace either into
>   Word or out of Word. I wondered if there is either something I am doing
>   wrong, whether this is a known problem (I can't find a report) or if
>   there is a work round for converting into Word.
>   If I try to convert:
>   \[
>   \underbrace{xxx\ldots xx}_n
>   \]
>   for instance then what I get in Word (linear format) is:
>   ((xxx…xx)┬⏟)┬n
>   which does not render as a stretched underbrace.
>   I would expect to get:
>   ⏟(xxx…xx)┬n
>   which is typed directly into Word as \underbrace(xxx\ldots xx)_n (then
>   space to trigger). You get the same linear interpretation if you use
>   the mouse to create the structure.
>   The above is the direction I am interested in. I am actually converting
>   from MathML and see the same behaviour as in the cut down test of md or
>   tex to docx I have explained above.
>   For completeness I tried to convert in the other direction. Starting
>   from the above structure in Word I end up with:
>   \[\underset{n}{}\]
>   which has not only lost the xxx...xx but underbrace has become underset
>   which is not the same thing.
>   Does anyone know anything more about this?
>   Many thanks,
>   Emma
>
>   --
>   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 [1]pandoc-discus...@googlegroups.com.
>   To post to this group, send email to
>   [2]pandoc-...@googlegroups.com.
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/f240aa27-3e64-430c-
>   82b0-55e095a5b175%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-...@googlegroups.com
>   3. https://groups.google.com/d/msgid/pandoc-discuss/f240aa27-3e64-430c-82b0-55e095a5b175@googlegroups.com?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/150196ab-c7ac-428b-b989-583e8e91db64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.