\listfiles
\documentclass[english]{article}

\usepackage{pst-poker}
\usepackage[cleanup={}]{auto-pst-pdf-lua}
\ifpdf
  \usepackage{fontspec}
  \usepackage{dejavu-otf}
\else
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{dejavu}
\fi

\usepackage{babel}
\usepackage[a4paper,tmargin=1cm,bmargin=1.5cm,includeheadfoot]{geometry}
\usepackage{listings}
\title{\texttt{auto-pst-pdf-lua}, v. 0.01\\ using Lua\LaTeX\ with PSTricks}
\author{Herbert Voß}
\begin{document}
\maketitle

The package is based on \texttt{auto-pst-pdf} and uses for the \texttt{latex} run the 
program \texttt{dvilualatex}.


\section{The example code}

\lstset{basicstyle=\ttfamily\small,language={[LaTeX]TeX},frame=lrtb}
\begin{lstlisting}
\documentclass{article}
\usepackage{pst-poker}
\usepackage{auto-pst-pdf-lua}
\ifpdf
  \usepackage{fontspec}
  \usepackage{dejavu-otf}
\else
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{dejavu}
\fi

\begin{document}

An example for using Luacode: 
$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$

An example for PostScript code:

\begin{postscript}
\As	\crdAs
\end{postscript}
\end{document}
\end{lstlisting}

\section{The output}

And here comes the output when running with \verb|lualatex --shell-escape <file>|:


An example for using Luacode: 
$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$

An example for PostScript code:

\begin{postscript}
\As	\crdAs
\end{postscript}


\end{document}