1

This question already has an answer here:

When I'm including a source file, by way of \lstinputlistings{file/path/to/file}

However, This results in the following below:

image

Why is the first line not being formatted correctly? And how do i fix it? I've tried adding newlines before but that has no effect.

marked as duplicate by Ulrike Fischer, Mensch, mafp, Torbjørn T., David Carlisle Apr 4 '13 at 15:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Just give

\noindent\lstinputlisting{file/path/to/file}

a try. It suppresses the paragraph indentation after beginning a new line.

Not the answer you're looking for? Browse other questions tagged or ask your own question.