public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: docx output: how to set tables columns width, starting with pipe table?
Date: Sat, 1 Jul 2023 12:33:59 -0700	[thread overview]
Message-ID: <86FAFD49-916C-4254-BBBC-67C694503606@gmail.com> (raw)
In-Reply-To: <CAHEdGZOm9Ss2u_K-Sto2LAjc5dFWj47L_9vLT2oYMkcvEZ9Waw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Thanks for the clarification. Yes, I see the same thing as you do.

The xml contains

      <w:tblGrid>
        <w:gridCol w:w="3960" />
        <w:gridCol w:w="2376" />
        <w:gridCol w:w="1584" />
      </w:tblGrid>

so the information is in there -- and obviously LibreOffice is finding it.
So the question is why docx isn't reacting to this?

Relevant docs:

http://officeopenxml.com/WPtableGrid.php

I note that in this example
http://officeopenxml.com/WPtable.php

in addition to tblGrid they define the widths for each cell:

<w:tc>
<w:tcPr>
<w:tcW w:w="2880" w:type="dxa"/>
</w:tcPr>
<w:p>
<w:r>
<w:t>AAA</w:t>
</w:r>
</w:p>
</w:tc>

So we might have to do that to make it work?  Not sure what tblGrid is for, in that case!

> On Jul 1, 2023, at 9:32 AM, andy <aborruso-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 
> Hi John,
> 
> On Sat, 1 Jul 2023 at 18:26, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> I had missed your message about Office. No, haven't tried with Office, probably an issue with Office's ODT import.
> 
> I do not run any ODT import. I create a docx starting from the md I have shared, running `pandoc -s input.md -o output.docx`.
> Then I open it in office 365 and I have the wrong columns width. If I open the docx in LibreOffice I have the right columns width.
> 
> Could you share your docx output?
> 
> Thank you
> 
> 
> -- 
> ___________________
> 
> Andrea Borruso
> website: https://medium.com/tantotanto
> 38° 7' 48" N, 13° 21' 9" E, EPSG:4326
> ___________________
> 
> "cercare e saper riconoscere chi e cosa,
>  in mezzo all’inferno, non è inferno, 
> e farlo durare, e dargli spazio"
> 
> Italo Calvino
> 
> -- 
> 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/CAHEdGZOm9Ss2u_K-Sto2LAjc5dFWj47L_9vLT2oYMkcvEZ9Waw%40mail.gmail.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/86FAFD49-916C-4254-BBBC-67C694503606%40gmail.com.


  parent reply	other threads:[~2023-07-01 19:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-01  7:23 andy
     [not found] ` <CAHEdGZNWx23eBW17o6R=vDKnzMkzA8uesM=G6otdinGqAEQh-Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-07-01  8:03   ` Andrea Borruso
2023-07-01 15:58   ` John MacFarlane
     [not found]     ` <266B2BB1-A4B1-416F-815A-DEE9EB4D2B11-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-07-01 16:09       ` andy
     [not found]         ` <CAHEdGZO0KafBKX2-OPNPPBP6oaJ18QDx31UM-GaxSCs2Y7Qprw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-07-01 16:26           ` John MacFarlane
     [not found]             ` <79613221-EDCB-4626-9EA7-563B66F73EC8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-07-01 16:32               ` andy
     [not found]                 ` <CAHEdGZOm9Ss2u_K-Sto2LAjc5dFWj47L_9vLT2oYMkcvEZ9Waw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-07-01 19:33                   ` John MacFarlane [this message]
2023-07-01 19:51                   ` John MacFarlane
     [not found]                     ` <480DA686-525F-4E99-933C-DF82F266A6DC-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-07-01 20:05                       ` John MacFarlane
     [not found]                         ` <8BFA7781-9075-468C-A887-A62F138EF8F3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-07-02  8:05                           ` Andrea Borruso

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=86FAFD49-916C-4254-BBBC-67C694503606@gmail.com \
    --to=fiddlosopher-re5jqeeqqe8avxtiumwx3w@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).