As of PS Tricks 2.47a (Nov. 28), some functions are now in the new
pst-ovl package.

If this patch is not applied and you have an up-to-date TeX Live 2013
distribution, two of our example files will fail to export:
examples/fr/exemple-powerdot
powerdot-example_pdf

Unfortunately, this fix means that if you do not have an up-to-date
TeX Live 2013 distribution you do not have pst-ovl and the powerdot
layout will fail for you. Thus, this breaks compilation for older TeX
distributions.

This seems the right thing to do to me because even though this would
lead to a regression for users updating LyX but not updating their TeX
Live, if we have to choose between supporting an up-to-date
distribution or supporting an old distribution, I would prefer to
support the newer. We could do something such as checking if the
pst-ovl package exists or conditioning on the version of the PS Tricks
package but that is not very elegant. Further, a major release seems
like a good time to do such a change.

Any thoughts?

Also this is the first time I make this kind of edit to a layout file.
Can someone check that what I've done is correct?

Scott
From 5e760bfc6627177e54650aa32c3ed83fd6b827f7 Mon Sep 17 00:00:00 2001
From: Scott Kostyshak <skost...@lyx.org>
Date: Tue, 17 Dec 2013 02:14:24 -0500
Subject: [PATCH] Fix powerdot layout for PS Tricks > 2.47

As of PS Tricks 2.47a, some functions are now in the new
pst-ovl package.
---
 lib/layouts/powerdot.layout | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/layouts/powerdot.layout b/lib/layouts/powerdot.layout
index a119b81..b9b90ec 100644
--- a/lib/layouts/powerdot.layout
+++ b/lib/layouts/powerdot.layout
@@ -1,5 +1,5 @@
 #% Do not delete the line below; configure depends on this
-#  
\DeclareLaTeXClass[powerdot,enumitem.sty,hyperref.sty,pstricks.sty,pst-grad.sty,verbatim.sty,xcolor.sty,xkeyval.sty]{Powerdot}
+#  
\DeclareLaTeXClass[powerdot,enumitem.sty,hyperref.sty,pstricks.sty,pst-grad.sty,pst-ovl.sty,verbatim.sty,xcolor.sty,xkeyval.sty]{Powerdot}
 #  \DeclareCategory{Presentations}
 # PowerDot textclass definition file.
 # Created: 29-Aug-05 by Mael Hilléreau
@@ -29,6 +29,10 @@ DefaultFont
   Color         None
 EndFont
 
+Preamble
+       \usepackage{pst-ovl}
+EndPreamble
+
 ###
 # General textclass parameters
 ###
-- 
1.8.3.2

Reply via email to