I am afraid I miss something here. I try the command, ad receive huge xml code in the end + my citation is like this \[@alexanderTheoryCulturalTrauma2004, 1\] > P.S. : Why do you use reference-doc here? You’re converting 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 –csl sage-harvard.csl –citeproc -t > markdown-citations > > > > (The important part is `-t markdown-citations`. That’s a big > counter-intuitive : It does not mean « give me a markdown file without > citations» , but rather « give me a markdown file without the citations > extension, i.e., with citations being resolved ».) > > > > 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’re converting from markdown > to markdown. > > > > > > *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org *Im > 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 > 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 doesn'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=you_bibfile.bib > > > > *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org *Im > 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 > 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 bibliography > from citations in document and place it at the end of current .md document. > 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch > > . > > -- > 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%40googlegroups.com.