From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13605 Path: news.gmane.org!not-for-mail From: Nick Moffitt Newsgroups: gmane.text.pandoc Subject: Re: Switching footnotes to sidenotes? Date: Tue, 8 Sep 2015 16:15:28 +0000 Message-ID: <20150908161528.GA12048@zork.net> References: <20150908144925.GG6870@zork.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1441728953 7479 80.91.229.3 (8 Sep 2015 16:15:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 16:15:53 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCXPH34L3UNRBIMTXSXQKGQESG7DNII-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 08 18:15:40 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f63.google.com ([209.85.213.63]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZLYa-0002Ye-Ks for gtp-pandoc-discuss@m.gmane.org; Tue, 08 Sep 2015 18:15:40 +0200 Original-Received: by vkaw128 with SMTP id w128sf20077839vka.1 for ; Tue, 08 Sep 2015 09:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to:face :user-agent: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:sender:list-subscribe :list-unsubscribe; bh=AnNpQ3zjULnfAHkE3T+0gzqLl1ki32FkdgeF3GIlghQ=; b=nuINXW3BwmcnuZmqL7s3oh5+LVeRJVEIWP+i3b9T89c/jrSgEZC4HaHe2VteVY0xZK U5Wum0YBoDJe2LU1eGoGKoTJegJq2veSckeHMVX7tt4ECJArsOQUtKdGwQnfP/l6Lm2q PTj93p6WCjdnrNP4RHH5xRhhzAXbTc3rFvXKrDeUQH0TQtP5jCTbShDdew97KRXL7mtE rm7L2lnsrNuIceVRV7st6QI0Ia8DvjZWRtoebd2rsNWlt4E/CkpAczYqZIA/z+coqkjo 5Ocg0El/0TPaVkxXH3LJ7IbsHpL1nMGPfDx7w5w8f7Z5D X-Received: by 10.140.42.106 with SMTP id b97mr86610qga.0.1441728930518; Tue, 08 Sep 2015 09:15:30 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.46.102 with SMTP id j93ls3295241qga.23.gmail; Tue, 08 Sep 2015 09:15:29 -0700 (PDT) X-Received: by 10.13.216.77 with SMTP id a74mr19354545ywe.9.1441728929527; Tue, 08 Sep 2015 09:15:29 -0700 (PDT) Original-Received: from frotz.zork.net (frotz.zork.net. [70.85.129.199]) by gmr-mx.google.com with ESMTP id fi10si346007pdb.1.2015.09.08.09.15.29 for ; Tue, 08 Sep 2015 09:15:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of nick-UrSA4o/fUYYTle0oOhCeeA@public.gmane.org designates 70.85.129.199 as permitted sender) client-ip=70.85.129.199; Original-Received: by frotz.zork.net (Postfix, from userid 1000) id CBC9911671; Tue, 8 Sep 2015 16:15:28 +0000 (UTC) Mail-Followup-To: Nick Moffitt , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20150908144925.GG6870-iTLVOByc1N8@public.gmane.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEVnZ2ddXV3Q0NALCwu CgoJMTEw0NDSlROZVAAACBElEQVQ4jWXTwZLbIAwAULMlPUPXztlhyL0zTHMmFO/ZdALndR30/59 QCbCTbHVJwrOEkEnHmTimv0orCttRMCmF7zibv4Cs0LMwpLuq4e0DsNShgvfOe0+FGrQMy3HZKb+ DFUf4o9SIPzCUuhLIAgeCIYiuI9ANeoLbOMYgmeAINYVAIuhzlLitIBifYRwqcGpPyqHChBkRt8B +uKNaMYYGd48JdRQIpxjjBnYHTBkL3Ky8wn2iZqkUgd5ggmUINYO7V0iMMoYYetpcPSAKJjoZc5z 9MxxymBmOe0gQSr8IvEJa6HgRIFO/usBcYJZYCQxAwLbGB+RAENc1B5zjeQOWc6S9I6xYqnNPEKV gBJD7c+APAATKSDn2Hz/59IBcMzB+nLinz74LVnbpkyEMtPCmnH6CmQaFkMNbHW4FkcoFHCKes6+ vo0HsakbKeVblGAjRMrk0oIN7NcVUwLP3hWZbMm6KAHDMBOuC90OWdj1CAoBE8N0s5fLRg07pESg QrusOkGenPxqk1SAMspzv5rRODcAY8wvXAm0hnD5BA0wwl1gDX6w+bBnmCQS+vZoAtwIG3xTF7NT xFS6QK5zw6ysArkvhvpkmDfB6YIrg0/bYDpeMLXlrzCb3HWb6K69mK7CBydiqur7vKTtcsFU1/Tb rF8Cqn9zi5v8BzqOz3htom9z/AVrl8zPwvSugAAAAAElFTkSuQmCC User-Agent: Mutt/1.5.21 (2010-09-15) X-Original-Sender: nick-iTLVOByc1N8@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of nick-UrSA4o/fUYYTle0oOhCeeA@public.gmane.org designates 70.85.129.199 as permitted sender) smtp.mailfrom=nick-UrSA4o/fUYYTle0oOhCeeA@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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:13605 Archived-At: Nick Moffitt: > I've been looking into using http://www.daveliepmann.com/tufte-css/ > for my pandoc-generated files, but the way it spits out footnotes is > really more of an "endnotes" kind of thing. If you look at the source > for Liepmann's page, you'll see that he uses a ` class="sidenote">` and the footnote markers become labels instead of > links. The quick answer for getting something like this is: ```python def sidenote(key, value, format, meta): if key == 'Note': return [Span(attributes({'class': 'marginnote'}), x['c']) for x in value] ``` Alas, the AST does not store any identifier used to indicate the label used, so to use the sidenote class I'd need to also figure out how to inject a