From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32166 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shane Liesegang Newsgroups: gmane.text.pandoc Subject: docx table alignment with pandoc 3 Date: Sat, 11 Feb 2023 18:23:50 -0800 (PST) Message-ID: <47c022b6-e198-463e-889c-25264df6081en@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5740_1681524847.1676168630997" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36292"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC2OTJELV4GRBOE3UGPQMGQETAN27RY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Feb 12 03:23:58 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f188.google.com ([209.85.160.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pR21z-0009C6-US for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 12 Feb 2023 03:23:55 +0100 Original-Received: by mail-qt1-f188.google.com with SMTP id j26-20020ac84c9a000000b003b9b7c60108sf5548099qtv.16 for ; Sat, 11 Feb 2023 18:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=yn1xeQS6Ivy/3kjItX5Kmbv3QaTZ9+CRGqd/EOqqGII=; b=U7sb0ydUQexwTU8rb09N6GWjSzcwNAoIAXeRRZyeq0gylTtxmoPssReUSO5XhwI9CK ogmgybXXUEx896Xh0ZcX+oBj/mAFCr27Wvo+lNxq6+KGlR1KiOunI+OO5iWeLbqsydKO 5aMT3bo79xSkI7Pds5v2DX6B+lsh20bA7uEs2NLNfZPAR+GvOY4CTEdPhrcSP+fM5OTK lWshq93CVwoKsKzI6s5AyATNG2nlDX4MsB+VaRvRJmP7CzGSZadFC0LF2NENx2jb/Cqw SceD14zQlZpc6qUyYJn2gtMqST5TdkyemngWmGS+ZBAUNihDmFz9oOkGj7bYZNyHYUkb gJmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=yn1xeQS6Ivy/3kjItX5Kmbv3QaTZ9+CRGqd/EOqqGII=; b=k9cqdsRJQ+F4AsdUYiAtmyNOIUDthA+cI3XqnMAmOCkBaaPIG9uxv6H9ZuItWD6o+P 4dQRQ3ybtYfhjiotHtmoSi8atL0lsBLnV9lZ1h+Fr1NqdFc3YRzToq7iiEKfE3Pgj4Nb lyXXIlK0HP/sicVYW4x3GjchzIRPrOkUDDWiCyqjCXQ/LNEExmyp5ehP7XXXwAcSCMZc v+QhfHgrXH9AEtZNbih9AUbWx5v7iwbuvyneWYpCjes3vE5NWWtRxsXNcXQv51xZjOur YZ205x1G3oNOZ44AJiWOuWDSnGtfemW4sy7R8PDRYj3cY/AAMOf7EL2Y2ZZDeDcAxAi4 xtqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=yn1xeQS6Ivy/3kjItX5Kmbv3QaTZ9+CRGqd/EOqqGII=; b=f/w4keUuuE9TMKbXSzNdE9mLioxtWCltW30bziNnEzyQtEH38seYEMcagXigJ0f8MG 8aoO/Q6Gwqe89pjXLrhiSZZKqO+48k0BKbHVy8uRikyXoHRji8YEVo9THsYQnJEH2CLT 3aqtBUIMu97fSQsg+ARpnNnZ8avaIodLDb8DowTvlsZmXHZZcAbbHdrYLfIUgD2YBXdG CwOebqRaPZgWl0Wl3VYg4HsNYpdkr4WVCa/N4N8qKUclA5ixbqKS5DadANEnsahKw3kC Ifw7acACSqJCSkTvxla+n1S/PNHk1jlw8d0CXO50NVTvvd7Qf97nNKaFlSqbJQb+HBTP 3xwQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKWBZG0qdsRIZLLRtyBsdoD8RwUFry80zkfFGMcLnjzCG1zG0ti5 RcGCBneTV0Wcy5VFXfJFtoI= X-Google-Smtp-Source: AK7set+2AqMRALCbkUCmZW3gWgeBf/KKU48l/yMDg4UAQBsAziXk/EDy5avCSveoWvSsbv/M5pp8iA== X-Received: by 2002:ac8:7dc7:0:b0:3ba:1acd:4e0 with SMTP id c7-20020ac87dc7000000b003ba1acd04e0mr3445329qte.361.1676168634754; Sat, 11 Feb 2023 18:23:54 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ad4:4aed:0:b0:56e:a813:5a9c with SMTP id cp13-20020ad44aed000000b0056ea8135a9cls458705qvb.5.-pod-prod-gmail; Sat, 11 Feb 2023 18:23:51 -0800 (PST) X-Received: by 2002:a0c:f3ca:0:b0:56e:8aba:d9dc with SMTP id f10-20020a0cf3ca000000b0056e8abad9dcmr619861qvm.45.1676168631714; Sat, 11 Feb 2023 18:23:51 -0800 (PST) X-Original-Sender: liesegang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:32166 Archived-At: ------=_Part_5740_1681524847.1676168630997 Content-Type: multipart/alternative; boundary="----=_Part_5741_306105474.1676168630997" ------=_Part_5741_306105474.1676168630997 Content-Type: text/plain; charset="UTF-8" Starting with pandoc 3, the docx writer adds a tag to the that provides formatting for tables. Based on the commit that added it , it looks like it had to do with getting tables to format properly when they're in lists. It gets applied to all tables, though, which left-aligns tables that were previously centered in the body of the text. I'm not sure what the expected behavior is here, so I may simply be doing something wrong on my end. My reference document has set the table properties to be center-aligned... is there some better way of indicating this so the new tag won't be applied? Is there an easy way I could remove it with a Lua filter, or should I just edit the XML after the fact? -- 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/47c022b6-e198-463e-889c-25264df6081en%40googlegroups.com. ------=_Part_5741_306105474.1676168630997 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Starting with pandoc 3, the docx writer adds a <w:jc w:val=3D= "start"/> tag to the <w:tblPr> that provides f= ormatting for tables. Based on the commit that added it,= it looks like it had to do with getting tables to format properly when the= y're in lists. It gets applied to all tables, though, which left-aligns tab= les that were previously centered in the body of the text.

I'm not sure what the expected behavior is here, so I may= simply be doing something wrong on my end. My reference document has set t= he table properties to be center-aligned... is there some better way of ind= icating this so the new tag won't be applied? Is there an easy way I could = remove it with a Lua filter, or should I just edit the XML after the fact? =

--
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/47c022b6-e198-463e-889c-25264df6081en%40googlegroups.= com.
------=_Part_5741_306105474.1676168630997-- ------=_Part_5740_1681524847.1676168630997--