From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24605 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John MacFarlane 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 14:28:22 -0700 Message-ID: References: <20150511032252.GA19916@localhost.hsd1.ca.comcast.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="47406"; mail-complaints-to="usenet@ciao.gmane.io" To: Arjun Krishnan , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBA7WV7ZQKGQEB7Y34AA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Mar 13 22:28:39 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f191.google.com ([209.85.222.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCrrD-000CAB-CG for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 13 Mar 2020 22:28:39 +0100 Original-Received: by mail-qk1-f191.google.com with SMTP id t186sf9508829qkh.22 for ; Fri, 13 Mar 2020 14:28:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584134918; cv=pass; d=google.com; s=arc-20160816; b=ULxN5mF5InWtBDH+RJqRwQNlxZA4ilCAEaqNPjyhBHAZ1NkyoDIGojrgGnVctcOsmz i+IpZb+WDT0W6+yOGoZSP1P7MvpVgahsS/OgotyYi8DoI3KfzwIKoNvxW7y7ZPoXmjAc UzHdjp+cnL0o5acQhIuDwgOCgVTDKhhIHc1vpozc7Taonf8/NFe4cZR5MZdlRWb1DChn pgItQyvne5YJGiV4mj4Q4bIZOSroBawEJ5CWn9FbEvkycOhm4L2ZJIFGBWPBLiI2ZiY8 6T05QKqAAzXGi1IGlKbH9vViDQn4ZMzY1m2TmAcOEGWGoAEN4ZjUMOfi4kPAxLatYS4o 6JPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=ySvhIXasiTRkAFM0vSK28ETsFlkVIFTsIlLKayYydbg=; b=QTPiQlRItDXuZRqqX6EPd8LLPYGpQkW54DWwHnOk6FwpUu1iMQPxFP6t5YsM/89l1U uLbYxoDThD62Z1DxCRJdzGKShMxu6l+XkzeCkR1ESc85mq8eFV+dghxrJ12efUwP5LTP HnfLaWU8NspuZ+jRng6HwZTzPVukxQG1g3+FKX+fldjhn38RNaewCcn08Usv3FgvysOM UsbhVhnlg5Uca5kWo4YsEz9nWLJtiVWaBwoNMCcYGkajJ/AlCywpAq4oZsRBmwJ8WRV/ Xfi+ueGC6cdZFxwPF45/K0qXk9FjeQ9RhzuZWgT9AWwEsn3EWTWGvL/EQ5ylUAfd+8e9 cpeA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=oSX8zrAV; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=ySvhIXasiTRkAFM0vSK28ETsFlkVIFTsIlLKayYydbg=; b=XRhPvbhjBXoCcCn6sQskkP/drXkYfnFGFXuYMJRQu9HfpxDHhtz6J8AGI6MfJLJeOD Ev/A5ESteAf9Iwxcg2F3zGcYJcBQ1gg3i6oHh0ghvRwBwtUHTd8a3e75SLg7Fc3b/ciz iinXgLJbRJBxRQSiorga6igPH2ROgTElNa5yqGD8oHnjZOlTOOEmvSeSQ4fo8D97I/rs YD7HHinF3x7CuOcND9u5pEiH4kXpMRT1YLBRGMne8WU8OtPqNDvd7tlxmMBsjD26x9O5 bnaXS36JWmEckvS0dSoENnbNNqXLS8ZuPmCo3NK/xpT3qFyto1JY4WYwOZrPRxdADrIw VNvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=ySvhIXasiTRkAFM0vSK28ETsFlkVIFTsIlLKayYydbg=; b=oB4pKEUu+q3a7WfFXnwi3oxdb8f49EW9FSqO8nID6ideYCVY35xTj7lV0ifQLI59Q2 27F8T3wNcB4DcalbdNnIin7xUdP0hP1w5Pl8Q4ro0yocur5qaUw1CLrsIgmQ+wYwdJDA 6vf4QdzGU6AayXdUPVMY7StH8M4fblBd5YS72XgxGGkB3ON3HJaYCvqMQUmqWZtXvUU1 UfdiJlO0N3iGKIauGZKclmta6SxVP9vuv8wzuWNRTFVirPBtKyEGZNM3ngwIfbOS08i/ T6FZ7rJNWtlqB6HYDXa4wKYXWb03kW18EAZn9nE4OX0d5HTwrSijcO2IBKUYWrMEDsCa Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANhLgQ2eanHwTQ6yS4BvYw7dZcFYZ1Dmfd4DJ7VtZ6wUAZy0AnGgoYkU Lc+59YHHfXNVrjfXt/7vd3o= X-Google-Smtp-Source: ADFU+vuApVVUQyMkixwy1SbC/1knvXp7/5gGZaQPBMxg2+OwRHiHke22hUQFzFGG5Hi6+SPerAIUsA== X-Received: by 2002:a25:c945:: with SMTP id z66mr20079833ybf.206.1584134918435; Fri, 13 Mar 2020 14:28:38 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:ab94:: with SMTP id v20ls3359199ybi.0.gmail; Fri, 13 Mar 2020 14:28:35 -0700 (PDT) X-Received: by 2002:a25:a46a:: with SMTP id f97mr20657805ybi.475.1584134915252; Fri, 13 Mar 2020 14:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584134915; cv=none; d=google.com; s=arc-20160816; b=eu+BQNarlxDwGEs1ApdK8CbTQm29la7a982j7ROr9SvyBdg3dnAKLEtBXTuerN95so Qa4e4iClWG3/KgEMtQuI/Ley2dhWjFQQA8a/aNFnphhTYW3OYieNTEvBzBsXhvjKxvQP xFrTD7ss9lr7oscQ6hHMestykm66adS5vESiDKMf1EuAJXrkl2a69RVmIEwDUhcfB219 4X+kUpsXTbUo7uRFwoUWR18t7CM8tGaiR6m4IjVUP60e2AQ3X7+qtH1Yw7nki89POoWT 6ybsJwaUaLV3G3OOA/v8fT7kSr6FcWLXChauBU1FHwoOoitRfbQHyvN8Uang4p4a848c BJ0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=V4xIXSIX6dZLIChfsANY3OZns9Na+7aKjWp4j0iZH9Y=; b=n1cIqjdJk+VpiBA80r/llSLw7UO6st0kkiILQfti20IquTP72xEpgl+wIJNBZXkOV9 k7a0yFymZs6a8Mg0b5MovqMRjt0+JiJ3R3mu7dwhWw+J2QYWIvvVXMXlqQUBYxCFDMsW Zw8asP1A7Nq2pXipwSRIc1CDaNIB1Jn1CMdyDX/dULcfAQtLSH452vrg6UjJFprpzjov dII2GxPuOYQKjxlvlXGgQPqBfLFX7OYd5Ig+y0iWNzthfTxzBtgW4MELmTmb/QU06YNY 3qnJEBBmBA1c+IcqhN8octKBS4oRZa9LYcP6KoOu3aWZjqouknlp+/vG3kf3JNTzXPQ5 QKig== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=oSX8zrAV; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com. [2607:f8b0:4864:20::102b]) by gmr-mx.google.com with ESMTPS id x13si876733ybs.4.2020.03.13.14.28.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Mar 2020 14:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102b as permitted sender) client-ip=2607:f8b0:4864:20::102b; Original-Received: by mail-pj1-x102b.google.com with SMTP id np16so4794937pjb.4 for ; Fri, 13 Mar 2020 14:28:35 -0700 (PDT) X-Received: by 2002:a17:90a:f311:: with SMTP id ca17mr11928706pjb.6.1584134914648; Fri, 13 Mar 2020 14:28:34 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id u24sm56919863pgo.83.2020.03.13.14.28.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 14:28:33 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id C6C93A26A; Fri, 13 Mar 2020 17:28:22 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=oSX8zrAV; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:24605 Archived-At: 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=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 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 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 --metada= ta=20 > link-citations=3Dtrue -t markdown+raw_tex-citations research_statement.te= x -s=20 > -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 ]:=20 >> >I've been trying to convert a markdown file to another markdown file, b= ut=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. [@Milesi19= 72=20 >> >3]. Is there a way to get the filter to work when converting markdown t= o=20 >> >markdown?=20 >> >> Sure. Use=20 >> >> -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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/a67b666b-fb17-432e-893a-ef51a67e0797%40googlegroups.com. --=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/yh480ktv2sosg9.fsf%40johnmacfarlane.net.