GeneralPstricks doesnt generates the file

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ageof
Posts: 5
Joined: Thu May 05, 2011 7:05 pm

Pstricks doesnt generates the file

Post by ageof »

Hello.
I have one problem using pstricks. I use Miktex 2.9 in Windows Vista. My editor is Texniccenter. And when compiling this code

Code: Select all

\documentclass{book}

\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
[color=#FF0000]\usepackage{pst-tree,pst-node}[/color]

\title{Hello, World}

\begin{document}
\maketitle
\end{document}
without the marked line, it works fine. But when I include that line and compile the code, Latex follows saying that everything is OK, but it doesn't generate the pdf (or ps) file.
I checked with the miktex manager that the pstriks package (with pst-tree and pst-node) are actually installed. So, I don't understand what happens.

PS: I have installed pst2pdf too.

Please, can anyone help me?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Pstricks doesnt generates the file

Post by Stefan Kottwitz »

Hi,

make sure that you are using the output profile LaTeX => PS => PDF, not LaTeX => PDF.

Stefan
LaTeX.org admin
ageof
Posts: 5
Joined: Thu May 05, 2011 7:05 pm

Re: Pstricks doesnt generates the file

Post by ageof »

"LaTeX => PS => PDF, not LaTeX => PDF"

Yes, I was doing LaTeX => dvi and dvi => ps (with Winedt).

OK, the problem was that I had to install one package (pst-node). Sorry for the noise I did.
Now I have another problem. The result in PS is cut in the left (like, 15 pixels). It's like having the wrong dimensions. Is there any way to solve this?
Thanks.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Pstricks doesnt generates the file

Post by Stefan Kottwitz »

You could use the geometry package to specify the page dimensions, such as

Code: Select all

\usepackage[a4paper,hmargin={2cm,4cm},vmargin={2cm,3cm}]{geometry}
geometry takes care that the dimensions are the same in all output formats. Without geometry it may happen, for example, that the pdf page size is different to the original page size, which can be fixed by pdfTeX commands or by loading geometry.

Stefan
LaTeX.org admin
Post Reply