From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26158 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: Wed, 16 Sep 2020 01:32:31 -0700 (PDT) Message-ID: <80c14e28-b0eb-45f9-bb2b-de429980d60bn@googlegroups.com> 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/mixed; boundary="----=_Part_290_1311578987.1600245151823" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9785"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCYOXZ6UQUMRBIE3Q75QKGQEUH77QMY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 16 10:32:36 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kISrk-0002S8-3i for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 16 Sep 2020 10:32:36 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id a63sf2038968otb.0 for ; Wed, 16 Sep 2020 01:32:36 -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=K7eS03sxbk+3S1ofBTpqJBi4+7osTs4QuZNYjOTFsx4=; b=YfYBLJfBEP+VjIcFLKXyA5BKwvZExcHh3P0X2tlE21KfScmaNqjrvMK8oo1UzoqmMb PMC6w49+t0rkgn2pAFI1e7xwtQKK7omI+KqPBCeByIpvLiA4r8vgmm2DmlyatOvg44Gy J2nqC5jl8mex9vJOHHhGBcLzutBogy+xlIS0h3E92fmpzkhPg32o5iVpX6M+z2+XazmP UMmJ19wSIyxAxFfo0bBQ4iGg9IHyRiKh9AU4/nQmNib1OMnKPquEBgLLSg34DsrTdeby v7ZOWf5RCe15rgaFJidIUs+gU4HgHcRMyfnS72+27W+Gx+g6o+hPtHNzS6rOgNPL9UzR gI7w== 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=K7eS03sxbk+3S1ofBTpqJBi4+7osTs4QuZNYjOTFsx4=; b=hJr61xUJv1yUzIE9uxD8iLxTZ80lUdRrEVhmUx+r6iTLEHjgQF+uasMSaTG3nR6mwc C1+oAfE2ohIVN5IlIPG0esLUYxrc6V/BrnwLRniU4r1VeJhFDTJ8MmiiEER1uNSj9rsZ CzZu6z04K4LpWPns/RRdaoZgQpS40EFZ1DD0gDKIA+GwxMrHUHXcVliy6RLwERzle8hS 72VvByYAQ1tPPBfissz90zm+eVUZIHg+FK1E59FcGjGl4A/hplanYDL6ZyxK2gzePltO iV5n7DhLEz/VjCV8ADWJBUW0NInU/zM6SjMx4NxwzHAK8lQ999RhbsEKq8qEWMmThpNk OvzQ== 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=K7eS03sxbk+3S1ofBTpqJBi4+7osTs4QuZNYjOTFsx4=; b=DHLlvmGsj7Pqjn24DnxqrN79jpsnJQHiu2HbYmJLK6LC33HkpvKQyubSqeHFIMoW6t bGXKYlFaf3husL+G415chBxkdxk4+58rU6pSNFxAiD1xN5F01pbudufWpSLMHVBFbBeW loDq2ZtgH6SPcWXveFRBPRkCrHn+T5mWIlfZaGOh5c/piURaxskvqn5PdUYuQwNXKki3 xRYaCoWEEuVY6vu++BpRLPANr9gkhzos7O99Zfdfvfb5sGsLlTqFuh1nrM97XEsj9q6g jJjwzd1ieFhea04xqs7j7rEDzy52UmuYAVsCgbqfDcDYFLo3XC+ZGZKv27ITmUS0qCcs lm0A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531kORwFVzjxjepqqffmBkYas4oQytvDbFn9Mzm6KP+DhZB4UPPr kR41FNVNizJFWRdgrRnuhak= X-Google-Smtp-Source: ABdhPJy0s6RqhID9IbQ5gNMPiqx+xcUZ0qBtHALIRqThlldZkSYjhbzmOdfjYIAh5+fzAb6FsA70jA== X-Received: by 2002:aca:fc4f:: with SMTP id a76mr2264414oii.48.1600245155134; Wed, 16 Sep 2020 01:32:35 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:459:: with SMTP id d25ls303474otc.7.gmail; Wed, 16 Sep 2020 01:32:32 -0700 (PDT) X-Received: by 2002:a05:6830:20c7:: with SMTP id z7mr14732579otq.96.1600245152546; Wed, 16 Sep 2020 01:32:32 -0700 (PDT) In-Reply-To: <7c5ae003-b078-442f-b7ac-584614ccdee7n-/JYPxA39Uh5TLH3MbocFFw@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:26158 Archived-At: ------=_Part_290_1311578987.1600245151823 Content-Type: multipart/alternative; boundary="----=_Part_291_1119256855.1600245151823" ------=_Part_291_1119256855.1600245151823 Content-Type: text/plain; charset="UTF-8" I'm sorry, but I just realized that the conversation, I stared is a duplicate . anna ecke schrieb am Dienstag, 15. September 2020 um 23:50:00 UTC+2: > 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 `

--
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://groups.google.com/d= /msgid/pandoc-discuss/80c14e28-b0eb-45f9-bb2b-de429980d60bn%40googlegroups.= com.
------=_Part_291_1119256855.1600245151823-- ------=_Part_290_1311578987.1600245151823--