From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26157 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: anna ecke <0x616e6e6165636b65-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Newsgroups: gmane.text.pandoc Subject: Re: Footnotes in revealjs slides Date: Tue, 15 Sep 2020 14:49:59 -0700 (PDT) Message-ID: <7c5ae003-b078-442f-b7ac-584614ccdee7n@googlegroups.com> References: <47eee52e-3d47-7830-97bf-68d21c6c2bf8@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_452_610033774.1600206599835" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5386"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCYOXZ6UQUMRBCPOQT5QKGQER5HWROA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 15 23:50:05 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f57.google.com ([209.85.161.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kIIpw-0001Ie-WC for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 15 Sep 2020 23:50:05 +0200 Original-Received: by mail-oo1-f57.google.com with SMTP id h20sf2064557oou.8 for ; Tue, 15 Sep 2020 14:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; 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=+HOchQbtdwc/K2PKkqHau3ZfkhZClkyfFLdu/vasIJM=; b=szI662OQ30OVx4lNoOzRA5fa7D0eNg2O7d7D+OhB15SaVIlA+f+XqqZ4d1MaaMPKK3 efNOf1xjrlJ7Eb15tgrTNkwvd7KIqkCffHoqN51C3Gfc+3o6eTvcyXRZCGA9mXPfmr8h rH6ElXRpZ3QIY1rOQ5m5yOu6aFKN3ZkivmrpT+49C3IlaGAlm8+Swnzarnbt1IMRblje hljgnebfLbC4Vk2HyrSRM44hHH3VosaGdD9wT0VYlE4AUmRrqs7ZCspk6vR0p19rTcuv aQ282SBAn8jKGdY82zCyZ3K9x3BF1K+FxzGSWV3iY3QLwfabs5kANWuEqtPP8LEwL5X0 dzdg== 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=+HOchQbtdwc/K2PKkqHau3ZfkhZClkyfFLdu/vasIJM=; b=XGh3lnZmcjyt8tavB2ufyOicTpXuKAVdW9HvXtIUEhzHFLxe1IzJivOU10Cib+pjyP UCzHhcsTz9ZCvHlQivqu23b+NuyRRr9pctMJpoGTr7cv0YApwj08BI7gj1JX0Rw+p37L kk19eniI5xtkEAjtvlzRg/HvOti4wThOphcMHWSzxWroJl4ozCP54GLVoQgLYjbF3WkT tDyplyERqZPCkuNYimdJ5mrNqFiZ7QqYQ5O5cDwzofO7cKejF2eewEocOrN+ht/mMG1v p8gnoQ5KT3FV/RvAgNvjIkWHOW4Bzv3JU5yNXn4wgWV6UhkYmQFrLMS1afYFTbkAaCbD 5uhw== 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=+HOchQbtdwc/K2PKkqHau3ZfkhZClkyfFLdu/vasIJM=; b=P/rzkAkeAeosgrPKINrOg0HiJNQpDoHCaPnP7W1/Te4n94eQPgzSQQ0IIvQD66dEcJ zTjoOHIcmhsFnd91VKHuroyiUBS6sTClJwxhXZD18RtClMSwy5sPcOFP48F5mXsQLqj/ Zh5BcZlC8lh/qXOOpbsDBsjZmk/yk3xscOGTNdQzYTE44kFsbUQGiG45kDVKqSizXwpa KSMJqgSvO0f1s+r/8qVDuhVSYFb93tsBUQr9LQaK41wuf3OmooESZcFvPiA2Rc4HUCUJ ZP08l1pWUOzoHMmXS+omqDjVngTwxfbt4wsV15YKFI6G7FmdisMO6wjH5mPPHvv8OYv4 qBHA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5329B2tKR90I1Kl6Y2hRjFdRrXzmvp1V5GCY1VtO78bG+Keh6X/q CsLHdIdipaTFP0IH23Pf3U8= X-Google-Smtp-Source: ABdhPJxhbNVuFkMyituT+0qvMqp/l03b6NUSs54Y9dOvvZ/kAq5Aat2QbFQf5NoCZVQu/QrFouEN7Q== X-Received: by 2002:a9d:2014:: with SMTP id n20mr15096713ota.248.1600206603973; Tue, 15 Sep 2020 14:50:03 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:a987:: with SMTP id s129ls100995oie.2.gmail; Tue, 15 Sep 2020 14:50:00 -0700 (PDT) X-Received: by 2002:aca:fc85:: with SMTP id a127mr1031482oii.148.1600206600704; Tue, 15 Sep 2020 14:50:00 -0700 (PDT) In-Reply-To: <47eee52e-3d47-7830-97bf-68d21c6c2bf8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: 0x616e6e6165636b65-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:26157 Archived-At: ------=_Part_452_610033774.1600206599835 Content-Type: multipart/alternative; boundary="----=_Part_453_294126127.1600206599836" ------=_Part_453_294126127.1600206599836 Content-Type: text/plain; charset="UTF-8" Thank you BP for your input. But I think, we have a small misunderstanding here. I was referring to footnotes , which is a special type of references, I think, not speaker notes. BP schrieb am Montag, 14. September 2020 um 14:17:49 UTC+2: > 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 `