From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26878 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Isaac Rabicoff Newsgroups: gmane.text.pandoc Subject: custom style for table with docx writer / pandoc api Date: Thu, 19 Nov 2020 11:14:19 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_200_1268010978.1605813259666" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20872"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDTYJEHX3UGBBDMI3P6QKGQEF6NDFSI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 19 20:14:26 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kfpNw-0005IY-Km for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 19 Nov 2020 20:14:24 +0100 Original-Received: by mail-oi1-f191.google.com with SMTP id n7sf2512066oij.15 for ; Thu, 19 Nov 2020 11:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=+CVflqohuz2/kARGFYaLNRTo1+DgeJYSoeESsIs2AMQ=; b=KxvS78S4opIKpXzmHC6XHRtakUUGrLCPwfAgpjdwm8qDCy0aFxrP93d1bGEB42yRX6 dbDSzOl9dq5oZ1vS1QS4VRoPPFoZJ0V1UARK+y5stxkQLeoz1NKmQMeeUdDrpOhMMm8T HTmA1MNZ+A4zOGWtjcO/MrHQ8YH19v68r0OmtSobON7nL8FVKJ4H63c+3hcYczxo7ESo eeqvQLrkCiG9IawFOqGtH8VxCiI9KdM9Ut5qJRb95VLoqghy455v4mUwhcvWn4qFZWw9 sxhjyrxYQS6zMQbi3PDeHtbZVrMsL2sgf8Zh/syKx0HYKv5DyknvLYpmgmt+KQk2v5T1 n2Fg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=+CVflqohuz2/kARGFYaLNRTo1+DgeJYSoeESsIs2AMQ=; b=Oe6Rjsdk0OtUirIb/KP63KhUwyDRzfKaOkBBiPPIVfJkkiMUP6WTAaCEbHbU2QBXVz s0VYlGf3Milh5jba/m6O5FXfJ5K0N51OIiqsw5Y4IoVTQCgc4X3HqSvmMWJpP6pNX4Nt ujxfMZ0jJrFepvX0v2RdYchAntxncqLcBiScpcmlljj9xoOHU5Azd58BKkHutknzCZSY jKZwdEZo6t0VJQRxIz69QrssqCZt4ABsrtjjBKthOwkpqLWSf8WuV2bmr3BJC9JkN9Gz fSsO4bQBI8q7/XA6rn1Q/jZ+FS2tANmhHp9+1TDZ1raLP+PMoqI8zq9CmE6cHKAuC0Cj lVdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id: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=+CVflqohuz2/kARGFYaLNRTo1+DgeJYSoeESsIs2AMQ=; b=MtmzJSAEqAZY7/zb66/JvfobNfIctROsSogNYz7war/2gkZtbDv58R7Kk+id1G75Sq S6iLSJlkyvN1N22lMWqmwIe4fhgHAZIVqfisxyft8ikIGBKdZdwal2Wra9rOTBdpdQUq bzLXxxetDrBR/gcw0/3XNzz/mFA+Zf1i3InljeL63tSIgG1kGZnSHSxj4T7bOZeg54Vl 0U1U4j5srJSZKfJEAfZ/zxEzJxH00OrScxnwnjlVOi3pcrcTDMt/2bgde97hoq6tuTli KB1PabnQp/sOri/3EavyXhqnhRK65LQROCrtifyW1H16mQ931CsbejmN6BiGqIdSuvjL hzQw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532VDj2uZ75FujkWfu9ndNWBi4YLa01NykwllFqwtZq5JsRdndnu 83rpc9dBvE6D3bh2N4eWBXo= X-Google-Smtp-Source: ABdhPJx9gcFuYrWY7/9u6JrKFOV7Kw+7enbVTPNTFrcq/luaR6Fkos/X4KPYvjUO0NLwQTFtMxAbQw== X-Received: by 2002:aca:e187:: with SMTP id y129mr3914576oig.61.1605813263737; Thu, 19 Nov 2020 11:14:23 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:4fd0:: with SMTP id d199ls973915oib.5.gmail; Thu, 19 Nov 2020 11:14:20 -0800 (PST) X-Received: by 2002:aca:6208:: with SMTP id w8mr4013867oib.120.1605813260557; Thu, 19 Nov 2020 11:14:20 -0800 (PST) X-Original-Sender: irabicoff-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:26878 Archived-At: ------=_Part_200_1268010978.1605813259666 Content-Type: multipart/alternative; boundary="----=_Part_201_1247443985.1605813259666" ------=_Part_201_1247443985.1605813259666 Content-Type: text/plain; charset="UTF-8" So far, I've been successful using a reference doc to apply a custom table style (updating the internal Table style with custom borders). But now, I'm simply trying to make a table with no borders at all. I tried to pass an `attr` to `Table`, `TableBody`, etc, with no luck. My attribute is: attr = (mempty, mempty [("custom-style", "NoBorder")]) This works with `divWith` if I'm trying to set a font style, but not for table styles. 1) Is there some way to use a Pandoc Table style, that overrides the reference doc "Table" style? 2) Is there a way to set a custom style for a table, i.e. using the "custom-style" attribute? Thanks much for your help! -- 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/df52ce0e-349b-4226-a97f-b45b241f0679n%40googlegroups.com. ------=_Part_201_1247443985.1605813259666 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable So far, I've been successful using a reference doc to apply a custom table = style (updating the internal Table style with custom borders).

But now, I'm simply trying to make a table with no borders at all.&n= bsp;

I tried to pass an `attr` to `Table`, `TableBody`, etc, = with no luck.

My attribute is:
attr =3D (mempty, mempty [("custom-style", "NoBor= der")])

This works with `divWith` if I= 'm trying to set a font style, but not for table styles.

1) Is there some way to use a Pandoc Table style, that overrides the= reference doc "Table" style?

2) Is there a way to= set a custom style for a table, i.e. using the "custom-style" attribute?

Thanks much for your help!

--
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/df52ce0e-349b-4226-a97f-b45b241f0679n%40googlegroups.= com.
------=_Part_201_1247443985.1605813259666-- ------=_Part_200_1268010978.1605813259666--