From eafd929a264bfc9891b011ed163b8bf59230179b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 27 Feb 2023 20:29:10 +0200 Subject: [presentation] Added id to each slide, which also influences slideIndex var, holding ctrl will not activate any key combination, fixed slide size on print --- awk-edits/Presentation.awk | 11 +++++++++-- src/presentation.css | 4 ++-- src/scripts/presentation.js | 13 +++++++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/awk-edits/Presentation.awk b/awk-edits/Presentation.awk index 7fd6120..fb7bb1a 100644 --- a/awk-edits/Presentation.awk +++ b/awk-edits/Presentation.awk @@ -160,7 +160,7 @@ BEGIN { " \"Present\"" ORS \ " \"Print\"" ORS \ " " ORS \ -" " +" " for (i = 1; i <= length(names); i++) { pat[i] = "&&" names[i] @@ -185,11 +185,18 @@ BEGIN { rep[ 7] = "" # &&/font presInsideCode = 0 + slideIndex = 0 } function presentationSubstitute(ind) { gsub(/(

|<\/p>)/, "") - gsub(pat[ind], rep[ind]) + if ((ind == 2 || ind == 3) && index($0, pat[ind]) != 0) { # &&slide or &&clide + gsub(pat[ind], "