Graphics, Figures & TablesPSTricks | Additional white space appearing

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

PSTricks | Additional white space appearing

Post by niles »

Hi

I have generated a PS-file, containg the following code:

Code: Select all

\documentclass{article}
\usepackage{pstricks, pst-node, pst-plot, pst-circ}
\usepackage{moredefs}
\usepackage[%
    paperwidth = 11.508871cm, % add 0.5%
    paperheight= 5.0827586cm, % add 0.5%
    lmargin    = -5.25mm, % do not know why this offset is needed.
    rmargin    = 0mm, %
    tmargin    = 0mm, %
    bmargin    = 0mm, %
    ]{geometry}
\begin{document}

% Global Parameters that can be changed:
\providelength{\AxesLineWidth}       \setlength{\AxesLineWidth}{0.5pt}%
\providelength{\GridLineWidth}       \setlength{\GridLineWidth}{0.4pt}%
\providelength{\GridLineDotSep}      \setlength{\GridLineDotSep}{0.4pt}%
\providelength{\MinorGridLineWidth}  \setlength{\MinorGridLineWidth}{0.4pt}%
\providelength{\MinorGridLineDotSep} \setlength{\MinorGridLineDotSep}{0.8pt}%
\providelength{\plotwidth}           \setlength{\plotwidth}{10cm}% width of the axes only
\providelength{\LineWidth}           \setlength{\LineWidth}{0.7pt}%
\providelength{\MarkerSize}          \setlength{\MarkerSize}{4pt}%
\newrgbcolor{GridColor}{0.8 0.8 0.8}%

\psset{xunit=0.020000\plotwidth,yunit=0.000500\plotwidth}%
\begin{pspicture}(-16.336406,-574.712644)(40.921659,436.781609)%


\end{pspicture}%
\end{document}
The idea was to have a single blank "sheet", but when I compile it I see that there are two blank "sheets" of same size, one above the other. I really can't figure out why this occurs.

I have tried varying the measures of the geometry-package, but it doesn't help at all. Can anyone spot the error?

Thanks in advance.

Best,
Niles.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

PSTricks | Additional white space appearing

Post by localghost »

Now and then you should listen to the compiler and have a look at what it tells you in the log file.

Code: Select all

Overfull \vbox (0.29286pt too high) has occurred while \output is active
The content exceeds the page boundaries (vertically).

There are much smarter ways to get a blank sheet instead of almost unreadable code. Is this exported from another software? You almost always present this confusing example with a strange page geometry. If you want to create PSTricks pictures as standalone graphics files, use the standalone bundle.


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply