public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: 'Julian R' via pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: docx to html with paragraph and character styles
Date: Fri, 30 Aug 2019 09:33:57 -0700	[thread overview]
Message-ID: <m2mufqd34a.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <466909e2-1a54-4a75-8cee-82067c49b003-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

"'Julian R' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
writes:

> Hello,
>
> i'm tested the docx to html conversion. I'm missing in the html output file 
> an "style" attribute within the <p> element.
> For example in my word document i have a pargraph with the paragraph style 
> "Dedication" is it possible to get the parapgrah as <p 
> syle="Dedication">...</p> or something like this?
> It would be nice if this is also possible with character styles.. 
> converting to <span style="xxx"></span>

Try with `-f docx+styles`.

> It seems like equations are translated into html, but complex equations 
> seems not to work and these are written plain as tex. i would like to get 
> all equations as plain tex. 

Check out the section of the manual about rendering math in HTML.
--mathjax might be the best option for you.


  parent reply	other threads:[~2019-08-30 16:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-30  9:11 'Julian R' via pandoc-discuss
     [not found] ` <466909e2-1a54-4a75-8cee-82067c49b003-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-08-30 16:33   ` John MacFarlane [this message]
     [not found]     ` <m2mufqd34a.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-08-30 18:32       ` 'Julian R' via pandoc-discuss
     [not found]         ` <1ce2bfd9-d459-419a-a532-0afb21ba0d5e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-08-30 18:38           ` John MacFarlane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2mufqd34a.fsf@johnmacfarlane.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).