- Open the Latex editor.
- type this following Latex code in the Latex editor:
%!TEX TS-program=pdflatex -shell-escape <filename.tex>
\documentclass{minimal}%\documentclass{article}
%\pagestyle{empty}
%\headheight=0pt
%\headsep=0pt
\usepackage{pstricks}
\usepackage[crop=off]{auto-pst-pdf}
\paperwidth=72.27pt
\paperheight=72.27pt
\topmargin=-72.27pt
\oddsidemargin=-72.27pt
\parindent=0sp
\special{papersize=\the\paperwidth,\the\paperheight}
\begin{document}
\begin{pspicture}(\paperwidth,\paperheight)
\psframe[linecolor=red](\paperwidth,\paperheight)
\end{pspicture}
\end{document} - Save file as minimalPSTricks.tex
- Run the Typeset command or similar other command with pdflatex -shell-escape <file-name>.tex, from above example is minimalPSTricks.tex.
Next Latex Document Minimal 2 >
Tidak ada komentar:
Posting Komentar