From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Arjun Krishnan <arjunkc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
pandoc-discuss
<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Is it possible to convert markdown to markdown, but expand citations using pandoc-citeproc?
Date: Fri, 13 Mar 2020 14:28:22 -0700 [thread overview]
Message-ID: <yh480ktv2sosg9.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <a67b666b-fb17-432e-893a-ef51a67e0797-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
You're going -f markdown+citations -t markdown-citations
So, you're converting from markdown with the citation
syntax [@foo] enabled, to markdown without the citation
syntax. Pandoc handles this by printing the rendered
citation, rather than the citation code. If you had
-t markdown+citations (or just -t markdown) you'd get
something like [@foo] instead.
I don't know if this addresses your question.
If you don't want the surrounding fenced div, you
can use -t markdown-citations-fenced_divs-native_divs-raw_html
and then you'll get
Veršik, A. M., and S. V. Kerov. 1977. "Asymptotic Behavior of the
Plancherel Measure of the Symmetric Group and the Limit Form of Young
Tableaux." *Dokl. Akad. Nauk SSSR* 233 (6): 1024--7.
Arjun Krishnan <arjunkc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Could you explain why this works please? Also
> my citations appear to be formatted as follows when I do this:
>
> ::: {#ref-MR0480398}
> Veršik, A. M., and S. V. Kerov. 1977. "Asymptotic Behavior of the
> Plancherel Measure of the Symmetric Group and the Limit Form of Young
> Tableaux." *Dokl. Akad. Nauk SSSR* 233 (6): 1024--7.
> :::
>
> My pandoc command is
>
> pandoc --bibliography master-bibtex.bib --filter pandoc-citeproc --metadata
> link-citations=true -t markdown+raw_tex-citations research_statement.tex -s
> -o research_statement-with-refs-1.md
>
> On Sunday, May 10, 2015 at 11:23:09 PM UTC-4, John MacFarlane wrote:
>>
>> +++ Jonathan Reeve [May 10 15 17:18 ]:
>> >I've been trying to convert a markdown file to another markdown file, but
>> >expand citations using pandoc-citeproc. I tried the command:
>> >
>> >pandoc -o rmwm-chapter-compiled2.md rmwm-chapter.md --filter
>> pandoc-citeproc
>> >
>> >But citations are still there in the uncompiled format, i.e. [@Milesi1972
>> >3]. Is there a way to get the filter to work when converting markdown to
>> >markdown?
>>
>> Sure. Use
>>
>> -t markdown-citations
>>
>> Here - = "minus"
>>
>>
>
> --
> 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/a67b666b-fb17-432e-893a-ef51a67e0797%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/yh480ktv2sosg9.fsf%40johnmacfarlane.net.
next prev parent reply other threads:[~2020-03-13 21:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-11 0:18 Jonathan Reeve
[not found] ` <acdb6a15-ff68-45f1-a01c-4facc12a6b91-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-05-11 3:22 ` John MacFarlane
[not found] ` <20150511032252.GA19916-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>
2020-03-13 16:36 ` Arjun Krishnan
[not found] ` <a67b666b-fb17-432e-893a-ef51a67e0797-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-03-13 21:28 ` John MacFarlane [this message]
[not found] ` <yh480ktv2sosg9.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-03-14 1:01 ` Arjun Krishnan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yh480ktv2sosg9.fsf@johnmacfarlane.net \
--to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
--cc=arjunkc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).