From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pierrO Lelou <pifetpof-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
pandoc-discuss
<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: --print-default-data-file does not create custom-reference document
Date: Tue, 27 Aug 2019 12:15:12 -0700 [thread overview]
Message-ID: <yh480kimqizagv.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <7b9dfe11-7483-431c-9a11-1e40d65b7ebd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
You're using an older version; the documentation on our website
is for the current version. (For your version, see the man page
installed with the package.)
Relevant changelog item from pandoc 2.7.1:
* Allow `-o/--output` to be used with `--print-default-data-file`,
`--print-highlighting-style`, `--print-default-template`.
Note that `-o` must occur BEFORE the `--print*` command on the command
line (this is documented, #5357).
So prior to 2.7.1, you couldn't use -o with
--print-default-data-file; it would just print to stdout.
Of course you can use a redirect:
pandoc --print-default-data-file reference.odt > custom-reference.odt
which is what your man page should tell you to do.
pierrO Lelou <pifetpof-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Hello,
> Could you tell me why an error occurs when I try to produce a template /
> reference file either in odt or docx file format ?
> $ pandoc -o custom-reference.odt --print-default-data-file reference.odt
> Then the terminal print this types of characters and pandoc quit with a 0
> error code.
> 6�>A!�%&�z���8K���*g��RK�T�u��9▒���;�~���hM�=q�}�9Y�QA+H"��0���.(���
>
> But there is no custom-reference.odt file in the user data directory
> Is it because the version is 2.2.1 on Kubuntu 18.10 ?
> $pandoc --version
> pandoc 2.2.1
> Compiled with pandoc-types 1.17.4.2, texmath 0.10.1.2, skylighting 0.6
> Default user data directory: /home/pierre/.pandoc
>
> Pandoc has been installed in /home/pierre/.locale/share/pandoc
> I have tried both copying the directory in /home/.pandoc/ and created a
> symlink from .locale/share/pandoc but result still be the same.
>
> Thank you for your help
>
> --
> 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/7b9dfe11-7483-431c-9a11-1e40d65b7ebd%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/yh480kimqizagv.fsf%40johnmacfarlane.net.
next prev parent reply other threads:[~2019-08-27 19:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-27 17:30 pierrO Lelou
[not found] ` <7b9dfe11-7483-431c-9a11-1e40d65b7ebd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-08-27 19:15 ` John MacFarlane [this message]
[not found] ` <yh480kimqizagv.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-08-28 15:20 ` --print-default-data-file does not create custom-reference document (solved) pierrO Lelou
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=yh480kimqizagv.fsf@johnmacfarlane.net \
--to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=pifetpof-Re5JQEeQqe8AvxtiuMwx3w@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).