I'm trying to create a verbatim environment with a colored background and which can span across pages (so using a colorbox is not an option). It seemed that the listings package was a good way towards it, but the background is drawn one line at a time, such that, when I view the PDF, I see annoying white-ish "stripes" between the lines a...
Does anyone know how to programmatically obtain TV listings for a particular time zone? Is there a service I can subscribe to?
Thanks.
...
Hi everybody,
I wanna use listings in LATEX with my own style. Because I don't want to add any keyword in my preset, I want to search for beginning of keywords. Latex should know, that any keyword begins with NS or with UI. For my it is impossible to add all keywords of Cocoa Touch and Objective C to my \lstdefinelanguage{ObjectiveC} .....
Writing some docs with code snippets which I want to be copyable to run as written. These snippets may include lines with preceding spaces. The listings package formats the text fine, but the spaces are not copyable.
Let's say I have the following example:
\documentclass{article}
\usepackage{listings}
\begin{document}
\lstset{
ba...
Not too well up on LaTeX, but I want to use the listings package for listings spanning a two-column format (unlike this question).
Unfortunately, asterisks cannot save me (like for figures/tables); this doesn't work:
\begin{lstlisting*}
...
\end{lstlisting*}
I've Googled about, but got no satisfactory answer, and getting a bit desper...
hi,
does anybody know a provider offering TV listings (through API or download) for all channel and cable providers?
or is there any independent company collecting/providing such data?
an API/REST/SOAP interface would be great.
thanks
...
How do I create two lstlisting environments that each have its own counter?
If I use for example
\lstnewenvironment{algorithm}[2]{
\renewcommand\lstlistingname{Algorithm}
\lstset{ ... }
} {}
\lstnewenvironment{program}[2]{
\renewcommand\lstlistingname{Program}
\lstset{ ... }
} {}
And then
\begin{algorithm}{Algorith...
I use the following code to display line 23-45 of sort.cpp
\lstinputlisting[language=C++,linerange=23-45]{sort.cpp}
but the line number start with 1 while I want it start at 23.I read some reference and change to
\lstinputlisting[language=C++,linerange=23-45,firstnumber=23]{sort.cpp}
It works.And I want this the default setting.Ac...
I want to make a dual column code in latex but with the caption above the two columns. Ex:
Program 1 : some text here for the caption
1 //col 1 7 //col2
2 void main (void) 8 void foo(void)
3 { 9 {
4 //just a test 10 int c;
5 return 0; 11 c = 0;
6 } ...