public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: hex <hex7c3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: how to generate the bibliography for a document?
Date: Wed, 18 Nov 2020 16:02:02 -0800	[thread overview]
Message-ID: <m27dqi5i4l.fsf@MacBook-Pro.hsd1.ca.comcast.net> (raw)
In-Reply-To: <3881d8c8-1c42-d10a-ec51-c209d989579a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


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 <hex7c3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 
>> <mailto: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 
>> <https://groups.google.com/d/msgid/pandoc-discuss/d3fd4aa4-cfe2-4d7f-be3d-f844dfd676aan%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> -- 
> 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.


  parent reply	other threads:[~2020-11-19  0:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18 12:07 King John Unn
     [not found] ` <89f878c1-770d-4d21-b372-15961fb5e385n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-18 12:28   ` AW: " denis.maier-FfwAq0itz3ofv37vnLkPlQ
2020-11-18 13:12   ` Joseph Reagle
2020-11-18 13:18   ` Gabriel Nützi
2020-11-18 13:19   ` Pranesh Prakash
     [not found]     ` <538a99b8-3ed4-4145-a4b7-c42145b61fefn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-18 19:59       ` King John Unn
     [not found]         ` <d3fd4aa4-cfe2-4d7f-be3d-f844dfd676aan-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-18 20:57           ` hex
     [not found]             ` <3881d8c8-1c42-d10a-ec51-c209d989579a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2020-11-19  0:02               ` John MacFarlane [this message]
2020-11-19  0:00           ` John MacFarlane
     [not found]             ` <m2a6ve5i7u.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-11-20 21:38               ` jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
     [not found]                 ` <ce80a7a2-bfb3-4ff8-ac1f-26f8a0a1fa9en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-21  0:22                   ` John MacFarlane
     [not found]                     ` <m2h7pjftjg.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-11-21 14:23                       ` Pranesh Prakash
     [not found]                         ` <22933182-2014-4210-a47f-02f754995774n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-21 15:38                           ` jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
     [not found]                             ` <87b8a4f1-8abc-4c7a-80bf-c62408dc1b60n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-21 20:59                               ` John MacFarlane
     [not found]                                 ` <m2blfqfmtr.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-11-21 23:20                                   ` jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m27dqi5i4l.fsf@MacBook-Pro.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=hex7c3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).