Is there any way for me to insert a linebreak after a \lstinputlisting
? At the moment text proceeding the code in the lstinputlisting follows directly after but I'd prefer to have a linebreak but can't seem to put it in.
This is what it looks like:
With this code:
\lstinputlisting{newtonsMethod.m}
The derivative function implements the central difference method. The simple implementation is shown below.
This doesn't compile if I put \\
after the \lstinputlisting
.
I can't answer my own question cause I'm too new to the site but I managed to figure it out:
Got what I was after by putting \
after the lstinputlisting, like so.
\lstinputlisting{newtonsMethod.m}
The derivative function implements the central difference method. The simple implementation is shown below.