Am 26.10.2015 um 17:21 schrieb Guillaume Munch:

The user reported two valid use cases that are exceptions to this
behaviour: \lstinline and \usepackage{bigfoot}. This used to work before
⇒ regression.

As I wrote, I don't agree. We had a valid bug report where a user put a listings inset in a footnote and the result was uncompilable. Therefore this was forbidden and even backported to LyX 2.1.x

If you want a proper fix, then we must automatically add the "inline" option if a listings inset is placed into a footnote or margin note.

That one can use listings in footnote nevertheless with special settings or by adding preamble code doesn't matter in my opinion. The default placement does not compile and average users obviously run into problems. Imagine you write a thesis and your document becomes uncompilable. You don't know why because the LaTeX error message is mystery for you since you use LyX to hide LaTeX commands from you. That could suck a lot!

Those who know special settings and even preamble code to get listings in footnotes, can add \footnote{ as ERT before the listing and } behind it. That is not much work and you still have LyX's full listings features.

So the question is who we address as user? In my opinion we should address average users and they use in most cases default settings since they are no experts. If this breaks compilation we should not allow this.

regards Uwe

Reply via email to