From: Arjun Krishnan <arjunkc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: 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 18:01:32 -0700 (PDT) [thread overview]
Message-ID: <1cc219e1-b3d5-433b-a28b-af0105af2cd8@googlegroups.com> (raw)
In-Reply-To: <yh480ktv2sosg9.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 3377 bytes --]
Thanks! After reading a little bit, it seems like fenced divs are a pandoc
markdown specific thing, and it won't work on our
organization's webserver, which uses kramdown. So I'll use your
recommendation, thanks!
On Friday, March 13, 2020 at 5:28:40 PM UTC-4, John MacFarlane wrote:
>
>
> 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 <arj...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
> > 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/1cc219e1-b3d5-433b-a28b-af0105af2cd8%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 5019 bytes --]
prev parent reply other threads:[~2020-03-14 1:01 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
[not found] ` <yh480ktv2sosg9.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-03-14 1:01 ` Arjun Krishnan [this message]
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=1cc219e1-b3d5-433b-a28b-af0105af2cd8@googlegroups.com \
--to=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).