From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26871 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: how to generate the bibliography for a document? Date: Wed, 18 Nov 2020 16:02:02 -0800 Message-ID: References: <89f878c1-770d-4d21-b372-15961fb5e385n@googlegroups.com> <538a99b8-3ed4-4145-a4b7-c42145b61fefn@googlegroups.com> <3881d8c8-1c42-d10a-ec51-c209d989579a@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16996"; mail-complaints-to="usenet@ciao.gmane.io" To: hex , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBCPM236QKGQEIKDG7VQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 19 01:02:21 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f187.google.com ([209.85.210.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kfXP3-0004KL-5x for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 19 Nov 2020 01:02:21 +0100 Original-Received: by mail-pf1-f187.google.com with SMTP id g14sf2300411pfb.8 for ; Wed, 18 Nov 2020 16:02:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1605744140; cv=pass; d=google.com; s=arc-20160816; b=ZGvGP/O/3VC9qumkRmTpBwDrFAyrxyVc6KZB2FRyjoBd4EiKYPc8iTds1TFedezB34 6TWoMY57S9LY5aPMUeoLybsmye3qecxSfMapl2QUhHL0cSYq9yk/cbgUNYORklP5LTpf VMerCfVHx3RegejUimLHz5pNgQIYnk8eiRsa7vB00526CLNGV/5i9Oh9TxsfU8QIW+IY aUKqkqJDGkb0VJlrWBYDkkln+lyi2EEvYg2RBqnSfp1pfvhfNixgP7Rr0EycFVkhvcD2 sja7yK7+xlMTIEKv9LqAUn8WXZvQpi3W9CrNLTxwO0yeFES3w/BesxLNFmwu1HqQ+jhD QocQ== 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=rLYrnaUqyFFfqXNnxwIuDXnaxvDMT/ZLBRHo1zl+4no=; b=QJrOPpd/aG0vHoGJ0xA9hTsv51dWhc990KFA3QOzk7cjhT6hqqX+0rFT9ChM/gmrwQ 9feMtITcWGnoLjtSEu2I2rG81PRZcrXV6dtLbEzd6iIkfSAYvjd2o76buuPLvge45oMk tmEhzQioOjWhEuVX4zueYMjTzMZu5gFw488g5S13VZh7LmWsWesDtZMCQSr/ehgn6Yb0 iRFnGvP39ygR4o/5ZfIHMj5v5LHoCgjPG7EdKxgaxhkqCOKIltNdWGl+3VbAaDaFybeF V4ZvoksXn/3b2/KH5KLu/gf8UAoJYNcGLZwZVssmIUB6yAJrzN+UehTPm2dGfHij34XO Nsyw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=M2LBySWh; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 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=rLYrnaUqyFFfqXNnxwIuDXnaxvDMT/ZLBRHo1zl+4no=; b=oUePgFFOth7xlsOB/ec4Gtw+RcUJJ15bFX7OgTT+IEuidR1Vwx0SuxUBU/kyhGN4P5 ZukEFna8/lqMRJhBQrQsmJ/jSw0CcZ6ZwnZRIlbnMOcFQsl0LiYCQfN52nskvO6BWAJ0 dF6BF2qY3xymoFY8XSji68vrHMTofjkPWylUF5w1zZPhUAC7Nt0Xcq2tROy9+6KYthxk hlGQDK2HD8S20YLtdEQHNA72If4GIgePcOIIacpWdJIoTu/zb+OpIw1Zg3G3SEQtPWLL ISBixaEiT3tJW05ZUniGNGXIgGPuYzSNSBkIK6b8n33rSNrDGIz3nXzDxSwFrJEFiYir lobw== 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=rLYrnaUqyFFfqXNnxwIuDXnaxvDMT/ZLBRHo1zl+4no=; b=D0JTHdlNJwMkXmsgQBRpqC+JhQ18N7Tu/VmEBSZcbFV5iIEN3R0SeSzllg/jBSX0VF X569GvutByaV6Ya/kBiI/YkheYgY0wG517J+IN6NsTe7weM9IIfVLglQSFXGIzo0W8J/ ifoDkVwvZbTPqDguxrKLIUM9niz5URSAOUnHoNuBnoit2xhFNq//3hCqOz/60wW5L8CR EUkpGOzNEUPlIhhFYsCxk4w3jXM/thQ2JRFK1DQAkSFIfK0MjN1WEJXPddKpTNRrWk7F zGOCsFaYd4hcC4YAXK8ostLleNBUH7zGCWTepqbgVWdY8jRKgwqLmPRtFjFMbLIf1uvt JZWA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530hwHY5PGH+9HIlgbzOJ9JhI7xP3E17N+ercp5SE9dganYpV3xh FwlNstJmzhHWRPfdz4gXN+s= X-Google-Smtp-Source: ABdhPJz9BGGkV/gn2umoczlA2F9yiXlGpU6STRH9mgWF70V1RV5svWtO4x+9+ion316lX9OpyDCrtg== X-Received: by 2002:a17:90a:bd14:: with SMTP id y20mr1424730pjr.107.1605744139904; Wed, 18 Nov 2020 16:02:19 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:524:: with SMTP id 33ls538569plf.6.gmail; Wed, 18 Nov 2020 16:02:15 -0800 (PST) X-Received: by 2002:a17:90b:297:: with SMTP id az23mr1496179pjb.71.1605744135048; Wed, 18 Nov 2020 16:02:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605744135; cv=none; d=google.com; s=arc-20160816; b=o+mY6wyewSt9efLnDS1TojNRvPeKsbdPvTH34pwu1OnDspKIqTLwV9LLRgPzY+Coox jQoTao7kRuxtCqygejFLElOdOBTWBiMRXocEW3PGT6lr/onmvkosD7pi2BksgfFR7dBY neX+dEnvuM0nBYqGtiQcm9g9o3SWja+ryrDPA06BLuq/PkjURhS3RrW6Obmr3ALJ5pP6 4k8vxNibZLDSTq4/dtyz7qrymtLmNCZMmWl9amcuIevPq6c0AQ2WFv6V/Zl/jTjJ0ORZ sk05E3XOUbH3bB1X0NwRBNfJXprEfvveJqp7gW3U4mo5V+nsyER0zqUJlgNUNvE4Mfme S8EQ== 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=HafuXGf+WNcVjXyixjP32Z2XWvrtD9AmNSGlq1HA8ig=; b=L+S/7y3SlCAzd82y6C+N+t/94kuHAxCp663YLtvsuns2JLwaKzsYpqfMm6WU+hkQym vWO0qUxI1Xb2B643dTgizKIgUZa9039+aip+osWk8en1HOagaDih6Qr7s/DtJ3p1zgfC vyq32/buNeV9Yq5Yfa/SRY+zDGe63QJCVSbgpyD+dlB27Iy9xJVLjo1RqvA1pGefyYyH PSe3znAwu5fGvtEbFsM93sbCAn47aDmu09YqMqoFoCwpWXZLovGPSHGAtEfqhJS0RN6I K13eiJm6LFRlJKBRnsSsII85gB2mrFpyQR0bbvPvFfx5lYXU9ykYtvHqZRr0ZsEczj5J GeUA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=M2LBySWh; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com. [2607:f8b0:4864:20::532]) by gmr-mx.google.com with ESMTPS id h11si660873plr.1.2020.11.18.16.02.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Nov 2020 16:02:15 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) client-ip=2607:f8b0:4864:20::532; Original-Received: by mail-pg1-x532.google.com with SMTP id r18so2528339pgu.6 for ; Wed, 18 Nov 2020 16:02:15 -0800 (PST) X-Received: by 2002:aa7:80c9:0:b029:197:6775:4a5b with SMTP id a9-20020aa780c90000b029019767754a5bmr6724008pfn.36.1605744134601; Wed, 18 Nov 2020 16:02:14 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id z12sm26632247pfg.123.2020.11.18.16.02.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 16:02:13 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id E776FA18A; Wed, 18 Nov 2020 19:02:02 -0500 (EST) In-Reply-To: <3881d8c8-1c42-d10a-ec51-c209d989579a-Re5JQEeQqe8AvxtiuMwx3w@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=M2LBySWh; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 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:26871 Archived-At: Pandoc adds the citekey as an attribute in the enclosing div. You can extract it (take the id attribute of the Div and subtract the 'ref-'). A style could also be told to print the citekey, I assume. As for URLs, this is style dependent. hex writes: > I noticed one small problem: i would like to add the citekey to each entry: > > |``` [ref]: Doe, John "Title" https://somegroups.md ``` the format is > not really important to me. I care most about citekey and url. What i > have now: ```| > ||Doe, John "Title" https://somegroups.md| ``` ||| > > Can this be achieved with a citation style? There are sooo many i didn't > find any with citekeys. Alternatively, it would already be helpful to > know in which order citations are listed. > > > > On 18/11/2020 19:59, King John Unn wrote: >> There are quite some solutions to choose from. `nocite` is awesome. >> It's beginner friendly and i could solve my problem. Didn't even have >> to mess with templates or filters :) >> >> thank you for all your help. >> On Wednesday, November 18, 2020 at 1:19:01 PM UTC the.so...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> wrote: >> >> Hi, >> I too recently went through the process of creating a document >> with a list of all my publications. >> >> Here's the command I used: >> `` >> $ pandoc -d bib-defaults.yaml >> ``` >> >> And here's the content of the bib-defaults.yaml file: >> https://gist.github.com/the-solipsist/8fcab57c2d7771ef3758f927ec79ae34 >> >> And here's the publications.md file that I used as the input: >> ``` >> --- >> nocite: '@*' >> ... >> >> # Books, book chapters & reports >> >> :::{#refs_book} >> ::: >> >> # Journal articles & conference papers >> >> :::{#refs_journal} >> ::: >> >> # Op-eds & press articles >> >> :::{#refs_press} >> ::: >> ``` >> >> I hope that helps. >> On Wednesday, 18 November, 2020 at 5:37:34 pm UTC+5:30 King John >> Unn wrote: >> >> >> hello community, >> >> I am a new user to pandoc. I am trying to generate the >> bibliography for a document. My template looks like this: >> >> ``` >> $body$ >> ``` >> >> This allows me to create a plain text document from markdown >> without header, title, toc, etc. >> >> ``` >> body text with references... >> >> References >> >> reference 1 >> ... >> reference n >> ``` >> >> I want to remove the body, too and only stick with: >> >> ``` >> References >> >> reference 1 >> ... >> reference n >> ``` >> ``` >> >> Is it possible to generate the reference only? If possible i >> would like to further modify the format of references, too. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "pandoc-discuss" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/pandoc-discuss/pbT4p_13Kt0/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/d3fd4aa4-cfe2-4d7f-be3d-f844dfd676aan%40googlegroups.com >> . > > -- > 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/msgid/pandoc-discuss/3881d8c8-1c42-d10a-ec51-c209d989579a%40gmail.com.