public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* tex to docx - coloured text
@ 2018-08-07  8:00 sebastien.biasse-Re5JQEeQqe8AvxtiuMwx3w
       [not found] ` <4245d4eb-d826-45ab-94aa-91fa63750052-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: sebastien.biasse-Re5JQEeQqe8AvxtiuMwx3w @ 2018-08-07  8:00 UTC (permalink / raw)
  To: pandoc-discuss


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

Hi all,

I am trying to convert a latex manuscript in which I have done track 
changes using the changes package. The result is that none of the the text 
in the environment appears in the docx file.
I then tried to use both the \color and \textcolor environments, but same 
problem, no output.

Am I missing something?

TY

S

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4245d4eb-d826-45ab-94aa-91fa63750052%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

* Re: tex to docx - coloured text
       [not found] ` <4245d4eb-d826-45ab-94aa-91fa63750052-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-08-07 16:39   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2018-08-07 16:39 UTC (permalink / raw)
  To: sebastien.biasse-Re5JQEeQqe8AvxtiuMwx3w, pandoc-discuss


% pandoc -t native -f latex
\textcolor{red}{hi}
[Para [Span ("",[],[("style","color: red")]) [Str "hi"]]]

So textcolor is parsed; however, the Word writer
isn't sensitive to the style attribute here.
(Ideally we'd have some better way of representing
color in the AST, and better support in all writers.)

As for the changes package, pandoc's latex reader
doesn't know about it.

You might be able to hack something up with lua
filters, which can intercept the above and convert it
to something Word understands, but this would require
familiarity with Word docx internals....

sebastien.biasse-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org writes:

> Hi all,
>
> I am trying to convert a latex manuscript in which I have done track 
> changes using the changes package. The result is that none of the the text 
> in the environment appears in the docx file.
> I then tried to use both the \color and \textcolor environments, but same 
> problem, no output.
>
> Am I missing something?
>
> TY
>
> S
>
> -- 
> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4245d4eb-d826-45ab-94aa-91fa63750052%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


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

end of thread, other threads:[~2018-08-07 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-07  8:00 tex to docx - coloured text sebastien.biasse-Re5JQEeQqe8AvxtiuMwx3w
     [not found] ` <4245d4eb-d826-45ab-94aa-91fa63750052-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-08-07 16:39   ` John MacFarlane

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