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.

-- 
Enrico

Reply via email to