Menu

verbatim and texpower

2003-10-01
2003-10-03
  • Nobody/Anonymous

    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

     
    • Hans Fr. Nordhaug

      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

       

Log in to post a comment.