latex - How to hide block of code -
i'm writing program in .lhs file contains code in haskell (i'm specifying because want clear it's not rendering pdf it's being execute runhaskell or ghci). i'm rendering code lstlisting this:
\begin{lstlisting} > haskell code here \end{lstlisting} anyway, code require modules have import, don't want imports appear in resulting pdf. so, i've tried put code without lstlisting block, this:
> import x > import y ... but it's not working , resulting pdf renders lines not code lstlisting do. should write import code being execute not showed in pdf itself?
the haskell wiki suggests defining latex macro like:
\long\def\ignore#1{} you define \newcommand which, me, seems more natural:
\newcommand{\ignore}[1]{} in both cases, used this:
\ignore{ > import foo.bar (baz) } `
Comments
Post a Comment