I am trying to get PSTricks to cover an entire page. The objective in the long run is to create a presentation template so therefore I began using Beamer but since I ran into problems, I opted to do it using a standard article as basis but got the same result -- which I will explain now.
When I try to cover a page with PSTricks I do not get the PSTricks frame all the way to the left and top. The code I use is the following, in a sty-file:
Code: Select all
\ProvidesPackage{lnupres}
\NeedsTeXFormat{LaTeX2e}
\RequirePackage[
latex={-interaction=nonstopmode},
crop=off,runs=2
]{auto-pst-pdf}
\RequirePackage{geometry}
\geometry{paperwidth=12.8cm,paperheight=9.6cm,margin=0cm}
%\psset{unit=1mm}
\RequirePackage{graphicx}
\def\maintitle{
\pagestyle{empty}
\fbox{
\begin{pspicture}(12.8cm, 9.6cm)
\psframe[fillstyle=solid,fillcolor=Maroon](0,0)(12.8cm, 9.6cm)
\pscircle*[linewidth=2pt](1.5,1.5){1.5}
\end{pspicture}
}
}
In the tex-file I have the following code:
Code: Select all
\documentclass[10pt]{article}
\usepackage[swedish]{babel}
\usepackage[utf8]{inputenc}
\usepackage[dvipsnames,prologue,table]{pstricks}
\usepackage{pst-all}
\usepackage{lnupres}
%opening
\title{}
\author{}
\begin{document}
\thispagestyle{empty}
\maintitle
\end{document}
Thanks for any help!
//Tobias