Tagged Questions
1
vote
1answer
122 views
Displaying (source)Code in research article [duplicate]
I have this urgent need to display two pieces of code side by side for comparison in my article. Displaying a code, I've couple of requirement
Should indent properly
Output should be syntax ...
3
votes
1answer
416 views
Alternative way to print source code [duplicate]
Possible Duplicate:
Syntax Coloring in LaTeX
I want to add source code of my program in document but verbatim really bugs me. All that ugly fonts and stuff.
3
votes
5answers
2k views
Verbatim environment with correct tab handling and special characters
I'm looking for an environment similar to Verbatim which will allow me to say something like the following code (which uses indentation instead of spaces):
\documentclass{article}
...
3
votes
1answer
844 views
Including a text file in LaTeX
I write a program by DevC++ compiler and save it by .cpp format, and want to paste the code in my editor, Do I have to paste all the code each time?
Is there a way to include the file instead of ...
9
votes
2answers
1k views
Colored background in inline listings
I would like to make inline code more distinguishable from the text surrounding it, and I thought that using a background might work (like it is done on the stackexchange pages.)
Since I use the ...