[LyX/master] Powerdot examples: work around undefined ref

Scott Kostyshak skostysh at lyx.org
Sun Nov 1 18:14:34 UTC 2020


commit 11ec1af4fc268a507517c40e37421667ff618ba1
Author: Scott Kostyshak <skostysh at lyx.org>
Date:   Sun Nov 1 13:27:43 2020 -0500

    Powerdot examples: work around undefined ref
    
    The hook that defines the "lastslide" label is interfered with for
    some reason on an updated TeX Live 2020. We thus avoid referencing
    the label and instead show only the current slide number on each
    slide. We leave instructions in the preamble for how to get back the
    previous behavior if desired.
---
 lib/examples/Presentations/Powerdot.lyx    |   11 ++++++++++-
 lib/examples/fr/Presentations/Powerdot.lyx |   11 ++++++++++-
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/lib/examples/Presentations/Powerdot.lyx b/lib/examples/Presentations/Powerdot.lyx
index 88aec0c..f2ba420 100644
--- a/lib/examples/Presentations/Powerdot.lyx
+++ b/lib/examples/Presentations/Powerdot.lyx
@@ -8,7 +8,16 @@
 \begin_preamble
 \pdsetup{%
   lf=left footer,
-  rf=right footer
+  rf=right footer,
+  % showing total slides is default, but the reference is
+  % broken on current TL20. For now, we just show the current=
+  % slide (and not the total slide count) on each slide.
+  % Alternatively, compilation succeeds with the default
+  % if we remove the "method=file" slide (or set it to
+  % "method=direct").
+  % default:
+  % theslide=\arabic{slide}~/~\autopageref{lastslide}
+  theslide=\arabic{slide}
 }
 \end_preamble
 \options style=fyma,display=slidesnotes
diff --git a/lib/examples/fr/Presentations/Powerdot.lyx b/lib/examples/fr/Presentations/Powerdot.lyx
index 358560e..ab45ebf 100644
--- a/lib/examples/fr/Presentations/Powerdot.lyx
+++ b/lib/examples/fr/Presentations/Powerdot.lyx
@@ -8,7 +8,16 @@
 \begin_preamble
 \pdsetup{%
   lf=pied gauche,
-  rf=pied droit
+  rf=pied droit,
+  % showing total slides is default, but the reference is
+  % broken on current TL20. For now, we just show the current=
+  % slide (and not the total slide count) on each slide.
+  % Alternatively, compilation succeeds with the default
+  % if we remove the "method=file" slide (or set it to
+  % "method=direct").
+  % default:
+  % theslide=\arabic{slide}~/~\autopageref{lastslide}
+  theslide=\arabic{slide}
 }
 
 % This is needed to make the example compile


More information about the lyx-cvs mailing list