On Sun, Jan 13, 2019 at 09:55:56AM +0100, Enrico Forestieri wrote:
> On Sat, Jan 12, 2019 at 08:03:26PM -0500, Scott Kostyshak wrote:
> > For the example file minted-listings.lyx, if I export it with master to
> > 2.2.x format, when I compile the exported file with LyX 2.2.x or with
> > master, I get the following error:
> > 
> >   ! Package keyval Error: bgcolor undefined.
> 
> This or similar failures are expected. This is because the listings inset
> is not modified at all. Its content is interpreted depending on whether
> the "listings" or "minted" package are desired. However, in the "Program
> Listings Settings", specific "listings" or "minted" options can be entered
> in the Advanced tab.
> 
> Now, in 2.2.x, only the "listings" package can be used for the listings
> inset. So, any specific "minted" option entered in the Advanced tab may
> not be a valid "listings" option, and hence the failure.
> You don't need to export to 2.2.x in order to experiment the same failure.
> It suffices changing to "listings" the Syntax Highlighting Package.
> 
> The advanced tab was conceived as a way to enter options not foreseen
> or added to a later version of the package. I see it as the equivalent of
> ERT, whose content cannot be changed.
> 
> So, complete backward compatibility is not guaranteed in this case.

Sounds good. Thanks for that detailed explanation. I will disable the
minted 2.2.x roundtrip export tests.

Scott

Attachment: signature.asc
Description: PGP signature

Reply via email to