* Is it possible to convert markdown to markdown, but expand citations using pandoc-citeproc?
@ 2015-05-11 0:18 Jonathan Reeve
[not found] ` <acdb6a15-ff68-45f1-a01c-4facc12a6b91-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Reeve @ 2015-05-11 0:18 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 948 bytes --]
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?
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/acdb6a15-ff68-45f1-a01c-4facc12a6b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1373 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is it possible to convert markdown to markdown, but expand citations using pandoc-citeproc?
[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>
0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2015-05-11 3:22 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
+++ 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"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is it possible to convert markdown to markdown, but expand citations using pandoc-citeproc?
[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>
0 siblings, 1 reply; 5+ messages in thread
From: Arjun Krishnan @ 2020-03-13 16:36 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1581 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 2178 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is it possible to convert markdown to markdown, but expand citations using pandoc-citeproc?
[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>
0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2020-03-13 21:28 UTC (permalink / raw)
To: Arjun Krishnan, pandoc-discuss
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is it possible to convert markdown to markdown, but expand citations using pandoc-citeproc?
[not found] ` <yh480ktv2sosg9.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2020-03-14 1:01 ` Arjun Krishnan
0 siblings, 0 replies; 5+ messages in thread
From: Arjun Krishnan @ 2020-03-14 1:01 UTC (permalink / raw)
To: pandoc-discuss
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-03-14 1:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-11 0:18 Is it possible to convert markdown to markdown, but expand citations using pandoc-citeproc? 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 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).