From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24607 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Arjun Krishnan Newsgroups: gmane.text.pandoc 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) Message-ID: <1cc219e1-b3d5-433b-a28b-af0105af2cd8@googlegroups.com> References: <20150511032252.GA19916@localhost.hsd1.ca.comcast.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1090_843787629.1584147692834" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="68848"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDRLNH5USMNRB3WZWDZQKGQEALVCYCA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Mar 14 02:01:37 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f55.google.com ([209.85.210.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCvBJ-000HnN-HZ for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 14 Mar 2020 02:01:37 +0100 Original-Received: by mail-ot1-f55.google.com with SMTP id k14sf3305305otb.15 for ; Fri, 13 Mar 2020 18:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=AumX3qNN6RKld6trLPUoxeZkgysOiAhKSrIbSz7/aVo=; b=g6O/pGvAcnskoy1dP/Yoj0oUZGR0CTjjUrbMAYM4QanxhbYJduW3p1telBJzBDxc8m wUxYmbPRfPm7qj/fn/2XTfIwmF7xXcIWZiNIWlG7ao1l59gzudJneCJGZPKkiM/5sZMw TuGpBUi8uHbJkFlLonVc6gyiYzpEyMgxUY0ZP6g60UEdjGmxa1CJbvK+oO4R5+q7JkK/ 4D+XFJhfUlYQffqTg6YU8KdhhtlqNpzji61ymKcLnzmkF8WzY1WO/Jz586ea8E6jFZzb i4rAEYyKCGLqa3Rk7cscNf5xWaMlU6Uu1fawLCdDw2+Z0o/v14I/NAjjkjSxNIozcydC qyUg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=AumX3qNN6RKld6trLPUoxeZkgysOiAhKSrIbSz7/aVo=; b=tKq5j19G7rCpwgKMa3jq0b821HY4nS0+pMqkx2SG1zO3rM5wzGLagY0lu+DvgTsQ/O Q2CAZP590VZogrnP2Ao6Czso/9uqbIpC7EhXlR8vx72w/KPuiyLfFK9QyQWlPQZPZatR ioEetpPFGrMY0fHqShLJ81SnXxKEnPcbyeDTM0z2AUiI3SGNbP0FULcZFdKiShctU4cF AM+53QpyU6r2r+QkdyRwURtVwEonrIE7OEIV1Y3eva5husEuW+2zID9OEraDBdbgN3GM A1QkI6MLoEpvadAbAjJnffBZ12btv158USLfiXlwZ6039lKs4nStVbdff0F3ug8Me8gj OX8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=AumX3qNN6RKld6trLPUoxeZkgysOiAhKSrIbSz7/aVo=; b=lzwkIAPnjfb6hOHMODm5rrieqyIlwU2jsRgme+o8/mFhDOmGmpZhCNV56nzYOlKWFt GWlnLhn+oLRELnniAGcIIgV7x6uQI4Axz/u7oGtnhvuGNEMWLlqnQlIvL97yKyUdwjXu 61tocCMfrHGGX2a9FqFJlNgCeMjoGh0M8KZgYPFGC6SLVQdGRArDWUv65+o/Fdw1QLc3 9ASUeycdIj8ocgJUeRSpSyPFGZYcZ6qVUUV4LMaCbFFrRlGDI70x7p4Liyu4DOQnoa02 K6GO9WrGat2fqfjroCVjph5I1WzMEy0wBOV0QtZFp3m6bMkeFoWbePaU3pWcYJ9KpyZ2 B7nw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANhLgQ1s3foxb7ZiIvzwXL2zl0CkJ85KkBqQryA5IqiQaxeR6kkD6jyO wI3xDVZOXpwQy1+GcbdhhMs= X-Google-Smtp-Source: ADFU+vsqyyHpyzzSswK5BavfbkULk42ksQlFHrN5GYnG5qWvQLpRs3rD78rypAr/q8NRBT4p8tEGmw== X-Received: by 2002:aca:2801:: with SMTP id 1mr9486909oix.168.1584147696519; Fri, 13 Mar 2020 18:01:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:69cb:: with SMTP id v11ls3657828oto.5.gmail; Fri, 13 Mar 2020 18:01:33 -0700 (PDT) X-Received: by 2002:a05:6830:134e:: with SMTP id r14mr8988441otq.132.1584147693574; Fri, 13 Mar 2020 18:01:33 -0700 (PDT) In-Reply-To: X-Original-Sender: arjunkc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:24607 Archived-At: ------=_Part_1090_843787629.1584147692834 Content-Type: multipart/alternative; boundary="----=_Part_1091_418731260.1584147692834" ------=_Part_1091_418731260.1584147692834 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks! After reading a little bit, it seems like fenced divs are a pandoc= =20 markdown specific thing, and it won't work on our=20 organization's webserver, which uses kramdown. So I'll use your=20 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=20 > > So, you're converting from markdown with the citation=20 > syntax [@foo] enabled, to markdown without the citation=20 > syntax. Pandoc handles this by printing the rendered=20 > citation, rather than the citation code. If you had=20 > -t markdown+citations (or just -t markdown) you'd get=20 > something like [@foo] instead.=20 > > I don't know if this addresses your question.=20 > > If you don't want the surrounding fenced div, you=20 > can use -t markdown-citations-fenced_divs-native_divs-raw_html=20 > and then you'll get=20 > > Ver=C5=A1ik, A. M., and S. V. Kerov. 1977. "Asymptotic Behavior of the=20 > Plancherel Measure of the Symmetric Group and the Limit Form of Young=20 > Tableaux." *Dokl. Akad. Nauk SSSR* 233 (6): 1024--7.=20 > > > Arjun Krishnan > writes:=20 > > > Could you explain why this works please? Also=20 > > my citations appear to be formatted as follows when I do this:=20 > >=20 > > ::: {#ref-MR0480398}=20 > > Ver=C5=A1ik, A. M., and S. V. Kerov. 1977. "Asymptotic Behavior of the= =20 > > Plancherel Measure of the Symmetric Group and the Limit Form of Young= =20 > > Tableaux." *Dokl. Akad. Nauk SSSR* 233 (6): 1024--7.=20 > > :::=20 > >=20 > > My pandoc command is=20 > >=20 > > pandoc --bibliography master-bibtex.bib --filter pandoc-citeproc=20 > --metadata=20 > > link-citations=3Dtrue -t markdown+raw_tex-citations research_statement.= tex=20 > -s=20 > > -o research_statement-with-refs-1.md=20 > >=20 > > On Sunday, May 10, 2015 at 11:23:09 PM UTC-4, John MacFarlane wrote:=20 > >>=20 > >> +++ Jonathan Reeve [May 10 15 17:18 ]:=20 > >> >I've been trying to convert a markdown file to another markdown file,= =20 > but=20 > >> >expand citations using pandoc-citeproc. I tried the command:=20 > >> >=20 > >> >pandoc -o rmwm-chapter-compiled2.md rmwm-chapter.md --filter=20 > >> pandoc-citeproc=20 > >> >=20 > >> >But citations are still there in the uncompiled format, i.e.=20 > [@Milesi1972=20 > >> >3]. Is there a way to get the filter to work when converting markdown= =20 > to=20 > >> >markdown?=20 > >>=20 > >> Sure. Use=20 > >>=20 > >> -t markdown-citations=20 > >>=20 > >> Here - =3D "minus"=20 > >>=20 > >>=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group.=20 > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/a67b666b-fb17-432e-893a-= ef51a67e0797%40googlegroups.com.=20 > > --=20 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 e= mail 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. ------=_Part_1091_418731260.1584147692834 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks! After reading a little bit, it seems like fen= ced 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. =C2=A0Pandoc handles this by printing the rendered
citation, rather than the citation code. =C2=A0If 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=C5=A1ik, 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> writes:

> Could you explain why this works please? Also
> my citations appear to be formatted as follows when I do this:
>
> ::: {#ref-MR0480398}
> Ver=C5=A1ik, A. M., and S. V. Kerov. 1977. "Asymptotic Behavi= or of the
> Plancherel Measure of the Symmetric Group and the Limit Form of Yo= ung
> Tableaux." *Dokl. Akad. Nauk SSSR* 233 (6): 1024--7.
> :::
>
> My pandoc command is
>
> pandoc --bibliography master-bibtex.bib --filter pandoc-citeproc -= -metadata=20
> link-citations=3Dtrue -t markdown+raw_tex-citations research_state= ment.tex -s=20
> -o research_statement-with-refs-1.md
>
> On Sunday, May 10, 2015 at 11:23:09 PM UTC-4, John MacFarlane wrot= e:
>>
>> +++ Jonathan Reeve [May 10 15 17:18 ]:=20
>> >I've been trying to convert a markdown file to another= markdown file, but=20
>> >expand citations using pandoc-citeproc. I tried the comman= d:=20
>> >=20
>> >pandoc -o rmwm-chapter-compiled2.md rmwm-chapter.md --filt= er=20
>> pandoc-citeproc=20
>> >=20
>> >But citations are still there in the uncompiled format, i.= e. [@Milesi1972=20
>> >3]. Is there a way to get the filter to work when converti= ng markdown to=20
>> >markdown?=20
>>
>> Sure. Use=20
>>
>> =C2=A0 =C2=A0 -t markdown-citations=20
>>
>> Here - =3D "minus"=20
>>
>>
>
> --=20
> 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-...@googlegroups.com.
> To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/a67b666b-fb17-432e-893a-ef51a67= e0797%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
------=_Part_1091_418731260.1584147692834-- ------=_Part_1090_843787629.1584147692834--