From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28433 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane 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: Mon, 24 May 2021 11:35:15 -0700 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: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36920"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Becker , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB4HDV6CQMGQEYVPWF4I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 24 20:35:31 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f187.google.com ([209.85.214.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1llFQI-0009NT-RN for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 24 May 2021 20:35:30 +0200 Original-Received: by mail-pl1-f187.google.com with SMTP id f2-20020a1709031042b02900ef82a95ef4sf13425671plc.3 for ; Mon, 24 May 2021 11:35:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621881329; cv=pass; d=google.com; s=arc-20160816; b=jSao7fUPOSE6y2LAbTnYtS7+QAKqWyR5pAZTf4uV5q8JUEOiYk1iHauK7NV+C9U5Tf WfhzakO4fmVC/q8OcWLtZxZKGI0CLogh80EypbW+rmnonYwreoNd2os2YumBpzab4RDg fBBMnstSlB+HLm9BL7HSFYfP1voVWa15OPe7vfM/xMuDCDy+kjK1uMSahhkMq2spg06X 1yyVI8jJ+A65RupPE+UVXHrBG1SRQNJIrNGlwY/B5VmZMHLi8MnKcVxc69G9dsJQByTE MmEicZsEn5xb7VoacaXx0nB1++XbCGeqVeRlKHb0vjwbq8YpjxEZv1P2IFzMIjZMxCEz FVdQ== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=pjsARgMGe9P6m2am8ILn1ToCor4UEfc031y/NdVfEZI=; b=kCnOPb2+Q+KOw3KFBlU5kRrWSwPjKsYmU5aiUIMal7619hVHTYfRe7QCoWpm3DjydU 4+xs3TO0dZqgAdSbLNGVfEXgWAclNDOdKOz3Iu4LjpQpTNL1IvCxv3ew4qaFn9D7sb58 owj5xxdh2sJVDGcS73xblKBt/fIL9EbxSGlYAXuHxREtaO67zF7AMsatBDMdv27FYLq5 2AA1h9fEgb9+KRMznqnCRj/8Tn8VS/86sPY4OnFgPG7/x90CNicwYbzO3AnoVMNnNVhD BZMh6y/HVAnnS5dWG211SMQwA4REID4ibdhywa+zJ/z9yQz088Z3koXXnwT8tBosm+ZX Fr0g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=dCGLLSTc; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=pjsARgMGe9P6m2am8ILn1ToCor4UEfc031y/NdVfEZI=; b=X7phGilgC9guKZ4EzySuUYjm6fSDZBIRbN40nGN4OPCwMCkNEYtJiB2hsCi7E6xXeQ AjqQ1rNRf+cqUDnLntnODJmhT2orFrm6Y1KN++AemULpM6dnYnZ8ik3137I0fUz2vyfM WLlDkmgR9DT1ofLZUiArZiX7HRnac+x9lKpXjcBs+H7jp79FeWp5sbcSecaW1Un3cOHr aHrpuGHeE7i6OObIiZw3N05WH6Uj4+ygoACcwc1qPHCEpE+H2nNA65LYftRTHmvbqrwp SDsO5RqgQZP4Wm0H60fxDC2PDKsh3fQF37tQwNFhWFfCmoom7cpC4xL+PgOV/97oZFoE zKjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=pjsARgMGe9P6m2am8ILn1ToCor4UEfc031y/NdVfEZI=; b=fPRdcQ1LAw8+UxX3Ruo422LJcprwmJdF96ee2HA+xLilAdn9UVW6AcHLgQ4t9IiPDt NnoqP/2sKk+6HPILA9V3uSOojLEP/AtJ2MANmjzV14H9mNJBYtrF6f4hH+sgJDES/WLj lTYdTvKkuwvCmVnhgeL3YkbDW1+SFiwZz07ePJKXw5R+BZ6oCI036m3fSGLT2LglZFVj xUUMetGaaT3RU+Xud+36rnS58DmFVMn/Lp4ha1/S7YMVkrJLMcsS6NOjmoYiGgz0zlbs PEkanrPzX+PKRoMD3QZLznNmDYU743D6A70P7UcycKp9mIUNhS8tTrOffplo4/5UXQ3l 1VoQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533hS/VC/T41pG7YH064xkbK9YREOKVy7RUs/wu+A250VZRsD5bB SfiKV4RPQ8MGX793moN6qTA= X-Google-Smtp-Source: ABdhPJwQXpGfX08mglTYeCNpzBTuvr/gGvtDg82Ul9wmbD6ptWmiKAYZtMBYPhs8gb9mzFOvki7t+A== X-Received: by 2002:a05:6a00:882:b029:24b:afda:acfa with SMTP id q2-20020a056a000882b029024bafdaacfamr26514823pfj.72.1621881329641; Mon, 24 May 2021 11:35:29 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90b:3593:: with SMTP id mm19ls179669pjb.3.canary-gmail; Mon, 24 May 2021 11:35:27 -0700 (PDT) X-Received: by 2002:a17:90a:e611:: with SMTP id j17mr521252pjy.69.1621881327532; Mon, 24 May 2021 11:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621881327; cv=none; d=google.com; s=arc-20160816; b=v3/96CN25SY2Sm+00peOIYQMEr2sLtHJdaThudnHJYP6x2Vyvjw+EeYrgWyjwtE+0s PILDLUJl/pS9ksjAdSzuxTFhDNPQQj1f21x+kbYcAGnopnE6MVNVxICRdjUz0whAU4+9 Whlfsju0WFQgyETkGkiJ/aK2vAhZUlOu/TS2ePWLsYsNlln577R+PuCBKZPHjTOMpN32 8kWh6lhvybO2Y2Ho/IHaqRjZsXkJDeqqne0u7y1cxpNMS3Oj8gd31Uvxe3v0EgsrxFkL FmXghXVBDYRQrJuLQKh+zy+Gnq2WiEACgDPh+Gko8wPvV53G1VbD5zTJI5a4XK8TG3Jp sCmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=gIfo8Ge2HuhtY3+XBaXuut5ax5FMEw0Rh2QjcYN/CYI=; b=fbz/K+rqBWGjen41V4GAhJRyU+HuWq+bPmohIJKt2itM+nw+W3YEEenYySvd2RKHix z79K98xXEmom5iRb7in4De3SWAKpgFIAKKh/DxnY1gNz0D+FJLVfB8pSqQOOdmbjRHiD Cgs4+o2pXgu/ENPboSPHt0cDqzkwSUr71q4RkgJghRdSccBfiYjii9RJxXxRYs0bhZ3s bq5UQsCc4KB0M4yR1TY9qjT8ToSMNlaXvz0vPNXE0KWXgnG/JHk0s+dvqaNlGXEmzC8k kZIjOU8sQGnednRaV6GHbrD/JykiVouwpinABp4Q3Zgv944ivG65dSpTRqth5y1095vG NP5w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=dCGLLSTc; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com. [2607:f8b0:4864:20::430]) by gmr-mx.google.com with ESMTPS id j5si46540pjs.0.2021.05.24.11.35.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 11:35:27 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) client-ip=2607:f8b0:4864:20::430; Original-Received: by mail-pf1-x430.google.com with SMTP id q67so4486785pfb.4 for ; Mon, 24 May 2021 11:35:27 -0700 (PDT) X-Received: by 2002:a63:3dc5:: with SMTP id k188mr14600752pga.140.1621881326634; Mon, 24 May 2021 11:35:26 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id a12sm12335678pfg.102.2021.05.24.11.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 11:35:26 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 77930A2A1; Mon, 24 May 2021 14:35:15 -0400 (EDT) In-Reply-To: <9d76aaf5-c7cb-4930-b0e0-c648e356a32fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=dCGLLSTc; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:28433 Archived-At: 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.