170 reputation
4
bio website
location
age
visits member for 4 years
seen May 23 at 23:35

Oct
16
comment Emphasize word beginning with uppercase letters in code with lstlisting package
You are right. When I initially used the language setting Prolog, I had a variable called "Name" which was the only one which would be displayed boldface, although I don't know why. So I added \lstdefinelanguage{Prolog} { deletekeywords=[1]{Name} } that removed the boldface presentation of Name but I didn't realize that it also removed the rest of the Prolog related presentation. After I removed that your solution worked fine for me as well. Thanks again.
Oct
16
comment Emphasize word beginning with uppercase letters in code with lstlisting package
@TH Sure. I originally thought this problem can be abstracted to arbitrary programming languages so I didn't provide a concrete Prolog example.
Oct
16
comment Emphasize word beginning with uppercase letters in code with lstlisting package
Hi TH, thanks for your quick answer. This solution already works but it also highlights uppercase words within strings and comments. Do you know how to escape this macro if the word is within the mentioned environments or how to activate it only when it has to deal with programming logic?
Oct
8
comment Problem redefining an internal macro of a sty file
Great it works :). I already stopped believing to find a solution before reading a complete book about tex macros. Now that I know that something like \makeatletter and \makeatother exists I am a little bit surprised I didn't stumble upon them during my search for a solution.