public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* --print-default-data-file does not create custom-reference document
@ 2019-08-27 17:30 pierrO Lelou
       [not found] ` <7b9dfe11-7483-431c-9a11-1e40d65b7ebd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: pierrO Lelou @ 2019-08-27 17:30 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1370 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 1849 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: --print-default-data-file does not create custom-reference document
       [not found] ` <7b9dfe11-7483-431c-9a11-1e40d65b7ebd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-08-27 19:15   ` John MacFarlane
       [not found]     ` <yh480kimqizagv.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2019-08-27 19:15 UTC (permalink / raw)
  To: pierrO Lelou, pandoc-discuss


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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: --print-default-data-file does not create custom-reference document (solved)
       [not found]     ` <yh480kimqizagv.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2019-08-28 15:20       ` pierrO Lelou
  0 siblings, 0 replies; 3+ messages in thread
From: pierrO Lelou @ 2019-08-28 15:20 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2874 bytes --]

OK thank you very much

Le mardi 27 août 2019 21:15:27 UTC+2, John MacFarlane a écrit :
>
>
> 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 <pife...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> > 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/dc29d707-677c-44e7-971a-c3fc7342674b%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 4322 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-28 15:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 17:30 --print-default-data-file does not create custom-reference document pierrO Lelou
     [not found] ` <7b9dfe11-7483-431c-9a11-1e40d65b7ebd-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-08-27 19:15   ` John MacFarlane
     [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

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).