public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Abdeali Kothari <abdealikothari-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
Cc: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Using --toc with docx files gives a warning: "fields referring to other files"
Date: Sun, 9 Aug 2020 07:58:11 +0530	[thread overview]
Message-ID: <CA+BKPDVKKRJ2a7nj_EMEiJgRzcfh+OaCuW3z5kt4wRFyBWAegw@mail.gmail.com> (raw)
In-Reply-To: <m2pn81jbv3.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2449 bytes --]

I see, thanks John, Leonard.
This helps

On Sat, Aug 8, 2020, 22:47 John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:

>
> This is because Word produces the table of contents dynamically,
> so that it can include page numbers.
>
> Nothing to worry about here, and no way to do better as far
> as I can see.
>
> Abdeali Kothari <abdealikothari-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > Hi,
> > I am trying to use pandoc to convert some documents to word docx format.
> > I found that when I use the --toc argument, I get a warning from
> Microsoft
> > Word on windows about fields that are referring to other files.
> >
> > I'm trying to figure out how can I avoid thi warning for the users of my
> > generated document ?
> >
> > *Steps to reproduce*:
> > Step1: Create a document of either markdown of html (I am using markdown
> as
> > an example)
> > Here is my example markdown file:
> > $ cat test.md
> > # head1
> >
> > ## subhead1
> >
> > # head2
> >
> > ## subhead2
> >
> > Step 2: Convert to docx with pandoc with the --toc argument
> > pandoc --toc -o test.docx test.md
> >
> > Step 3: Open the test.docx with Microsoft Word
> > PFA a screenshot of the warning I get.
> >
> >    - If I click "Yes" - the table of contents appears
> >    - If I click "No" - the table of contents does not appear, and I have
> to
> >    click on "update TOC" to update it with the correct contents
> >
> > Other info:
> >
> >    - Pandoc version: 2.10
> >    - Windows: 10 Version 2004
> >    - I use WSL with Ubuntu: 18.04.4
> >
> >
> > Any help appreciated
> >
> > --
> > 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/69d0df29-46d5-4098-9e01-3485f17bcbd5n%40googlegroups.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/CA%2BBKPDVKKRJ2a7nj_EMEiJgRzcfh%2BOaCuW3z5kt4wRFyBWAegw%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 3738 bytes --]

      parent reply	other threads:[~2020-08-09  2:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-06  6:22 Abdeali Kothari
     [not found] ` <69d0df29-46d5-4098-9e01-3485f17bcbd5n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-08-06 13:19   ` Leonard Rosenthol
2020-08-08 17:17   ` John MacFarlane
     [not found]     ` <m2pn81jbv3.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-08-09  2:28       ` Abdeali Kothari [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=CA+BKPDVKKRJ2a7nj_EMEiJgRzcfh+OaCuW3z5kt4wRFyBWAegw@mail.gmail.com \
    --to=abdealikothari-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=jgm-TVLZxgkOlNX2fBVCVOL8/A@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).