Text Formattinglistings package - how can I fix bold keywords in comments

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

listings package - how can I fix bold keywords in comments

Post by drowsy »

I am having an issue with it:

it colorizes reserved keywords in comments.
for example:

% for this function you need ...

it makes "for" and "function" bold, and the rest of the line
just like normal comments, italic. Is there a way to fix this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

Re: listings package

Post by drowsy »

weird, it works fine with language=Matlab, but
not with language=Octave ... :(
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: listings package

Post by daleif »

it is alwasy helpful to post minimal examples if you want help
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

listings package - how can I fix bold keywords in comments

Post by Juanjo »

Perhaps this thread may help.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply