From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20152 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Mildenhall Newsgroups: gmane.text.pandoc Subject: Re: yaml_metadata_block and bibliography Date: Wed, 2 May 2018 11:28:32 -0700 (PDT) Message-ID: References: <856c6edc-e70f-4e0c-9387-29c399679b28@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_18266_871886832.1525285712689" X-Trace: blaine.gmane.org 1525285589 13471 195.159.176.226 (2 May 2018 18:26:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 May 2018 18:26:29 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDMNNDOUXYOBBUUGVDLQKGQEV5H7KLY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 02 20:26:25 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot0-f191.google.com ([74.125.82.191]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDwSN-0003Pr-RT for gtp-pandoc-discuss@m.gmane.org; Wed, 02 May 2018 20:26:23 +0200 Original-Received: by mail-ot0-f191.google.com with SMTP id b6-v6sf11740723otk.5 for ; Wed, 02 May 2018 11:28:35 -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=f9kjvVqch6jpc21KhmKFYtp4i4IGTSbBJE7z0bzeves=; b=BrEoGRvjMzp6oFkswHHyw2EF+RKtjGQuo6+vq/4EPoD5CnSi7TDdWeqZ5H6Fxxq8eN C1NGv1M+1LBctSAX+IJMIhotoG4dajoQ3N9N/YRjLjsHO6ZFTRnhAqyRLYwkQouYYjEo aKxb6AGxWOXxwlzF2wTpt6RcQdKIToDJQiGY0ebTxGvhmFQ+yflBEkzLFpDZ8kkZPRFv gETSsMaGT0X1gXJPNfQdabLkd6i9LPOEjzQMkOQ2btJOhyrbcfAekKdenmZR6ullvXhE ZOHXef0VbGkft7/cH92ZtBu2iyoOzh6oOl0V62dnYJ3Ao6KYBtG2WJzx1J3+pqqQ1PcJ Fdtw== 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=f9kjvVqch6jpc21KhmKFYtp4i4IGTSbBJE7z0bzeves=; b=ecCmBw6NTnS7QLcHZmXidUgNsORiM+VmYgo6YnKcKNLpXyTvLKC1MQunzrzioiUtsV VW738HXgjAxzflrSgLknHj+E0kvFnRzP4tMq8eNc3n+etw8zHaqFstGspULdFiollWAC 9X/wZHB0+8I92FpO63G9wSjG320T+oMHQhooUQBSoz5UFQcCLXVGRMIyqXnY7WpI+yNh VRcCM7b4XwmXWOmfkSu+0ryckvyypBgjptTBqQCAWzzFZRxbdMSrbGwzSeSGmL0K95aD uAkRg4xg3A9Itscs9enxnfGIkzLEYrmb9Cnct5RHp9NmijoWKLrqBbxWppSnXmrv3Ueq yqyg== 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=f9kjvVqch6jpc21KhmKFYtp4i4IGTSbBJE7z0bzeves=; b=fbb2Xn66cGhTzzH3k0qGhcnHCkFq84Nmfzccxi7Zrq1QbRFqNmsO/I/YUYXfQ4bk/s lVkqsv+r/spWrDvNpYaSe9OO/uVHkJRqMCLYwwj+emgMcYUBW5NbXDADyP+VFyz5o5bw ZAm0ruOgWVprgsOEToZ28CjRFtjyBPO6GVf9A3T+PUm3h1EqG7yhzkG6ybqiE18grqTn HycUOlJ1E9WgMFazXGl39GRVSVfnlu6e3G4uIC0sPOmAevR8rsfxYwY8Ld58yjSvE5N4 s5o+UAAn+hTDBjRaDG3JteLVykJAAORpfWD9ts47Fb7XECvbAg93H81iBJc8uBbY49s+ IJhw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALQs6tCRiviPfTIuv4nzRtVHDjdVbnMJWPZKEV2UjV2QqGpR5qdQVZ8/ a6G0J5MGF7tjNY3mtBu70Zw= X-Google-Smtp-Source: AB8JxZrghCjZZEIqKzS7D5yLtKOAMGvHGXN+Dydd18cbQE6CmlMs1bOSUEO/JLCJ5iISBHOZs7qZxw== X-Received: by 2002:a9d:5c8d:: with SMTP id a13-v6mr1501795oti.0.1525285714806; Wed, 02 May 2018 11:28:34 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:1877:: with SMTP id t52-v6ls2131330ott.21.gmail; Wed, 02 May 2018 11:28:33 -0700 (PDT) X-Received: by 2002:a9d:4509:: with SMTP id w9-v6mr1496920ote.10.1525285713400; Wed, 02 May 2018 11:28:33 -0700 (PDT) In-Reply-To: X-Original-Sender: Stephen.j.mildenhall-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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:20152 Archived-At: ------=_Part_18266_871886832.1525285712689 Content-Type: multipart/alternative; boundary="----=_Part_18267_949140610.1525285712690" ------=_Part_18267_949140610.1525285712690 Content-Type: text/plain; charset="UTF-8" Thanks. But you can't specify to run citeproc in the yaml with filter: pandoc-citeproc. Is there some reason that option doesn't pass through? On Wednesday, May 2, 2018 at 1:48:01 PM UTC-4, John MacFarlane wrote: > > > Yes, you can indicate the bibliography in a YAML metadata block. > > Note, however, that you need to tell pandoc explicitly to > use the pandoc-citeproc filter > > --filter pandoc-citeproc > > For backwards compatibility, it does this automatically when > you specify --bibliography on the command line. But not when > you have this in YAML metadata. > > Stephen Mildenhall > writes: > > > My understanding is I can specify variables in yaml and use the > > yaml_metadata_block extension to pass them as metadata key value pairs > to > > pandoc. Thus if my input file is: > > > > --- > > bibliography: somefile.bib > > --- > > > > Content and @references > > > > > > and I run > > > >>> pandoc -f markdown+yaml_metadata_block [other options] > > > > I should get the same result as > > > >>> pandoc -f markdown -M bibliography=somefile.bib [...] > > > > and the same as > > > >>> pandoc -f markdown -bibliography=somefile.bib. > > > > The last two versions, where I pass the biblio filename explicitly, work > as > > expected. But going through the yaml block and using the extension does > > not. The csl= options is also ignored. But link-citations: true works > from > > yaml when I use the explicit version. > > > > What am I missing? > > > > Being able to control everything from the yaml would be fantastically > > helpful....so I hope there is a solution. > > > > Thanks! > > > > Steve > > > > -- > > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/856c6edc-e70f-4e0c-9387-29c399679b28%40googlegroups.com. > > > For more options, visit https://groups.google.com/d/optout. > -- 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/fbea6c6e-f31b-4047-9c96-82f30bfeef2e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_18267_949140610.1525285712690 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks. But you can't specify to run citeproc in the y= aml with filter: pandoc-citeproc. Is there some reason that option doesn= 9;t pass through?=C2=A0


On Wednesday, May 2, 2018 at 1:48:01 PM= UTC-4, John MacFarlane wrote:

Yes, you can indicate the bibliography in a YAML metadata block.

Note, however, that you need to tell pandoc explicitly to
use the pandoc-citeproc filter

=C2=A0 =C2=A0 --filter pandoc-citeproc

For backwards compatibility, it does this automatically when
you specify --bibliography on the command line. But not when
you have this in YAML metadata.

Stephen Mildenhall <stephen.j....@gmail.com> writes:

> My understanding is I can specify variables in yaml and use the=20
> yaml_metadata_block extension to pass them as metadata key value p= airs to=20
> pandoc. Thus if my input file is:
>
> ---
> bibliography: somefile.bib
> ---
>
> Content and @references
>
>
> and I run=20
>
>>> pandoc -f markdown+yaml_metadata_block [other options]=20
>
> I should get the same result as=20
>
>>> pandoc -f markdown -M bibliography=3Dsomefile.bib [...]=20
>
> and the same as=20
>
>>> pandoc -f markdown -bibliography=3Dsomefile.bib.
>
> The last two versions, where I pass the biblio filename explicitly= , work as=20
> expected. But going through the yaml block and using the extension= does=20
> not. The csl=3D options is also ignored. But link-citations: true = works from=20
> yaml when I use the explicit version.=20
>
> What am I missing?=20
>
> Being able to control everything from the yaml would be fantastica= lly=20
> helpful....so I hope there is a solution.
>
> Thanks!
>
> Steve
>
> --=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-discus...@googlegroups.com.
> To post to this group, send email to pandoc-...@googlegroups.com.
> To view this discussion on the web visit
https://groups.= google.com/d/msgid/pandoc-discuss/856c6edc-e70f-4e0c-9387-29c3996= 79b28%40googlegroups.com.
> For more options, visit https://groups.go= ogle.com/d/optout.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/fbea6c6e-f31b-4047-9c96-82f30bfeef2e%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_18267_949140610.1525285712690-- ------=_Part_18266_871886832.1525285712689--