I'm using overleaf to write my phd thesis.
I have some matlab code which I'd like to include in my appendix section, so I've uploaded the ".mlx" file to a folder called "programmes" and have called the listings package in the preamble.
I have used the following lines to call the listing:
\lstset{style=mystyle} \lstinputlisting[language=Matlab, caption=xyz label=appendix:abc]{Programmes/myMatlab.mlx}
but the document no longer compiles! I used the same method to include some VBA code, so not sure where I've gone wrong. May I please ask for advice on this?