I am trying to include sample.ps
file to my document with the following code
\documentclass{article}
\usepackage[margin=3cm,a4paper]{geometry}
\usepackage{amsmath,amsthm}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{psbox}
\begin{document}
\PSbox{sample.ps}{4in}{6in}
\end{document}
But it is failing. Is it possible to include .ps file to our latex document?
Is there any method like \includepdf[pages=-]{my_file.pdf}
?
pdftex
. See here: math.mun.ca/~edgar/includeps.html.eps
, using\documentclass{article} \usepackage{graphics} \begin{document} \includegraphics{sample} \end{document}
works for me with both DVI and PDF output modes.\usepackage{auto-pst-pdf}
and then it will work. I don't havepsbox
installed so can't check with your code. But:\documentclass{article} \usepackage[margin=3cm,a4paper]{geometry} \usepackage{amsmath,amsthm} \usepackage{amsfonts} \usepackage{graphicx} \usepackage{auto-pst-pdf} \begin{document} \includegraphics[width=4in]{sample.ps} \end{document}
works.