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?

1
  • From what I know, there is no such option.
    – yo'
    Commented Feb 15, 2016 at 14:01

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .