From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20155 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 12:07:13 -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 1525287921 9978 195.159.176.226 (2 May 2018 19:05:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 May 2018 19:05:21 +0000 (UTC) To: Stephen Mildenhall , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB3UYVDLQKGQE4R36J4I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 02 21:05:16 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-io0-f186.google.com ([209.85.223.186]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDx40-0002VM-9V for gtp-pandoc-discuss@m.gmane.org; Wed, 02 May 2018 21:05:16 +0200 Original-Received: by mail-io0-f186.google.com with SMTP id 184-v6sf15568329iow.19 for ; Wed, 02 May 2018 12:07:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1525288047; cv=pass; d=google.com; s=arc-20160816; b=g0TseUvL3NDJN+zuA8ZelTqffX9+jt5yKb58CbvAsGVxiMSgdvKPboRfMHHn91sDjt bLoau7FYsRww2GuicN0rpnVPJenQT67u1gc4f4/HG09DVN5El7LlBQFykBG3M/M4PXbt V5VJM/ko1FQuz4a71ZC6dQT2AoeuDMFXtaRB82b9k7nz3bTXzhetaf3L9gQ4ecDYEpsg 1sILvRYxrMnz5gSXPYR+NZ/U70pBgv7+kJ0X0Ie+IcJAmwYZrXX3qg3tyqiyZJ1IwG8W nf/BM0Fbwn5cb3rg9pNfx4cgjyqMoaAFhcaJrcWesecaBJA/ssfoluduNeJuBNOjRirM vXeg== 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=+Vm9SKO7vHJYWlFTaYCTW959g/wJABgNypBpC4iW95Y=; b=hEwlGAtjrtCbbvvMF+6T1J7PkyaYKFqRPBepX23y9speqkhMYdBrtqtA9w9RHv/Sax XHHPaevWXKVS056mtR47aVvsp1X0G0xmJA8pB8XgfkqrqliQJtZv0i3IcIEcpJSF/un6 lXOXtw45Vv8AsDOGZrw4MjmoQ71WCDnxzTSIZA6T1gm9SATyIKupyuhIRvhecQ3xlVhr bTrL3ZodWFi/kPTj4LC/+Ivcg5tlxc/oFVY8+uak+A0M/B9rYG2fqeClVaVVuFM3leUW 4qLAz1mxqqf+Z6WTI9YgQWMleEmZ5FFgYrRgXAzOnpLhTApZdGwLw+3kgdy8LdRY3AeK iU9g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=OvwE9g9U; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::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=+Vm9SKO7vHJYWlFTaYCTW959g/wJABgNypBpC4iW95Y=; b=rzBflf3hgr1b2QpBz74Cu+ovhDYoKgZqxlV1kSpnnnYR4bjlZKfeqX9EhrxdQHoxPr HiiS/BuSD/TaXCk5edM7tj4k6VvTjiQB3DoKi8j5HyQ+CJDP7orZLCDrD9u8udcnc5mI 0ZJezH8byu7y8BOnjCEXjBOxALTc/qvzLEUG68LsIKbBDlijfBkqiRtkXSNBNANTqT/g YlCZoUQKbHRc5LsfcTsz540HUI2eQJGq7BXBS2z0IaqANYucWUticneGGgr+5+3VQVfQ jcyT3zcRYivNeJ/yhe7dNAiTibvVt53cCAVk7DCdMMn0i5iT90Y6qjXjJCF4F1Dy96IA zqXg== 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=+Vm9SKO7vHJYWlFTaYCTW959g/wJABgNypBpC4iW95Y=; b=WhIUKWoo8CK+3ZZijmuvXZJe76GaSVec2LcEU2vZBafJrDOxmPcNp0ApSfLb49eVu3 csCO2PXBgYoexApo83TnoAKX9yIFFlOcj3bfd4AHUcqFq2+Sl6WYGyXWYf7w3aqMZTRZ OP+mMNh1JE7nnCcMc+QRAkSJ2Yr2Q6Cx6pTNRKH5udEk6lDJ+9AI5PHYw9Ip1z9IXPlc C/y1tzmHwY8ZtXZOXguv4RDaV2T80JeLg58i/HtKLpaq94szj4GhbtVgHwiG8I+Hfy5b WYybpvpfpCrtLp4TGSUH4pWIVIM/U4wXm8haYG8VCyhsxX0Q+qTmHB0oXN+MnZWIxYi5 KN0w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALQs6tARIvHA1t9IG74jfCLg2rI+56DyQYFDNoY0cPX/qCKUK4MsXaUf 7+nwAxfQUsyI1Td081HNhAM= X-Google-Smtp-Source: AB8JxZriTmhFajMn2S5AGJc5vmGuURePbK28fLx8FavyL+2Hv8/VfXMvfmuz5pMU386/9KDowbwgLA== X-Received: by 2002:a24:f946:: with SMTP id l67-v6mr330237ith.1.1525288047257; Wed, 02 May 2018 12:07:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.98.245.13 with SMTP id n13ls3822630pfh.4.gmail; Wed, 02 May 2018 12:07:26 -0700 (PDT) X-Received: by 10.167.134.9 with SMTP id p9mr4614914pfn.40.1525288046368; Wed, 02 May 2018 12:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525288046; cv=none; d=google.com; s=arc-20160816; b=AX1biMd9uHGGJP9JFitDAf8FsS9AVucbgI6oKqKduiGh5XgqT+edG8AXh6baFN/ZZo EX3kT5y93g1qFh27oZ7dISbknpqlw3eXBxCQowMzaJi6Ev/0YjAA7lo3fazwh6Y2L0lj tb+XAL3kIt48K8ykt1VPS5DpjI045ERgXSOR1MT1ptZxQYfpI8NMXbKq2106r+AXHBkQ rNyFVoIt+6e9kJsBPEfyeHPD6TVH3nAqTv6ZyANyzOW7bucbPU4K2/gqfcse6+ZMdATz GbYJIFrRAn0aGHg20x0GnrMUbnPpA1DKyEQr9U09nJMO9qCTJdjDA0MNzJlE+vW+dMhW +aLA== 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=1Xx7gacMvxIpUIlokBzX6NpMLOKu5qBfT91tJ82q4Qs=; b=hZ6SBMTeuV/AW1BzpgXZf7MheOombzulJjgXa+Jv9hBeqvGgj7vumwG5l2tIb9hIuv /NYS+uwu85+fIccCjGak6F5SSEPrJ9nRduNjSpBLsQESZ8vfGOv28Y+qdQOFUBtc4pLI AAVrUv4o4incbdDMsMKxPc7k5A8cldkSAB64pR4J9QSJ75u4v7KWysH89iKWuje9rV37 49eLdy58H4ama/KoC0l0jbBmgOXHTxalqr/hUb0oAmpOdMyCsP93TyH6GpTQCFcqXOul H/HfnYjEr7a8Bv7Qw7o39wZU9Fu7tLbus5yYC2dLkqbYHnFY4mNVVYC0ZTltcXRL6lpW y+vQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=OvwE9g9U; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x22c.google.com (mail-pg0-x22c.google.com. [2607:f8b0:400e:c05::22c]) by gmr-mx.google.com with ESMTPS id e90si429367pfj.3.2018.05.02.12.07.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 May 2018 12:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22c as permitted sender) client-ip=2607:f8b0:400e:c05::22c; Original-Received: by mail-pg0-x22c.google.com with SMTP id 82-v6so11300026pge.11 for ; Wed, 02 May 2018 12:07:26 -0700 (PDT) X-Received: by 2002:a63:6196:: with SMTP id v144-v6mr17373545pgb.264.1525288046066; Wed, 02 May 2018 12:07:26 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id r80sm25451588pfe.44.2018.05.02.12.07.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 May 2018 12:07:24 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id EF6DBA15F; Wed, 2 May 2018 15:07:13 -0400 (EDT) In-Reply-To: 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=OvwE9g9U; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::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:20155 Archived-At: Metadata sets variables. But it doesn't affect command-line options in general. There are a number of issues on the tracker requesting some general way to do this. Stephen Mildenhall writes: > 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.