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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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