From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28454 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Becker Newsgroups: gmane.text.pandoc Subject: Re: When converting markdown tables to docx with pandoc is there way to put a border on the table in the docx file? Date: Thu, 27 May 2021 07:44:54 -0700 (PDT) Message-ID: References: <63c828cd-eaee-4d02-89e5-a5b54d98434dn@googlegroups.com> <9d76aaf5-c7cb-4930-b0e0-c648e356a32fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2392_1558649227.1622126694677" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37763"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCUNV74YYMKBBZ7AX2CQMGQEIC4B5LQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 27 16:44:58 2021 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 1lmHFq-0009Zl-6Q for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 27 May 2021 16:44:58 +0200 Original-Received: by mail-oi1-f191.google.com with SMTP id t84-20020acaaa570000b02901e59db6f161sf291482oie.14 for ; Thu, 27 May 2021 07:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender: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=DnSKzwb7Wes8DWxLLmFgJlKz8XqiddvyDycGAr4mMLA=; b=ZMCecB4sVxNG2L9xNZ3Uhv41bZ0RGMKPKafCB3hDTtJFuRYMi6LqSyJCfCH1WV+Syr lOtz4bLSIPt3xzFBi6BjvozezuI280i2jM5ibAXAGgvRsITnvS2oXbx0JZiSy1sq0r3w al69ZK+g7DNPQLAFRyMlvEpAKHZTg8zK1vKeQZastTg5yruDbyTz7wnYQB7sOt9wvPPp 3Ic9NnS3EIXgwKYz98FsTWErDzRcFti3+T9nis3vHGKo3mbY7C57b37U1Hlfag831A2o BxuK/VN7viiyLKpCeGL21LujJOQip/Q5vfrtHamlsokwjJCZXe4IJqcBk2huty912MrP 6Icw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=identitypraxis-com.20150623.gappssmtp.com; s=20150623; 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=DnSKzwb7Wes8DWxLLmFgJlKz8XqiddvyDycGAr4mMLA=; b=zB1O2i0aKs368irJIj6SCB2cpxZh2lXqXJXwHZh4v9WILTHhmYCLb27+aXi9IrgVcn 8EGZWU4j5TD4JjGhdKXSL81tq2J2r1Wy0bLG1fa7+GuW1jEkeVzrZDGTLfHGUu4sZfPY 9B3K+DO4OrmfjUfwIf0/MRhhQThwXYeXuaRrWcMYVIAfpG/g47jjEj/S6HBr0FSMFPKu b2XhZD+yMx63wCqDl8IT6DtUugyrCofs+IMaIP3fPctx6/tDUaEk0wYV6gllGhxqsGLF /l/yNg2DtbAbqcxGOpuz5McHRHGX+nqa/ybncZigsTRQCjTDiKjmis2cdBX4mNZGOx+n Fp6g== 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: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=DnSKzwb7Wes8DWxLLmFgJlKz8XqiddvyDycGAr4mMLA=; b=Qwo1saYp7DhyAHRUQLdkHKANBCCvC/Lh6e0rnToclgYuyami396BhrqBAl08fviD1Y PMSTClEr9GcK8guObNyeJtpboXJQGkCtF2DnqkBc2PZyhQExY0I2n8Z9QLPP+2OAdb1k COEqPtn5UeMgQdYttk6Au0zWYx94Oviw3FU6GBqTuipK1TO71gCBGfqOtoG4pq52dtem cQeGtKUQjijmNX0u5rXwlzbRem/4lf9fuBWN79xUmx/F3RdPw9qO64kLbhOGyuxblB8/ T56xNdJGJAaQKzsZkcun+nEo4qez2jxne2MTxkXXUjs9/JctV85kSAr3ADh/Gz7eNxDW OpLQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532cfVC5re5CrVAMokCks2ICzW5QZxMFiu1nJSeXJ1rQuro2+TS1 Pa5oHFxgSoW553/AiSPXpW0= X-Google-Smtp-Source: ABdhPJzy67JXqucd5iiv9TPbzCosxxPr6JfLhf9LczI8zrm0nCsqduTGzNRflJhVV15gigIne2k6hg== X-Received: by 2002:a4a:9b0b:: with SMTP id a11mr3073602ook.73.1622126697244; Thu, 27 May 2021 07:44:57 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:310c:: with SMTP id b12ls991803ots.9.gmail; Thu, 27 May 2021 07:44:55 -0700 (PDT) X-Received: by 2002:a9d:80f:: with SMTP id 15mr3028406oty.168.1622126695328; Thu, 27 May 2021 07:44:55 -0700 (PDT) In-Reply-To: X-Original-Sender: michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@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:28454 Archived-At: ------=_Part_2392_1558649227.1622126694677 Content-Type: multipart/alternative; boundary="----=_Part_2393_2037679219.1622126694677" ------=_Part_2393_2037679219.1622126694677 Content-Type: text/plain; charset="UTF-8" Sorry, I thought I replied to this. No, it is not. Table Paragraph is a user-generated style. I can't figure out how to edit the default style to set allow content to wrap and paragraph formatting in the reference docx. If anyone has an answer I'd be VERY grateful. On Monday, May 24, 2021 at 11:35:30 AM UTC-7 John MacFarlane wrote: > > Is "Table Paragraph" a standard word style that is meant for > paragraphs inside tables? > > If so, then it seems to me we should change pandoc so this is > used automatically. > > Michael Becker writes: > > > Hey there, I have an update. Daniel was right, I could modify the Table > > style in word (took a while to figure out how to do this `1. click on > the > > table, 2. click on table design, 3. modify the design. NOTE: Pandoc only > > works with the "Table" style in Word. > > > > I successfully was able to get the border to show, as well as the table > > margins and table indent, set. Which is all great. > > > > Have one/two more issues to tackle. As I'm using APA style guidelines I > > have a first paragraph indent set for normal text. This indent is being > > applied to the text in my tables. This means my text looks terrible. > Also, > > the tables are not auto-sizing to content. My workaround is to manually > > apply a "table paragraph" style to all my tables after the pandoc > > conversion. Is anyone aware of a way to set the table paragraph and size > in > > the reference docx? From what I've read thus far, this does not appear > > possible. I'd love to be proven wrong. > > > > > > > > On Saturday, May 22, 2021 at 2:19:36 PM UTC-7 Michael Becker wrote: > > > >> Thanks, Daniel, I have this and it is working perfectly for font and > >> heading styles. I'm not sure how to set up this up for template styles > in > >> the docx file. I tried to put a table in with borders, but this did not > >> work. Any ideas? > >> On Saturday, May 22, 2021 at 10:42:53 AM UTC-7 DSt...-Jdbf3xiKgS8@public.gmane.org wrote: > >> > >>> On 5/21/21 9:02 PM, Michael Becker wrote: > >>> > I'm successfully converting markdown to docx, including table > >>> conversion. > >>> > > >>> > I would like converted tables to have a border and single space line > >>> > formatting. Is there any way to accomplish this? > >>> > >>> You need to have a custom docx template which has the styling on the > >>> default table. > >>> > >>> Daniel T. Staal > >>> > >>> -- > >>> --------------------------------------------------------------- > >>> This email copyright the author. Unless otherwise noted, you > >>> are expressly allowed to retransmit, quote, or otherwise use > >>> the contents for non-commercial purposes. This copyright will > >>> expire 5 years after the author's death, or in 30 years, > >>> whichever is longer, unless such a period is in excess of > >>> local copyright law. > >>> --------------------------------------------------------------- > >>> > >> > > > > -- > > 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/9d76aaf5-c7cb-4930-b0e0-c648e356a32fn%40googlegroups.com > . > -- 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/e2f1af4b-dcf5-4588-bdcc-60a02802a834n%40googlegroups.com. ------=_Part_2393_2037679219.1622126694677 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry, I thought I replied to this.  No, it is not. Table Paragraph is= a user-generated style.  I can't figure out how to edit the default s= tyle to set allow content to wrap and paragraph formatting in the reference= docx.  If anyone has an answer I'd be VERY grateful.

On Monday, May 24= , 2021 at 11:35:30 AM UTC-7 John MacFarlane wrote:

Is "Table Paragraph" a standard word style that is meant for
paragraphs inside tables?

If so, then it seems to me we should change pandoc so this is
used automatically.

Michael Becker <michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org> writes:

> Hey there, I have an update. Daniel was right, I could modify the= Table=20
> style in word (took a while to figure out how to do this `1. click= on the=20
> table, 2. click on table design, 3. modify the design. NOTE: Pando= c only=20
> works with the "Table" style in Word.
>
> I successfully was able to get the border to show, as well as the = table=20
> margins and table indent, set. Which is all great.
>
> Have one/two more issues to tackle. As I'm using APA style gui= delines I=20
> have a first paragraph indent set for normal text. This indent is = being=20
> applied to the text in my tables. This means my text looks terribl= e. Also,=20
> the tables are not auto-sizing to content. My workaround is to ma= nually=20
> apply a "table paragraph" style to all my tables after t= he pandoc=20
> conversion. Is anyone aware of a way to set the table paragraph an= d size in=20
> the reference docx? From what I've read thus far, this does n= ot appear=20
> possible. I'd love to be proven wrong.=20
>
>
>
> On Saturday, May 22, 2021 at 2:19:36 PM UTC-7 Michael Becker wrote= :
>
>> Thanks, Daniel, I have this and it is working perfectly for fo= nt and=20
>> heading styles. I'm not sure how to set up this up for te= mplate styles in=20
>> the docx file. I tried to put a table in with borders, but thi= s did not=20
>> work. Any ideas?
>> On Saturday, May 22, 2021 at 10:42:53 AM UTC-7 DSt...-Jdbf3xiKgS8@public.gmane.org wr= ote:
>>
>>> On 5/21/21 9:02 PM, Michael Becker wrote:=20
>>> > I'm successfully converting markdown to docx, inc= luding table=20
>>> conversion.=20
>>> >=20
>>> > I would like converted tables to have a border and si= ngle space line=20
>>> > formatting. Is there any way to accomplish this?=20
>>>
>>> You need to have a custom docx template which has the styl= ing on the=20
>>> default table.=20
>>>
>>> Daniel T. Staal=20
>>>
>>> --=20
>>> -----------------------------------------------------= ----------=20
>>> This email copyright the author. Unless otherwise noted, y= ou=20
>>> are expressly allowed to retransmit, quote, or otherwise u= se=20
>>> the contents for non-commercial purposes. This copyright w= ill=20
>>> expire 5 years after the author's death, or in 30 year= s,=20
>>> whichever is longer, unless such a period is in excess of= =20
>>> local copyright law.=20
>>> -----------------------------------------------------= ----------=20
>>>
>>
>
> --=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 pandoc-discuss+unsubscribe@g= ooglegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss= /9d76aaf5-c7cb-4930-b0e0-c648e356a32fn%40googlegroups.com.

--
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/e2f1af4b-dcf5-4588-bdcc-60a02802a834n%40googlegroups.= com.
------=_Part_2393_2037679219.1622126694677-- ------=_Part_2392_1558649227.1622126694677--