public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Michael Becker
	<michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
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: Mon, 24 May 2021 11:35:15 -0700	[thread overview]
Message-ID: <m2v978nfoc.fsf@MacBook-Pro.hsd1.ca.comcast.net> (raw)
In-Reply-To: <9d76aaf5-c7cb-4930-b0e0-c648e356a32fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


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 
> 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.


  parent reply	other threads:[~2021-05-24 18:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-22  1:02 Michael Becker
     [not found] ` <63c828cd-eaee-4d02-89e5-a5b54d98434dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-22  1:05   ` Michael Becker
2021-05-22 17:42   ` Daniel Staal
     [not found]     ` <a4e36fa9-2d77-dedd-f4ad-a4eacfc0b2e9-Jdbf3xiKgS8@public.gmane.org>
2021-05-22 21:19       ` Michael Becker
     [not found]         ` <cafda3f1-6d1f-468c-9cfc-3148da16a381n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-23 21:17           ` Michael Becker
     [not found]             ` <9d76aaf5-c7cb-4930-b0e0-c648e356a32fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-24 18:35               ` John MacFarlane [this message]
     [not found]                 ` <m2v978nfoc.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-05-27 14:44                   ` Michael Becker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2v978nfoc.fsf@MacBook-Pro.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).