In LyX, I would like to know if there is a way, for a given document, to disable all parts of the preamble that LyX adds automatically, leaving only the user-defined preamble before compilation occurs (Document->Settings->Preamble).
It might seem like an odd request, but there are 2 big advantages in doing so:
- LyX often pre-loads packages with its own options, and one cannot change them in the user-defined preamble.
- It is easier to export a user-defined preamble (I store it inside a preamble.tex file and one just puts input{.../preamble.tex} in a new LyX or LaTeX document.
Does anyone know a way to do it ?
EDIT: I FOUND A SOLUTION, see below. Thanks for the time others have put into solving my problem.