From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26159 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Footnotes in revealjs slides Date: Wed, 16 Sep 2020 16:34:01 +0200 Message-ID: References: <47eee52e-3d47-7830-97bf-68d21c6c2bf8@gmail.com> <7c5ae003-b078-442f-b7ac-584614ccdee7n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000049030505af6f29d4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15868"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBZWERD5QKGQEWKHMNXI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 16 16:34:18 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f64.google.com ([209.85.167.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kIYVm-00042A-NE for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 16 Sep 2020 16:34:18 +0200 Original-Received: by mail-lf1-f64.google.com with SMTP id 20sf1182061lfg.23 for ; Wed, 16 Sep 2020 07:34:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600266858; cv=pass; d=google.com; s=arc-20160816; b=WVy4oeER6z3/grO9XTP/eoGswz8emxXFvRHD0/vKKj+wo3QMWd7gcGT3nxqrr3uZYs PZh3G/N1c0kWmPhIkeAENkWU69ED/QCFvbYOJyyX8TrJaH6V6IVOoXm/40B9rqBz99SF E5ZJhjHgx1t28rNrBg9wCHuChsz8hoCAnz3KO+VfXovqBvCfQUXUgbwSlTz8FE7q75lI kWXakC88NTsc87Ckj4vchGL6R4/HNZXcpblnikqhVWqYnYOC7vR+I09jxY2kwppr1kG4 B2vtHk56HhWvEVZjojQ0uNohFvFnQD5UvdptLXxPvavXLA4GUkDPKadPVO5Jb0dKJjPi /Ntg== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=mzYM03diyfOW2+lvR6QRe0wAHRvsqmbk+R7utPBNWoo=; b=PrY5LMXnyu+KVeU5GxV+SyZf3arit0Z4+9RbOq4qEkCweP9uXSJFvhNokBwPf8h/wj xdcKPswaa94iAuze+aLqPZDYpGpHxS4adqvL94vQsxTYV/pFmbfiQpBxGMFa040PywRw 8dIekL7SVscByQrcCltipO2sfuVH/R8AST0E1BcHBxFtMbp2SMXk9G2/wmvpUz04nCLp CCaZaBVpwv7y8s0XVCnVoOa0VptDlDuC7HJc+ExzFHeE/fvs5npZGEb7Hk4y/pqy1Exm A9atQHDwk4kZ5etZQOLF6zmUKveM9+HbI/VVTVXpgLrrHrKi8M1B0Qf7BsVTw2sIj9Xi Hm0w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.172 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=mzYM03diyfOW2+lvR6QRe0wAHRvsqmbk+R7utPBNWoo=; b=CsCcTlPmunOFsBtHlZMjYRzvliodKGTEcZKWGeGt6dfapivCXRqp1ySkmHn3/VVDSa RYQbLB4i/A+amD7DiP8eNnSWbIKx5P/4rmPvJqg6nrDkIxO9QjUtButS/Y+4Ql594vpC fwVUpRcqKfGu/Bh+K2IroWAt4EI4HSrgz5k3m68uhkwp7ujJ2jSRBp+jG1b1SydxQnka auGxBuoW42mxJIN4LetqESNXPzuBnKsUasxmBY2+0brsDH+aXpZ7dS8kMB1P0Q5BrL92 DCZRdgwTgQGr9CD2O7CKsgqvITTQFPr5wZHr+qLa7ndIuesPEIsi1GzMUtNrop8dBwQg pBcg== 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 :reply-to:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=mzYM03diyfOW2+lvR6QRe0wAHRvsqmbk+R7utPBNWoo=; b=C1OOL/Qy3fi8lOloVLn+C1kpFnrCkJwHJ8i+gWxcMwzlcBsLZKw7set18CgdUknsHY V+bq045lPJaToMRKgaG5OZNLJ6SnaovNgnQ5xC/u+5vFi6N2z6aAlejU8DliqeCbjEJO v1M+f2Miulk8fLTlx/xEYM6QJtM+MaRPJOvBz/fyrXre5qInjcDDKfBXSAtiozFB3tCj ulB0ZaImKVrQpUH8DNHJqsjC0XgTMBwwCo+wNeJS0RXFtP0RcfpihhX72DNtUavpYX5R zgtETNrfxmlLEYnwIbzoanozeG4CPt8RsKtKA26+5ZTSo54vSFo4HhNBo0kO9yftI+E2 dQLQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533ANOiYxDVCv9LsitBBKq3AKF4JEmWtfzBoWFSVCOSIsVzX2nHS m2j8PLWvc/cCZlnS1CiHxog= X-Google-Smtp-Source: ABdhPJyL0ZluMM76p3Gk8rvoq1ZvIUfMGJzSQgLVIzQ5oJyHpkhdBVpcLDtc62RTEFRXSVqXueGKxw== X-Received: by 2002:ac2:4827:: with SMTP id 7mr8481338lft.493.1600266858253; Wed, 16 Sep 2020 07:34:18 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a19:554:: with SMTP id 81ls24919lff.1.gmail; Wed, 16 Sep 2020 07:34:13 -0700 (PDT) X-Received: by 2002:ac2:5b4d:: with SMTP id i13mr8878995lfp.12.1600266853154; Wed, 16 Sep 2020 07:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600266853; cv=none; d=google.com; s=arc-20160816; b=NVvUH84GGhxgIHCwbMpTq8kocjF/fN5LzE/1u4wFurECmzVk7zwrbJZghDKZ45eWfs 9XUIiihdxtIMowctalN6A1UV20p6/eTwRjARyjrH/BownwyHOpg2nO7H29xphc1q27Ex eYElzCLGjqtzoDqIWmClktysQ+E50l183KOkOgEd6BuEAqFjW5Jtz4o6Jj/ibeqsFdGX bCuBgYdFZtYY1mImPQhw5Ip+bSk7le7hLuNISQJlFjAscVA1FogqbvVAIxt+eTxPppto cgm2nyYBZfAiheucj0MDSP7aQbm12jauZBkhVfVRZ6fSS04AFdTJQEl4eGr6CaPX79ov yRug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=FGPlSM7+UB22kXoLeFgaRl5CVCEccgOs/GN7ly0sY9I=; b=hg+e/9O4DKWXxoOh+KvXfYki4FlG6n1F82MVVw1yAFPq8zWZITgkqnS32BL7x9e4H0 weyZVp9wP7WMbte76yfkyzmZ0EDkBcW/A2BauI2mcA6JoCRt1Ih58KeOwUrZTBhicPPQ djHnP3YmmxuSXw2Hh8XVKsfG6vr9rBADuAJA56z79z6ySz1qENzplQGNs4kQJhFQABJ/ 5b8tiENbUEYkVjXxU53b4E+anlyKr+wYDDykyjqNrIEAmkKZepEdNqZli9RIXV/Dw+yy oTyK9idHFl6YbgjWfk4+R4236Y737Ib/+iWXIqPoLUMzefFSi8gAotIU53F2YDrQEKvu EVqw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.172 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com. [209.85.208.172]) by gmr-mx.google.com with ESMTPS id r13si578283ljm.3.2020.09.16.07.34.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Sep 2020 07:34:12 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.172 as permitted sender) client-ip=209.85.208.172; Original-Received: by mail-lj1-f172.google.com with SMTP id k25so6087363ljg.9 for ; Wed, 16 Sep 2020 07:34:12 -0700 (PDT) X-Received: by 2002:a2e:9905:: with SMTP id v5mr9124054lji.134.1600266852433; Wed, 16 Sep 2020 07:34:12 -0700 (PDT) In-Reply-To: <7c5ae003-b078-442f-b7ac-584614ccdee7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.172 as permitted sender) smtp.mailfrom=melroch-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:26159 Archived-At: --00000000000049030505af6f29d4 Content-Type: text/plain; charset="UTF-8" Den tis 15 sep. 2020 23:50anna ecke <0x616e6e6165636b65-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev: > 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. > I too was about *foot*notes, albeit "faked" ones not using Pandoc's native footnotes. If you test my setup filter and all and look at my example HTML you will see that. By having the filter replace native Pandoc divs with the class `notes` with raw HTML for div tags I managed to get an actual div, rather than an aside/speaker notes, so that I could style the list inside. Did you perhaps not get the zip archive? It may be possible to write a Lua filter so that native notes within each slide/section can be converted to my "faked" format, but I'm afraid that a Lua filter would not visit the native note elements in say a section container as created by `make_sections()` in linear order, so they might end up in the wrong order in a generated list. Albert can probably answer whether that problem is still there, or if there is a workaround. Anyway I tried to convert footnote markers in a paragraph to empty spans with a `note` class and a sequence of reference footnotes into an ordered list with Vim `s///` commands and it worked well, so it shouldn't be too hard to convert existing native notes to my "faked" version with a decent editor or a text filter script. > 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 `