{sourcecode} is a collection of computer instructions, here for (La)TeX.

learn more… | top users | synonyms

3
votes
0answers
170 views

Insert a block comment title in Kile

I would like to know whether it is possible in Kile to define a script to insert a centered commented block. I often mark different parts of my code with those kind of titles: ...
2
votes
0answers
49 views

Regular expressions in listings

I'm looking for a possibility to use regular expression in listings. I'd like to highlight each N thats followed by 4 decimal numbers for example N1234. How can I achieve that? Here is an example: ...
2
votes
0answers
48 views

spacing before scope resolution operator

I'm new to LaTeX and I have encountered a problem with the listings package, I have a space before the :: operator of C++ . after reading lstlisting with c++: spaces around scope resolution operator ...
2
votes
0answers
126 views

Enforce a line-break inside \lstinline

I use \lstinline{foo} from the listings package to set pieces of code in regular text. To get automatic line-breaks I use the following options: \lstset{ breaklines=true, breakatwhitespace=true, ...
1
vote
0answers
144 views

Auto Formatting .tex file like Eclipse Format source code

Is there a way to format the Latex source to make it more readable as you would on Eclipse by right clicking the source and clicking on 'Format Source' ?
0
votes
0answers
56 views

lstset highlight RDF examples code

I'm very new to TeX. So, my problem at the moment is to highlight some RDF code. I use the following code: \documentclass{scrartcl} \usepackage{listings} \begin{document} ...
0
votes
0answers
176 views

Auto-indentation of LaTeX Source code in TeXShop

Sometimes, I find it a bit hard to manually indent my code so that all the \begin{...}'s and \end{...}'s align vertically in my .tex source code. In some code development environments, I know that ...