public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Automaticly creating bibliography in md?
@ 2021-11-23  9:07         ` Alan
       [not found]           ` <ac73582b-8acc-469a-94ff-38160275d4a1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alan @ 2021-11-23  9:07 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 670 bytes --]

 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-discuss+unsubscribe-/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.

[-- Attachment #1.2: Type: text/html, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]           ` <ac73582b-8acc-469a-94ff-38160275d4a1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-11-23  9:10             ` denis.maier-NSENcxR/0n0
       [not found]               ` <504e0de4e201441ea14525b281bba30c-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-23  9:10 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1745 bytes --]

Sure, you can convert from markdown to markdown with resolved citations.

pandoc inputfile.md -o outputfile-md -C -t markdown-citations

Denis

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 10:08
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
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-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/ac73582b-8acc-469a-94ff-38160275d4a1n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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/504e0de4e201441ea14525b281bba30c%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 4656 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]               ` <504e0de4e201441ea14525b281bba30c-NSENcxR/0n0@public.gmane.org>
@ 2021-11-23  9:11                 ` denis.maier-NSENcxR/0n0
       [not found]                   ` <77539b7686aa450cb87fb3ec489410e0-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-23  9:11 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 2937 bytes --]

You will need to specify your reference library, of course.
--bibliography=you_bibfile.bib

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von denis.maier-NSENcxR/0n0@public.gmane.org
Gesendet: Dienstag, 23. November 2021 10:11
An: pandoc-discuss-/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-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 10:08
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss@googlegroups.com>>
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-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/ac73582b-8acc-469a-94ff-38160275d4a1n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-/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/504e0de4e201441ea14525b281bba30c%40unibe.ch<https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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/77539b7686aa450cb87fb3ec489410e0%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 6502 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Automaticly creating bibliography in md?
       [not found]                   ` <77539b7686aa450cb87fb3ec489410e0-NSENcxR/0n0@public.gmane.org>
@ 2021-11-23  9:27                     ` Alan
       [not found]                       ` <ab3295e2-0e57-459f-a626-84b632f02ef6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alan @ 2021-11-23  9:27 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 3228 bytes --]

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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 
> <https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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 
> <https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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/ab3295e2-0e57-459f-a626-84b632f02ef6n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 6601 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]                       ` <ab3295e2-0e57-459f-a626-84b632f02ef6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-11-23  9:35                         ` denis.maier-NSENcxR/0n0
       [not found]                           ` <e7e3e37f41254e9687d781f28454054d-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-23  9:35 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 4798 bytes --]

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-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 10:28
An: pandoc-discuss <pandoc-discuss-/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 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<mailto: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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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<https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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<https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-/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/ab3295e2-0e57-459f-a626-84b632f02ef6n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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/e7e3e37f41254e9687d781f28454054d%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 12281 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Automaticly creating bibliography in md?
       [not found]                           ` <e7e3e37f41254e9687d781f28454054d-NSENcxR/0n0@public.gmane.org>
@ 2021-11-23 12:44                             ` Alan
       [not found]                               ` <a24adbdb-f2ef-4bbc-8199-5aab0bee653cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alan @ 2021-11-23 12:44 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 5532 bytes --]

 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 
> <https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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 
> <https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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 
> <https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 11901 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]                               ` <a24adbdb-f2ef-4bbc-8199-5aab0bee653cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-11-23 12:48                                 ` denis.maier-NSENcxR/0n0
       [not found]                                   ` <ddf8ad0d1ac1492b8f0298fbc8972404-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-23 12:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 6082 bytes --]

Can you post a real example?

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 13:45
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Re: Automaticly creating bibliography in md?

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<mailto: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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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<https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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<https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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<https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-/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/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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/ddf8ad0d1ac1492b8f0298fbc8972404%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 16250 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Automaticly creating bibliography in md?
       [not found]                                   ` <ddf8ad0d1ac1492b8f0298fbc8972404-NSENcxR/0n0@public.gmane.org>
@ 2021-11-23 13:08                                     ` Alan
       [not found]                                       ` <5bec2468-843a-4196-ada8-7b42200dc2d6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alan @ 2021-11-23 13:08 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 6829 bytes --]


Sure.
I noticed that my yaml is missing. The same file, before this command, 
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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 
> <https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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 
> <https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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 
> <https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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 
> <https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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/5bec2468-843a-4196-ada8-7b42200dc2d6n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 14832 bytes --]

[-- Attachment #2: ex.md --]
[-- Type: text/markdown, Size: 10413 bytes --]

Cultural trauma occurs when members of a collectivity feel they have
been subjected to a horrendous event that leaves indelible marks upon
their group consciousness, marking their memories forever and changing
their future identity in fundamental and irrevocable ways. \[@alexanderTheoryCulturalTrauma2004, 1\]

```{=html}
<?xml version="1.0" encoding="utf-8"?>
```
```{=html}
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" default-locale="en-GB">
  <info>
    <title>SAGE - Harvard</title>
    <id>http://www.zotero.org/styles/sage-harvard</id>
    <link href="http://www.zotero.org/styles/sage-harvard" rel="self"/>
    <link href="http://www.zotero.org/styles/the-open-university-harvard" rel="template"/>
    <link href="https://uk.sagepub.com/sites/default/files/sage_harvard_reference_style_0.pdf" rel="documentation"/>
    <author>
      <name>Joseph Reagle</name>
    </author>
    <category citation-format="author-date"/>
    <category field="generic-base"/>
    <summary>The SAGE Harvard author-date style</summary>
    <updated>2020-08-21T14:26:52+00:00</updated>
    <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  </info>
  <locale xml:lang="en-GB">
    <terms>
      <term name="editor" form="short">
        <single>ed.</single>
        <multiple>eds</multiple>
      </term>
    </terms>
  </locale>
  <macro name="editor">
    <names variable="editor" delimiter=", ">
      <name and="text" initialize-with="" delimiter=", " sort-separator=" " name-as-sort-order="all"/>
      <label form="short" prefix=" (" suffix=")"/>
    </names>
  </macro>
  <macro name="editor-translator">
    <names variable="editor translator" delimiter="; ">
      <label form="short" suffix=" "/>
      <name and="text" initialize-with="" delimiter=", "/>
    </names>
  </macro>
  <macro name="proceedings-editor">
    <names variable="editor" delimiter=", " prefix="(" suffix=")">
      <label form="short" suffix=" "/>
      <name and="text" initialize-with="" delimiter=", " sort-separator=" "/>
    </names>
  </macro>
  <macro name="author">
    <names variable="author">
      <name initialize-with="" name-as-sort-order="all" and="text" sort-separator=" " delimiter=", " delimiter-precedes-last="never" form="long"/>
      <label form="short" prefix=" (" suffix=")"/>
      <substitute>
        <names variable="editor"/>
        <names variable="translator"/>
        <text variable="container-title" font-style="italic"/>
        <text macro="title"/>
      </substitute>
    </names>
  </macro>
  <macro name="author-count">
    <names variable="author">
      <name form="count"/>
      <substitute>
        <names variable="editor"/>
      </substitute>
    </names>
  </macro>
  <macro name="author-short">
    <names variable="author">
      <name form="short" and="text" delimiter=", " delimiter-precedes-last="never" initialize-with=""/>
      <substitute>
        <names variable="editor"/>
        <names variable="translator"/>
        <text variable="container-title" font-style="italic"/>
        <text macro="title"/>
      </substitute>
    </names>
  </macro>
  <macro name="access">
    <choose>
      <if variable="DOI">
        <text variable="DOI" prefix="DOI: "/>
      </if>
      <else-if variable="URL">
        <text value="Available at: "/>
        <text variable="URL"/>
        <group prefix=" (" delimiter=" " suffix=")">
          <text term="accessed"/>
          <date variable="accessed">
            <date-part name="day" suffix=" "/>
            <date-part name="month" suffix=" "/>
            <date-part name="year"/>
          </date>
        </group>
      </else-if>
    </choose>
  </macro>
  <macro name="title">
    <choose>
      <if type="book">
        <group delimiter=" ">
          <text variable="title" font-style="italic" text-case="title"/>
          <text macro="editor-translator" prefix="(" suffix=")"/>
        </group>
      </if>
      <else-if type="bill graphic legal_case motion_picture report song thesis" match="any">
        <text variable="title" font-style="italic"/>
      </else-if>
      <else>
        <text variable="title"/>
      </else>
    </choose>
  </macro>
  <macro name="publisher">
    <choose>
      <if type="thesis" match="any">
        <group delimiter=", ">
          <text variable="publisher"/>
          <text variable="publisher-place"/>
        </group>
      </if>
      <else-if type="paper-conference" match="any">
        <text variable="publisher"/>
      </else-if>
      <else>
        <group delimiter=": ">
          <text variable="publisher-place"/>
          <text variable="publisher"/>
        </group>
      </else>
    </choose>
  </macro>
  <macro name="year-date">
    <choose>
      <if variable="issued">
        <date variable="issued">
          <date-part name="year"/>
        </date>
      </if>
      <else>
        <text term="no date" form="short"/>
      </else>
    </choose>
  </macro>
  <macro name="locator">
    <choose>
      <if type="article-journal">
        <text variable="volume"/>
        <text variable="issue" prefix="(" suffix=")"/>
      </if>
    </choose>
  </macro>
  <macro name="published-date">
    <choose>
      <if type="report" match="any">
        <date variable="issued">
          <date-part name="day" suffix=" "/>
          <date-part name="month" form="long"/>
        </date>
      </if>
    </choose>
  </macro>
  <macro name="genre">
    <choose>
      <if type="webpage post-weblog" match="none">
        <text variable="genre"/>
      </if>
    </choose>
  </macro>
  <macro name="pages">
    <choose>
      <if type="chapter" match="any">
        <group delimiter=" " prefix=", ">
          <label variable="page" form="short"/>
          <text variable="page"/>
        </group>
      </if>
      <else-if type="article-journal">
        <text variable="page" prefix=": "/>
      </else-if>
    </choose>
  </macro>
  <macro name="edition">
    <choose>
      <if is-numeric="edition">
        <group delimiter=" ">
          <number variable="edition" form="ordinal"/>
          <text term="edition" form="short"/>
        </group>
      </if>
      <else>
        <text variable="edition" suffix="."/>
      </else>
    </choose>
  </macro>
  <macro name="container-details">
    <choose>
      <if type="chapter post-weblog post" match="any">
        <group delimiter=" " prefix="In: ">
          <text macro="editor"/>
          <choose>
            <if type="chapter">
              <text variable="container-title" font-style="italic" text-case="title"/>
            </if>
            <else>
              <text variable="container-title" font-style="italic"/>
            </else>
          </choose>
        </group>
      </if>
      <else-if type="paper-conference" match="any">
        <group delimiter=", " prefix="In: ">
          <group delimiter=" ">
            <choose>
              <if variable="container-title">
                <text variable="container-title" font-style="italic"/>
              </if>
              <else>
                <text variable="event" font-style="italic"/>
              </else>
            </choose>
            <text macro="proceedings-editor"/>
          </group>
          <text variable="publisher-place"/>
          <date variable="issued">
            <date-part name="day" suffix=" "/>
            <date-part name="month" form="long" suffix=" "/>
            <date-part name="year"/>
          </date>
          <group delimiter=" ">
            <label variable="page" form="short"/>
            <text variable="page"/>
          </group>
        </group>
      </else-if>
      <else-if type="webpage book" match="none">
        <group delimiter=", ">
          <group delimiter=" ">
            <text variable="container-title" font-style="italic"/>
            <text macro="editor"/>
          </group>
          <choose>
            <if type="article-newspaper article-magazine" match="any">
              <date variable="issued">
                <date-part name="day" suffix=" "/>
                <date-part name="month" form="long"/>
              </date>
            </if>
          </choose>
        </group>
      </else-if>
    </choose>
  </macro>
  <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year">
    <sort>
      <key macro="author-short"/>
      <key macro="year-date"/>
      <key variable="title"/>
    </sort>
    <layout prefix="(" suffix=")" delimiter="; ">
      <group delimiter=": ">
        <group delimiter=", ">
          <text macro="author-short"/>
          <text macro="year-date"/>
        </group>
        <text variable="locator"/>
      </group>
    </layout>
  </citation>
  <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="3">
    <sort>
      <key macro="author" names-min="1" names-use-first="1"/>
      <key macro="author-count" names-min="3" names-use-first="3"/>
      <key macro="author" names-min="3" names-use-first="1"/>
      <key macro="year-date"/>
      <key variable="title"/>
    </sort>
    <layout suffix=".">
      <group delimiter=" ">
        <text macro="author"/>
        <text macro="year-date" prefix="(" suffix=")"/>
        <text macro="title" suffix="."/>
        <choose>
          <if variable="container-title" match="none">
            <text macro="edition"/>
          </if>
        </choose>
        <group delimiter=". ">
          <group delimiter=" ">
            <text macro="container-details"/>
            <text macro="locator"/>
          </group>
          <choose>
            <if variable="container-title" match="any">
              <text macro="edition"/>
            </if>
          </choose>
          <group delimiter=", ">
            <group delimiter=" ">
              <text variable="collection-title"/>
              <text variable="collection-number"/>
              <text variable="number"/>
            </group>
            <text macro="genre"/>
            <text macro="published-date"/>
          </group>
          <text macro="publisher"/>
        </group>
      </group>
      <text macro="pages"/>
      <text macro="access" prefix=". "/>
    </layout>
  </bibliography>
</style>
```

[-- Attachment #3: sublime.md --]
[-- Type: text/markdown, Size: 816 bytes --]

---
author: MP
date: 18-Jul-2020
mainfont: times.ttf
mainfontoptions:
- BoldFont=timesbd.ttf
- ItalicFont=timesi.ttf
- BoldItalicFont=timesbi.ttf
bibliography: teatar.bib
csl: apa-single-spaced.csl
---

Cultural trauma occurs when members of a collectivity feel they have been subjected to a horrendous event that leaves indelible marks upon their group consciousness, marking their memories forever and changing their future identity in fundamental and irrevocable ways. [@alexanderTheoryCulturalTrauma2004, 1]



<!-- references (auto)

[@alexanderTheoryCulturalTrauma2004]: Alexander, Jeffrey C. 2004. “Toward a Theory of Cultural Trauma.” In Cultural Trauma and Collective Identity, edited by Jeffrey C. Alexander, 1–30. Berkeley, Calif.; London: University of California Press. 

-->

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]                                       ` <5bec2468-843a-4196-ada8-7b42200dc2d6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-11-23 14:03                                         ` denis.maier-NSENcxR/0n0
       [not found]                                           ` <5676cd49db054de980fb31d2f3fda9b4-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-23 14:03 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 7742 bytes --]

Not sure, but the xml is your style file.
Can only guess since I don’t have your bibfile, but maybe the command line arguments were a bit messed up :
pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t markdown-citations
Add a = between --csl and the style => --csl=sage-harvard.csl
Or, can also just omit the style since you have that in your markdown files anyway.

But, if you want the bibliography to appear like in your sublime example, you’ll need to use a filter for this.

Denis


Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 14:09
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Re: Automaticly creating bibliography in md?


Sure.
I noticed that my yaml is missing. The same file, before this command, 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<mailto:denis...-NSENcxR/0n0@public.gmane.org> wrote:
Can you post a real example?

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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<https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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<https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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<https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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<https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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-/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/5bec2468-843a-4196-ada8-7b42200dc2d6n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/5bec2468-843a-4196-ada8-7b42200dc2d6n%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/5676cd49db054de980fb31d2f3fda9b4%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 21227 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]                                           ` <5676cd49db054de980fb31d2f3fda9b4-NSENcxR/0n0@public.gmane.org>
@ 2021-11-23 14:08                                             ` denis.maier-NSENcxR/0n0
       [not found]                                               ` <d0c806be088b4d72ac9123b68330608b-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-23 14:08 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 11450 bytes --]

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 –citeproc -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 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 Nucleic
Acids: A Structure for Deoxyribose Nucleic Acid." *Nature* 171 (4356):
737--38. https://doi.org/10.1038/171737a0.
:::
:::
```

Denis


Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von denis.maier-NSENcxR/0n0@public.gmane.org
Gesendet: Dienstag, 23. November 2021 15:03
An: pandoc-discuss-/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’t have your bibfile, but maybe the command line arguments were a bit messed up :
pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t markdown-citations
Add a = between --csl and the style => --csl=sage-harvard.csl
Or, can also just omit the style since you have that in your markdown files anyway.

But, if you want the bibliography to appear like in your sublime example, you’ll need to use a filter for this.

Denis


Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 14:09
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss@googlegroups.com>>
Betreff: Re: Automaticly creating bibliography in md?


Sure.
I noticed that my yaml is missing. The same file, before this command, 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<mailto:denis...-NSENcxR/0n0@public.gmane.org> wrote:
Can you post a real example?

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 13:45
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
Betreff: Re: Automaticly creating bibliography in md?

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<mailto: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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 10:28
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
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<mailto: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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von denis...-NSENcxR/0n0@public.gmane.org<mailto:denis...-NSENcxR/0n0@public.gmane.org>
Gesendet: Dienstag, 23. November 2021 10:11
An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 10:08
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-/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/5bec2468-843a-4196-ada8-7b42200dc2d6n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/5bec2468-843a-4196-ada8-7b42200dc2d6n%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-/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/5676cd49db054de980fb31d2f3fda9b4%40unibe.ch<https://groups.google.com/d/msgid/pandoc-discuss/5676cd49db054de980fb31d2f3fda9b4%40unibe.ch?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/d0c806be088b4d72ac9123b68330608b%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 34397 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Automaticly creating bibliography in md?
       [not found]                                               ` <d0c806be088b4d72ac9123b68330608b-NSENcxR/0n0@public.gmane.org>
@ 2021-11-23 15:13                                                 ` Alan
       [not found]                                                   ` <7181c39d-c239-4a63-bbae-800bc4d8b523n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alan @ 2021-11-23 15:13 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 11690 bytes --]

Thank you for your patience Denis.

Finally, I have references in file, but... It messed my zettel links... :-( 
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 –citeproc -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 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 Nucleic
>
> 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *Im 
> 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’t have your bibfile, but maybe the command line 
> arguments were a bit messed up :
>
> pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t 
> markdown-citations
>
> Add a = between --csl and the style => --csl=sage-harvard.csl
>
> Or, can also just omit the style since you have that in your markdown 
> files anyway.
>
>  
>
> But, if you want the bibliography to appear like in your sublime example, 
> you’ll need to use a filter for this.
>
>  
>
> Denis
>
>  
>
>  
>
> *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 command, 
> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 
> <https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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 
> <https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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 
> <https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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 
> <https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit 
> 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>
> 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=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/7181c39d-c239-4a63-bbae-800bc4d8b523n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 28390 bytes --]

[-- Attachment #2: links.md --]
[-- Type: text/markdown, Size: 648 bytes --]

# Cultural trauma

> Cultural trauma occurs when members of a collectivity feel they have
> been subjected to a horrendous event that leaves indelible marks upon
> their group consciousness, marking their memories forever and changing
> their future identity in fundamental and irrevocable ways.

(Alexander, 2004, p. 1)

## Links

\[\[20200719191401\]\]

::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-alexanderTheoryCulturalTrauma2004 .csl-entry}
Alexander, J. C. (2004). Toward a Theory of Cultural Trauma. In J. C.
Alexander (Ed.), *Cultural trauma and collective identity* (pp. 1--30).
University of California Press.
:::
:::

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]                                                   ` <7181c39d-c239-4a63-bbae-800bc4d8b523n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-11-24  8:59                                                     ` denis.maier-NSENcxR/0n0
       [not found]                                                       ` <bb5a3b682ae748a09280ba75cb8b05c3-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-24  8:59 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 11663 bytes --]

You mean wiki-style links [[20200719191401]] being transformed to this: \[\[20200719191401\]\]?

I don’t have a solution for this.

Maybe someone knows how escaping of brackets can be suppressed when going from markdown to markdown ?

Denis

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 16:14
An: pandoc-discuss <pandoc-discuss-/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 links... :-(
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 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 –citeproc -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 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 Nucleic
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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im 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’t have your bibfile, but maybe the command line arguments were a bit messed up :
pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t markdown-citations
Add a = between --csl and the style => --csl=sage-harvard.csl
Or, can also just omit the style since you have that in your markdown files anyway.

But, if you want the bibliography to appear like in your sublime example, you’ll need to use a filter for this.

Denis


Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 command, 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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<https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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<https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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<https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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<https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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=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-/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/7181c39d-c239-4a63-bbae-800bc4d8b523n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/7181c39d-c239-4a63-bbae-800bc4d8b523n%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/bb5a3b682ae748a09280ba75cb8b05c3%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 38645 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]                                                       ` <bb5a3b682ae748a09280ba75cb8b05c3-NSENcxR/0n0@public.gmane.org>
@ 2021-11-24  9:01                                                         ` denis.maier-NSENcxR/0n0
       [not found]                                                           ` <efd32a748f6f4f00877746b83932f0bd-NSENcxR/0n0@public.gmane.org>
  2021-11-24 17:23                                                         ` John MacFarlane
  1 sibling, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-24  9:01 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 14257 bytes --]

You could probably devise a simple lua-filter for this. But maybe there’s an easier solution.

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von denis.maier-NSENcxR/0n0@public.gmane.org
Gesendet: Mittwoch, 24. November 2021 10:00
An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Betreff: AW: Automaticly creating bibliography in md?

You mean wiki-style links [[20200719191401]] being transformed to this: \[\[20200719191401\]\]?

I don’t have a solution for this.

Maybe someone knows how escaping of brackets can be suppressed when going from markdown to markdown ?

Denis

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 16:14
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss@googlegroups.com>>
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... :-(
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 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 –citeproc -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 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 Nucleic
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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von denis...-NSENcxR/0n0@public.gmane.org<mailto:denis...-NSENcxR/0n0@public.gmane.org>
Gesendet: Dienstag, 23. November 2021 15:03
An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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’t have your bibfile, but maybe the command line arguments were a bit messed up :
pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t markdown-citations
Add a = between --csl and the style => --csl=sage-harvard.csl
Or, can also just omit the style since you have that in your markdown files anyway.

But, if you want the bibliography to appear like in your sublime example, you’ll need to use a filter for this.

Denis


Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 14:09
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
Betreff: Re: Automaticly creating bibliography in md?


Sure.
I noticed that my yaml is missing. The same file, before this command, 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<mailto:denis...-NSENcxR/0n0@public.gmane.org> wrote:
Can you post a real example?

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 13:45
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
Betreff: Re: Automaticly creating bibliography in md?

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<mailto: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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 10:28
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
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<mailto: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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von denis...-NSENcxR/0n0@public.gmane.org<mailto:denis...-NSENcxR/0n0@public.gmane.org>
Gesendet: Dienstag, 23. November 2021 10:11
An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 10:08
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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=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-/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/7181c39d-c239-4a63-bbae-800bc4d8b523n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/7181c39d-c239-4a63-bbae-800bc4d8b523n%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-/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/bb5a3b682ae748a09280ba75cb8b05c3%40unibe.ch<https://groups.google.com/d/msgid/pandoc-discuss/bb5a3b682ae748a09280ba75cb8b05c3%40unibe.ch?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/efd32a748f6f4f00877746b83932f0bd%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 42560 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]                                                           ` <efd32a748f6f4f00877746b83932f0bd-NSENcxR/0n0@public.gmane.org>
@ 2021-11-24  9:05                                                             ` denis.maier-NSENcxR/0n0
       [not found]                                                               ` <b42ae61e3dcf498fb3a3e0ec82f1bb91-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-24  9:05 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 14846 bytes --]

See this discussion: https://groups.google.com/g/pandoc-discuss/c/GfcNA_zCdzc/m/uT3Ivc4aCgAJ

Von: Maier, Denis Christian (UB)
Gesendet: Mittwoch, 24. November 2021 10:01
An: 'pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org' <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: AW: Automaticly creating bibliography in md?

You could probably devise a simple lua-filter for this. But maybe there’s an easier solution.

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von denis.maier-NSENcxR/0n0@public.gmane.org<mailto:denis.maier-NSENcxR/0n0@public.gmane.org>
Gesendet: Mittwoch, 24. November 2021 10:00
An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: AW: Automaticly creating bibliography in md?

You mean wiki-style links [[20200719191401]] being transformed to this: \[\[20200719191401\]\]?

I don’t have a solution for this.

Maybe someone knows how escaping of brackets can be suppressed when going from markdown to markdown ?

Denis

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 16:14
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss@googlegroups.com>>
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... :-(
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 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 –citeproc -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 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 Nucleic
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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von denis...-NSENcxR/0n0@public.gmane.org<mailto:denis...-NSENcxR/0n0@public.gmane.org>
Gesendet: Dienstag, 23. November 2021 15:03
An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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’t have your bibfile, but maybe the command line arguments were a bit messed up :
pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t markdown-citations
Add a = between --csl and the style => --csl=sage-harvard.csl
Or, can also just omit the style since you have that in your markdown files anyway.

But, if you want the bibliography to appear like in your sublime example, you’ll need to use a filter for this.

Denis


Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 14:09
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
Betreff: Re: Automaticly creating bibliography in md?


Sure.
I noticed that my yaml is missing. The same file, before this command, 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<mailto:denis...-NSENcxR/0n0@public.gmane.org> wrote:
Can you post a real example?

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 13:45
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
Betreff: Re: Automaticly creating bibliography in md?

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<mailto: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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 10:28
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
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<mailto: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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von denis...-NSENcxR/0n0@public.gmane.org<mailto:denis...-NSENcxR/0n0@public.gmane.org>
Gesendet: Dienstag, 23. November 2021 10:11
An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> Im Auftrag von Alan
Gesendet: Dienstag, 23. November 2021 10:08
An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-...@googlegroups.com>>
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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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=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-/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/7181c39d-c239-4a63-bbae-800bc4d8b523n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/7181c39d-c239-4a63-bbae-800bc4d8b523n%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-/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/bb5a3b682ae748a09280ba75cb8b05c3%40unibe.ch<https://groups.google.com/d/msgid/pandoc-discuss/bb5a3b682ae748a09280ba75cb8b05c3%40unibe.ch?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/b42ae61e3dcf498fb3a3e0ec82f1bb91%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 43746 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Automaticly creating bibliography in md?
       [not found]                                                               ` <b42ae61e3dcf498fb3a3e0ec82f1bb91-NSENcxR/0n0@public.gmane.org>
@ 2021-11-24 16:09                                                                 ` Alan
       [not found]                                                                   ` <14327db1-9d76-448b-a4ae-e11a74cccc37n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alan @ 2021-11-24 16:09 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 14618 bytes --]

Thank you! Obviously, I will need lua filter... Which I have no idea how to 
make :-)  Well I'll try search and replace in all files from 
Sublime/VSCodium. 


On Wednesday, November 24, 2021 at 10:06:03 AM UTC+1 denis...-NSENcxR/0n0@public.gmane.org 
wrote:

> See this discussion: 
> https://groups.google.com/g/pandoc-discuss/c/GfcNA_zCdzc/m/uT3Ivc4aCgAJ
>
>  
>
> *Von:* Maier, Denis Christian (UB) 
> *Gesendet:* Mittwoch, 24. November 2021 10:01
> *An:* 'pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org' <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> *Betreff:* AW: Automaticly creating bibliography in md?
>
>  
>
> You could probably devise a simple lua-filter for this. But maybe there’s 
> an easier solution.
>
>  
>
> *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *Im 
> Auftrag von *denis...-NSENcxR/0n0@public.gmane.org
> *Gesendet:* Mittwoch, 24. November 2021 10:00
> *An:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> *Betreff:* AW: Automaticly creating bibliography in md?
>
>  
>
> You mean wiki-style links [[20200719191401]] being transformed to this: 
> \[\[20200719191401\]\]?
>
>  
>
> I don’t have a solution for this.
>
>  
>
> Maybe someone knows how escaping of brackets can be suppressed when going 
> from markdown to markdown ?
>
>  
>
> Denis
>
>  
>
> *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 links... 
> :-( 
>
> 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 –citeproc -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 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 Nucleic
>
> 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *Im 
> 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’t have your bibfile, but maybe the command line 
> arguments were a bit messed up :
>
> pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t 
> markdown-citations
>
> Add a = between --csl and the style => --csl=sage-harvard.csl
>
> Or, can also just omit the style since you have that in your markdown 
> files anyway.
>
>  
>
> But, if you want the bibliography to appear like in your sublime example, 
> you’ll need to use a filter for this.
>
>  
>
> Denis
>
>  
>
>  
>
> *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 command, 
> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *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 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 
> <https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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 
> <https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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 
> <https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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 
> <https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit 
> 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>
> 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit 
> 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/bb5a3b682ae748a09280ba75cb8b05c3%40unibe.ch 
> <https://groups.google.com/d/msgid/pandoc-discuss/bb5a3b682ae748a09280ba75cb8b05c3%40unibe.ch?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/14327db1-9d76-448b-a4ae-e11a74cccc37n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 34548 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: Automaticly creating bibliography in md?
       [not found]                                                                   ` <14327db1-9d76-448b-a4ae-e11a74cccc37n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-11-24 16:23                                                                     ` denis.maier-NSENcxR/0n0
  0 siblings, 0 replies; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-24 16:23 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 14439 bytes --]

Try this:

```
function Str (el)
                if  string.match(el.text, "%[%[%d+%]%]") then
                               return {
                               pandoc.RawInline('markdown', el.text),
                               }
                end
end
```

Save as preserve-wikilinks.lua

pandoc test.md -o test-output.lua -L preserve-wikilinks-lua

Denis

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Alan
Gesendet: Mittwoch, 24. November 2021 17:10
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Re: Automaticly creating bibliography in md?

Thank you! Obviously, I will need lua filter... Which I have no idea how to make :-)  Well I'll try search and replace in all files from Sublime/VSCodium.


On Wednesday, November 24, 2021 at 10:06:03 AM UTC+1 denis...-NSENcxR/0n0@public.gmane.org<mailto:denis...-NSENcxR/0n0@public.gmane.org> wrote:
See this discussion: https://groups.google.com/g/pandoc-discuss/c/GfcNA_zCdzc/m/uT3Ivc4aCgAJ

Von: Maier, Denis Christian (UB)
Gesendet: Mittwoch, 24. November 2021 10:01
An: 'pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org' <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: AW: Automaticly creating bibliography in md?

You could probably devise a simple lua-filter for this. But maybe there’s an easier solution.

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von denis...-NSENcxR/0n0@public.gmane.org
Gesendet: Mittwoch, 24. November 2021 10:00
An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Betreff: AW: Automaticly creating bibliography in md?

You mean wiki-style links [[20200719191401]] being transformed to this: \[\[20200719191401\]\]?

I don’t have a solution for this.

Maybe someone knows how escaping of brackets can be suppressed when going from markdown to markdown ?

Denis

Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 links... :-(
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 –citeproc -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 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 Nucleic
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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im 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’t have your bibfile, but maybe the command line arguments were a bit messed up :
pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t markdown-citations
Add a = between --csl and the style => --csl=sage-harvard.csl
Or, can also just omit the style since you have that in your markdown files anyway.

But, if you want the bibliography to appear like in your sublime example, you’ll need to use a filter for this.

Denis


Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 command, 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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<https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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<https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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<https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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<https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/bb5a3b682ae748a09280ba75cb8b05c3%40unibe.ch<https://groups.google.com/d/msgid/pandoc-discuss/bb5a3b682ae748a09280ba75cb8b05c3%40unibe.ch?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-/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/14327db1-9d76-448b-a4ae-e11a74cccc37n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/14327db1-9d76-448b-a4ae-e11a74cccc37n%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/2a77e50cb2a045b8963926019bc42c64%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 47555 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: AW: Automaticly creating bibliography in md?
       [not found]                                                       ` <bb5a3b682ae748a09280ba75cb8b05c3-NSENcxR/0n0@public.gmane.org>
  2021-11-24  9:01                                                         ` denis.maier-NSENcxR/0n0
@ 2021-11-24 17:23                                                         ` John MacFarlane
       [not found]                                                           ` <m21r35v55t.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
  1 sibling, 1 reply; 20+ messages in thread
From: John MacFarlane @ 2021-11-24 17:23 UTC (permalink / raw)
  To: denis.maier-NSENcxR/0n0, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

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

> You mean wiki-style links [[20200719191401]] being transformed to this: \[\[20200719191401\]\]?
>
> I don’t have a solution for this.
>
> Maybe someone knows how escaping of brackets can be suppressed when going from markdown to markdown ?
>
> Denis
>
> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Alan
> Gesendet: Dienstag, 23. November 2021 16:14
> An: pandoc-discuss <pandoc-discuss-/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 links... :-(
> 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 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 –citeproc -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 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 Nucleic
> 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im 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’t have your bibfile, but maybe the command line arguments were a bit messed up :
> pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t markdown-citations
> Add a = between --csl and the style => --csl=sage-harvard.csl
> Or, can also just omit the style since you have that in your markdown files anyway.
>
> But, if you want the bibliography to appear like in your sublime example, you’ll need to use a filter for this.
>
> Denis
>
>
> Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 command, 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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<https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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<https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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<https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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<https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> 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=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-/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/7181c39d-c239-4a63-bbae-800bc4d8b523n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/7181c39d-c239-4a63-bbae-800bc4d8b523n%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/bb5a3b682ae748a09280ba75cb8b05c3%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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m21r35v55t.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net.


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: AW: Automaticly creating bibliography in md?
       [not found]                                                           ` <m21r35v55t.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
@ 2021-11-25  8:49                                                             ` Alan
       [not found]                                                               ` <224d053e-b400-4ca7-87a0-4086ce0aa8efn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Alan @ 2021-11-25  8:49 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 13559 bytes --]

Denis, thank you! It's working in a way. Do it's job, but escaped my 
citations :-) But, I'll take a closer look at lua filters during the 
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.
>
> <denis...-NSENcxR/0n0@public.gmane.org> writes:
>
> > You mean wiki-style links [[20200719191401]] being transformed to this: 
> \[\[20200719191401\]\]?
> >
> > I don’t have a solution for this.
> >
> > Maybe someone knows how escaping of brackets can be suppressed when 
> going from markdown to markdown ?
> >
> > Denis
> >
> > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 links... 
> :-(
> > 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 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 –citeproc -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 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 Nucleic
> > 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im 
> 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’t have your bibfile, but maybe the command 
> line arguments were a bit messed up :
> > pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t 
> markdown-citations
> > Add a = between --csl and the style => --csl=sage-harvard.csl
> > Or, can also just omit the style since you have that in your markdown 
> files anyway.
> >
> > But, if you want the bibliography to appear like in your sublime 
> example, you’ll need to use a filter for this.
> >
> > Denis
> >
> >
> > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 command, 
> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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
> <
> https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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
> <
> https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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
> <
> https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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
> <
> https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit 
> 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:
> pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> > To view this discussion on the web visit 
> 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > 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 "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/224d053e-b400-4ca7-87a0-4086ce0aa8efn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 23991 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* AW: AW: Automaticly creating bibliography in md?
       [not found]                                                               ` <224d053e-b400-4ca7-87a0-4086ce0aa8efn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-11-25  9:03                                                                 ` denis.maier-NSENcxR/0n0
       [not found]                                                                   ` <053b6935558c434a9ae35c71b76a2010-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-11-25  9:03 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 13846 bytes --]

Hmm, there are certainly ways to make this more robust. But, given that therer will be a native way to deal with wiki-style links I’d say let’s just wait for that.

Denis

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Alan
Gesendet: Donnerstag, 25. November 2021 09:50
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Re: AW: Automaticly creating bibliography in md?

Denis, thank you! It's working in a way. Do it's job, but escaped my citations :-) But, I'll take a closer look at lua filters during the 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.

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

> You mean wiki-style links [[20200719191401]] being transformed to this: \[\[20200719191401\]\]?
>
> I don’t have a solution for this.
>
> Maybe someone knows how escaping of brackets can be suppressed when going from markdown to markdown ?
>
> Denis
>
> Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 links... :-(
> 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 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 –citeproc -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 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 Nucleic
> 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im 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’t have your bibfile, but maybe the command line arguments were a bit messed up :
> pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t markdown-citations
> Add a = between --csl and the style => --csl=sage-harvard.csl
> Or, can also just omit the style since you have that in your markdown files anyway.
>
> But, if you want the bibliography to appear like in your sublime example, you’ll need to use a filter for this.
>
> Denis
>
>
> Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 command, 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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<https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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<https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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<https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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<https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discus...@googlegroups.com>.
> To view this discussion on the web visit 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> 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 "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, 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/224d053e-b400-4ca7-87a0-4086ce0aa8efn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/224d053e-b400-4ca7-87a0-4086ce0aa8efn%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/053b6935558c434a9ae35c71b76a2010%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 22695 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: AW: Automaticly creating bibliography in md?
       [not found]                                                                   ` <053b6935558c434a9ae35c71b76a2010-NSENcxR/0n0@public.gmane.org>
@ 2021-11-25 18:03                                                                     ` Alan
  0 siblings, 0 replies; 20+ messages in thread
From: Alan @ 2021-11-25 18:03 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 15150 bytes --]

Yes, it's the best way. Thank you for answers, with your help i'm filing 
that I'm very close to solution. 

On Thursday, November 25, 2021 at 10:03:21 AM UTC+1 denis...-NSENcxR/0n0@public.gmane.org wrote:

> Hmm, there are certainly ways to make this more robust. But, given that 
> therer will be a native way to deal with wiki-style links I’d say let’s 
> just wait for that.
>
>  
>
> Denis
>
>  
>
> *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *Im 
> Auftrag von *Alan
> *Gesendet:* Donnerstag, 25. November 2021 09:50
> *An:* pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> *Betreff:* Re: AW: Automaticly creating bibliography in md?
>
>  
>
> Denis, thank you! It's working in a way. Do it's job, but escaped my 
> citations :-) But, I'll take a closer look at lua filters during the 
> 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. 
>
> <denis...-NSENcxR/0n0@public.gmane.org> writes: 
>
> > You mean wiki-style links [[20200719191401]] being transformed to this: 
> \[\[20200719191401\]\]? 
> > 
> > I don’t have a solution for this. 
> > 
> > Maybe someone knows how escaping of brackets can be suppressed when 
> going from markdown to markdown ? 
> > 
> > Denis 
> > 
> > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 links... 
> :-( 
> > 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 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 –citeproc -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 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 Nucleic 
> > 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im 
> 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’t have your bibfile, but maybe the command 
> line arguments were a bit messed up : 
> > pandoc inputfile.md -o inputfile.md --csl sage-harvard.csl --citeproc -t 
> markdown-citations 
> > Add a = between --csl and the style => --csl=sage-harvard.csl 
> > Or, can also just omit the style since you have that in your markdown 
> files anyway. 
> > 
> > But, if you want the bibliography to appear like in your sublime 
> example, you’ll need to use a filter for this. 
> > 
> > Denis 
> > 
> > 
> > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 command, 
> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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 <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 <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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 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
> <
> https://groups.google.com/d/msgid/pandoc-discuss/ac73582b-8acc-469a-94ff-38160275d4a1n%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-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
> <
> https://groups.google.com/d/msgid/pandoc-discuss/504e0de4e201441ea14525b281bba30c%40unibe.ch?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-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
> <
> https://groups.google.com/d/msgid/pandoc-discuss/ab3295e2-0e57-459f-a626-84b632f02ef6n%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-discus...-/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
> <
> https://groups.google.com/d/msgid/pandoc-discuss/a24adbdb-f2ef-4bbc-8199-5aab0bee653cn%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 
> > To view this discussion on the web visit 
> 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 
> > 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=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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:
> pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. 
> > To view this discussion on the web visit 
> 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=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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 
> > 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 
> "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/224d053e-b400-4ca7-87a0-4086ce0aa8efn%40googlegroups.com 
> <https://groups.google.com/d/msgid/pandoc-discuss/224d053e-b400-4ca7-87a0-4086ce0aa8efn%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/a705747e-d57b-47e9-8caf-810c96faf801n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 28318 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2021-11-25 18:03 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AQHX4EmdUkyuGVJXmkeJzQdUDcZ8NawQ0w0wgAAAejD///PhAIAAESEggAAl94CAABGvUP//9QOAgAAemMCAAAJK0IAAAgGAgAE5aNCAAAF0kIAAAWpQ>
     [not found] ` <AQHX4EmdUkyuGVJXmkeJzQdUDcZ8NawQ0w0wgAAAejD///PhAIAAESEggAAl94CAABGvUP//9QOAgAAemMCAAAJK0A==>
     [not found]   ` <AQHX4EmdUkyuGVJXmkeJzQdUDcZ8NawQ0w0wgAAAejD///PhAIAAESEggAAl94CAABGvUA==>
     [not found]     ` <AQHX4EmdUkyuGVJXmkeJzQdUDcZ8NawQ0w0wgAAAejD///PhAIAAESEg>
     [not found]       ` <AQHX4EmdUkyuGVJXmkeJzQdUDcZ8NawQ0w0wgAAAejA=>
2021-11-23  9:07         ` Automaticly creating bibliography in md? Alan
     [not found]           ` <ac73582b-8acc-469a-94ff-38160275d4a1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-23  9:10             ` AW: " denis.maier-NSENcxR/0n0
     [not found]               ` <504e0de4e201441ea14525b281bba30c-NSENcxR/0n0@public.gmane.org>
2021-11-23  9:11                 ` denis.maier-NSENcxR/0n0
     [not found]                   ` <77539b7686aa450cb87fb3ec489410e0-NSENcxR/0n0@public.gmane.org>
2021-11-23  9:27                     ` Alan
     [not found]                       ` <ab3295e2-0e57-459f-a626-84b632f02ef6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-23  9:35                         ` AW: " denis.maier-NSENcxR/0n0
     [not found]                           ` <e7e3e37f41254e9687d781f28454054d-NSENcxR/0n0@public.gmane.org>
2021-11-23 12:44                             ` Alan
     [not found]                               ` <a24adbdb-f2ef-4bbc-8199-5aab0bee653cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-23 12:48                                 ` AW: " denis.maier-NSENcxR/0n0
     [not found]                                   ` <ddf8ad0d1ac1492b8f0298fbc8972404-NSENcxR/0n0@public.gmane.org>
2021-11-23 13:08                                     ` Alan
     [not found]                                       ` <5bec2468-843a-4196-ada8-7b42200dc2d6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-23 14:03                                         ` AW: " denis.maier-NSENcxR/0n0
     [not found]                                           ` <5676cd49db054de980fb31d2f3fda9b4-NSENcxR/0n0@public.gmane.org>
2021-11-23 14:08                                             ` denis.maier-NSENcxR/0n0
     [not found]                                               ` <d0c806be088b4d72ac9123b68330608b-NSENcxR/0n0@public.gmane.org>
2021-11-23 15:13                                                 ` Alan
     [not found]                                                   ` <7181c39d-c239-4a63-bbae-800bc4d8b523n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-24  8:59                                                     ` AW: " denis.maier-NSENcxR/0n0
     [not found]                                                       ` <bb5a3b682ae748a09280ba75cb8b05c3-NSENcxR/0n0@public.gmane.org>
2021-11-24  9:01                                                         ` denis.maier-NSENcxR/0n0
     [not found]                                                           ` <efd32a748f6f4f00877746b83932f0bd-NSENcxR/0n0@public.gmane.org>
2021-11-24  9:05                                                             ` denis.maier-NSENcxR/0n0
     [not found]                                                               ` <b42ae61e3dcf498fb3a3e0ec82f1bb91-NSENcxR/0n0@public.gmane.org>
2021-11-24 16:09                                                                 ` Alan
     [not found]                                                                   ` <14327db1-9d76-448b-a4ae-e11a74cccc37n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-24 16:23                                                                     ` AW: " denis.maier-NSENcxR/0n0
2021-11-24 17:23                                                         ` John MacFarlane
     [not found]                                                           ` <m21r35v55t.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2021-11-25  8:49                                                             ` Alan
     [not found]                                                               ` <224d053e-b400-4ca7-87a0-4086ce0aa8efn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-25  9:03                                                                 ` AW: " denis.maier-NSENcxR/0n0
     [not found]                                                                   ` <053b6935558c434a9ae35c71b76a2010-NSENcxR/0n0@public.gmane.org>
2021-11-25 18:03                                                                     ` Alan

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).