| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 2 years, 8 months |
| seen | Jan 24 at 20:34 | |
| stats | profile views | 20 |
|
Oct 16 |
accepted | Emphasize word beginning with uppercase letters in code with lstlisting package |
|
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 |
revised |
Emphasize word beginning with uppercase letters in code with lstlisting package added example |
|
Oct 16 |
revised |
Emphasize word beginning with uppercase letters in code with lstlisting package made question more precise |
|
Oct 16 |
awarded | Supporter |
|
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 16 |
asked | Emphasize word beginning with uppercase letters in code with lstlisting package |
|
Oct 8 |
revised |
Problem redefining an internal macro of a sty file added 2 characters in body; edited title |
|
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. |
|
Oct 8 |
awarded | Scholar |
|
Oct 8 |
accepted | Problem redefining an internal macro of a sty file |
|
Oct 8 |
awarded | Editor |
|
Oct 8 |
awarded | Student |
|
Oct 8 |
revised |
Problem redefining an internal macro of a sty file edited body |
|
Oct 8 |
asked | Problem redefining an internal macro of a sty file |