I'm using the following code to implement my pstricks code but it appears that the pstricks part appears ABOVE where I put the code in the PDF. I'm NOT using pdfLatex but rather DVI PDF or PS PDF.
Here is my code. What's wrong with it?
\documentclass[12pt, fleqn, leqno]{article}
\usepackage{polynom}
\usepackage{amsmath}
\usepackage{pstricks}
\usepackage[lmargin=1cm, rmargin=1cm, tmargin=1cm, bmargin=1cm]{geometry}
\begin{document}
\textbf{Complex Numbers}
Hello
The theory of complex numbers
Like this: $\dfrac{x^2-1}{x-1}=0$
Code: Select all
\begin{equation*}
\begin{split}
n^2-n& = (k+1)^2-(k+1) \\
&=k^2+2k+1-k+1
\end{split}
\end{equation*}
\begin{tabular}{|c|l|}
\hline
% after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...
Hello & 2 \\
Hi & 1 \\
\hline
\end{tabular}
\begin{figure}
\begin{pspicture}(4,5)
\psframe(0.7,2)(3.3,3)
\rput(2,2.5){First Example}
\end{pspicture}
\end{figure}
\end{document}