Enrico Forestieri wrote:
Jürgen Spitzmüller writes:
LyX does this automatically for you, that's why your document works if the
code is inserted directly to the preamble. In former versions, Lyx blindly
embraced any preamble with this pair. Now, it tries to be smart and only
embraces it if the preamble actually contains an @-glyph.
Right, but LyX could also check whether \input is used in the preamble
and add the \makeatletter,\makeatother pair as a safety measure.
I agree with you and this way ensure that this kind of problems are
avoided.