From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23093 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: pandoc expand citation with yaml reference Date: Sun, 07 Jul 2019 13:14:29 -0700 Message-ID: <87ftnhfvq2.fsf@johnmacfarlane.net> References: <3ff393ff-c85f-4512-86ae-68af7357e86b@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="41453"; mail-complaints-to="usenet@blaine.gmane.org" To: Colin McLear , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBM5FRHUQKGQEXCPDNPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 07 22:14:45 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hkDYb-000AfQ-9d for gtp-pandoc-discuss@m.gmane.org; Sun, 07 Jul 2019 22:14:45 +0200 Original-Received: by mail-ot1-f56.google.com with SMTP id a17sf8056793otd.19 for ; Sun, 07 Jul 2019 13:14:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1562530483; cv=pass; d=google.com; s=arc-20160816; b=Y968Hi+vdl0akWiajlUaYzYe+8ggFFm/HEuAE6m3ZMOvX37/yN93PmAtvMm1Qt8/CV QvOced/1j6fo6s3p2NyMHOPLqr6pR/CVCgELCeQFdlZZ2Gl+OHONUQrHKIl36kSciwGw vwwyhcXGcP/tbXImtjmTnnQOQouYCudxih0HT2uC8g6hHQGHr4HY6ACth6h2ZWSncWGd 59hYidK+TX4avXIhVJhkPju6jVvgl/Y9juIN+9lFe/xEMESH0QKPeyxQMGSEjnn170rU 98NzW45vLyWB13fccVSwTr0Z+GtUyw1OLnTyxniZF64FPSRcwmk01etidC8En93idbEh xONg== 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:sender:dkim-signature; bh=IhvDgY9CsTN8zxNmzglD03Xxkyb8XiSvjjzx+ApWil8=; b=WvwxFfR7ExAYLogJXP4g/mhKopjn6j/chAPkYMXIj+2BsomwngVnaO3eJ5hZKznXZG 4nhE5/VF8E/NlFizc43ZP7ytqS1jGCHFG4SpgCVEnHQqjjRBlHuR13GNdIlbox9NGJOb eEO+LdmzRGoZsvntEMZR8YD1g0ZYMS/PddJH+Z+H2ZXvi4C7EUiQIXPiU4nnXxqYIM/i 9zsdTr9IQAlJBxKo8Wx9DI9Ub0yU5DjIAT5uATEuhrqqea2pSvN+CVGFE4BovzYwtWgc xntckm97IuvFVPnEPa/HHqqaHN0DG+XftSyTeN5uVgxxvs9c2IDjDwwIWSQDDTw/7zUF Kjbg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=d3384b8M; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e 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=IhvDgY9CsTN8zxNmzglD03Xxkyb8XiSvjjzx+ApWil8=; b=hVR3QUMsowMBf1Swhdc6rWpPgur4aP0cfKcrFzqJnEe6TbmXM1Qk/IAxlsDPnh/Gbw SYUDwaqqcIEFkwxEJtcGAdgk6T7pK7sDkd1CoO7b0xlVCgqWJ3OGfxZaBaZxMzJfkyyq 0BKGO6jTY2Poj6/QJLZtM6BVfn+h5RXAW4jrtE9iMZYPNggPnhDawZRbpPhaGqX1nZx9 jnEo66j886RaDtHjYcpwxknELOOe6SAmXpMwfcxTKF2iFfqH8TBXwgY0I6wbM2Z/V0jM Zmtm5RIzjjY1eDU1a3LdsBdRYdD6To0EbkX/aNsIKKFzl/PC0r+uWxQUr327yt1MTSj/ QMyA== 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=IhvDgY9CsTN8zxNmzglD03Xxkyb8XiSvjjzx+ApWil8=; b=ceaezx/VqJFMInWStbwq1Fp0xBmEp7X/8vU1Gkq1r+ae7hra6DCg5LHzbEdw485ADg 0YUtWG2gQEhz4grqD2WeUQx7POt+LYKk+WFJua+OlkAQFIplUhJ3rdozlpbStuxzmb4y avbs6ne1kslj7HNtgXzbX5PBBCB7PVjMvsxq8Azgju44nODYBZfBtIF7IsmUsNDObAmo nfzXhRuQ78t3IqiAEdeo/i+czDmmvmHZS6y2YaxtKl/gJKiiHWGLUjEYT2cqehYYx9K+ NJ4BRAlZ9wsI2JaisBlFXlWaQ0FC8p0TuZ+GzSWNVBbk07YeDiO/SDkmyvcYw2XujSAI eWVA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAX5j+bOckQYgjHVu68dIPumWGYY15ftaUP5a1JHCy/jNegWKQpA CzdqafmDOcEjrp4ueNLhQus= X-Google-Smtp-Source: APXvYqy7UgAmQMt6isOmlN8Rxyf5lOO6moH7FbH6/x9edj9N7KJ9ncaV7kwHJvSbbrV+Q1Dcs/X3GA== X-Received: by 2002:aca:5a04:: with SMTP id o4mr7787783oib.36.1562530483717; Sun, 07 Jul 2019 13:14:43 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:60d7:: with SMTP id b23ls746195otk.14.gmail; Sun, 07 Jul 2019 13:14:42 -0700 (PDT) X-Received: by 2002:a9d:6c46:: with SMTP id g6mr9563583otq.104.1562530482872; Sun, 07 Jul 2019 13:14:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562530482; cv=none; d=google.com; s=arc-20160816; b=09U75PPmsyIomwGtN8+LYT6CTWJ8PvKpF66KtDZWsl9Vav+9iDgJuQAT5+8tQKdet4 o1SKkrASisPwB+FOuBcE8h1zcpv2hTmEKE9j3kA8dSGBBBKhnn60xL7ty+7SdVGvsHzX jtyBl4vUfwzUGnxOHmPiQsobNBTj6ePMg162o2OgC8OMryaaccuswcMnEQixZJaQLaov 28FmbIkxnUFQOEXzyM8OvNJPtW2Ff7f2BE+KyxCaUdmEF4Zj3USZd1A5DJeA5jgX4Nt7 VrgMrus1MMDMUbPuwViy7RyS5SfVf9TTidyCpmxpDPHDRsLO3QrZJlShdpbbMtxHuUy4 mp0A== 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; bh=qSjuxJyjJfTfs7Nxj73kHoSli/faeW07IjSoxuUsOHY=; b=vwXdbMZImi5KKyQ/muhuHaZLdTt+uxcSVsqp/KOEt8i6Ug25Rz4LMxEUjQwbS9aD1o 9ihGGkGTcTS0pfYrNN4Dn2LWa5aT54htuk2GwnzZt/VjOfqXCFA4W/Ocps1cnkCdvUQV 5hSru+KePc1JthgsgfqwMQY9b23yMGhiChMvq9B2ri2jXsxKffe/8iL8JDZiQqLBY9em 2LOd/caaDVI5BcXwDDLnYazyl+Qks79wb5lV2h5PPr5kIZT5TlFHlPufosT96qeJne5x Nq+PW3H0m65bcHuhJmlV5lxaXNxQUVWSGvETAHtAbE36S1x9Rp75TutskyNFXO3v2uVO AMHA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=d3384b8M; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com. [2607:f8b0:4864:20::42e]) by gmr-mx.google.com with ESMTPS id d123si167583oig.5.2019.07.07.13.14.42 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jul 2019 13:14:42 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e as permitted sender) client-ip=2607:f8b0:4864:20::42e; Original-Received: by mail-pf1-x42e.google.com with SMTP id t16so6523525pfe.11 for ; Sun, 07 Jul 2019 13:14:42 -0700 (PDT) X-Received: by 2002:a17:90a:3590:: with SMTP id r16mr20637200pjb.44.1562530482070; Sun, 07 Jul 2019 13:14:42 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id q198sm19906057pfq.155.2019.07.07.13.14.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Jul 2019 13:14:40 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id ACAF3A231; Sun, 7 Jul 2019 16:14:29 -0400 (EDT) In-Reply-To: <3ff393ff-c85f-4512-86ae-68af7357e86b-/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=d3384b8M; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42e 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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23093 Archived-At: There's no automatic way to do this in pandoc. You could do it with a filter, sure. Or you could do something easy like pandoc input.txt -t markdown-citations -s -Vinclude-after="$(pandoc-citeproc -y mybib.bib)" Colin McLear writes: > Hi all, > > I'm looking to convert a variety of markdown notes that have pandoc > citations to the expanded citation plus the full reference in yaml. I can > do parts of this but can't seem to put everything together in one > scriptable command. > > So I can get expanded citations using `pandoc -t markdown-citations > --bibliography=path/to/bibfile.bib -s`. But this gets me a *markdown* > reference in a reference div, and I would like a *yaml* reference, with the > full entry information as present in the bibfile, in the div. > > I can get yaml references by converting a bibfile to yaml using pandoc > citeproc like so: `pandoc-citeproc --bib2yaml bibfile.bib`. > > What I can't seem to get is the conversion of a single markdown file, using > pandoc citations and a bibtex bibfile, into a markdown file with expanded > citations and a yaml reference block at the bottom. Is this possible? If > the answer is 'do it with lua script' any hints on doing so would be > appreciated -- my lua skills are rather basic. > > thanks. > > -- > 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/3ff393ff-c85f-4512-86ae-68af7357e86b%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout.