I am trying to include a Mathematica code in Beamer. I tried lstlisting and verbatim environments but I am not satisfied with the outcome. A fancy way to include Mathematica code in LaTeX has been introduced here: Fanciest way to include Mathematica code in LaTeX. Nevertheless, this approach does not seem to work in beamer:Read more