From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29092 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leena Murgai Newsgroups: gmane.text.pandoc Subject: Re: Help with a filter converting citations to sidenotes Date: Fri, 20 Aug 2021 10:41:07 -0700 (PDT) Message-ID: References: <0f2d14e3-a86e-4fa1-b98c-52f540fe82b9n@googlegroups.com> <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: multipart/mixed; boundary="----=_Part_954_1673084183.1629481267478" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5683"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCIMDCM26AARBNGS76EAMGQE2PPPBBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 20 19:41:12 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mH8Vz-0001D5-7d for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 20 Aug 2021 19:41:11 +0200 Original-Received: by mail-ot1-f58.google.com with SMTP id n4-20020a9d64c40000b02904f40ca6ab63sf4999984otl.14 for ; Fri, 20 Aug 2021 10:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=jCtz168bDw2pwXLKZKEeVk8TteOmR5u8LPbApniGH3Y=; b=CI0kSTXK/YTE21sEmVXlHPCSb0vHQrmlXad75B4cCRIQO+Cg3ArI868A+4COI1KXUK pX2CfRpNnSMP+/xAY/RIv7oZ5m/AB1Tb4KoFS037uRkRQ0ZvYEWMgyLlPUXCNwNBAngw MOG7o79KgUvtun4+ZrbqjBLqBXBuReKPbm7i6vS3oXe1LV/HV73CuK32KkrYoG7SHLvf hYpo8cYyDNmYF775zYzO9+GDZzY/RWgENxynmIYBAdnGo86btUMJhmS1N6D8iMtB+hu9 A9QIraQh1W23Va4V6dN1kbXL9wkBxgtkRvv7KWX3rUMh4mm+8GK6yWhi4EoLoEKIPY8Z 0W7A== 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=jCtz168bDw2pwXLKZKEeVk8TteOmR5u8LPbApniGH3Y=; b=gdtVD5Gv/UbtgnyAbW72+oMrtlfQkB0vsUc5xMVtVqd+MD4WYN4WBRKOpafa+pMcWQ sFox/7ruOIyW4WZsc/Ilhfn/FQzkVY6ZLcCmlpV997gG2lbRGMS5EJZRvgXt/3Z9jCVH 686vif+tnqRa+esQoHgIVaxSqTn639cppSfjaP7gToiOFbYM50aGJQvoq+h5bfMHIIXW cmht7DmjQmVYiOggJxAkma4qv+WQ99F1ZYzAHbMuZn03uJUZotMuivK9meaiczq6fLfD MMUGYY2ZGtRIshetlKBog1ZahNyq2QpyLFdTTzsueSn0c9YoVNM8hlq4JTGFTopxmx+t xFVw== 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=jCtz168bDw2pwXLKZKEeVk8TteOmR5u8LPbApniGH3Y=; b=tHKLzemWRbA5dtqHiMFlG3t8uVxA/qLdLxXdO1pknAzgon8FJ0Qli9HUjlNjlLRj8l dBUgZWSyfwpB9Ku1yqbuuZ2MIq5f6EWjgQh/c1FHLy5tQAYPVQX6IrqDLouDZLUNCmne GF3MSr4enZChTHyTty5PlnVPA0KJ+RWXZLFr47L6EyD3JSoS7j85XAEtYb/uAlOXeivR MhXAHu/qd1MNFjJChQS/1pl4f7Af56s5mX4UapmUi3v8VUa2NGPdgA0eja2kwBgL9WzO tBz9rS4uaLNotRLfqAiqJUrP2w4sXDpWO2E+Ekw0pe3b+mSJtzZ5TPDQeS3hfXGYc+Uw oKzQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531yc56BjRg7Jrfu9DGPKNIdEZ1OBRoSnXw/+OoVpEEjUFyYZgyd 543NGfQCyml/l+ULLThKvvg= X-Google-Smtp-Source: ABdhPJyvp1gYSnikskQSaQiEVz4MdczKhBYKuSc5bxLNVyphOlcHcTVodFhosagD7F/flwOhv12hIg== X-Received: by 2002:a05:6808:14c:: with SMTP id h12mr3919920oie.24.1629481269644; Fri, 20 Aug 2021 10:41:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:2a05:: with SMTP id y5ls2692898otu.2.gmail; Fri, 20 Aug 2021 10:41:08 -0700 (PDT) X-Received: by 2002:a9d:664d:: with SMTP id q13mr17743841otm.67.1629481268132; Fri, 20 Aug 2021 10:41:08 -0700 (PDT) In-Reply-To: X-Original-Sender: leenamurgai-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:29092 Archived-At: ------=_Part_954_1673084183.1629481267478 Content-Type: multipart/alternative; boundary="----=_Part_955_1331878920.1629481267478" ------=_Part_955_1331878920.1629481267478 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No problem William, in the example screenshots, the text I'm referring to is specifically D. Ingold and S. Soper, =E2=80=9CAmazon doesn=E2=80=99t consider the race o= f its customers.=20 Should it?=E2=80=9D *Bloomberg*, 2016. I assume it's a list of inlines in the AST, possibly a block, as I said I= =20 don't know where it's stored. I assumed in citations, as did you, but I=20 don't know how to access it. Anyway, I want that text to be in my=20 marginnote along side the (lonely looking) [1]. Actually, I'm not interested in having the references at the end at all,=20 I'd rather just have the linked reference in marginnote. On Friday, 20 August 2021 at 10:31:57 UTC-7 William Lupton wrote: > Sorry, you've probably already answered this along the way, but I'm=20 > confused about the "text" that you refer to. Perhaps you could attach a= =20 > JSON AST that includes a citation with all the desired information from a= =20 > run that DOESN'T use your filter? I'm unclear where in the AST to find th= e=20 > information that you want (and is missing). I had assumed that it must be= =20 > in cite.citations but apparently not. > > On Fri, 20 Aug 2021 at 18:25, Leena Murgai wrote: > >> So I've attached some screenshots in case it helps. You can see that the= =20 >> marginnote contains only the [linked_item_number] of the citation, the= =20 >> rest is missing. Here's the filter I used: >> >> function Cite(el) >> marginnote =3D pandoc.Span(el.content) >> marginnote.classes[1] =3D 'marginnote' >> return {pandoc.Span(el.content), marginnote} >> end >> >> >> >> On Friday, 20 August 2021 at 10:06:30 UTC-7 Leena Murgai wrote: >> >>> Hello again Bastien, >>> >>> I just tried your code, it does something similar to mine (but clearly= =20 >>> you code is nicer :). It's missing the text that makes up the citation= =20 >>> block in the bibligraphy. To be clear I want the whole block (or inline= ?)=20 >>> that appears in the bibliography in my marginnote. >>> >>> Cheers! >>> >>> On Friday, 20 August 2021 at 10:00:56 UTC-7 Leena Murgai wrote: >>> >>>> Thanks William. >>>> >>>> These are the filters I'm using: >>>> >>>> 1. tex2html/filters/date.lua # Replace date with today's=20 >>>> date if it's empty above # >>>> 2. tex2html/filters/texref.lua # Cleanup pandoc and=20 >>>> pandoc-crossref conflicts # >>>> 3. pandoc-crossref #=20 >>>> https://github.com/lierdakil/pandoc-crossref # >>>> 4. citeproc # If you need control over whe= n=20 >>>> the citeproc processing # >>>> 5. pandoc-sidenote #=20 >>>> https://github.com/jez/pandoc-sidenote # >>>> 6. tex2html/filters/margincitations.lua # put citations in marginnotes= # >>>> >>>> Thanks Pedro. >>>> >>>> I'm already using pandoc-sidenote :). What I actually want is a=20 >>>> marginnote. If I turn them into footnotes before running pandoc-sideno= te, I=20 >>>> end up with a sidenote rather than a marginnote which gets a superscri= pt=20 >>>> label. This isn't what I want. I want to keep the [linked_item_number]= (provided=20 >>>> by citeproc) and put that in the (unnumbered) marginnote (with the res= t of=20 >>>> the ). RawInline let's me do that. I just can't access the text. >>>> On Friday, 20 August 2021 at 09:44:46 UTC-7 pedro....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: >>>> >>>>> Jake Zimmerman=E2=80=99s pandoc-sidenote filter just takes every foot= note as a=20 >>>>> whole and converts it to a sidenote . Unless you want separate= =20 >>>>> streams for regular footnotes and citation sidenotes, it might be use= ful:=20 >>>>> https://github.com/jez/pandoc-sidenote/blob/master/src/Text/Pandoc/Si= deNote.hs >>>>> >>>>> Em sexta-feira, 20 de agosto de 2021 =C3=A0s 17:37:55 UTC+1, William = Lupton=20 >>>>> escreveu: >>>>> >>>>>> Not sure if this helps, but here's a simple example showing a=20 >>>>>> somewhat readable dump of the AST before and after citeproc. I think= only=20 >>>>>> cite.content has changed. I suspect that your problem is something e= lse. >>>>>> >>>>>> *% *cat cite.md=20 >>>>>> >>>>>> @RFC1149 >>>>>> >>>>>> >>>>>> *% *LUA_PATH=3D../?.lua pandoc -L rep.lua --citeproc -L rep.lua cite= .md >>>>>> =20 >>>>>> >>>>>> (#) meta {} >>>>>> >>>>>> (#) blocks { >>>>>> >>>>>> [1] content: Para { >>>>>> >>>>>> [1] Cite { >>>>>> >>>>>> citations: { >>>>>> >>>>>> [1] { >>>>>> >>>>>> hash: 0 >>>>>> >>>>>> id: "RFC1149" >>>>>> >>>>>> mode: "AuthorInText" >>>>>> >>>>>> note_num: 1 >>>>>> >>>>>> prefix: {} >>>>>> >>>>>> suffix: {} >>>>>> >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> content: { >>>>>> >>>>>> [1] Str text: "@RFC1149" >>>>>> >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> [WARNING] Citeproc: citation RFC1149 not found >>>>>> >>>>>> (#) meta {} >>>>>> >>>>>> (#) blocks { >>>>>> >>>>>> [1] content: Para { >>>>>> >>>>>> [1] Cite { >>>>>> >>>>>> citations: { >>>>>> >>>>>> [1] { >>>>>> >>>>>> hash: 0 >>>>>> >>>>>> id: "RFC1149" >>>>>> >>>>>> mode: "AuthorInText" >>>>>> >>>>>> note_num: 1 >>>>>> >>>>>> prefix: {} >>>>>> >>>>>> suffix: {} >>>>>> >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> content: { >>>>>> >>>>>> [1] Str text: "(" >>>>>> >>>>>> [2] content: Strong { >>>>>> >>>>>> [1] Str text: "RFC1149?" >>>>>> >>>>>> } >>>>>> >>>>>> [3] Str text: ")" >>>>>> >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>>

>>>>> data-cites=3D"RFC1149">(RFC1149?)

>>>>>> >>>>>> On Fri, 20 Aug 2021 at 17:14, Leena Murgai =20 >>>>>> wrote: >>>>>> >>>>>>> I'm running it after citeproc since I need the citation values. >>>>>>> >>>>>>> On Friday, 20 August 2021 at 09:12:06 UTC-7 Leena Murgai wrote: >>>>>>> >>>>>>>> Maybe the order I run the filters in matters? >>>>>>>> >>>>>>>> On Friday, 20 August 2021 at 09:07:24 UTC-7 Leena Murgai wrote: >>>>>>>> >>>>>>>>> Yeah, I tried looking there, I couldn't find what I wanted. I'm= =20 >>>>>>>>> sure I'm missing something. >>>>>>>>> >>>>>>>>> The question is how to access it? As in what's the code? For=20 >>>>>>>>> example, each citation ( >>>>>>>>> https://pandoc.org/lua-filters.html#type-citation) has the fields >>>>>>>>> id, mode, prefix, suffix, note_num, hash. Which one contains the= =20 >>>>>>>>> text I want? What's the code to get the list of inlines I want=20 >>>>>>>>> (corresponding to the text in the citation)? >>>>>>>>> On Friday, 20 August 2021 at 08:59:52 UTC-7 William Lupton wrote: >>>>>>>>> >>>>>>>>>> Do you mean the citations themselves? These are in el.citations.= =20 >>>>>>>>>> See https://pandoc.org/lua-filters.html#type-cite and=20 >>>>>>>>>> https://pandoc.org/lua-filters.html#type-citation. >>>>>>>>>> >>>>>>>>>> On Fri, 20 Aug 2021 at 16:36, Leena Murgai = =20 >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> So far I have the following, which puts the [linked_item_number= ]=20 >>>>>>>>>>> in the passage and in the marginnote but I'm missing the rest o= f the=20 >>>>>>>>>>> text_that_goes_in_the_bibliography. >>>>>>>>>>> >>>>>>>>>>> function Cite(el) >>>>>>>>>>> return {=20 >>>>>>>>>>> pandoc.Span(el.content), >>>>>>>>>>> pandoc.RawInline('html5', ' ')= ,=20 >>>>>>>>>>> pandoc.Span(el.content), >>>>>>>>>>> pandoc.RawInline('html5', ' ') >>>>>>>>>>> } >>>>>>>>>>> end >>>>>>>>>>> >>>>>>>>>>> On Thursday, 19 August 2021 at 20:32:11 UTC-7 Leena Murgai wrot= e: >>>>>>>>>>> >>>>>>>>>>>> Hi there, >>>>>>>>>>>> >>>>>>>>>>>> I'm converting from LaTeX to HTML5. I'd like to put my=20 >>>>>>>>>>>> citations in 'sidenote's rather than at the end of the doc. In= practice,=20 >>>>>>>>>>>> this just means I want the output html: to look like >>>>>>>>>>>> >>>>>>>>>>>> [linked_item_number] >>>>>>>>>>>> text_that_goes_in_the_bibliography >>>>>>>>>>>> >>>>>>>>>>>> How do I access the element that goes into the citation, i.e.= =20 >>>>>>>>>>>> text_that_goes_in_the_bibliography? >>>>>>>>>>>> >>>>>>>>>>>> Any advice appreciated. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> --=20 >>>>>>>>>>> You received this message because you are subscribed to the=20 >>>>>>>>>>> Google Groups "pandoc-discuss" group. >>>>>>>>>>> To unsubscribe from this group and stop receiving emails from= =20 >>>>>>>>>>> it, send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>>>>>>>> To view this discussion on the web visit=20 >>>>>>>>>>> https://groups.google.com/d/msgid/pandoc-discuss/eda3d7b4-befd-= 4f42-9455-8a37373d33a6n%40googlegroups.com=20 >>>>>>>>>>> >>>>>>>>>>> . >>>>>>>>>>> >>>>>>>>>> --=20 >>>>>>> You received this message because you are subscribed to the Google= =20 >>>>>>> Groups "pandoc-discuss" group. >>>>>>> To unsubscribe from this group and stop receiving emails from it,= =20 >>>>>>> send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>>>> >>>>>> To view this discussion on the web visit=20 >>>>>>> https://groups.google.com/d/msgid/pandoc-discuss/3106cf1d-5ae3-411f= -b92a-c14153d58e49n%40googlegroups.com=20 >>>>>>> >>>>>>> . >>>>>>> >>>>>> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/eb59834b-d3e8-4dc4-9a66= -0eb8c0f3e225n%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/b548772c-269e-45c7-9ff6-9aec6014f024n%40googlegroups.com. ------=_Part_955_1331878920.1629481267478 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No problem William,

in the example screenshots, the text= I'm referring to is specifically

D. Ingold and S.= Soper, =E2=80=9CAmazon doesn=E2=80=99t consider the race of its custo= mers. Should it?=E2=80=9D Bloomberg, 2016.

= I assume it's a list of inlines in the AST, possibly a block, as I said I d= on't know where it's stored. I assumed in citations, as did you, but I don'= t know how to access it. Anyway, I want that text to be in my marginnote al= ong side the (lonely looking) [1].

Actually, I'm n= ot interested in having the references at the end at all, I'd rather just h= ave the linked reference in marginnote.
On Friday, 20 August 2021 at 10:31:57 U= TC-7 William Lupton wrote:
Sorry, you've probably already answered = this along the way, but I'm confused about the "text" that yo= u refer to. Perhaps you could attach a JSON AST that includes a citation wi= th all the desired information from a run that DOESN'T use your filter?= I'm unclear where in the AST to find the information that you want (an= d is missing). I had assumed that it must be in cite.citations but apparent= ly not.

On Fri, 20 Aug 2021 at 18:25, Leena= Murgai <leena...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
So I've attached some screenshots in c= ase it helps. You can see that the marginnote contains only the [linked_item_number] of the citation, the rest is missing. Here's the filter I used:
=
function Cite(el)
=C2=A0 marginnote =3D pandoc.Span(el= .content)
=C2=A0 marginnote.cla= sses[1] =3D 'marginnote'
=C2=A0 return {pandoc.Span(el.content), marginnote}
= end


On Friday, 20 August 2021 at 10:06:30 UTC-7 Leena Murgai wrote:
Hello again Bastie= n,

I just tried your code, it does something similar to = mine (but 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 bl= ock (or inline?) that appears in the bibliography in my marginnote.

Cheers!

Thanks Pedro.

I'm already usi= ng pandoc-sidenote :). What I actually want is a marginnote. If I turn them= into footnotes before running pandoc-sidenote, I end up with a sidenote ra= ther than a marginnote which gets a superscript label. This isn't what = I want. I want to keep the [linked_item_number]<= /font>=C2=A0(provided by citeproc) and put that in the (unnumbered) marginn= ote (with the rest of the ). RawInline let's me do that. I just can'= ;t access the text.
On Friday, 20 August 2021 at 09:44:46 UTC-7 pedro....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
Jake Zimmerman=E2=80=99s pandoc-sidenote filter j= ust takes every footnote as a whole and converts it to a sidenote <span&= gt;. Unless you want separate streams for regular footnotes and citation si= denotes, it might be useful: https://github.com/jez/pandoc-sidenote/blob/master/src= /Text/Pandoc/SideNote.hs

Em sexta-feira, 20 de agosto de 2021 =C3=A0s 17:= 37:55 UTC+1, William Lupton escreveu:
Not sure if this helps, but her= e's a simple example showing a somewhat readable dump of the AST before= and after citeproc. I think only cite.content has changed. I suspect that = your problem is something else.

% = cat cite.= md=C2=A0

@RFC1149


% LUA_PATH=3D../?.lua pandoc -L rep.lua --citeproc -L rep.lua cite= .md=C2=A0

(#) meta {}

(#) blocks= {

=C2=A0 [1] content: Para {

=C2=A0 =C2=A0 [1] Cite {

=C2=A0 =C2=A0 =C2= =A0 citations: {

=C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] {

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 h= ash: 0

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 id: &= quot;RFC1149"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = mode: "AuthorInText"

=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 note_num: 1

=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 prefix: {}

=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 suffix: {}

=C2=A0 =C2=A0 = =C2=A0 =C2=A0 }

=C2=A0 =C2=A0 =C2=A0 }

=C2=A0 =C2=A0 =C2=A0 content: {

<= span>=C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] Str text: "@RFC1149"<= /span>

=C2=A0 =C2=A0 =C2=A0 }

=C2= =A0 =C2=A0 }

=C2=A0 }

}

[WARNING] Citeproc: citation RFC1149 not found

(#) meta {}

(#) blocks {

=C2=A0 [1] content: Para {

=C2=A0 =C2=A0 [1] Cite {

=C2=A0 =C2=A0 =C2=A0 citations: {

=C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] {

=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 hash: 0

= =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 id: "RFC1149"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 mode: "AuthorInText"=

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 note_num: 1=

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 prefix: {}<= /span>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 suffix: {}

=C2=A0 =C2=A0 =C2=A0 =C2=A0 }

=C2=A0 =C2=A0 =C2=A0 }

=C2=A0 =C2=A0 =C2=A0 = content: {

=C2=A0 =C2=A0 =C2=A0 =C2=A0 [= 1] Str text: "("

=C2=A0 =C2=A0 =C2=A0 =C2=A0= [2] content: Strong {

=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 [1] Str text: "RFC1149?"

= =C2=A0 =C2=A0 =C2=A0 =C2=A0 }

=C2=A0 =C2=A0 =C2= =A0 =C2=A0 [3] Str text: ")"

=C2=A0 = =C2=A0 =C2=A0 }

=C2=A0 =C2=A0 }

=C2=A0 }

}

<p><span class=3D= "citation" data-cites=3D"RFC1149">(<strong>RFC= 1149?</strong>)</span></p>


On Fri, 20 Aug 2021 at 17:14, Leena Murgai <leena...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I'm runni= ng it after citeproc since I need the citation values.

On Friday, 20 August 2= 021 at 09:12:06 UTC-7 Leena Murgai wrote:
Maybe the order I run the filters in matters?
=
On Fr= iday, 20 August 2021 at 09:07:24 UTC-7 Leena Murgai wrote:
Yeah, I tried looking there, I c= ouldn't find what I wanted. I'm sure I'm missing something.
The question is how to access it? As in what's the code= ? For example, each citation (https://pandoc.org/lua-filters.htm= l#type-citation) has the fields=C2=A0i= d,=C2=A0mode,=C2=A0prefix,=C2=A0suffix,=C2=A0note_num,=C2= =A0hash. Which one contains the tex= t I want? What's the code to get the list of inlines I want (correspond= ing to the text in the citation)?
On Friday, 20 August 2021 at 08:59:52 UTC-7 = William Lupton wrote:
Do you mean the citations themselves? These are in e= l.citations. See=C2=A0https://pandoc.org/lua-filters.html#type-cite = and=C2=A0https://pandoc.org/lua-filters.html#type-citation.=

On Fri, 20 Aug 2021 at 16:36, Leena Murgai= <leena...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
<= div class=3D"gmail_quote">
So far I have the following, which puts the [li= nked_item_number] in the passage and in the marginnote but I'm m= issing the rest of the text_that_goes_in_the_bib= liography.

f= unction Cite(el)
=C2=A0 ret= urn {=C2=A0
=C2=A0 =C2=A0=C2=A0= pandoc.Span(el.content),
=C2=A0 =C2= =A0 pandoc.RawInline('html5', ' <span class =3D "margin= note">'),
=C2=A0 = =C2=A0 pandoc.Span(el.content),
=C2=A0 =C2=A0 pandoc.RawInline('html5', ' </span>')<= /font>
=C2=A0 =C2=A0 }
end

On Thursday, 19 August = 2021 at 20:32:11 UTC-7 Leena Murgai wrote:
Hi there,

I'm = converting from LaTeX to HTML5. I'd like to put my citations in 'si= denote's rather than at the end of the doc. In practice, this just mean= s I want the output html: to look like

[linked_item_number] <span class=3Dmarginnote>
text_that_goes_in_the_bibliography&l= t;/span>

How do I access the element tha= t goes into the citation, i.e. text_that_goes_in= _the_bibliography?

Any advice appreciat= ed.


--
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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/eda= 3d7b4-befd-4f42-9455-8a37373d33a6n%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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.

--
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 pandoc-discus...@googleg= roups.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/b548772c-269e-45c7-9ff6-9aec6014f024n%40googlegroups.= com.
------=_Part_955_1331878920.1629481267478-- ------=_Part_954_1673084183.1629481267478--