From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25639 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: converting a .bib file into grouped table with custom attributes Date: Sun, 12 Jul 2020 22:18:51 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9864"; mail-complaints-to="usenet@ciao.gmane.io" To: Chris LAM , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBSG5V74AKGQEA6QEHFQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 13 07:19:08 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f63.google.com ([209.85.216.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1juqrs-0002Qs-77 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 13 Jul 2020 07:19:08 +0200 Original-Received: by mail-pj1-f63.google.com with SMTP id w23sf9659383pjy.7 for ; Sun, 12 Jul 2020 22:19:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594617547; cv=pass; d=google.com; s=arc-20160816; b=mZfgsmByQDXniqDQ+5zA4u8y1xhZboiMIFICisfje2y4ECjaHyTXrzNibNEo4qOJWW JceU9uV5+8FUmEbIrqfb1/Q9SwiIJJ1uFpXfFG0+s5nJJdMSu34mvbNbm77Nh9esMUdf OeyQ2FL3DG9BHPGyKxJ+GeF8urF+SurMaGymT+IKSN4oxefERWvzBTcty5cBABSqdDZ+ EE8j6JnY2znOpN9lqPw0HblEAFadGX7RMY29mbmrj4TIeWUb7mNSWK6YflRbnWLYBgM3 9dKRQEYeOd2I9lRzmt2QZ0nRDOIJV510jPnxNu7XHQKHCjyXQtjiTiH9QxkA8vs6k5lM 9oPQ== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=2DBOo/TDK8qJx+FTnOinSbPLUaRKHIPyrbKLvNkXiK8=; b=WiVYVa3MUwp9269/oLpJUppL6fPezQTiU9qNfgeck64fQKg4DXvzsaCx7Z1zYRiGvs 7cqVj2fAyKCsvCCEiDifygH0vLwWJO4LR3JBhhybvV/K2Zn1+rdV+lZ/ZfJ3a27DXXS6 fl7UZSfmvk5rP+/qhsW7aFHXfEEGwFOtVdJ3r+Hj2Rb7oVhieULdI8/DUumZ5xumx0ze R08EAWvcCtz1N2ozUtMUPH+ch7ogruEjCEqoFVvny1gr9FGT/V0T5Dkx/kEw2B/jpfxE xwa6oQCnFH5LT+pOJ6GbHGagy1HiYIXWX4UmxS9sTSDD4iZ1PdAILDj3EhpDZM2HaC6J LfnQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=a3iOuR7T; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::635 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:content-transfer-encoding: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=2DBOo/TDK8qJx+FTnOinSbPLUaRKHIPyrbKLvNkXiK8=; b=pfPHIZLe484oODx3MtjpQLr7zqEHYZhBz377WXpQiTleLRJap4IVFUwWtw6nox4nby sMx/5I8xs08k65kDv/Jqf4T1g9agUVNpWHqijRl7tsloXe1MtG2+zTLU1bs+CG13vPuh I84DDpX7y2tEnsCxFgO0NvYLx5HpNCVvotT7PtIAY/6WuADP1kU9pfdT5XfGuyPNp/S8 vv3PFKHOng4ovM+GwSy4WCqxv/lI+lOS2CBv+yBMVD7TvJ5umTZx6biG3Aq3tIrSak50 F4o/2P6AGQsKlMHR+6F4RQfSqloGUEEvDDSlF6/spYVNE2lpYbmD4GK/4IUkTWPBXz2f fZuQ== 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:content-transfer-encoding :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=2DBOo/TDK8qJx+FTnOinSbPLUaRKHIPyrbKLvNkXiK8=; b=i1sYY4daXWtDjzqfCjDZgn4Quv8AvBynMGDlL1epPeEYJ6/XwLRJiPKyr9MPAreaLE KI8PdW18/hWg7Ecv7XwerS2j1OSZTWiCWT3N/Z1REbt2Ac/q4tvD30sRTvLP4Zq6/GwH xgmDs2IQARyhks3MnKUf52Ef5q5WeOHW92ZTXA8QLseryJHzH335J+yxi/lUX0vtBQwx jsiPzHs4WmAb2MdPcy1rMF3D46sYT8O9YT4LilfltSEuM3mj7pQoiXXxbUuyZElOUifi wIuITpTg6uDfcqasdDmRTqskewnPxLayvdmhhYEWko1L86KaongKmic8vxGh3MycJlhT Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532qopDPo48qHh4XA/AR/+HCeyPFqM66gZCxHjkXtCbPKvLr7kUY YvPuQQwAWk4LPbHTg/qiGAo= X-Google-Smtp-Source: ABdhPJxuSAyXb3dNzfnFTODNKhRh+aI2Y2w1MTdtCkoxSTMk+qac+JIxAjwCYww5abB7shWIu/Z/CA== X-Received: by 2002:a17:90a:148:: with SMTP id z8mr19311443pje.197.1594617546985; Sun, 12 Jul 2020 22:19:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:86c3:: with SMTP id y3ls7175137pjv.0.gmail; Sun, 12 Jul 2020 22:19:03 -0700 (PDT) X-Received: by 2002:a17:90a:3770:: with SMTP id u103mr19552968pjb.102.1594617543864; Sun, 12 Jul 2020 22:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594617543; cv=none; d=google.com; s=arc-20160816; b=xtTD/dY1TCrgn+ix2K4ZDXv78wBxh5WiwySNo9bbT0thlOP21OIB6WoI/Y4whGqH5T aaqbpZ8bLoFqttma4o+pvJZkJofv+GrI5pLyuSBAevxlIn9jJyTTQweAh9QxDKoqRBz9 AbKwuPI1rucTVGPjiWDdr5xdMc1SWZd/+NMhM8Il7BE5pP+mzdiP9nHhpKzXIX8vStzJ AjM8K63qXZi4poyber2z5x/f++5Al2XARqMc2+msXAe9DDwVc+ydaDMxg1HkiayaRbQm efg8FGWD19V3zCsCzv4E+nwxtAt1X2+AT86xmooh3jnsZEaQg5i3ifzBLNBZoaA1ZS+r ROTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=/xXJzmKku0RCMAjpMu/mC/v7tbrL/SF39nMYgH+bLGg=; b=KGrGtBQ+Mb1QfOHibiRR0OKQM8Pfl2seVhuo6g1HS1PHyLZsg+RI7SeRF/tY/R2tb8 WF1IjaLboB898tvVcT4Z76qFGp4NkgDm2aDeXZY5ImCiwKwmrTq8xXepC1PPxrqmqifT Sa2UhI8h2ArctE87UJtmo5vVnyMrzJhv5vJP08jgE291nhFHx4KpQu7wlGFtVCHtDMR/ hp3pycqNU65b0ZP6szTR1Q+DRq7XSTHMVAC/fKEzbhYYhDwOz7woMeLxtWXrCXGwUb1y esC4AwCMmphoKGoQJ9Iqm3pIXg/GdkD+UzLUWnr6QjeBsl9AsXUPcaS6AXAI2y7e/+4E qnnA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=a3iOuR7T; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::635 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com. [2607:f8b0:4864:20::635]) by gmr-mx.google.com with ESMTPS id y20si633490plb.2.2020.07.12.22.19.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Jul 2020 22:19:03 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::635 as permitted sender) client-ip=2607:f8b0:4864:20::635; Original-Received: by mail-pl1-x635.google.com with SMTP id o1so5016906plk.1 for ; Sun, 12 Jul 2020 22:19:03 -0700 (PDT) X-Received: by 2002:a17:90b:380b:: with SMTP id mq11mr18654335pjb.46.1594617543425; Sun, 12 Jul 2020 22:19:03 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id b8sm13317972pjm.31.2020.07.12.22.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 22:19:02 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 687D1A1ED; Mon, 13 Jul 2020 01:18:51 -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=a3iOuR7T; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::635 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.io gmane.text.pandoc:25639 Archived-At: You can use pandoc-citeproc to convert this into a yaml metadata list with markdown fields. pandoc-citeproc -y my.bib You could then use a custom pandoc template to create a table from this data. See https://pandoc.org/demos.html #37 for an example. However, pandoc-citeproc will ignore the non-standard fields, so that's probably not going to be enough for you. Chris LAM writes: > Dear all, > > I am having a *.bib* file with the following format=20 > @article{ploberger2017one, > title=3D{One belt, One road--China=E2=80=99s new grand strategy}, > author=3D{Ploberger, Christian}, > journal=3D{Journal of Chinese Economic and Business Studies}, > volume=3D{15}, > number=3D{3}, > pages=3D{289--305}, > year=3D{2017}, > publisher=3D{Taylor \& Francis}, > datasrc=3D{Est dolore Lorem}, > type=3D{labour}, > review=3D{ > - consectetur eu magna adipisicing excepteur nisi aliqua in.=20 > - Adipisicing ipsum nostrud adipisicing eiusmod sit. > - Occaecat minim aute ex culpa dolor.=20 > - Cupidatat dolore exercitation et ullamco non eu et enim. > }, > findings=3D{ > - consectetur eu magna adipisicing excepteur nisi aliqua in.=20 > - Adipisicing ipsum nostrud adipisicing eiusmod sit. > - Occaecat minim aute ex culpa dolor.=20 > - Cupidatat dolore exercitation et ullamco non eu et enim. > } > } > note that datasrc, type, review, findings are custom attribute. > > I have got over 100 entries in this format and I would like to *convert= =20 > them into a table in a landscape .docx* with the following template > > type | year | author | datasrc | review | findings > > can pandoc save me from the heavy lifting? > > Thank you. > > > --=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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/c86cfb53-1149-4b81-a93d-d40a058c5785o%40googlegroups.com. --=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/m24kqcro04.fsf%40johnmacfarlane.net.