From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20151 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: yaml_metadata_block and bibliography Date: Wed, 02 May 2018 10:47:14 -0700 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: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1525283155 3942 195.159.176.226 (2 May 2018 17:45:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 May 2018 17:45:55 +0000 (UTC) To: Stephen Mildenhall , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBT7TU7LQKGQE3BKC6LQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 02 19:45:51 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ua0-f188.google.com ([209.85.217.188]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDvp7-0000tN-De for gtp-pandoc-discuss@m.gmane.org; Wed, 02 May 2018 19:45:49 +0200 Original-Received: by mail-ua0-f188.google.com with SMTP id j5sf13776640uak.12 for ; Wed, 02 May 2018 10:48:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1525283280; cv=pass; d=google.com; s=arc-20160816; b=Z1L8TVCVje5eGQSksIEqMC3vS1qiwAg9lR5OToTarDI0E36HsxhM5IHAUyhbEPX24q va0eZhLvK/2aKhE8Lz4YZodCcBPe79Yl9FDo0WWnTGUAlRVTVtJ5eOMDmTQaUYxKs22+ QP0elSw+V1sJ3qVErxd0QsjpGoGBsxoPpSa6hFtuAX5ECnMFGFXfJIAVQnb1gSLH797W sQMNF/0bBZ83XIasvjeBqarO4T2HTa8NzrkyzX/n4zXTAgyes25/CoLPCrRP4d8s1K9y rgu4EYrNf+dTwUI1Lqsi5hn6TprtmqkWWatGpl60Iwizc6TLxfSYen6vb/yXyBxK04/O AnxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=03ocs3/4RdhcPqJxdbYa+b6lQPb3NNywG+5eElycA4M=; b=sYuHlrsgFE1h11dp2cKrUsc/0HlyyD5djVuQBdwTeDHxuchf31I9ASwfLObbSUEXap Hs1Ytb2kVhLR08w77Sqf+MsECR5p+aIAhJA0DWEZlpwGa2U573/bNXdIacOVnrDshgYV vFCiCRQOYQQimWDskK5NF97Nk87py740HVTMsBB5psJgiTvVicdJtzivU4I2+DYaWM3a lyN7pIBRwccaC33HrT9nhM32J67QLFLO3oCJdw4ExiMN6azJfbPKPlsRjaM2SgfRaarr OnD2JsO1tfDsEtTY3NohzPlAzeVrqD3yXJKub9eF6sFq9LNw0dKlWRf6rzUMKSv2UXUq rRwA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=BonbOAdn; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=03ocs3/4RdhcPqJxdbYa+b6lQPb3NNywG+5eElycA4M=; b=lkhZH6DUFNw/YZkYi/cEkdvGPz2rDNkmwkgj1X+TtKfDIpmMnjGz/YQGncB7KJBdz7 wnicuRWjFbFQmyaYOAIlAdujl2g5mmHWrAV5PmJfQNLDyvVhx9j78hzVGRJvNy1i3GPi ygfZl2c+0eV2vf1D9T9kc+aztCMWEzv+M3dITvuh8UY7v7R6FRT+qNpZgBkV56YkzDFp vJqY2JrTaatOiqyVf7x4wxsoPg5j5ZFBHarF5V+xiJv9vN9GooIhI36kiYvQelAKlvtP vL6XsAJ3zHTX6HPkZXuCIV4sLq+EAmshw5wXp+v46tErhsAx3aZz4+20OQQrLDKTsvdL O2+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=03ocs3/4RdhcPqJxdbYa+b6lQPb3NNywG+5eElycA4M=; b=M2XhL3qt7OADCFxrAytkzNfwBQ9fcJPlqfjUj69AgTD+yT8LSp7H6fVho/P+dNkMGC heIsYbccH6Hnp5nDo6Og+pQ3e7Gg/tReGrR5oz2Gd2yE7QE9K24D/O1C/bGZYal2Mu5q iyogb/01FsRk6AIRMne9bv79KB/YXWHeANbvvJkt4SX9RQV8YieqtGkV7m/xILg0IFbp 2dTFI4CGhGjnoapMaWRtkPUmTdRWXbLrfEe4RpciToK4D4Y3vGGyJnKia6WY95uQpyOd 7sR/RGgwjKDBmmgYbkXgvF2gtR/0livqG5DMHAO0NTh990K22jb9/oxv0E0pGn81dYj0 2sGQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALQs6tD+1M7fh+uf9F7PIA7VwLwJPWDKgUC84MErLf0MNwMVUdB4usi3 2waaJf7PBBubThtWbWu+gBc= X-Google-Smtp-Source: AB8JxZqKc9z/u6Oms/lQ11ZkACN+Wo5BcHeOly705/qglPvS434ZTwIJxZOSPC8gsmLNklCqy7JpHg== X-Received: by 2002:a1f:b09:: with SMTP id 9-v6mr3039960vkl.13.1525283280381; Wed, 02 May 2018 10:48:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1f:aa46:: with SMTP id t67-v6ls4647711vke.11.gmail; Wed, 02 May 2018 10:47:59 -0700 (PDT) X-Received: by 2002:a1f:b995:: with SMTP id j143-v6mr10470099vkf.121.1525283279602; Wed, 02 May 2018 10:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525283279; cv=none; d=google.com; s=arc-20160816; b=VhhlwdDU1qPXVpsutDndYeCahcUWyTT+Q6GzToEC/efBvxsTWAJEkFjULSGPwfGsSJ s0mrMgqWFyyw0jAZdjWiTXkHqsMGqa7+k4XZY3wm6cAiunkiI8UTC2oyc1WPQEuzIxRX VqH+W+lArgwcGA2pmBryE8rC4Ep0jzRTqmxwlBMsiQBGmabvB0LBkH0J752/JFnxiyDd jBoDQdTo9Xkxy03hEkAn1apvuGe0YLWudZZWHgyvOUoqaTqX/512vhH6GWkQku6rGJqZ +SFo+nLVBs0eFq6KzPzhZl8lUg7AAy83QzW6W6TK/t/T1GE+jd7tUJLsUU4IcU+/V5sh iohw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature:arc-authentication-results; bh=pTxirP++pyIj/Bv0b8FvFxL2ID8xHtCH6N/S2jeg924=; b=HfIXz3tQPI2imsbKmaSjVNVmUz/i0IOhzhBJY4B6IStBpnx+yMSFr/Z/0iiXgp56GX xwcgP0O4AG9cLBuSYUeTRVqtGZZkVcdtO0DXI6bGTZE6HGSaeJR6iv6bVTqNuwmKRcPB B9MCBpgZLRIXakptvrh4nzADk9k2RU1aFpVUuEmWuewkqvWd+vBX4I15uA03SiA+cmA7 dWN6ajv3f2SBxBDVpUI77B44Y8hI6mx4hzaYNuUzwrAApQYU0jeqRqR3Q+LH9tgUqfzb inJhB/FAvGAQIqFBzeRQss0JMW+UHfmuejdrGonZ/ftA3t23GInUlv5S7qB7dZpiSzpw DSjg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=BonbOAdn; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf0-x22c.google.com (mail-pf0-x22c.google.com. [2607:f8b0:400e:c00::22c]) by gmr-mx.google.com with ESMTPS id g48si127353uaa.5.2018.05.02.10.47.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 May 2018 10:47:59 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22c as permitted sender) client-ip=2607:f8b0:400e:c00::22c; Original-Received: by mail-pf0-x22c.google.com with SMTP id c10so12396146pfi.12 for ; Wed, 02 May 2018 10:47:59 -0700 (PDT) X-Received: by 2002:a63:751a:: with SMTP id q26-v6mr16676513pgc.338.1525283278499; Wed, 02 May 2018 10:47:58 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id e190sm23207704pfe.171.2018.05.02.10.47.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 May 2018 10:47:57 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 72D69A15F; Wed, 2 May 2018 13:47:46 -0400 (EDT) In-Reply-To: <856c6edc-e70f-4e0c-9387-29c399679b28-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=BonbOAdn; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:20151 Archived-At: 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-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/856c6edc-e70f-4e0c-9387-29c399679b28%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout.