From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33354 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: no color after LaTeX -> docx Date: Tue, 21 Nov 2023 10:49:37 +0000 Message-ID: References: <82960ecf-864e-4379-9726-303997983cebn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12625"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBRMW6KVAMGQEIRL63LI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 21 11:49:44 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f62.google.com ([209.85.160.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r5OK8-000368-BN for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 21 Nov 2023 11:49:44 +0100 Original-Received: by mail-oa1-f62.google.com with SMTP id 586e51a60fabf-1f93d1136d0sf2052166fac.1 for ; Tue, 21 Nov 2023 02:49:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700563783; cv=pass; d=google.com; s=arc-20160816; b=QqjWE4VPmUgMITT1iSzwoe85eHON1Wv6LFIfljJBap8TTaIXo1SojSXmD9kVejVCYU jnbpGCvsNyjQfy4QO6Jl7tZZ1hoV756V5CJ/Kdcej3TgoKJZ7Z25biPLn8l1LqeSSD4M zVlhhHPgSdyaNB4aj+azj5YkwveV3JF0wYhThDWqNfNM1PdMOrQlKbP6Amd0fbn8nlZ9 m+Pr4lNd38Ctzg0fMzsOGITalaB2Cvjz2/7dna373r+J9SKQ2IyHGxUgG/iw35Y8hoIx nWbepmHtH9lfG0+VROYCMkx+aUP8mDOPDTmABabG6ehqD+x8g0Klca9QolJBR8bQK+q4 B4BQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=uvHkrYmDj3k/YLm5gg4KVBKvllaISr6mqNDmSPITErc=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=TRFvVpHN1j1CVTtvy2L9II7mUR5j/vGBnGwQRQMVuPC+x5E2NgzTAGPs4lwbs2o+qV haDugVe8geGAI8sxqEdZdIqVVoMhbRgRW2SDdX4g4aQ4KyO2dLKYP6ByIo7KZt69CXsI cXiwWP2r3IzOnm1ciU46OAudF1pU/XTGY9PrR575tSoaxCMElbrsgIAf2SxDzysVNT6g H4auvSuxEWjRI7Y1gIlnjVJUA6VfvzTBykkWQ2rWhp7nZZ2F+Rqzi424UvTPQ9bwciZQ pIDsI1SuqGLVZoS8WM4NgIFgOgcLskX1dKmEz6syLltYH6z12E/SwrZxSkl0CVqylwQA pdFw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HyktUjSD; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1700563783; x=1701168583; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=uvHkrYmDj3k/YLm5gg4KVBKvllaISr6mqNDmSPITErc=; b=TWu1Vm7Od/VAb3Wl/JW7FevWXA031etiTR5VVCF0SMXA1VRdtMxAv8PdQMXHWzI54b cSz8fsxvByicfIXAOcE22k+XG+ykczjtPgQoEyyc/XOEZiojPWKOwG3iG53f/CErmV1a 0CI6p0ygjApcWmJxjxvewpCK4u82VVKH9DKZn3FsJAKBVAjqF0nM0vy4PS5UuzziQa73 P9hlNpc22GOIUL2muJCasRZS//Ctm4BytWsY4AM+Vtt0Tg9LLzZGNY2S9GqK3Xa6XYeJ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700563783; x=1701168583; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=uvHkrYmDj3k/YLm5gg4KVBKvllaISr6mqNDmSPITErc=; b=n26d91Zp7n/0a14F1cwE88gAhsMMORv+QluXqtdVgtYe6XqQng2ISH8CGbtuRZnID/ QSeDcofD2BVxaOgum5wN82YdOWyV/CeCzoSv6tiP2imOLdVt3UBlK7BoilJ+G87m5BTJ e8gw071wxbP7ZHPuWZ+uSoPrVijd7M9JVHKYDDvpspjtLm8JKSX19U7LzHPlSo8YIHeK 73uLXsC1UADyqDE6v/snmKf0MNBn Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YyfAf945cPFq3+SbO6JEj2p6AzCWaUCf9ygz4jHXLau+o3BNEqE TGBk9KuWFUvzXV2RF0Pj45s= X-Google-Smtp-Source: AGHT+IFfEogzGsbfGmaAyqC5jRpln1Y0Jp4jig5HAtn96DpMTFKER30mtGnepDBNF5XbxgH1U0gVjA== X-Received: by 2002:a05:6870:d289:b0:1f4:dac9:75a8 with SMTP id d9-20020a056870d28900b001f4dac975a8mr11287953oae.10.1700563783202; Tue, 21 Nov 2023 02:49:43 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:e70b:b0:1f9:4ccb:49f5 with SMTP id qa11-20020a056871e70b00b001f94ccb49f5ls1260881oac.0.-pod-prod-07-us; Tue, 21 Nov 2023 02:49:40 -0800 (PST) X-Received: by 2002:a05:6870:5310:b0:1e9:94c1:9179 with SMTP id j16-20020a056870531000b001e994c19179mr13722967oan.21.1700563780634; Tue, 21 Nov 2023 02:49:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700563780; cv=none; d=google.com; s=arc-20160816; b=z1doNkTCb5xUB4ZPVYKx2MVwFJbkUnult3WaU2V+5GZdMRfwEjwmewlbekfsW13TrZ qZWaWqzopA+xR5R7N/5OytxJHPKPVYhO8mapZTW2kjebASD8aMGrBqrWDEDO9t3uAhKI jhhvU1pEyvJPd1kN13hGG3lWjlIl1ENuyJP7QgHOoJQfmJm6WplVcDqkeRs9D74eLAzp GjYW/NXv1xZsPVmNPzkJ31T1utDuZomdyRMghjzbFstHdSnhH6M72be67Oi54o+opRF/ 0CBT9SR/OU4dy/kah5bAZrAe/owbwJgZhku3wnAvoWumjE1+MDYcYN5j+ceNMbcio7pK lZOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=p28mMbT4Y1qRD4ZkHX3HhRS5+I8udEKgIAn3R1Gscm0=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=xaoerXG4cC21tA2BolBURDqrfiPn8z8LVfph3mhJaIL7FhslHUjrBhJx1fvNWjAH2G pD+ymhm8fDFtTiewpB9MhYT715nyAIdHAXf29aOxt97veOIF3e3M9OlGd9tdWvy1uLUx DiR5F60i62Y4Ez0+Jscac2ZfimjapoOPBS0Z91W9O3cVOep1pmI4h/Fz5OHz0y2nRk+C l01LYyAxn40pQo154b40eNm4pmjwotV7Bcpq8jglpzpmw9lXWQduo4pvYCkuW5QsLSVw 40HVBlv/zMyjPrGbb+FwrUPMjxDMDWfO0y22pWKdXd1YVn/n0OHdbTQhhTEWV+ixUl7n a4Aw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HyktUjSD; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id ns18-20020a056870ac9200b001f954907295si361149oab.5.2023.11.21.02.49.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:49:40 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CEF61240027 for ; Tue, 21 Nov 2023 11:49:38 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SZLjZ3cTsz6tvl for ; Tue, 21 Nov 2023 11:49:38 +0100 (CET) Content-Disposition: inline In-Reply-To: <82960ecf-864e-4379-9726-303997983cebn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HyktUjSD; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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.io gmane.text.pandoc:33354 Archived-At: Colors are not supported by Pandoc's internal representation of the documen= t. To get an idea of what Pandoc takes account of, simply read the =E2=80= =9CPandoc's Markdown=E2=80=9D section in the manual (https://pandoc.org/MAN= UAL.html#pandocs-markdown): even if you don't use markdown, it reflects the= elements supported by the software. If you are comfortable with it, you ca= n also use the Lua reference for Pandoc's types (https://pandoc.org/lua-fil= ters.html#lua-type-reference). There are good news, however. If you use: pandoc -s -f latex+raw_tex -t markdown you will see that the option =E2=80=9Craw_tex=E2=80=9D instructs Pandoc to = include all LaTeX code it doesn't understand as raw LaTeX snippets (RawInli= ne type) instead of ignoring them. It should be possible to process these R= awInline objects with a filter to transform them into raw DOCX code to be i= nserted in the DOCX output. Maybe someone on this list already wrote it? Le Tuesday 21 November 2023 =C3=A0 12:45:35AM, =E5=A7=9C=E6=94=BF=E6=AF=85= =EF=BC=88=E8=B4=AA=E5=90=83=E7=9A=84=E5=B0=8F=E7=A5=9E=E4=BB=99=EF=BC=89 a = =C3=A9crit : > I am trying to convert latex to docx with pandoc.=C2=A0 >=20 > LaTeX code is very simple: >=20 > \documentclass{article} > \usepackage{xcolor} > \begin{document} > This is a \textcolor{blue}{blue} word. > \end{document} >=20 > And I convert it to docx by command > pandoc -s file.tex -o file.docx >=20 > But file.docx do not have color. Can anybody tell me what is going on her= e? >=20 > -- > 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/82960ecf-864e-4379-9726-303997983cebn%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/82960ecf-864e-4379-9= 726-303997983cebn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=20 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 e= mail 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/ZVyLQcdHOHIr63G_%40localhost.