Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Ben using \lstinline today from the listings package... and every time I use it, it seems to change the colour of all text following it in texmaker to light brown... which is very annoying when trying to separate what is what in the text.

Anyone know why? and a fix?

This is how I'm using it...

price of the data set and finally a scalar float, \lstinline[basicstyle=\ttfamily\small]$pct_change$, which defines the minimum percentage distance between each peak and trough.

Now literally all text following that last $ is light brown...

Any ideas?

share|improve this question

closed as too localized by cgnieder, Marco Daniel, Harish Kumar, percusse, Tom Bombadil Aug 25 '12 at 2:23

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Actually guys don't worry... I skipped using it like that and used \ltset{} for the section instead... seems the [] in \lstinline were causing the issue no idea why. –  Rob D Aug 24 '12 at 15:48
    
got the same problem everytime i use lstinline. Doesn't matter if with or without options in brackets. Did you found out why that is? –  nozzleman Aug 29 at 6:07

Browse other questions tagged or ask your own question.