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