From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29612 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Newsgroups: gmane.text.pandoc Subject: Re: AW: Automaticly creating bibliography in md? Date: Thu, 25 Nov 2021 00:49:58 -0800 (PST) Message-ID: <224d053e-b400-4ca7-87a0-4086ce0aa8efn@googlegroups.com> References: <504e0de4e201441ea14525b281bba30c@unibe.ch> <77539b7686aa450cb87fb3ec489410e0@unibe.ch> <5bec2468-843a-4196-ada8-7b42200dc2d6n@googlegroups.com> <5676cd49db054de980fb31d2f3fda9b4@unibe.ch> <7181c39d-c239-4a63-bbae-800bc4d8b523n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2574_1884518901.1637830198196" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1614"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCMOFOPUYUBBBN447WGAMGQETVFY7ZA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 25 09:50:03 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mqASA-0000EU-PS for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 25 Nov 2021 09:50:02 +0100 Original-Received: by mail-oo1-f56.google.com with SMTP id o6-20020a4ad486000000b002b8d8eef8f3sf3345665oos.16 for ; Thu, 25 Nov 2021 00:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=jVxYpqqNxhu+5gDIAkV9oVnYqMhl50kUxGzBedmixtg=; b=Fbdghblrk7RoY5yj3KmtcnUrblsIEGIOvW55/pHMb44bufsLIg04ORWmi00YSE7vcY 3RRz2bMks90qN0xWTffJu0TFeP28GOOEyNWXso2v9r7P9okCZSihI3v9iSUZH+YYiGSl 7/aLf1in+oJO1Wsn2Ip5JclGBIN9o4WUz5M6alE5OCiH3g/OwZv5xZeyxGSG6ymaUCQw XkoytmdDxkt7Nhw+8luxBNnVhSHF5wrBm0rM+SYmhTs6YQEsFd/OfRrwX7b8IY805lGX Z3cf+ExHbOowHiWjK9QS7bq+eFz/iwaZXSOBPwxStjBKGSIgG6K2C/S2zc2LvPelwPjf KJAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=jVxYpqqNxhu+5gDIAkV9oVnYqMhl50kUxGzBedmixtg=; b=Rj8n+A2qTR8n4oIsia2n8w6XSHi6+DN9GaSNoNe6ZvE/mum3JEEnhhmlBOH2I4J5pb U0BBocm6aVjaICvPBX8ojWm8RPOWcDXqQoB2eZhZYoHH7gXnFlTep0wnz7eHzswXU6+P wf38WnCVN0qHEE9B87IMROGDqONtD3gZK3YA2dLg+T4KZbM2TqF+f6wKURAZ++9xWitV fIvRgU0Ncd/iPTmRlFmCNF1Bl9WRDuo/XLuA20A9z0eTPxcrwJvPpsMb4MBdjizbkQh2 u3D+GyrHJi2gql6ZWH8HayoQ+tiHEjcmWCKQYanKBZ2CFrnzcR2crnn0KVtrv1cBA7IE bWGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=jVxYpqqNxhu+5gDIAkV9oVnYqMhl50kUxGzBedmixtg=; b=PrebbuS2tybcL7eD0fLfIbBNHsK6GZ48cmHw/GORta6AjvZB7U9BtyWbU4Qi85GVn/ iU6pFqdMpQ2sw26S5PLP8gLkbgcwNuM+S4q1kTUeCn2nev+VYo04Z2L2KU1+bqw0U+rg 80zmq4VFWpDO0CuCD668D/tQxMuxVqpyU0CFGTb9fULSKdjviWl+8IF7RAYy13AiOCaK zSoHwMfruJOMSh+jA18S7wcfZ4Vb+DQg5TOHBTExThPekLCbncPxr/e9urPAm1+NuvpF uxsvBAuUvfblARx/fzV8iPO8sdoQpd5pDo+puDpOzIDQisNCkXmNejtNTeMTkJN4Jr9I Aqww== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532CUu8V06EWrzkzfvP4U+czM7wXM4YT+nHiB4hGdWqvK4JJay/O BFfj0rP5Nj+5yI9MvtntVdk= X-Google-Smtp-Source: ABdhPJzPHluUjibdwSS+hbsef6YKB1lhJ2yrA1GQftjV+bSxFepO+ZQBFB376L47Fu1g7Z9gyCQBgQ== X-Received: by 2002:a4a:e155:: with SMTP id p21mr916267oot.84.1637830201184; Thu, 25 Nov 2021 00:50:01 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:438e:: with SMTP id s14ls1025730otv.7.gmail; Thu, 25 Nov 2021 00:49:59 -0800 (PST) X-Received: by 2002:a9d:1c86:: with SMTP id l6mr19998644ota.241.1637830198806; Thu, 25 Nov 2021 00:49:58 -0800 (PST) In-Reply-To: X-Original-Sender: omvvardar-Re5JQEeQqe8AvxtiuMwx3w@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:29612 Archived-At: ------=_Part_2574_1884518901.1637830198196 Content-Type: multipart/alternative; boundary="----=_Part_2575_1714638821.1637830198196" ------=_Part_2575_1714638821.1637830198196 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Denis, thank you! It's working in a way. Do it's job, but escaped my=20 citations :-) But, I'll take a closer look at lua filters during the=20 weekend. John, it's exciting news. On Wednesday, November 24, 2021 at 6:24:31 PM UTC+1 John MacFarlane wrote: > > See https://github.com/jgm/pandoc/pull/7705 > When this is merged, this style of wikilinks will be > supported via an extension. > > writes: > > > You mean wiki-style links [[20200719191401]] being transformed to this:= =20 > \[\[20200719191401\]\]? > > > > I don=E2=80=99t have a solution for this. > > > > Maybe someone knows how escaping of brackets can be suppressed when=20 > going from markdown to markdown ? > > > > Denis > > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im=20 > Auftrag von Alan > > Gesendet: Dienstag, 23. November 2021 16:14 > > An: pandoc-discuss > > Betreff: Re: Automaticly creating bibliography in md? > > > > Thank you for your patience Denis. > > > > Finally, I have references in file, but... It messed my zettel links...= =20 > :-( > > I dont care how references look, I just need them at the end > > > > > > On Tuesday, November 23, 2021 at 3:09:05 PM UTC+1 denis...-NSENcxR/0n0@public.gmane.org > wrote: > > Ok. Take this input file: > > > > ``` > > --- > > author: DM > > title: Test > > date: 18-Jul-2020 > > references: > > - type: article-journal > > id: WatsonCrick1953 > > author: > > - family: Watson > > given: J. D. > > - family: Crick > > given: F. H. C. > > issued: > > date-parts: > > - - 1953 > > - 4 > > - 25 > > title: 'Molecular structure of nucleic acids: a structure for > > deoxyribose nucleic acid' > > title-short: Molecular structure of nucleic acids > > container-title: Nature > > volume: 171 > > issue: 4356 > > page: 737-738 > > DOI: 10.1038/171737a0 > > URL: https://www.nature.com/articles/171737a0 > > language: en-GB > > --- > > > > bla bla [@WatsonCrick1953, 5] > > ``` > > > > Convert with > > pandoc inputfile.md -o outputfile.md =E2=80=93citeproc -t markdown-cita= tions > > gives me : > > > > ``` > > --- > > author: DM > > date: 18-Jul-2020 > > references: > > - author: > > - family: Watson > > given: J. D. > > - family: Crick > > given: F. H. C. > > container-title: Nature > > DOI: 10.1038/171737a0 > > id: WatsonCrick1953 > > issue: 4356 > > issued: > > date-parts: > > - - 1953 > > - 4 > > - 25 > > language: en-GB > > page: 737-738 > > title: "Molecular structure of nucleic acids: a structure for > > deoxyribose nucleic acid" > > title-short: Molecular structure of nucleic acids > > type: article-journal > > URL: https://www.nature.com/articles/171737a0 > > volume: 171 > > title: Test > > --- > > > > bla bla (Watson and Crick 1953, 5) > > > > ::: {#refs .references .csl-bib-body .hanging-indent} > > ::: {#ref-WatsonCrick1953 .csl-entry} > > Watson, J. D., and F. H. C. Crick. 1953. "Molecular Structure of Nuclei= c > > Acids: A Structure for Deoxyribose Nucleic Acid." *Nature* 171 (4356): > > 737--38. https://doi.org/10.1038/171737a0. > > ::: > > ::: > > ``` > > > > Denis > > > > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im=20 > Auftrag von denis...-NSENcxR/0n0@public.gmane.org > > Gesendet: Dienstag, 23. November 2021 15:03 > > An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > Betreff: AW: Automaticly creating bibliography in md? > > > > Not sure, but the xml is your style file. > > Can only guess since I don=E2=80=99t have your bibfile, but maybe the c= ommand=20 > line arguments were a bit messed up : > > pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -= t=20 > markdown-citations > > Add a =3D between --csl and the style =3D> --csl=3Dsage-harvard.csl > > Or, can also just omit the style since you have that in your markdown= =20 > files anyway. > > > > But, if you want the bibliography to appear like in your sublime=20 > example, you=E2=80=99ll need to use a filter for this. > > > > Denis > > > > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im=20 > Auftrag von Alan > > Gesendet: Dienstag, 23. November 2021 14:09 > > An: pandoc-discuss > > Betreff: Re: Automaticly creating bibliography in md? > > > > > > Sure. > > I noticed that my yaml is missing. The same file, before this command,= =20 > produce normal pdf and word output > > > > Note: sublime.md is the same note I generated auto bibliography in ST > > On Tuesday, November 23, 2021 at 1:48:33 PM UTC+1 denis...-NSENcxR/0n0@public.gmane.org=20 > wrote: > > Can you post a real example? > > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im=20 > Auftrag von Alan > > Gesendet: Dienstag, 23. November 2021 13:45 > > An: pandoc-discuss > > Betreff: Re: Automaticly creating bibliography in md? > > > > I am afraid I miss something here. I try the command, ad receive huge= =20 > xml code in the end + my citation is like this > > > > \[@alexanderTheoryCulturalTrauma2004, 1\] > > > >> P.S. : Why do you use reference-doc here? You=E2=80=99re converting fr= om=20 > markdown to markdown. > > My bad, I just copy from my docx command :-) > > > > On Tuesday, November 23, 2021 at 10:35:25 AM UTC+1 denis...-NSENcxR/0n0@public.gmane.org=20 > wrote: > > Well, IIUC, pandoc works from an input file to an output file. > > If you have your references in your metadata you can probably just do= =20 > this : > > > > pandoc inputfile.md -o inputfile.md =E2=80=93csl sage-harvard.csl =E2= =80=93citeproc -t=20 > markdown-citations > > > > (The important part is `-t markdown-citations`. That=E2=80=99s a big=20 > counter-intuitive : It does not mean =C2=AB give me a markdown file witho= ut=20 > citations=C2=BB , but rather =C2=AB give me a markdown file without the c= itations=20 > extension, i.e., with citations being resolved =C2=BB.) > > > > If that does not work, convert to a temp file first, then rename. You= =20 > can automate the process with a script or makefile. > > > > Denis > > > > P.S. : Why do you use reference-doc here? You=E2=80=99re converting fro= m=20 > markdown to markdown. > > > > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im=20 > Auftrag von Alan > > Gesendet: Dienstag, 23. November 2021 10:28 > > An: pandoc-discuss > > Betreff: Re: Automaticly creating bibliography in md? > > > > I know (and use) this command > > > > pandoc --reference-doc my-reference.docx -s text1.md --citeproc --csl= =20 > sage-harvard.csl -o text2.md > > > > and my bib file is referenced in YAML head. > > The question is how to achieve to have bibliography in SAME file I am= =20 > working with? > > I have an animated gif in imgur to show the process, but google doesn't= =20 > let me post link, message is automatically deleted. > > > > On Tuesday, November 23, 2021 at 10:11:59 AM UTC+1 denis...-NSENcxR/0n0@public.gmane.org=20 > wrote: > > You will need to specify your reference library, of course. > > --bibliography=3Dyou_bibfile.bib > > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im=20 > Auftrag von denis...-NSENcxR/0n0@public.gmane.org > > Gesendet: Dienstag, 23. November 2021 10:11 > > An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > Betreff: AW: Automaticly creating bibliography in md? > > > > Sure, you can convert from markdown to markdown with resolved citations= . > > > > pandoc inputfile.md -o outputfile-md -C -t markdown-citations > > > > Denis > > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im=20 > Auftrag von Alan > > Gesendet: Dienstag, 23. November 2021 10:08 > > An: pandoc-discuss > > Betreff: Automaticly creating bibliography in md? > > > > Hi, > > In sublime_zk package for Sublime Text, you can create auto bibliograph= y=20 > from citations in document and place it at the end of current .md documen= t.=20 > Is it possible to do that with command or some script, which can be=20 > executed in Windows 10 :-) > > Thanks > > -- > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-= 38160275d4a1n%40googlegroups.com > < > https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-= 38160275d4a1n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > >. > > -- > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b2= 81bba30c%40unibe.ch > < > https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b2= 81bba30c%40unibe.ch?utm_medium=3Demail&utm_source=3Dfooter > >. > > -- > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-= 84b632f02ef6n%40googlegroups.com > < > https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-= 84b632f02ef6n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > >. > > -- > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-= 5aab0bee653cn%40googlegroups.com > < > https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-= 5aab0bee653cn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > >. > > -- > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/5bec2468-843a-4196-ada8-= 7b42200dc2d6n%40googlegroups.com > < > https://groups.google.com/d/msgid/pandoc-discuss/5bec2468-843a-4196-ada8-= 7b42200dc2d6n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > >. > > -- > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/5676cd49db054de980fb31d2= f3fda9b4%40unibe.ch > < > https://groups.google.com/d/msgid/pandoc-discuss/5676cd49db054de980fb31d2= f3fda9b4%40unibe.ch?utm_medium=3Demail&utm_source=3Dfooter > >. > > -- > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/7181c39d-c239-4a63-bbae-= 800bc4d8b523n%40googlegroups.com > < > https://groups.google.com/d/msgid/pandoc-discuss/7181c39d-c239-4a63-bbae-= 800bc4d8b523n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > >. > > > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/bb5a3b682ae748a09280ba75= cb8b05c3%40unibe.ch > . > --=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/224d053e-b400-4ca7-87a0-4086ce0aa8efn%40googlegroups.com. ------=_Part_2575_1714638821.1637830198196 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Denis, thank you! It's working in a way. Do it's job, but escaped my c= itations :-) But, I'll take a closer look at lua filters during the weekend= .
John, it's exciting news.

On Wednesday, November 24, 2021 a= t 6:24:31 PM UTC+1 John MacFarlane wrote:

See http= s://github.com/jgm/pandoc/pull/7705
When this is merged, this style of wikilinks will be
supported via an extension.

<denis...-NSENcxR/0n0@public.gmane.org>= ; writes:

> You mean wiki-style links [[20200719191401]] being transformed to = this: \[\[20200719191401\]\]?
>
> I don=E2=80=99t have a solution for this.
>
> Maybe someone knows how escaping of brackets can be suppressed whe= n going from markdown to markdown ?
>
> Denis
>
> Von: pandoc-...@googleg= roups.com <pandoc-...@goo= glegroups.com> Im Auftrag von Alan
> Gesendet: Dienstag, 23. November 2021 16:14
> An: pandoc-discuss <= pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> Betreff: Re: Automaticly creating bibliography in md?
>
> Thank you for your patience Denis.
>
> Finally, I have references in file, but... It messed my zettel lin= ks... :-(
> I dont care how references look, I just need them at the end
>
>
> On Tuesday, November 23, 2021 at 3:09:05 PM UTC+1 denis...-NSENcxR/0n0@public.gmane.org<mailto:denis...-NSENcxR/0n0@public.gmane.org> wrote:
> Ok. Take this input file:
>
> ```
> ---
> author: DM
> title: Test
> date: 18-Jul-2020
> references:
> - type: article-journal
> id: WatsonCrick1953
> author:
> - family: Watson
> given: J. D.
> - family: Crick
> given: F. H. C.
> issued:
> date-parts:
> - - 1953
> - 4
> - 25
> title: 'Molecular structure of nucleic acids: a structure fo= r
> deoxyribose nucleic acid'
> title-short: Molecular structure of nucleic acids
> container-title: Nature
> volume: 171
> issue: 4356
> page: 737-738
> DOI: 10.1038/171737a0
> URL: https://www.nature.com/articles/171737a0
> language: en-GB
> ---
>
> bla bla [@WatsonCrick1953, 5]
> ```
>
> Convert with
> pandoc inputfile.md -o outputfile.md =E2=80=93citeproc -t markdown= -citations
> gives me :
>
> ```
> ---
> author: DM
> date: 18-Jul-2020
> references:
> - author:
> - family: Watson
> given: J. D.
> - family: Crick
> given: F. H. C.
> container-title: Nature
> DOI: 10.1038/171737a0
> id: WatsonCrick1953
> issue: 4356
> issued:
> date-parts:
> - - 1953
> - 4
> - 25
> language: en-GB
> page: 737-738
> title: "Molecular structure of nucleic acids: a structure f= or
> deoxyribose nucleic acid"
> title-short: Molecular structure of nucleic acids
> type: article-journal
> URL: https://www.nature.com/articles/171737a0
> volume: 171
> title: Test
> ---
>
> bla bla (Watson and Crick 1953, 5)
>
> ::: {#refs .references .csl-bib-body .hanging-indent}
> ::: {#ref-WatsonCrick1953 .csl-entry}
> Watson, J. D., and F. H. C. Crick. 1953. "Molecular Structure= of Nucleic
> Acids: A Structure for Deoxyribose Nucleic Acid." *Nature* 17= 1 (4356):
> 737--38. https://d= oi.org/10.1038/171737a0.
> :::
> :::
> ```
>
> Denis
>
>
> Von: pandoc-...@googleg= roups.com <pandoc-...@goo= glegroups.com> Im Auftrag von denis...-NSENcxR/0n0@public.gmane.org
> Gesendet: Dienstag, 23. November 2021 15:03
> An: pandoc-...@googlegr= oups.com
> Betreff: AW: Automaticly creating bibliography in md?
>
> Not sure, but the xml is your style file.
> Can only guess since I don=E2=80=99t have your bibfile, but maybe = the command line arguments were a bit messed up :
> pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citep= roc -t markdown-citations
> Add a =3D between --csl and the style =3D> --csl=3Dsage-harvard= .csl
> Or, can also just omit the style since you have that in your markd= own files anyway.
>
> But, if you want the bibliography to appear like in your sublime e= xample, you=E2=80=99ll need to use a filter for this.
>
> Denis
>
>
> Von: pandoc-...@googleg= roups.com <pandoc-...@goo= glegroups.com> Im Auftrag von Alan
> Gesendet: Dienstag, 23. November 2021 14:09
> An: pandoc-discuss <= pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> Betreff: Re: Automaticly creating bibliography in md?
>
>
> Sure.
> I noticed that my yaml is missing. The same file, before this comm= and, produce normal pdf and word output
>
> Note: sublime.md is the same note I generated auto bibliography in= ST
> On Tuesday, November 23, 2021 at 1:48:33 PM UTC+1 denis...-NSENcxR/0n0@public.gmane.org wrote:
> Can you post a real example?
>
> Von: pandoc-...@googleg= roups.com <pandoc-...@goo= glegroups.com> Im Auftrag von Alan
> Gesendet: Dienstag, 23. November 2021 13:45
> An: pandoc-discuss <= pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> Betreff: Re: Automaticly creating bibliography in md?
>
> I am afraid I miss something here. I try the command, ad receive h= uge xml code in the end + my citation is like this
>
> \[@alexanderTheoryCulturalTrauma2004, 1\]
>
>> P.S. : Why do you use reference-doc here? You=E2=80=99re conve= rting from markdown to markdown.
> My bad, I just copy from my docx command :-)
>
> On Tuesday, November 23, 2021 at 10:35:25 AM UTC+1 denis...-NSENcxR/0n0@public.gmane.org wrote:
> Well, IIUC, pandoc works from an input file to an output file.
> If you have your references in your metadata you can probably just= do this :
>
> pandoc inputfile.md -o inputfile.md =E2=80=93csl sage-harvard.csl = =E2=80=93citeproc -t markdown-citations
>
> (The important part is `-t markdown-citations`. That=E2=80=99s a b= ig counter-intuitive : It does not mean =C2=AB give me a markdown file with= out citations=C2=BB , but rather =C2=AB give me a markdown file without the= citations extension, i.e., with citations being resolved =C2=BB.)
>
> If that does not work, convert to a temp file first, then rename. = You can automate the process with a script or makefile.
>
> Denis
>
> P.S. : Why do you use reference-doc here? You=E2=80=99re convertin= g from markdown to markdown.
>
>
> Von: pandoc-...@googleg= roups.com <pandoc-...@goo= glegroups.com> Im Auftrag von Alan
> Gesendet: Dienstag, 23. November 2021 10:28
> An: pandoc-discuss <= pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> Betreff: Re: Automaticly creating bibliography in md?
>
> I know (and use) this command
>
> pandoc --reference-doc my-reference.docx -s text1.md --citeproc --= csl sage-harvard.csl -o text2.md
>
> and my bib file is referenced in YAML head.
> The question is how to achieve to have bibliography in SAME file I= am working with?
> I have an animated gif in imgur to show the process, but google do= esn't let me post link, message is automatically deleted.
>
> On Tuesday, November 23, 2021 at 10:11:59 AM UTC+1 denis...-NSENcxR/0n0@public.gmane.org wrote:
> You will need to specify your reference library, of course.
> --bibliography=3Dyou_bibfile.bib
>
> Von: pandoc-...@googleg= roups.com <pandoc-...@goo= glegroups.com> Im Auftrag von denis...-NSENcxR/0n0@public.gmane.org
> Gesendet: Dienstag, 23. November 2021 10:11
> An: pandoc-...@googlegr= oups.com
> Betreff: AW: Automaticly creating bibliography in md?
>
> Sure, you can convert from markdown to markdown with resolved cita= tions.
>
> pandoc inputfile.md -o outputfile-md -C -t markdown-citations
>
> Denis
>
> Von: pandoc-...@googleg= roups.com <pandoc-...@goo= glegroups.com> Im Auftrag von Alan
> Gesendet: Dienstag, 23. November 2021 10:08
> An: pandoc-discuss <= pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> Betreff: Automaticly creating bibliography in md?
>
> Hi,
> In sublime_zk package for Sublime Text, you can create auto biblio= graphy from citations in document and place it at the end of current .md do= cument. Is it possible to do that with command or some script, which can be= executed in Windows 10 :-)
> 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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ac73= 582b-8acc-469a-94ff-38160275d4a1n%40googlegroups.com<https://groups.google.com/d/msgid/pa= ndoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%40googlegroups.com?utm_m= edium=3Demail&utm_source=3Dfooter>.
> --
> 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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https:= //groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c= %40unibe.ch<https://groups.google.com/d/= msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?utm_medium= =3Demail&utm_source=3Dfooter>.
> --
> 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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ab32= 95e2-0e57-459f-a626-84b632f02ef6n%40googlegroups.com<https://groups.google.com/d/msgid/pa= ndoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%40googlegroups.com?utm_m= edium=3Demail&utm_source=3Dfooter>.
> --
> 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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a24a= dbdb-f2ef-4bbc-8199-5aab0bee653cn%40googlegroups.com<https://groups.google.com/d/msgid/pa= ndoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%40googlegroups.com?utm_m= edium=3Demail&utm_source=3Dfooter>.
> --
> 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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5bec= 2468-843a-4196-ada8-7b42200dc2d6n%40googlegroups.com<https://groups.google.com/d/msgid/pa= ndoc-discuss/5bec2468-843a-4196-ada8-7b42200dc2d6n%40googlegroups.com?utm_m= edium=3Demail&utm_source=3Dfooter>.
> --
> 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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https:= //groups.google.com/d/msgid/pandoc-discuss/5676cd49db054de980fb31d2f3fda9b4= %40unibe.ch<https://groups.google.com/d/= msgid/pandoc-discuss/5676cd49db054de980fb31d2f3fda9b4%40unibe.ch?utm_medium= =3Demail&utm_source=3Dfooter>.
> --
> 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-discus..= .@googlegroups.com<mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7181= c39d-c239-4a63-bbae-800bc4d8b523n%40googlegroups.com<https://groups.google.com/d/msgid/pa= ndoc-discuss/7181c39d-c239-4a63-bbae-800bc4d8b523n%40googlegroups.com?utm_m= edium=3Demail&utm_source=3Dfooter>.
>
> --=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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https:= //groups.google.com/d/msgid/pandoc-discuss/bb5a3b682ae748a09280ba75cb8b05c3= %40unibe.ch.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/224d053e-b400-4ca7-87a0-4086ce0aa8efn%40googlegroups.= com.
------=_Part_2575_1714638821.1637830198196-- ------=_Part_2574_1884518901.1637830198196--