public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Converting Markdown to (Multi)Markdown but citations are getting expanded twice?
@ 2020-05-05 11:40 Balaji
       [not found] ` <5041cd75-7c55-41ec-a8c6-ac28580a39ef-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Balaji @ 2020-05-05 11:40 UTC (permalink / raw)
  To: pandoc-discuss


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

Hello,

I'm very new to using tools such as pandoc so it's very possible that this 
is a case of mis-reading TFM, but hours of searching thru Stackoverflow and 
other community posts have left me at a dead-end so I hope someone can help 
me out.

I'm trying to convert Markdown files that have BiBTeX style citations into 
Markdown again but expand the citation as a footnote. I've come close using 
the Chicago Manual of Style 17th edition CSL but am finding that the 
citation gets expanded twice. A minimal example below:

Original Markdown file - cite.md:
Here is one reference citing the Reactome Project. [^1]

[^1]: @deustachio_2003


BiB file - cite.bib:
@article{deustachio_2003, title={Pentose phosphate pathway}, volume={5}, DOI
={10.3180/react_1859.1}, journal={Reactome - a curated knowledgebase of 
biological pathways}, author={Deustachio, P}, year={2003}, month={Mar}}

Pandoc command:
pandoc cite.md --filter pandoc-citeproc -t markdown_mmd -o cite-new.md --
bibliography=cite.bib --csl=chicago-full.csl

Output file - cite-new.md:
Here is one reference citing the Reactome Project.[^1]

<div id="refs" class="references hanging-indent" markdown="1">

<div id="ref-deustachio_2003" markdown="1">

Deustachio, P. “Pentose Phosphate Pathway.” *Reactome - a Curated
Knowledgebase of Biological Pathways* 5 (March 2003).
<https://doi.org/10.3180/react_1859.1>.

</div>

</div>

[^1]: P Deustachio, “Pentose Phosphate Pathway,” *Reactome - a Curated
    Knowledgebase of Biological Pathways* 5 (March 2003),
    <https://doi.org/10.3180/react_1859.1>

I have not been able to figure out how to prevent the additional citation 
in the <div></div> from appearing in the output Markdown file and would 
appreciate any help in this regard!

FWIW, this is using pandoc 2.9.2.1 on Windows.

-- 
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/5041cd75-7c55-41ec-a8c6-ac28580a39ef%40googlegroups.com.

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

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

end of thread, other threads:[~2020-05-06  1:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 11:40 Converting Markdown to (Multi)Markdown but citations are getting expanded twice? Balaji
     [not found] ` <5041cd75-7c55-41ec-a8c6-ac28580a39ef-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-05-05 14:09   ` Gu Lu
     [not found]     ` <261c27ed-275a-4b07-9eab-d6b584bec482-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-05-06  1:11       ` Balaji Dutt

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