From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23321 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: pierrO Lelou Newsgroups: gmane.text.pandoc Subject: Re: --print-default-data-file does not create custom-reference document (solved) Date: Wed, 28 Aug 2019 08:20:39 -0700 (PDT) Message-ID: References: <7b9dfe11-7483-431c-9a11-1e40d65b7ebd@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2291_1734896002.1567005639899" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="195216"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDO73WX3SUIRBSNXTLVQKGQENTJECJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 28 17:20:48 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f183.google.com ([209.85.167.183]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i2zke-000ogU-Kr for gtp-pandoc-discuss@m.gmane.org; Wed, 28 Aug 2019 17:20:48 +0200 Original-Received: by mail-oi1-f183.google.com with SMTP id o18sf100767oie.0 for ; Wed, 28 Aug 2019 08:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=qbYT4KJWHCud0LdeLzjiVNw/ni4au7rQzS/RGg+hxg4=; b=YkKdceGODTbyA5JUg5hvNigDQfUpZXDvRO0oCCvqrpIuRg6eKp+Vli3V8frEbqcNJI Kf0EUD8adA1Ss9BPAPLtVy1jE/+q6DvS8m3b2E6oHar56pAxLgQNJPNZHeWLYYeypj9D yb0s31YkDosqBIg7ahr5gjzJzt04poMuIldSybzzT85DrH3S03RCaIn/rz01uW8xAhlL Wgjjlt2cfNukn2KMi9k7NjT1oPb/z1wBy/Fbl4YgM2rx7FujPnVmkzD5Klu0ccLTn+wl MFM4FbKOo2hg+sjQbQKFkFvI30zSPgGcmBvNZgPR+6eC60GtNxM+NhrmanX047U4N5XA v8CQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=qbYT4KJWHCud0LdeLzjiVNw/ni4au7rQzS/RGg+hxg4=; b=uBr4gFDhTzh6m2RWbe9YNkh1HUYCfhgU5+JT5WBJD+kBb5SEpK/QHbDxuC52kWT+bs l5srVVtNF84Zahq6gEbFyvQ6GhrzpkUAsToeqVZFAozQn/HGS1TouS5d5+P6pVS8ITga mjB66WFnmezhyHXsO2EG/XNfFozeGbWJFGySNGt211PLMCFNDcF40uuo08D43a6f9LwE DNS9iYN779poGJxfqgX5fwehssHjZqvA4YbFEJeAkBktHJTybyOg+1O1oWvGbNDdPkCe TxRLdz2Zq/FMdlBnNwIEjiyxWViEJ1r03ftvnWxGtH7X6NRnfrI/ly1bRKnXAvdyyTi9 UzRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=qbYT4KJWHCud0LdeLzjiVNw/ni4au7rQzS/RGg+hxg4=; b=KrynPDYKuPaw8C1bVcizj7etzrBZ3NAKzPADv3+kqISjZN2TW1ganTZa4Qz+rr2Jsv 9J5eACKafxNshbnCfN7ZiCZKnwhkGWCp2wXRFQDeGL3QEOkuzmf2ZYcvc9s1L6zSpzJ2 fnYHFO2T0AD/eKrMeN6mu3Za9iOiJhKKQryCrdoy3/eQyhPdVEVN8UqmpKp0CphsUptw 1RZJJDnd9J0WO5Ks+OerGbtMHwStMz1zEze9jmigiqGRK0ZBrzJfOjRRkC1AhezuNVpV WaBKyqHi0qUZ023sHkiO8jUO/EYWNiLyHN6H9/u25oR2pJF2eYU6/sd6otoBYeL1NJVF Bz5A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXxM5XANjNyTwZ2w49kyxqtls3jzkDV7L7orEzYpfibCod/sPSX JndEfJzJuUQL5tvh0ksCsZU= X-Google-Smtp-Source: APXvYqyQ21IEv3/AztV0qXggwtN2HDxMdKXxvzShgMuSZIrwS7HA47SC+TRFBID60D0lUloOxwNxOw== X-Received: by 2002:a9d:719b:: with SMTP id o27mr3631718otj.291.1567005647294; Wed, 28 Aug 2019 08:20:47 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:70d2:: with SMTP id w18ls507102otj.11.gmail; Wed, 28 Aug 2019 08:20:40 -0700 (PDT) X-Received: by 2002:a05:6830:1e38:: with SMTP id t24mr3607871otr.134.1567005640691; Wed, 28 Aug 2019 08:20:40 -0700 (PDT) In-Reply-To: X-Original-Sender: pifetpof-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23321 Archived-At: ------=_Part_2291_1734896002.1567005639899 Content-Type: multipart/alternative; boundary="----=_Part_2292_1518731856.1567005639899" ------=_Part_2292_1518731856.1567005639899 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable OK thank you very much Le mardi 27 ao=C3=BBt 2019 21:15:27 UTC+2, John MacFarlane a =C3=A9crit : > > > You're using an older version; the documentation on our website=20 > is for the current version. (For your version, see the man page=20 > installed with the package.)=20 > > Relevant changelog item from pandoc 2.7.1:=20 > > * Allow `-o/--output` to be used with `--print-default-data-file`,=20 > `--print-highlighting-style`, `--print-default-template`.=20 > Note that `-o` must occur BEFORE the `--print*` command on the comman= d=20 > line (this is documented, #5357).=20 > > So prior to 2.7.1, you couldn't use -o with=20 > --print-default-data-file; it would just print to stdout.=20 > Of course you can use a redirect:=20 > > pandoc --print-default-data-file reference.odt > custom-reference.odt=20 > > which is what your man page should tell you to do.=20 > > pierrO Lelou > writes:=20 > > > Hello,=20 > > Could you tell me why an error occurs when I try to produce a template = /=20 > > reference file either in odt or docx file format ?=20 > > $ pandoc -o custom-reference.odt --print-default-data-file reference.od= t=20 > > Then the terminal print this types of characters and pandoc quit with a= =20 > 0=20 > > error code.=20 > > 6=EF=BF=BD>A!=EF=BF=BD%&=EF=BF=BDz=EF=BF=BD=EF=BF=BD=EF=BF=BD8K=EF=BF= =BD=EF=BF=BD=EF=BF=BD*g=EF=BF=BD=EF=BF=BDRK=EF=BF=BDT=EF=BF=BDu=EF=BF=BD=EF= =BF=BD9=E2=96=92=EF=BF=BD=EF=BF=BD=EF=BF=BD;=EF=BF=BD~=EF=BF=BD=EF=BF=BD=EF= =BF=BDhM=EF=BF=BD=3Dq=EF=BF=BD}=EF=BF=BD9Y=EF=BF=BDQA+H"=EF=BF=BD=EF=BF=BD0= =EF=BF=BD=EF=BF=BD=EF=BF=BD.(=EF=BF=BD=EF=BF=BD=EF=BF=BD=20 > >=20 > > But there is no custom-reference.odt file in the user data directory= =20 > > Is it because the version is 2.2.1 on Kubuntu 18.10 ?=20 > > $pandoc --version=20 > > pandoc 2.2.1=20 > > Compiled with pandoc-types 1.17.4.2, texmath 0.10.1.2, skylighting 0.6= =20 > > Default user data directory: /home/pierre/.pandoc=20 > >=20 > > Pandoc has been installed in /home/pierre/.locale/share/pandoc=20 > > I have tried both copying the directory in /home/.pandoc/ and created a= =20 > > symlink from .locale/share/pandoc but result still be the same.=20 > >=20 > > Thank you for your help=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group.=20 > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/7b9dfe11-7483-431c-9a11-= 1e40d65b7ebd%40googlegroups.com.=20 > > --=20 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 e= mail 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. ------=_Part_2292_1518731856.1567005639899 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
OK thank you very much

Le mardi 27 ao=C3=BBt 2019 2= 1:15:27 UTC+2, John MacFarlane a =C3=A9crit=C2=A0:

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:

=C2=A0 * Allow `-o/--output` to be used with `--print-default-data-file= `,
=C2=A0 =C2=A0 `--print-highlighting-style`, `--print-default-template`.
=C2=A0 =C2=A0 Note that `-o` must occur BEFORE the `--print*` command o= n the command
=C2=A0 =C2=A0 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.od= t

which is what your man page should tell you to do.

pierrO Lelou <pife...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hello,
> Could you tell me why an error occurs when I try to produce a temp= late /=20
> reference file either in odt or docx file format ?
> $ pandoc -o custom-reference.odt --print-default-data-file referen= ce.odt
> Then the terminal print this types of characters and pandoc quit w= ith a 0=20
> error code.=20
> 6=EF=BF=BD>A!=EF=BF=BD%&=EF=BF=BDz=EF=BF=BD=EF=BF=BD=EF=BF= =BD8K=EF=BF=BD=EF=BF=BD=EF=BF=BD*g=EF=BF=BD=EF=BF=BDRK=EF=BF=BDT=EF=BF=BDu= =EF=BF=BD=EF=BF=BD9=E2=96=92=EF=BF=BD=EF=BF=BD=EF=BF=BD;=EF=BF=BD~=EF= =BF=BD=EF=BF=BD=EF=BF=BDhM=EF=BF=BD=3Dq=EF=BF=BD}=EF=BF=BD9Y=EF=BF=BDQA+H&q= uot;=EF=BF=BD=EF=BF=BD0=EF=BF=BD=EF=BF=BD=EF=BF=BD.(=EF=BF=BD=EF=BF=BD= =EF=BF=BD
>
> But there is no custom-reference.odt file in =C2=A0the user data d= irectory
> 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/pando= c
> I have tried both copying the directory in /home/.pandoc/ and crea= ted a=20
> symlink from .locale/share/pandoc but result still be the same.
>
> Thank you for your help
>
> --=20
> 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-...@googlegroups.com.
> To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/7b9dfe11-7483-431c-9a11-1e40d65= b7ebd%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
------=_Part_2292_1518731856.1567005639899-- ------=_Part_2291_1734896002.1567005639899--