On Wed, Mar 09, 2016 at 12:23:24PM +0100, Jürgen Spitzmüller wrote: > 2016-03-08 5:11 GMT+01:00 Scott Kostyshak <skost...@lyx.org>: > > > On Sat, Mar 05, 2016 at 01:42:15PM -0500, Scott Kostyshak wrote: > > > When using beamer article I get an error if I try to add the color > > > purple to some text: > > > > > > \fi > > > > > > The package xcolor has already been loaded with options: > > > [] > > > There has now been an attempt to load it with options > > > [override] > > > Adding the global options: > > > ,override > > > to your \documentclass declaration may fix this. > > > > > > Attached is a simple example. > > > > > > Note that if you change the document class to beamer presentation, > > > everything works well. > > > > > > Is this error expected? > > > > Uwe do you happen to have an idea on this one? > > > > Deleting the line > > Provides xcolor 0 > > in article-beamer.layout should fix it. > > I suppose the same is needed in scratcl-beamer.layout.
Tested and works well for me. Attached is the patch. More out of curiosity than practical concern, are the following two statements correct? 1. This patch could cause some documents that compile on 2.1.x to not compile with 2.2.0, if they have a certain block of ERT or preamble code. I guess this is always true whenever we change any .tex code that LyX exports because there is probably some contrived way of conditioning on it. So the question is whether we think such ERT/preamble code is common? 2. Even if we wanted to complicate things, we could not address the above concern with lyx2lyx because it is possible that the user has a customized beamer.layout file in their user directory, so we cannot even assume that they're using the one we ship? The more practical question is: Do you recommend the attached patch for 2.2.0? We do not also want to inherit color from beamer.layout? Scott
From 59c08e23105f51b0a25e22c8f84dccfc8a622cff Mon Sep 17 00:00:00 2001 From: Scott Kostyshak <skost...@lyx.org> Date: Wed, 9 Mar 2016 12:50:45 -0500 Subject: [PATCH] Fix xcolor use with *-beamer.layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the minimal example of using e.g. purple text in article-beamer. Patch from Jürgen. See discussion here: https://www.mail-archive.com/search?l=mid&q=20160305184215.GA17005%40cotopaxi.hsd1.dc.comcast.net --- lib/layouts/article-beamer.layout | 1 - lib/layouts/scrarticle-beamer.layout | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/layouts/article-beamer.layout b/lib/layouts/article-beamer.layout index 1a418f5..94c1f1a 100644 --- a/lib/layouts/article-beamer.layout +++ b/lib/layouts/article-beamer.layout @@ -12,7 +12,6 @@ Input beamer.layout Provides geometry 0 Provides hyperref 0 Provides color 0 -Provides xcolor 0 Preamble \usepackage{beamerarticle,pgf} diff --git a/lib/layouts/scrarticle-beamer.layout b/lib/layouts/scrarticle-beamer.layout index 47de74a..4b85dcb 100644 --- a/lib/layouts/scrarticle-beamer.layout +++ b/lib/layouts/scrarticle-beamer.layout @@ -12,7 +12,6 @@ Input beamer.layout Provides geometry 0 Provides hyperref 0 Provides color 0 -Provides xcolor 0 Preamble \usepackage{beamerarticle,pgf} -- 2.1.4
signature.asc
Description: PGP signature