From: Paul Kelleher <paul-JZTKsBFbLNkkm2bSNb+QWw@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Table styles when outputing DOCX
Date: Thu, 13 Jul 2023 14:05:39 -0700 (PDT) [thread overview]
Message-ID: <58ee6de7-40ad-4728-a784-76d96c046a32n@googlegroups.com> (raw)
In-Reply-To: <CAESnU9v+dB0_gPb7yAS9adzj9aect6ajcLfv8OE+JJeFYFEdyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 3732 bytes --]
Yes, one can do this. As the user's guide <https://pandoc.org/MANUAL.html>
notes:
> produce the custom docx reference file with the terminal command `pandoc
-o custom-reference.docx --print-default-data-file reference.docx`. Then
open custom-reference.docx in Word, modify the styles as you wish, and save
the file.
To achieve your desired change, in Word go to Format > Style... , and then
under the Styles list in the window that pops up scroll down to select
`Table`. Then click `Modify...` From there you can format aspects of the
custom-reference docx's table, choosing either to apply the formatting to
the whole table or to just a part of it. You can use this method to make
just your header rows have green backgrounds. (I assume that whatever
formatting you choose here, it will be applied to all tables in your
document and that there's no way to have different formatting for different
tables.)
When you're ready to convert your source document to docx with pandoc, add
`--reference-doc=` this to your terminal command, with the path to your
updated custom-reference docx following the `=`.
On Thursday, July 13, 2023 at 2:24:02 PM UTC-5 Zaur Molotnikov wrote:
> Thanks for the hints.
>
> I'd like to get some more advice from the authors is the docx writer.
>
> With the rest of the styles, the answer above works for me. But not with
> tables. I'm not sure, which table style is used by default and how to
> change it.
>
> On Thu, Jul 13, 2023, 8:21 PM John MacFarlane <fiddlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>> See https://pandoc.org/MANUAL.html#option--reference-doc
>>
>> The only way to customize docx output is to adjust the styles listed
>> there in a referenece.docx. I imagine the Table style is the one you want
>> to adjust, but I'm not a Word user so I can't give further details, nor am
>> I sure that this particular customization is possible.
>>
>>
>> > On Jul 13, 2023, at 5:56 AM, Zaur Molotnikov <quto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> >
>> > Hello all. I would highly appreciate a hint from the group, on how to
>> give some styling to MS Words tables. In particular, I'd like the header
>> rows to have green background. Is there a way to achieve it?
>> >
>> > --
>> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/7234d3c7-0325-40ad-a10d-3d9b70de9ef0n%40googlegroups.com
>> .
>>
>> --
>>
> You received this message because you are subscribed to a topic in the
>> Google Groups "pandoc-discuss" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/pandoc-discuss/e9wZSf1pBbc/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pandoc-discuss/30740175-CAF1-4423-A413-F6DF4A05D2D9%40gmail.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/58ee6de7-40ad-4728-a784-76d96c046a32n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 6460 bytes --]
prev parent reply other threads:[~2023-07-13 21:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-13 12:56 Zaur Molotnikov
[not found] ` <7234d3c7-0325-40ad-a10d-3d9b70de9ef0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-07-13 18:21 ` John MacFarlane
[not found] ` <30740175-CAF1-4423-A413-F6DF4A05D2D9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-07-13 19:23 ` Zaur Molotnikov
[not found] ` <CAESnU9v+dB0_gPb7yAS9adzj9aect6ajcLfv8OE+JJeFYFEdyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-07-13 21:05 ` Paul Kelleher [this message]
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=58ee6de7-40ad-4728-a784-76d96c046a32n@googlegroups.com \
--to=paul-jztksbfblnkkm2bsnb+qww@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).