From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29095 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Help with a filter converting citations to sidenotes Date: Fri, 20 Aug 2021 18:08:53 +0000 Message-ID: References: <93663960-bbfe-40a1-b3ba-25fefe58e7e0n@googlegroups.com> <3106cf1d-5ae3-411f-b92a-c14153d58e49n@googlegroups.com> <0fd903f3-e52d-44bd-a1b2-50bccfc9b66cn@googlegroups.com> <206b26c5-32b2-408d-80f6-cf851c9c8cb9n@googlegroups.com> <7df79e6f-cb35-4ca5-8bc3-f089e3bc9199n@googlegroups.com> 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="blaine.gmane.org:116.202.254.214"; logging-data="26587"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB36776EAMGQETRESOGI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 20 20:09:54 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f60.google.com ([209.85.221.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mH8xl-0006ef-Uk for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 20 Aug 2021 20:09:53 +0200 Original-Received: by mail-wr1-f60.google.com with SMTP id k15-20020a5d628f0000b029015501bab520sf3111214wru.16 for ; Fri, 20 Aug 2021 11:09:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629482993; cv=pass; d=google.com; s=arc-20160816; b=yhViFt0gkIGGLuJiupPdWX2wQWzvLg60eWwCOAjcIGzIUXU6hs7S7bxOkBBU80NgmD nthJm0giUyYyJdUc2Qk3yxR5HSC+Le7X3XfzaPopU9hGexwSx3xz7K6zdIf4EwV+UlNL 9f9fdMZcFB7brcgPwVONQY7pKCfr1QlJN60hElHKVOMA4CZD45xHZ1baCGDTCgJPXhg5 3FWb6eLGM7HOzia2DukpPIsyHMKR7Twr1x6TcILMstgO9WjS8oo3K506I48qtOUxqFaf NdIhay+PZ6m6r11NkHWJn6nnZyG97sd1xsijxC+gfLH8h0iJx8USXOLE4DM6N4I2vsay of+Q== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=S0g+KehEhtonuGhDr0iLE6O1vYdXWElDuWwyBHE1jpY=; b=IuNouieLy+UpVNqNJW4I3heHnW6oQBHmwEjVk0pRB6sr5fWFd49wSqpCempRR7wNOr f9pffPsUCF56pssn1bFi9qqXUlJ6owAyMV6U2u90ysky64Tj2Nu1od6kDFsiCkyexbzf cUJfMzw1JLoBjSB/xb/IFVcQ3cQRKYnz45HLarhxsTo0VZtQunpMWk3eHKVxJ/j6+qJS ZAFvhsY14oDaQLGh9hhZ/TnCpC4sc6NfP3tOyvP89hdb1uGN09tIFoZnQvNbCRTVpBp6 Xpzbl9NzaTkGINuiQLsOJIjfuAqCPtf6DY/cr9ucqkt6A8tLQDHtCJ2qT13kX6mc6iwi oeqg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=pEOR3wfD; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :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=S0g+KehEhtonuGhDr0iLE6O1vYdXWElDuWwyBHE1jpY=; b=Dvi76K57N3BC4mnKPHi4Hy6HsZlRtFSBLNyE+7b0rubrU3uZPcrEFmZTrGLwaIl612 T0WKBe+0ziOc22cXB3lBx8V6lALto74X2kKrc5gPEJrzK3Vj/hnY1Cp30kcbAypoZLWY FK/kwsQ+S5P1AOCE0b28Ib1Px+Cs4dBXYbM9NqTusmxEbQ7DJj9npZeANZNsfOFu18PO LNewbvoJCDetsw8HmGt4zo0Ot+UPyGlpp0fBk/KWdsuk0h/rKaSS0YdhzJ/b4DiYbwq4 guOYB7VKPYxigp2OtmtxYNw/VxgGFuV235Is8RbPB1N2a6MS2RAf/uQFS5/2JM7b0ZNz xoKw== 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:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to: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=S0g+KehEhtonuGhDr0iLE6O1vYdXWElDuWwyBHE1jpY=; b=PDtiqWaMSLTWetaNALhg5Eg6sa6GthkOVJEuaZVeohdgYUuWLaYaxmwkJ1A2/tOFGt 4Epm5H9cLlRntktd6/suUZOCe4iJ8guv/80ImXj9ae3Dh5Xmnes2sG7RBAriXwBGTbkq ZAb4MfdYiWOXP6ivPXZBJbMQoCoNd35tBZDRftikaclnyaCWInBV8imMZnm4UMy/6bHW sO7WAKwlhHg2JwTYrKPxYzas6VmaeTGUxSgK1H8TSSJZYmg1mBx3q9gj5TT4dksMgb9d 1dGCZMwEpzMw7E54/RSCXZmlQvB0L1A7HcqIXpoLsGUX Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533mJH84ZfrOSzzNpdNmXiDAXbNYSDqgL9f+KSsuNJhmwa3JqQmx JoX3e8XgSR8rKJ11F5glwL8= X-Google-Smtp-Source: ABdhPJzk/fvuwaQ6j168mCqLIDr2du1VTWgQ6pRoTQto5OB4c6cEfTPr8jg5JDJR2Qa4AmSpcoXR8A== X-Received: by 2002:adf:a556:: with SMTP id j22mr89518wrb.268.1629482993587; Fri, 20 Aug 2021 11:09:53 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5d:5383:: with SMTP id d3ls2457418wrv.2.gmail; Fri, 20 Aug 2021 11:09:51 -0700 (PDT) X-Received: by 2002:adf:b7c1:: with SMTP id t1mr52092wre.387.1629482991208; Fri, 20 Aug 2021 11:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629482991; cv=none; d=google.com; s=arc-20160816; b=iVQvtcLetBR+KsGNw02TFFargvPvKUY6zkBHre42meS8d8MpcNF/alDy0AQYhkORwO zWnyUJWvnVhJgOneySDR9z+xoDSOAsWf9HIVNrR1uN1sOoBJKNE1zhAQ0F+DhDdXFXH5 4wCdo/Srb+j3OzXFkf0pafLbtMftppNhXImWVPXt1ojMYpSkvpbx+ew+qA2rezp5NFsV uDwUaxE3dTrdGZukMFWSEvb3npJ31hVgSsAKburoE1s32bgw7f7ITTsQd+V5ac05ChgA L43KIbRwB0vgMP3CgvWmyoN/K2rPDmKGgLoo1jurxGSLLYnzjII58d6J/vVVFikXfkmY Fq1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=3aEdryzK8bWZMnYYJq7nQAaUOzZE+pu5z99aFhTAp6c=; b=JBSBSybVoXsbNXGjF6klM0/yCuXfsoqlTvgtWxfi+BWK3G8+SM4Nr6JuGtIVB5AUyv 8X7lkS5HY3pBJoMpYwVtPGUGizk+zHvQeTWjoB4K/kNsY7dbVfcpZ29bcuYYivoir5XY azLJcJsYLxYsYxuVH6eDDQUsxW6gOyWwIEHHUW/+6o9KUt3o5dZuUk5O54tlcgJz2I5k jFSu1ISvJlLHiXiNSxsbimst3aJ36hDCy8V1umDrAnhEezaYU0jcszeGtiW03udkISdo k7MBraKwzsIex1CM8gtKjhxTxI2EMAxmweJUT/77p4+A3ZECN57x2yvmJ5cz3GDyA1D0 XkWg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=pEOR3wfD; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id 3si146386wmz.2.2021.08.20.11.09.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 11:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id BC295240103 for ; Fri, 20 Aug 2021 20:09:50 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GrqRL2k7lz9rxP for ; Fri, 20 Aug 2021 20:09:50 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=pEOR3wfD; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:29095 Archived-At: Sorry, but is very difficult to help you efficiently from incomplete descri= ptions and screenshots. Could you please send the following? * A very small Markdown chunk with only one citation; * The corresponding HTML code with the desired output; * The HTML code you actually get; * Your CSL stylesheet (if other than the default one); * The bibliography entry used in your example; * Your filter. Without that, nobody can guess what is going on. Le Friday 20 August 2021 =C3=A0 10:41:07AM, Leena Murgai a =C3=A9crit : > No problem William, >=20 > in the example screenshots, the text I'm referring to is specifically >=20 > D. Ingold and S. Soper, =E2=80=9CAmazon doesn=E2=80=99t consider the race= of its customers. > Should it?=E2=80=9D Bloomberg, 2016. >=20 > I assume it's a list of inlines in the AST, possibly a block, as I said I= don't > know where it's stored. I assumed in citations, as did you, but I don't k= now > how to access it. Anyway, I want that text to be in my marginnote along s= ide > the (lonely looking) [1]. >=20 > Actually, I'm not interested in having the references at the end at all, = I'd > rather just have the linked reference in marginnote. > On Friday, 20 August 2021 at 10:31:57 UTC-7 William Lupton wrote: >=20 > Sorry, you've probably already answered this along the way, but I'm > confused about the "text" that you refer to. Perhaps you could attach= a > JSON AST that includes a citation with all the desired information fr= om a > run that DOESN'T use your filter? I'm unclear where in the AST to fin= d the > information that you want (and is missing). I had assumed that it mus= t be > in cite.citations but apparently not. >=20 > On Fri, 20 Aug 2021 at 18:25, Leena Murgai wrote= : >=20 > So I've attached some screenshots in case it helps. You can see t= hat > the marginnote contains only the [linked_item_number] of the cita= tion, > the rest is missing. Here's the filter I used: >=20 > function Cite(el) > =C2=A0 marginnote =3D pandoc.Span(el.content) > =C2=A0 marginnote.classes[1] =3D 'marginnote' > =C2=A0 return {pandoc.Span(el.content), marginnote} > end >=20 >=20 >=20 > On Friday, 20 August 2021 at 10:06:30 UTC-7 Leena Murgai wrote: >=20 > Hello again Bastien, >=20 > I just tried your code, it does something similar to mine (bu= t > clearly you code is nicer :). It's missing the text that make= s up > the citation block in the bibligraphy. To be clear I want the= whole > block (or inline?) that appears in the bibliography in my > marginnote. >=20 > Cheers! >=20 > On Friday, 20 August 2021 at 10:00:56 UTC-7 Leena Murgai wrot= e: >=20 > Thanks=C2=A0 William. >=20 > These are the filters I'm using: >=20 > 1. tex2html/filters/date.lua=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 # Replace date with > today's date if it's empty above # > 2. tex2html/filters/texref.lua=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 # Cleanup pandoc and > pandoc-crossref conflicts # > 3. pandoc-crossref=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # [1]https://github.com > /lierdakil/pandoc-crossref # > 4. citeproc=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 # If you need co= ntrol > over when the citeproc processing # > 5. pandoc-sidenote=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # [2]https://github.com > /jez/pandoc-sidenote # > 6. tex2html/filters/margincitations.lua # put citations i= n > marginnotes # >=20 > Thanks Pedro. >=20 > I'm already using pandoc-sidenote :). What I actually wan= t is a > marginnote. If I turn them into footnotes before running > pandoc-sidenote, I end up with a sidenote rather than a > marginnote which gets a superscript label. This isn't wha= t I > want. I want to keep the [linked_item_number]=C2=A0(provi= ded by > citeproc) and put that in the (unnumbered) marginnote (wi= th the > rest of the ). RawInline let's me do that. I just can't a= ccess > the text. > On Friday, 20 August 2021 at 09:44:46 UTC-7 pedro....@gma= il.com > wrote: >=20 > Jake Zimmerman=E2=80=99s pandoc-sidenote filter just = takes every > footnote as a whole and converts it to a sidenote . > Unless you want separate streams for regular footnote= s and > citation sidenotes, it might be useful: [3]https:// > github.com/jez/pandoc-sidenote/blob/master/src/Text/P= andoc/ > SideNote.hs >=20 > Em sexta-feira, 20 de agosto de 2021 =C3=A0s 17:37:55= UTC+1, > William Lupton escreveu: >=20 > Not sure if this helps, but here's a simple examp= le > showing a somewhat readable dump of the AST befor= e and > after citeproc. I think only cite.content has cha= nged. > I suspect that your problem is something else. >=20 >=20 > % cat cite.md=C2=A0 >=20 > @RFC1149 >=20 > =20 > % LUA_PATH=3D../?.lua pandoc -L rep.lua --citepro= c -L > rep.lua cite.md=C2=A0 >=20 > (#) meta {} >=20 > (#) blocks { >=20 > =C2=A0 [1] content: Para { >=20 > =C2=A0 =C2=A0 [1] Cite { >=20 > =C2=A0 =C2=A0 =C2=A0 citations: { >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] { >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 hash: 0 >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 id: "RFC1149" >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 mode: "AuthorI= nText" >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 note_num: 1 >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 prefix: {} >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 suffix: {} >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } >=20 > =C2=A0 =C2=A0 =C2=A0 } >=20 > =C2=A0 =C2=A0 =C2=A0 content: { >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] Str text: "@RFC11= 49" >=20 > =C2=A0 =C2=A0 =C2=A0 } >=20 > =C2=A0 =C2=A0 } >=20 > =C2=A0 } >=20 > } >=20 > [WARNING] Citeproc: citation RFC1149 not found >=20 > (#) meta {} >=20 > (#) blocks { >=20 > =C2=A0 [1] content: Para { >=20 > =C2=A0 =C2=A0 [1] Cite { >=20 > =C2=A0 =C2=A0 =C2=A0 citations: { >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] { >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 hash: 0 >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 id: "RFC1149" >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 mode: "AuthorI= nText" >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 note_num: 1 >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 prefix: {} >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 suffix: {} >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } >=20 > =C2=A0 =C2=A0 =C2=A0 } >=20 > =C2=A0 =C2=A0 =C2=A0 content: { >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] Str text: "(" >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 [2] content: Strong { >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] Str text: = "RFC1149?" >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 [3] Str text: ")" >=20 > =C2=A0 =C2=A0 =C2=A0 } >=20 > =C2=A0 =C2=A0 } >=20 > =C2=A0 } >=20 > } >=20 >

> (RFC1149?)

>=20 >=20 > On Fri, 20 Aug 2021 at 17:14, Leena Murgai < > leena...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >=20 > I'm running it after citeproc since I need th= e > citation values. >=20 > On Friday, 20 August 2021 at 09:12:06 UTC-7 L= eena > Murgai wrote: >=20 > Maybe the order I run the filters in matt= ers? >=20 > On Friday, 20 August 2021 at 09:07:24 UTC= -7 > Leena Murgai wrote: >=20 > Yeah, I tried looking there, I couldn= 't > find what I wanted. I'm sure I'm miss= ing > something. >=20 > The question is how to access it? As = in > what's the code? For example, each ci= tation > ([4]https://pandoc.org/lua-filters.ht= ml# > type-citation) has the fields=C2=A0id= ,=C2=A0mode,=C2=A0 > prefix,=C2=A0suffix,=C2=A0note_num,= =C2=A0hash. Which one > contains the text I want? What's the = code > to get the list of inlines I want > (corresponding to the text in the > citation)? > On Friday, 20 August 2021 at 08:59:52= UTC-7 > William Lupton wrote: >=20 > Do you mean the citations themsel= ves? > These are in el.citations. See=C2= =A0[5] > https://pandoc.org/lua-filters.ht= ml# > type-cite and=C2=A0[6]https://pan= doc.org/ > lua-filters.html#type-citation. >=20 > On Fri, 20 Aug 2021 at 16:36, Lee= na > Murgai wrote= : >=20 > So far I have the following, whic= h puts > the [linked_item_number] in the p= assage > and in the marginnote but I'm mis= sing > the rest of the > text_that_goes_in_the_bibliograph= y. >=20 > function Cite(el) > =C2=A0 return {=C2=A0 > =C2=A0 =C2=A0=C2=A0pandoc.Span(el= .content), > =C2=A0 =C2=A0 pandoc.RawInline('h= tml5', ' class =3D "marginnote">'), > =C2=A0 =C2=A0 pandoc.Span(el.cont= ent), > =C2=A0 =C2=A0 pandoc.RawInline('h= tml5', ' > ') > =C2=A0 =C2=A0 } > end >=20 > On Thursday, 19 August 2021 at 20= :32:11 > UTC-7 Leena Murgai wrote: >=20 > Hi there, >=20 > I'm converting from LaTeX to HTML= 5. I'd > like to put my citations in 'side= note's > rather than at the end of the doc= . In > practice, this just means I want = the > output html: to look like >=20 > [linked_item_number] marginnote> > text_that_goes_in_the_bibliograph= y span> >=20 > How do I access the element that = goes > into the citation, i.e. > text_that_goes_in_the_bibliograph= y? >=20 > Any advice appreciated. >=20 >=20 >=20 > -- > You received this message because= you > are subscribed to the Google Grou= ps > "pandoc-discuss" group. > To unsubscribe from this group an= d stop > receiving emails from it, send an= email > to pandoc-discus...@googlegroups.= com. > To view this discussion on the we= b > visit [7]https://groups.google.co= m/d/ > msgid/pandoc-discuss/ > eda3d7b4-befd-4f42-9455-8a37373d3= 3a6n%40googlegroups.com > . >=20 > -- > You received this message because you are > subscribed to the Google Groups "pandoc-discu= ss" > group. > To unsubscribe from this group and stop recei= ving > emails from it, send an email to=20 > pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >=20 > To view this discussion on the web visit [8]h= ttps:/ > /groups.google.com/d/msgid/pandoc-discuss/ > 3106cf1d-5ae3-411f-b92a-c14153d58e49n%40googl= egroups.com > . >=20 > -- > You received this message because you are subscribed to the Googl= e > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it,= send > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >=20 > To view this discussion on the web visit [9]https://groups.google= .com/d > /msgid/pandoc-discuss/ > eb59834b-d3e8-4dc4-9a66-0eb8c0f3e225n%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= email > to [10]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [11]https://groups.google.com/d/= msgid/ > pandoc-discuss/b548772c-269e-45c7-9ff6-9aec6014f024n%40googlegroups.com. >=20 > References: >=20 > [1] https://github.com/lierdakil/pandoc-crossref > [2] https://github.com/jez/pandoc-sidenote > [3] https://github.com/jez/pandoc-sidenote/blob/master/src/Text/Pandoc/Si= deNote.hs > [4] https://pandoc.org/lua-filters.html#type-citation > [5] https://pandoc.org/lua-filters.html#type-cite > [6] https://pandoc.org/lua-filters.html#type-citation > [7] https://groups.google.com/d/msgid/pandoc-discuss/eda3d7b4-befd-4f42-9= 455-8a37373d33a6n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > [8] https://groups.google.com/d/msgid/pandoc-discuss/3106cf1d-5ae3-411f-b= 92a-c14153d58e49n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > [9] https://groups.google.com/d/msgid/pandoc-discuss/eb59834b-d3e8-4dc4-9= a66-0eb8c0f3e225n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > [10] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [11] https://groups.google.com/d/msgid/pandoc-discuss/b548772c-269e-45c7-= 9ff6-9aec6014f024n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfoote= r --=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/YR/vtYalEmX%2BJjo6%40localhost.