From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26140 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Benct Philip Jonsson Newsgroups: gmane.text.pandoc Subject: Re: Footnotes in revealjs slides Date: Mon, 14 Sep 2020 14:17:39 +0200 Message-ID: <47eee52e-3d47-7830-97bf-68d21c6c2bf8@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------C79CDE90FF0BB5F7C4A718E3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13469"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: anna ecke <0x616e6e6165636b65-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRB2F67X5AKGQEWEI3WBA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 14 14:17:50 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ej1-f61.google.com ([209.85.218.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kHnQa-0003N0-MI for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 14 Sep 2020 14:17:48 +0200 Original-Received: by mail-ej1-f61.google.com with SMTP id d8sf8005057ejt.14 for ; Mon, 14 Sep 2020 05:17:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600085868; cv=pass; d=google.com; s=arc-20160816; b=SQe+WtCnEY//aAEB1R247W2xsByWpRfVXFv4EpfFkmulX7VVmDKJkSslaE4qRy2/lG +PcTLqfj9YOaRTJF4JDGG7SfVRuNJ4Wy6i41yCqiTJr4+hac+8JgiA0C42JoXwqrteQy Npay5n948w6gL3i0hV9SLS+VL59MCrRuTFMIp9M8gHq8CdSbLtgn0nH/q9jmGXfBwMLp auYAhhZr00u8HfZxGTNs6KHlTZsEx5bS8JGnFQUERHZTl5Klk9+AIvGMjok4i4tVEvcA CiRpFCmWLRVVx4WyPMlxSl+khEkzYnr+oRh0XPkrdlJJZ8SV3bS2v0dIMr8QEfne9sGU T/Hw== 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:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:sender:dkim-signature:dkim-signature; bh=elU0IL0UaxEK2X8rYyk8CfdYSIeCCDI99C2ZSuP86rQ=; b=hxMwwDxVPZ2OHNIdv0zjs6iqc6Aoz9p3LNAVd7tCU5hxQ7aloNSm9QEsB0z3GzduCg T90PXxpIA1+eSMZdUYTXcav1av0x+rYU7BKb2PCZuwn6VfweL1Wuk2j6Z4htm+QRKUQC +dVfaOah2Nw7ZoYpNYvuYlXHL/gMftGDhP9MGVTFt6l2cQh3bFQlCu6P+MULNZEScRI3 mQhokVK3LXj0hE8XEyRR/kVMG9qVi3i2ZejMxvTQnhOdh3p9iYt8m7ylVK827cX3w3il 0jrep5tLjmLSMiGCieMw23rG/NnzENYU+Z/OTNcKwQ0yMEXVIpTRACTdyU+ppDlV24b7 SITQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tLGbW4dz; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language: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=elU0IL0UaxEK2X8rYyk8CfdYSIeCCDI99C2ZSuP86rQ=; b=ssd/3S+nIU3tLL+6xzv2ccAPpISK4iSqdDnCiWL5ptZrXEBU2XwmhzTceZzuY/Ik4y Gt7DuBG+rJWMAZmIYHb9c7nMZGNOh/8iPZuTN5iczP55uR51KIsf7BsG3CbeirmRwxKL MdG2zryzC94Q5LmU6wVFry/PfRhN8BYId35Rs3v1A2h3VZq4kKkJfbaBZ6+Bn3UUM5cT AGxH01OuDeD8Y8EP0YTRwyHxQM9tTS0XUZQ3PINnh/SzKC3WizhFUxj2N+OU4FkEHmQb 9O5VT+y/nM/XVBrx11qDF/Uhij/GSEp6GMvP+gIkRGMmMeglP3T/2GyaITk7TOryDlA2 Y3Xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language: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=elU0IL0UaxEK2X8rYyk8CfdYSIeCCDI99C2ZSuP86rQ=; b=MAyuYU5QSMlGbaH8nJQEKXx73dvSQ+yY4NQQAIO/hpL9u2Un6ev58XyibaHzs+WbBL 986lYHl9JnIhT6BZClM2MZpemvcEhlvgx/AL35IH8TtzcEtpS/cydGzfe7dvrddkM5i0 5IJ9lYhCa31+NUrGQMZvYu2TBVgiXc7ziTofUCKl0YatcQUCzERQxRUB5RoIAb7+lLPj ETNQKhgvL04vP19CUEV7YXTfliRP8zcb8iVASakAo25HJKdLZ8W2vL3Ei3UPAiuK9GEn g3I3r4c5nyQkvzzUlQLLTBaQjt8cPqB9maLfaRg684/TxKUcICn0RqsgpNkZC8zIAlTp Y5/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :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=elU0IL0UaxEK2X8rYyk8CfdYSIeCCDI99C2ZSuP86rQ=; b=QAqNFxQSJKfE3WFBZgogPryPyda3VtKxGV3hRF0pzQ3VN6msj5Z3oLmk6+ZCMxfUNv F97PcTzkU3FAOv2JpXEz4hHlWReRiyoyd2if4ywrEMQNc23faqQc76ubolO+vWw7ahhJ fY6ZFGF/bDlTf4kYWpR2P3trhIcjYMSvzbcQYBiEMQoLhubTyFU1z++U9k36oBwRozRd ugC1E6X4+LipTrhXkK68n4iuu1hJRxB4O+uV7OzQnjyKgVYtqvdexYQRAhn7Qcl6HMdh 1Ut53LHcQM5+4qeIsiU6wilteqXDqtkLNklS+Um+iaxYMmapWeEAeqJyhQuHASEpcr4+ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531bnS3gtgHwQqL2kOvhSGXFumA0UUlELI6tLXlbgZ+DQWoEtkZE v4nGyGW3f8z3MAPViI5U3WY= X-Google-Smtp-Source: ABdhPJwKht826oC3Igl14+k2cX4VXrjQVNOM2RL+JYjNbC/XonoQT7/HBfbQ0v72JHEN3TzaD/YNBw== X-Received: by 2002:a17:906:cf82:: with SMTP id um2mr14246373ejb.49.1600085868307; Mon, 14 Sep 2020 05:17:48 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:906:f1c6:: with SMTP id gx6ls4414741ejb.8.gmail; Mon, 14 Sep 2020 05:17:44 -0700 (PDT) X-Received: by 2002:a17:906:2b4f:: with SMTP id b15mr14918054ejg.477.1600085864055; Mon, 14 Sep 2020 05:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600085864; cv=none; d=google.com; s=arc-20160816; b=zuIFH5MEWHJXr/j28bLIKoKzS2huSaJaKdUHgjYrqrn7wlmQ/ta947WI9reyI92Dtj rl3ykhz2TLa6wUcB4hIYUCMq1HqXDwg+H8OAZlh18FMmg+kzHyDkrU2sa9fofdfDTYNT OE9fUOlltMpKaIkHra1BPi7sg8+uqxhx5t5wzqMaJ1MtfvkNGBV9Pvp+K6EdMLk44mYE tRpklLtRI+SdS7j1BMQerh9+8otyc/rdFw9Xnb8vcpds91ckjv6euzi22ct4HW8CfmNq tJZM9U/XRaFZcbQ62nWxJXoOjJAzvdE0gkxpyb53t1hcoriVJ4dcItk2L+YALefqZ8kU ykzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=j6ZwfHEcG0xF7Lr2qNX5IkwUlImiVKlEfVJTpV46ywc=; b=z6vBNReHkX+DPKlIQGD9juGXRBvKB+STKhBbQnjYQZqmYAqEKp2kQ+ZlWrnLoUGSWg oYOlxOh2uBWC0mGxtLiBqGXygLup5ZC2Vo7VmlkW/1Slg9J9T8BHHoSPYPP28N1VtNX7 NYWiSoBbDr+pIUc8GxQ5jGoGTpxayzjvoTbYdbFiXj5gQKc7B0vv136eA4EmwRc9y1XA FpQy32bjCU8wZeuiufJD0lVObx8Y/87omSjM7Y6+y6gU6R+zM4cb8g9+emdyaTBodsEJ OIzDDzck8FGy7ZZniq73L14SyQzIQ/bLAnivTWQ25aJU/EpoA8mfFvek6u+LksEyL8SA wCnQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tLGbW4dz; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com. [2a00:1450:4864:20::632]) by gmr-mx.google.com with ESMTPS id w16si336150edq.4.2020.09.14.05.17.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Sep 2020 05:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) client-ip=2a00:1450:4864:20::632; Original-Received: by mail-ej1-x632.google.com with SMTP id r7so22875287ejs.11 for ; Mon, 14 Sep 2020 05:17:44 -0700 (PDT) X-Received: by 2002:a17:906:7fcc:: with SMTP id r12mr14825490ejs.360.1600085863136; Mon, 14 Sep 2020 05:17:43 -0700 (PDT) Original-Received: from [192.168.1.122] (user177.77-105-231.netatonce.net. [77.105.231.177]) by smtp.gmail.com with ESMTPSA id e15sm9037272eds.5.2020.09.14.05.17.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Sep 2020 05:17:42 -0700 (PDT) In-Reply-To: Content-Language: en-US X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tLGbW4dz; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:26140 Archived-At: This is a multi-part message in MIME format. --------------C79CDE90FF0BB5F7C4A718E3 Content-Type: text/plain; charset="UTF-8"; format=flowed On 2020-09-14 00:00, anna ecke wrote: > At the moment, the location where footnotes are rendered into can be > configured with the option reference-location > . Unfortunately, > it only takes effect when rendering markdown. I'd like to get my footnotes > rendered into the same slide it was mentioned/written in. > > My question is now, would it make sense to propose this on github as a > feature request, or should I just go ahead and write a filter for this? I'm > not an Haskell expert and I haven't checked out the code base to look what > needs to be changed to make that kind of behaviour work or what amount of > effort it might take. > > Happy to hear any opinion or even receive links the code responsible for > this or to projects that have solved this already. > > cheers, > ae > Nothing prevents you from constructing your notes manually, placing note references as sequential numbers in the text and a list with each note text at the appropriate list number at the bottom of each slide. Presumably no links between note markers and notes would be needed in a slide show, which makes things easier, although you might want to wrap the note numbers in the text in spans with a class and the lists with notes in divs with another class for styling. Using a little CSS magic and a Lua filter you can both get note references and note list numbers styled and colored appropriately, *and* reveal yourself of the need to insert note numbers manually, although you still need to insert divs with an appropriate class where you want a note reference to appear, and need to make sure that the notes in the list come in the right order relative to the note references in the text of each slide. Something like this: ``````markdown ## Slide heading The text [mentioning]{.note} some [thing]{.note} or [other]{.note} goes here. :::notes 1. Text for note. 2. Text for note. 3. Text for note. ::: `````` and then in some appropriate place some custom CSS: ``````css span.note:after { content: counter(note-ref-counter); vertical-align: super; color: blue; font-size: 50%; } div.notes ol { list-style: none; font-size: 50%; } section.slide, section.title-slide { counter-reset: note-ref-counter note-counter; } div.notes ol li:before { content: counter(note-counter); vertical-align: super; color: blue; display: inline-block; width: 1em; margin-left: -1em; } span.note { counter-increment: note-ref-counter; } div.notes ol li { counter-increment: note-counter; } `````` This should give you blue superscript note markers and blue superscript list markers without any trailing dot, automatically numbered sequentially for each slide. I tried to make the count be for the whole file rather than for each slide, but Chrome insists on resetting the counters to 1 when they have reached 9. Perhaps someone who understands CSS counters better than I do knows how to fix that. Finally you need to apply the following Lua filter when running Pandoc, so that the `
` elements wrapping the note lists really are divs and not `