The manual (p. 10) says using verbatim with texpower is not possible. 2 questions: Is there a time frame when something might be implemented? and Is there *any* kind of work around? I need this feature to write an interactive programming text.
Jim Haefner
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't understand the internals of texpower well enough to tell you when this will be implemented. Only Stephan can answer that...
You can of course work around this if you accept that complete lines is the smallest building piece - see example below. (Since leading white space is removed in the forum the Java code won't be indented.)
The manual (p. 10) says using verbatim with texpower is not possible. 2 questions: Is there a time frame when something might be implemented? and Is there *any* kind of work around? I need this feature to write an interactive programming text.
Jim Haefner
I don't understand the internals of texpower well enough to tell you when this will be implemented. Only Stephan can answer that...
You can of course work around this if you accept that complete lines is the smallest building piece - see example below. (Since leading white space is removed in the forum the Java code won't be indented.)
---
\documentclass[dvips,Screen4to3]{foils}
\usepackage[display]{texpower}
\usepackage{listings}
\lstset{language=Java}
\lstset{numbers=left,stepnumber=2}
\lstset{aboveskip=0pt,belowskip=0pt}
\begin{document}
\foilhead{Code test}
\pause
\begin{lstlisting}[name=somename]
public class SomeClass {
public static void main( String[] args) {
\end{lstlisting}
\pause
\begin{lstlisting}[name=somename]
System.out.println("Main method");
}
}
\end{lstlisting}
\end{document}
---
I agree, this is very limited solution. I suggest that you submit a feature request at https://sourceforge.net/tracker/?group_id=60743&atid=495148 then Stephan will notice.
Regards,
Hans