Am Sonntag, den 22.07.2018, 00:14 +0000 schrieb Virgil L:
> Hi, All:
> Attached is a minimal lyx 2.3 example that does not produce output
> normally. It appears that the problem occurs in latex at the
> \setminted instruction, which apparently is not recognized by TeX
> Live on Windows or Linux. \setminted is used to set document-wide
> settings (the language whose syntax is to be highlighted, in this
> example).
> Minted itself is NOT a problem because the minimal example in its
> manual does run as expected (it does NOT use \setminted). 
> This appears to be a latex (not lyx) issue, but it may nevertheless
> be mentioned here, because some lyx users may have difficulty finding
> the source of the problem (the latex error messages are not very
> helpful in this case).
> However, an apparent workaround does not work because of an apparent
> LyX issue. In Document/Settings/Listings one can choose the Listings
> package for syntax highlighting (which is the default anyhow). 
> However, this does not solve this problem, because LyX continues to
> add to the generated LaTeX the minted instructions, even after one
> has switched to Listings (and apparently even if one starts with
> Listings, as one as one chooses a document-wide setting).

This was the following bug which is already fixed for 2.3.1:
https://www.lyx.org/trac/ticket/11151

There is still an open issue, as noted on trac.

Jürgen

> The workaround that does work is to avoid document-wide settings (so
> that \setminted not be used).
> 
> Thanks.
> 
> Virgil
> 
> 
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to