From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18511 Path: news.gmane.org!.POSTED!not-for-mail From: John MACFARLANE Newsgroups: gmane.text.pandoc Subject: Re: Markdown syntax can't handle BibLaTeX formatting Date: Thu, 2 Nov 2017 13:22:00 -0700 Message-ID: <20171102202200.GB25469@protagoras> References: <90e14ff2-6cec-4dfe-9236-0998cf317b6c@googlegroups.com> <87tvyd4trv.fsf@zeitkraut.de> <87po904ffv.fsf@zeitkraut.de> 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"; format=flowed X-Trace: blaine.gmane.org 1509654112 19954 195.159.176.226 (2 Nov 2017 20:21:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2017 20:21:52 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBVX45XHQKGQEIJ4G4KY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 02 21:21:47 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-io0-f190.google.com ([209.85.223.190]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eALzc-00040D-6w for gtp-pandoc-discuss@m.gmane.org; Thu, 02 Nov 2017 21:21:36 +0100 Original-Received: by mail-io0-f190.google.com with SMTP id 97sf1694169iok.19 for ; Thu, 02 Nov 2017 13:21:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1509654103; cv=pass; d=google.com; s=arc-20160816; b=bz0m7yNt7rKT9pDIr/lQDEh2IBLbYfDav8Woyp2qX57kBYRS9x0MtuN/xnZjhOM7Vu pYQAdw3PBEblBLmA4W3UNsp9+fkW0y3h26erOnIGNQ/U3nj1WSUTx94Xn5ZNBilnrVa6 LXlSKqYQo+AQWA7lJUpgmJ36DcGmnoHvx/JX5plhS79oj+5k3Y3OUGbOePR6kCj4oHSa G3i6i/jHq+vq4YQas4GoBOAslnznXiGjaDv7pDWX5mXr8o+yWoI6KPi1bfeqc/7+OPi9 2t76Fv7V0Tz6T7ZKhZnA79bnV+i9K8HdOMw6NX1zsbQhsXNziSahowJXheqnuMkCGhBv oI/Q== 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:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=gnR0t6ZgT8PgeOUwD6abNGKiQXiOAaMIYy22KAQCg3Q=; b=Nz3rVn3JfNGA+YEQt7s6PsE8kSxWKMnFWXsjTwQMXS4LHA7wOTNttuCCgJi7bE5NHE 1SYHzbx0fZR8u1vcrh6MtntZihnwptJZDnBSIGm62yl9Sr0oDhY5x/F389puNzXzPZc7 H7HNw3p8KlgqNZaKK8y1lGXI/fs05n+O9qE+T661rA+KSSqAEQJQE/b/QRscwpbgEVFW qal7SDZ/MEzhBzl/kThWtV8mHCKEurVeYmepgESXZstt4ASzRF+1RUb0p0uB3SBro+Xs m4RH2ktgMHtwl69ZYjjD0sccvS7XcypGvx5yekxKivE7qWefhGcm04XcJewmMZ7/Kcvo ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=HMPW53FO; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22d 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:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent: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=gnR0t6ZgT8PgeOUwD6abNGKiQXiOAaMIYy22KAQCg3Q=; b=N8KfgOihXtHEdS/7fq94KJGC1foAInRXVew0qIh4Lrj9SsOJcZJLsfe1Xa+OokF0KX 4KoUX2OUELyGia2sCudnuctRVZuPgbN1KGjZ8mbdcWRSpUleOO0ertA0jzLAQ52mxpH0 1uqgbTVe7lGe9UvGRLtw892NoIo5ikPBlS4Z3qDp0lGuvJ4k/+hyng7XpFBtIc9iAWSw N2B9Ay4i0uF3G0G3QCLQ2oSAH3bGmNeTljC6PhkdrM38EWBw34ENiyR5XcwpvLHF93Sr a3SzqCHOR4+ZhsA4e2kd980uhQeiCAyv/nqk36EELX23PMxIk3cuHrwkyPxGYUs2z4C6 x4Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :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=gnR0t6ZgT8PgeOUwD6abNGKiQXiOAaMIYy22KAQCg3Q=; b=Yew98//WzY5Y09bGZKHQVftgm9leFwH6tQaDBSo21P5n27+n/IVVLYpducJ2EH6Qbk unPdBvIaEZcWejdfsy41NvAcAnCztbndcW4YLTLa9PszNpN9X4skvGtcwL40uI/OC6vb fHZ77+NfpLnlBzUG2lWWGfSA5kO8Jt2zJI2avq0IBmg1lBs9HNg7EJk2GbaIMA8YPJWf iBXWt4eAZNxU9xtIHWIhCIP30n5oUE+eQoMbTY23DdpLHX22uzZXqhElXqUNViNdjzrA OnM6vVDLPC1s07bQiUsLJ1c9e6ZBPQF7d5Lhm1GD/cqo0NyHx1c4Krdn3yQrlVZjRA2g Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaXfAZMdv5mI9vR7vUcIckxMiQoKhTGl51ogIko6fBkFjwRhj61s l14cBRgb56TlH5MmLWrMFtc= X-Google-Smtp-Source: ABhQp+Q0wbk74REtS05pegsqnIErxu4tgA9RhzH08aGIytFya/eVXwNv6DkUh7CkRahynpOH6KRR3w== X-Received: by 10.36.160.198 with SMTP id o189mr74980ite.7.1509654103604; Thu, 02 Nov 2017 13:21:43 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.98.102.69 with SMTP id a66ls1274960pfc.11.gmail; Thu, 02 Nov 2017 13:21:42 -0700 (PDT) X-Received: by 10.98.7.80 with SMTP id b77mr1290169pfd.30.1509654102628; Thu, 02 Nov 2017 13:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509654102; cv=none; d=google.com; s=arc-20160816; b=0ZbxztAf/CAdw67qcAj7TKTYSZRN5HRDbTShcAYDk0rAcAI51rvLA0cdis/EQ13ART go8SE53sKFn2E6t7nBK28MOQBZgzbCoPMqbEUn45oBlF3LQCkK9suw+b1/ch3+LmCMpr 5/Eu7OSEEsEbZod2cenAvKi4TlVtjRZIKsdPzQPETcf0nuR26irmsLxuiQzJ/eUS+AfX Ish7NpTEUOHiAl/Z3PClxiB6KD1UCpF6J9oMHAubJVgviWYplCiFYSAcaGk9dtVtXpOL CIiXKHtm5w5ksSgg7ee0U5tTOZFruZPVpLPELvHEkMLZrec3fkQ+aBI59ixwU5dzoC/4 W8kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=b3sp51ZhbTc6empppqDennOG6JKRAXQEKIVfPE/fu+o=; b=Da4A61A0lsCr6MFKw9v07qz4omKwKeQQbUgIbyQdl3CmmDF2ZmtLVyMxWy6Dhorc0M N/G5+1Yd91Cu1wmsPJCGv8XuB13wvEYfZug4PvjUo/y5nkqcpw/wrXLala5VndCBSr7Q cEN8xfVThC9jXs/8olEHU1Sxq3br9Rei+Ta8ils1atIir6n2BYYRHzxiC0ZCeK+KuDHI E4fwda/HFYH7cI9PiSqmAOPDzQy1w4E4/93vIayXtdMax3Ncdavb2hDADq7LNzwH/k5J ATeF6PRZRU2MRHkfaqMynkIGKpbo7MYIVG4BLLvOwPueC8foHdjrZLFIvA/Zx85JOdFt 2+pA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=HMPW53FO; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22d as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com. [2607:f8b0:400e:c00::22d]) by gmr-mx.google.com with ESMTPS id i72si349299pfe.0.2017.11.02.13.21.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Nov 2017 13:21:42 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22d as permitted sender) client-ip=2607:f8b0:400e:c00::22d; Original-Received: by mail-pf0-x22d.google.com with SMTP id x7so526309pfa.1 for ; Thu, 02 Nov 2017 13:21:42 -0700 (PDT) X-Received: by 10.84.175.3 with SMTP id s3mr4352596plb.279.1509654101932; Thu, 02 Nov 2017 13:21:41 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id t81sm7295630pfg.187.2017.11.02.13.21.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Nov 2017 13:21:40 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 8453DA1C5; Thu, 2 Nov 2017 16:21:29 -0400 (EDT) Content-Disposition: inline In-Reply-To: <87po904ffv.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc 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=HMPW53FO; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::22d 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:18511 Archived-At: Another approach could be to use pandoc-citeproc -y to convert the bibtex to pandoc markdown YAML and include this on the command line instead of specifying the bibtex file. A filter could then be added that acts before pandoc-citeproc and changes the citation ids in the metadata. +++ Albert Krewinkel [Nov 02 17 21:02 ]: >distantflag writes: > >> Thanks for your replies. I could of course change the bibkeys. But >> since I am generating them through export from Zotero I would like to >> do so now and again when adding citations to a text, not having to >> edit each and every faulty bibkey each time this export process is >> done. > >Another option could be to write a small script which replaces all >question marks with underscored or zeros in your bibtex keys. The script >could then be run each time the bib file is regenerated by Zotero. The >[bibtexparser] python library seems like a good fit for this, but a perl >or awk command might work as well. > >[bibtexparser]: https://bibtexparser.readthedocs.io > >> Albert Krewinkel: This script seems handy. Where do I place it? > >The script is best placed in a separate file, e.g. `citation-spans.lua`. >Pandoc must then be invoked with the additional parameter >`--lua-script=citation-spans.lua`. > >-- >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/87po904ffv.fsf%40zeitkraut.de. >For more options, visit https://groups.google.com/d/optout.