0
votes
0answers
140 views

How to replace (unicode) characters by ü,ğ,ş etc.?

\documentclass[11pt,a4paper]{article} \usepackage[utf8x]{inputenc} \usepackage{ucs} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[T1]{fontenc} ...
9
votes
1answer
71 views

How can I execute some code at each occurence of an EOL character in a listing?

My question is very similar to Peter Grill's, How to detect a tab character when processing a literate in lstlistings? I'm trying to count the number of ^^M characters encountered in my listing ...
4
votes
1answer
300 views

Treat a dotted suffix as keyword in listings

I'm writing C++ code in latex with listings. I'm trying to get listings to recognise the suffix .t() as a keyword (it means matrix transpose in the Armadillo C++ library). I tried to get the ., ( ...
4
votes
2answers
373 views

How to detect words starting with # in listings package?

I am writing some code with the listings package and I need to detect the words starting with the number sign (#) and apply certain style. For example, if I have this code: something #foo ...
6
votes
2answers
254 views

How to detect a tab character when processing a literate in lstlistings?

In the solution to Making more easy the itemized of item with tabulation system, I am counting up the number of spaces in order to determine the type of leading character to insert. However, if the I ...
7
votes
2answers
3k views

Use $ in lstlisting

I need to create some jQuery-Listings but when I try to do so \documentclass[12pt,oneside,a4paper]{scrartcl} \usepackage{textcomp} \usepackage{listings} \usepackage{color} ...
4
votes
1answer
7k views

Problem with special characters in listings

I'm having problems with my TeX document. I'm trying to import my java file in listings to get syntax colouring and stuff. My java files contains comments in Danish, which means they contain special ...