From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29074 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: William Lupton Newsgroups: gmane.text.pandoc Subject: Re: Help with a filter converting citations to sidenotes Date: Fri, 20 Aug 2021 16:59:37 +0100 Message-ID: References: <0f2d14e3-a86e-4fa1-b98c-52f540fe82b9n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c7d46005c9ffc17e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25450"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBB5NC76EAMGQEMAHGKNQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 20 17:59:52 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 1mH6vv-0006NC-LI for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 20 Aug 2021 17:59:51 +0200 Original-Received: by mail-wr1-f60.google.com with SMTP id q4-20020a05600000c400b00156d811312asf2966576wrx.3 for ; Fri, 20 Aug 2021 08:59:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629475191; cv=pass; d=google.com; s=arc-20160816; b=PIdMr3w3bWNKOYyfF2d0DKouQnnIiw8KqLWLxlGAJqqe892xjf8ddKajxRJ3SfSIeK M8Mks2DQ3mFUb87nHqrMMAAUWm3CwXnA6m220o45OC5s7gUIFk8xwbH49TueNioIrWYg BipHlrYY12EgRkUy6tSw2OF5QM1UqWIFXbDnL12wBtsW+tIH/XfOAhbiIj1EC5tx6+U0 q176eQd9pYtngQKYevkHIfCYEI4dD2+nMSYXwG7Sxg29nyo9n0VSsN4ce99oyeTofFbJ jAck3rfBBiWtjuiQvS8+MoKOZbQ+iC8zxhMrM0TOdA9MYP5//KDGgrf2wcU+7UohSbzj xDvg== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=z9RAc4YRs3UkYGd1fywbp9DG3h0STmh1P0GyI4efSoI=; b=q9pkUYA4xUKAE0KpV9kaTHbyLJIyJBebL00gdq4UQ29eIhoJ4x7r5LvpmumvzAfNV8 WgWbRRRfoTzvKQbPoD6nOeYP61IhE+Hv0oMrZ4aOWpgN9Wl/60r5pKXfBf7XDo8ZcUAF U5zoTOM/yRA/rQ+PAQcLnYMnFFRDIsujtQCaAic3iVkibQfoXfajhiJwZogTQLB0emJM CH4SQwn1UW4Z2xDDLTgzSapKK+0SynPU9vm1k1iOu/jx+TObU5rHK5PMIFelXUdkvzWm hhaPsaTQEHw31aoLU5Rb1WiOLWOH/HXzj0rWh5MqL+1M1AKocKGa8iLMDavMlSrAQvXb raMA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20150623.gappssmtp.com header.s=20150623 header.b=DiS+eClM; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject: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=z9RAc4YRs3UkYGd1fywbp9DG3h0STmh1P0GyI4efSoI=; b=q+KEAzNVt9SJdZo7NvcXGU5l/vqvGuX7fARGWL/LwJmYYBGwqLBgfBRd0ywoKb0TXz 2X7ghOb2qQodrhJ1HsNDHTLv9KFfMQqjDHi2E3JyycUHSvbjkaRRTYDcY0W6wXIqyTOw c2EhZEHRHRuPdVllOzuTUWkGW2yN8R7+7SVRefFEVW1JeKAIrVlZZpqkT2lThLqI6RJe kMWDfmMM2bSVHFzB2/vxLeWSZ6P/Gy3We6dAEjE38einBveZXrVQPhmjYVxuMNjvP5PL ydipBL3GsPLYmlN1CvF8lD8RLQe8k4PQjLKb3jmeboa+T8Jv25rlKgM0MvzTphgGrGzi o6GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject: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=z9RAc4YRs3UkYGd1fywbp9DG3h0STmh1P0GyI4efSoI=; b=BefzASI7g0ccupuN7S8Hmrm8fV4zR/4C4GUayOdwjQalMA4sQXwIipDE8IlSgjK9xe 9d/ZKujHWffYA9l7Pu20LU/K+9F5qpmL8ufsUG5JTM9FpYqNK7WDDRvnzQPqYxMVFj+F Cdk0NzKzdQLI+zzcM1o0OH2BhzjL92sIJpewfCuEvY0Qwx0Apw+OJdFkjegb2NL/YD68 OEJCoBI2kxHvjIxHksxynbmgmO4mpFI/xmaxSvXBg52QShOU9DBIcl8M+YTDPEFaM7XZ BzoUzmHLSy0w+41o/SXM6ZcpWpPkYpKesyUktbz0dkTsOvXQlBb/p7yMVFJ8S72P4KTh kdRg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5320oQW5hDi5D1clqy1+QDMAcHWFpz1zM7Tprt4qVtv1s+A2/Mx9 QrSfKajfZa7XOz+5b1opQcE= X-Google-Smtp-Source: ABdhPJyfXZUqmGe7V9Ql+ajHBnrOHsC3njXnI62kZfba3FweD7hpCAjboCjW21Lh0CSU9E/mUJLyfQ== X-Received: by 2002:adf:ec81:: with SMTP id z1mr11046199wrn.181.1629475191298; Fri, 20 Aug 2021 08:59:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a7b:c2b2:: with SMTP id c18ls4132719wmk.2.gmail; Fri, 20 Aug 2021 08:59:49 -0700 (PDT) X-Received: by 2002:a1c:3b09:: with SMTP id i9mr4695212wma.62.1629475189042; Fri, 20 Aug 2021 08:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629475189; cv=none; d=google.com; s=arc-20160816; b=t4CslJ/PGHh2acRAYfx4omePe+4EaGBbykCoQzj5MAICwzaC04HNfyVLthPh040geV 7Pt8ZkbUywiSOdPf8JwV/zWBYY9YZb5yjcdT+CYQceztjccZKCvTAvDWECS/LtgGEAXk B3I1zzHryRjA4mwth8ZlCNps3v2Xn6xcyp+1Kovap2rvDT8EUiZ1cN1rvB5/sBHsNZR/ 8hewoJDlwwjheUJ0peELCtbpab/1uIYESOtaIbAS5vcCZo5xS5fCRjv80HCRp9pWqIXr 5cW47QBIvFsEJdv+8YgfwA1qQqOuX52FDaHdr1HtcQulVwGLNj2vFqFmHg2+pe8mWlcJ SP4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zfD1M8PzpbekA2DI4YqkLMMk/dfOAjyl7I493UjNU8M=; b=tk1X2frGhZ627UrowdG2xcIR/0ACCbXCC3v0CfqoWkyMEBGA0Oh753r7fCmqbyccYp CagYjxDYAhqJ6TKJ0fni2GA59dvVFMFvC5TQ9Gt1mk7EYEe5gBfbVTBZuOq1LTWM/Z5A hZIQYQYZLLD3Kw+SMD18qLYOR5wBSS0FUwU7ja/5zVrK7P63I1n14QmjGH5/HJnnQZzC luDP7ZK1agqDpb6ELcjbciyOfxND6p7IYzKyeF3aulcCNLkq+jvCaA8WfJ6hWgZa9dQF k2ECIrOzZMBiWBTLDtVLOUXqeg991RLSvoR36yg7RvpaHQM7X1k9HbzCJLGC2SOSVEMo G+yw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20150623.gappssmtp.com header.s=20150623 header.b=DiS+eClM; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org Original-Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com. [2a00:1450:4864:20::535]) by gmr-mx.google.com with ESMTPS id u16si615011wrg.5.2021.08.20.08.59.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Aug 2021 08:59:48 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 as permitted sender) client-ip=2a00:1450:4864:20::535; Original-Received: by mail-ed1-x535.google.com with SMTP id dj8so14699481edb.2 for ; Fri, 20 Aug 2021 08:59:48 -0700 (PDT) X-Received: by 2002:a05:6402:64b:: with SMTP id u11mr23903732edx.4.1629475188490; Fri, 20 Aug 2021 08:59:48 -0700 (PDT) In-Reply-To: X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20150623.gappssmtp.com header.s=20150623 header.b=DiS+eClM; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@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:29074 Archived-At: --000000000000c7d46005c9ffc17e Content-Type: text/plain; charset="UTF-8" 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-discuss+unsubscribe-/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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxgvt%2BVaEQHA52ARktgU5LtDc5CvSwGpGEmi7iB61r-KFQ%40mail.gmail.com. --000000000000c7d46005c9ffc17e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Do you mean the citations themselves? These are in el.cita= tions. See=C2=A0h= ttps://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 <leenamurgai-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
So far I have the= following, which puts the [linked_item_number]<= /font> in the passage and in the marginnote but I'm missing the rest of= the text_that_goes_in_the_bibliography.<= div>
function Cite(el)
=C2=A0 return {=C2=A0=
=C2=A0 =C2=A0=C2=A0pandoc.Span(el.content)= ,
=C2=A0 =C2=A0 pandoc.RawInlin= e('html5', ' <span class =3D "marginnote">'= ),
=C2=A0 =C2=A0 pandoc.Span(e= l.content),
=C2=A0 =C2=A0 pando= c.RawInline('html5', ' </span>')
=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 LaTe= X 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

[lin= ked_item_number] <span class=3Dmarginnote>
text_that_goes_in_the_bibliography</span>

How do I access the element that goes into the citat= ion, i.e. text_that_goes_in_the_bibliography?

Any advice appreciated.


--
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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/eda3d7b4-befd-4f42-9455-8a37373= d33a6n%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://group= s.google.com/d/msgid/pandoc-discuss/CAEe_xxgvt%2BVaEQHA52ARktgU5LtDc5CvSwGp= GEmi7iB61r-KFQ%40mail.gmail.com.
--000000000000c7d46005c9ffc17e--