I am using minted for code highlighting. I have defined a new minted file format, with the code

    breakafter=<values to break lines on>,

I'm only interested in the breakafter argument so I've filled the rest with ellipses - this is more of a latex question than a minted question.

If I want to break on a comma, how would I do that? Latex seems to ignore any comma value I use, such as




How can I pass a literal character or string in latex? Thank you

  • 1
    What about breakafter={,},? – Werner Jan 22 '18 at 21:17
  • @Werner - it really was that simple! Create an answer and I'll accept it. Thanks! – elBradford Jan 22 '18 at 22:24



to hide the , from the key-value list separation that also uses ,.

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.