Le 21/06/2017 à 07:15, Guillaume MM a écrit :
While I believe that the question of providing the package most popular at a certain point in time vs. a good enough implementation is secondary to security implications, I also inquired at <https://github.com/gpoore/minted/issues/166> whether it would be hard to implement 3-step compilation in minted.sty.
A quick update: there is now a reply on the ticket above. In addition I received the following reply from the author of minted.sty.
I agree that -shell-escape is problematic, especially in a case like LyX where the raw LaTeX code can be less visible. I will be happy to add a 3-step compile option; the only issue will be finding time to do it. I think the Python side of doing this would be trivial. The main work would need to be in LaTeX code in minted.sty. I've provided some additional technical details (if you want them) in the GitHub issue.