Jake Zimmerman’s pandoc-sidenote filter just takes every footnote as a whole and converts it to a sidenote . Unless you want separate streams for regular footnotes and citation sidenotes, 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 às 17:37:55 UTC+1, William Lupton escreveu: > Not sure if this helps, but here'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 > > @RFC1149 > > > *% *LUA_PATH=../?.lua pandoc -L rep.lua --citeproc -L rep.lua cite.md > > (#) 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="RFC1149">(RFC1149?)

> > On Fri, 20 Aug 2021 at 17:14, Leena Murgai 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 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.html#type-citation) has >>>> the fields id, mode, prefix, suffix, note_num, hash. 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: >>>> >>>>> Do you mean the citations themselves? These are in el.citations. See >>>>> https://pandoc.org/lua-filters.html#type-cite and >>>>> https://pandoc.org/lua-filters.html#type-citation. >>>>> >>>>> On Fri, 20 Aug 2021 at 16:36, Leena Murgai wrote: >>>>> >>>>>> So far I have the following, which puts the [linked_item_number] in >>>>>> the passage and in the marginnote but I'm missing the rest of the >>>>>> text_that_goes_in_the_bibliography. >>>>>> >>>>>> function Cite(el) >>>>>> return { >>>>>> pandoc.Span(el.content), >>>>>> pandoc.RawInline('html5', ' '), >>>>>> pandoc.Span(el.content), >>>>>> pandoc.RawInline('html5', ' ') >>>>>> } >>>>>> 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 >>>>>>> 'sidenote's rather than at the end of the doc. In practice, 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. >>>>>>> text_that_goes_in_the_bibliography? >>>>>>> >>>>>>> Any advice appreciated. >>>>>>> >>>>>>> >>>>>>> -- >>>>>> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/pandoc-discuss/eda3d7b4-befd-4f42-9455-8a37373d33a6n%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/3106cf1d-5ae3-411f-b92a-c14153d58e49n%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/0fd903f3-e52d-44bd-a1b2-50bccfc9b66cn%40googlegroups.com.