From: Dmitriy Vinokurov <gim6626-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Setting custom variables in command line for Markdown -> DOCX conversion
Date: Thu, 24 Jan 2019 04:58:26 -0800 (PST) [thread overview]
Message-ID: <1066fd0c-ca5f-4650-bc64-17ca4aaec04c@googlegroups.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1362 bytes --]
Hi!
I need to use custom variables for my DOCX file content created from
Markdown file.
Tried to insert DOC_NAME variable in "--reference-doc" template file both
using LibreOffice and MS Office in document header. Then I redefine this
variable according to pandoc man page and convert Markdown to DOCX using
this command line:
$ pandoc -s -V DOC_NAME=DOCUMENT1 --columns 10
--reference-doc=template.docx -s -f markdown -t docx main.md -o main.docx
But when I open main.docx I see variable values that was set in office
document editor in template.docx header, not what was set in command line.
E.g. I set variable DOC_NAME=doc1 in office and see it in resulting file,
not the "DOCUMENT1" value that was set in command line.
Could anybody help me with setting custom variables?
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1066fd0c-ca5f-4650-bc64-17ca4aaec04c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1910 bytes --]
next reply other threads:[~2019-01-24 12:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-24 12:58 Dmitriy Vinokurov [this message]
[not found] ` <1066fd0c-ca5f-4650-bc64-17ca4aaec04c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-01-25 0:11 ` John MacFarlane
[not found] ` <yh480kef9138at.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-01-25 5:11 ` Dmitriy Vinokurov
[not found] ` <faac06f7-39ce-414b-a6c5-71d133da0ae2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-01-26 22:44 ` Agustín Martín
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=1066fd0c-ca5f-4650-bc64-17ca4aaec04c@googlegroups.com \
--to=gim6626-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).