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 13:05:53 -0700 [thread overview]
Message-ID: <8BFA7781-9075-468C-A887-A62F138EF8F3@gmail.com> (raw)
In-Reply-To: <480DA686-525F-4E99-933C-DF82F266A6DC-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
I've pushed a fix to the repository.
> On Jul 1, 2023, at 12:51 PM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> OK, I've figured out the problem.
>
> From the documentation:
>
> Layout/Width
> Whether a table uses a fixed width or autofit method for laying out the table contents is specified with the <w:tblLayout>element within the <w:tblPr> element. If <w:tblLayout> is omitted, autofit is assumed.
>
> <w:tblPr>
> <w:tblLayout w:type="fixed"/>
> </w:tblPr>
>
> Adding this w:tblLayout element fixes it. I will change the writer accordingly.
>
>
>
>> 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/8BFA7781-9075-468C-A887-A62F138EF8F3%40gmail.com.
next prev parent reply other threads:[~2023-07-01 20:05 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
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 [this message]
[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=8BFA7781-9075-468C-A887-A62F138EF8F3@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).