2

is there a way to define inside lstinline line breaks globally? I only found this solution Listing / lstinline and line breaks where i should use

\begin{sloppypar}
... your paragraph with \lstinline...
\end{sloppypar}

But this question is two years old, maybe there is now a better solution to declare it in the preambel?

| improve this question | | | | |
  • From what I know, there is no such option. – yo' Feb 15 '16 at 14:01
1

I was searching for the same thing, and this is among the top results, but no answer. Apparently, there now is a better option: Enforce a line-break inside \lstinline

\lstinline[breaklines=true]$...$

works for me. However, with very long stuff, i.e.

\lstinline[breaklines=true]$ffmpeg  -framerate 3 -pattern_type glob -i '*.jpg' -loglevel fatal -vcodec libx264 -r 24 -pix_fmt yuv420p -tune animation mymovietitle.mp4$

where no one would bother to make the code more readable in the first place (being one line, is the key quality of a bash one liner), it still can produce ugly stuff, so it's not the perfect solution.

enter image description here

| improve this answer | | | | |

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.