From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23340 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "'Julian R' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: docx to html with paragraph and character styles Date: Fri, 30 Aug 2019 11:32:04 -0700 (PDT) Message-ID: <1ce2bfd9-d459-419a-a532-0afb21ba0d5e@googlegroups.com> References: <466909e2-1a54-4a75-8cee-82067c49b003@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_586_991329235.1567189924765" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="110292"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDAOLYME4EDBBJOXUXVQKGQETR6KB5Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 30 20:32:07 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i3lgt-000SZj-FP for gtp-pandoc-discuss@m.gmane.org; Fri, 30 Aug 2019 20:32:07 +0200 Original-Received: by mail-oi1-f191.google.com with SMTP id t207sf3251116oif.23 for ; Fri, 30 Aug 2019 11:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=gcKhWNt5cah9UWfh+WkDZPwH36OYf7gdRF7vozKGDY0=; b=lNTtwhfREKiNVgp7fMI/zmuwmemuCpHpqNY88uUCAsOzvVWLcQudJQ3DVTZqrQE5xc TsT5lw3g9cK2tIPKZ4nPEUARhQJgOM+6X4dUv2LpnLsmYhcrK8ABnBDHqOL6AD9c2aPt 8VVEuflBMyunKqFugW3soeOHadHPDOsWw9Z1TW/LFyfdmK0YJ3H1Qb7jwqlarpJQrCol yo7CvRlTUgBB55wZoI1HH+G+9/4EEDgQRzRSbkFddwBJMrCoFhY+fHqXrGfPGKClPtit dold/rFoG6D57yX2zH1OUyO+zy2WDQ4w60zjSi1lwZkI3aVq7a+sU9dg+frhxUCvps7H 9LrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:x-original-sender:reply-to:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=gcKhWNt5cah9UWfh+WkDZPwH36OYf7gdRF7vozKGDY0=; b=WJu+sOuFX8DBJQLTYLXZW014jsFQUXdxLSZYqE182qYkLv0X/FE+JgHbXH9JnSlNTE qpV3cvXITpV3/WFi15RNXhENl8YfR289UbIEHYsnw6gQSYI/VIc5nXK1IdCtZ2TWAbut fsvYhuCCn0rLYFfIMnEO4j7fG49mL6CKjE1zZgngONLzlHGlDefxhbwQwrRYnasEYBDP FNsFtmQbeT1Va+Ju1qAZJW96KWqC9gREKmx9tAcHXB5G5EcnjttTmN6jOKyXiviAw7Fc uhpW/SJtf8lU8lGBXKCfFdDWBPvmICy/xvSt6IdDBFblvtUr0MzBYSWoA8iHsXCSNKeS 5Plw== X-Gm-Message-State: APjAAAXWWENO5PHBgosme+WQE1pR1ZX8kCES3Uk3r5VMI5XmagLHE2c9 /+mURy6+FFE22hGOwF296Zg= X-Google-Smtp-Source: APXvYqx/pXw5q1Uydm7pRD+/JkaRJ5LA+pVhHPK643tD6MY6kV7OoZ0BsbWhfxWr5Q593TnvdOvlrw== X-Received: by 2002:a9d:69d7:: with SMTP id v23mr13608055oto.321.1567189926173; Fri, 30 Aug 2019 11:32:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:36c:: with SMTP id 99ls452013otv.3.gmail; Fri, 30 Aug 2019 11:32:05 -0700 (PDT) X-Received: by 2002:a05:6830:1ac5:: with SMTP id r5mr3972167otc.338.1567189925304; Fri, 30 Aug 2019 11:32:05 -0700 (PDT) In-Reply-To: X-Original-Sender: julianhd12-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: Julian R Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23340 Archived-At: ------=_Part_586_991329235.1567189924765 Content-Type: multipart/alternative; boundary="----=_Part_587_1073978061.1567189924766" ------=_Part_587_1073978061.1567189924766 Content-Type: text/plain; charset="UTF-8" Thank you very much. Both options are exactly what i'm searched for. Is it possible to do not convert headline styles to

etc? rather as

too? Maybe you know also an option to assume text colors? Tables with col spans and row spans are not converted correctly, but it think that's a really difficult topic - i think. Am Freitag, 30. August 2019 18:34:13 UTC+2 schrieb John MacFarlane: > > "'Julian R' via pandoc-discuss" > > > writes: > > > Hello, > > > > i'm tested the docx to html conversion. I'm missing in the html output > file > > an "style" attribute within the

element. > > For example in my word document i have a pargraph with the paragraph > style > > "Dedication" is it possible to get the parapgrah as

> syle="Dedication">...

or something like this? > > It would be nice if this is also possible with character styles.. > > converting to > > 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. > > -- 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/1ce2bfd9-d459-419a-a532-0afb21ba0d5e%40googlegroups.com. ------=_Part_587_1073978061.1567189924766 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you very much. Both options are exactly what i&= #39;m searched for.
Is it possible to do not convert headline sty= les to <h1> etc? rather as <p data-custom-style...> too?

Maybe you know also an option to assume text colors?=

Tables with col spans and row spans are not conve= rted correctly, but it think that's a really difficult topic - i think.=

Am Freitag, 30. August 2019 18:34:13 UTC+2 schrieb= John MacFarlane:
"'Ju= lian R' via pandoc-discuss" <pandoc-...@googlegroups.com>= ;
writes:

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

Try with `-f docx+styles`.

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

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

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/1ce2bfd9-d459-419a-a532-0afb21ba0d5e%40googlegroups.co= m.
------=_Part_587_1073978061.1567189924766-- ------=_Part_586_991329235.1567189924765--