sometimes im using \lstinputlisting to show some code examples in my pdf. Now I just would like to insert a normal textfile. Everything is fine, I like this box around my text and the numbers every line. I just dont like that some string are bold. It's something like this:

12345 123 3123 3213H ABC12 AB 88789

So strings are bold. Somehow. I'm using \lstinputlisting{file.txt}. How can I change that? I mean highlighting is fine for my code, that's great but in this file I dont want this. Any ideas?


1 Answer 1


Perhaps you have set a language using \lstset. You can disable the language by using the empty language:

  • 3
    With begin and end this might look like: \begin{lstlisting}[language={}]
    – user4417
    Jan 18, 2019 at 16:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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