GeneralHeader Part Got Cropped When Using latex+dvips+ps2pdf

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

Header Part Got Cropped When Using latex+dvips+ps2pdf

Post by fractal.generator »

Dear all,

I want to use PSTRICKS (rather than PDFTRICKS) for my final PDF article.

Because this situation, I will use latex+dvips+ps2pdf compilation process.

However, I got a strange margin trouble when the input file is compiled using this process. The header part got cropped partially.

No problem exists when I compile the input file using pdflatex directly.

Code: Select all

\documentclass{book}%

%using pdflatex : no problem.
%using latex->dvips->ps2pdf : header part got cropped.
%\usepackage[a4paper, twoside, margin=25mm]{geometry}%


%using pdflatex : no problem.
%using latex->dvips->ps2pdf : header part still got cropped.
\usepackage[dvips, a4paper, twoside, margin=25mm]{geometry}%


\begin{document}
\chapter{One}
	one one one one one 
\chapter{Two}
	two two two two two  
\end{document}
Please let me know why this trouble happened.

thank you in advance.


regards,

Hayashi

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: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Header Part Got Cropped When Using latex+dvips+ps2pdf

Post by Stefan Kottwitz »

Hi Hayashi,

perhaps there's a problem with the paper size. You could pass the paper size as option to ps2pdf:

Code: Select all

ps2pdf -sPAPERSIZE=a4 filename.ps
Stefan
LaTeX.org admin
fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

Header Part Got Cropped When Using latex+dvips+ps2pdf

Post by fractal.generator »

@Stefan,

Thanks for replying.

I did your suggestion but i must use # rather than = in Windows.

The problem disappeared.




Hayashi
fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

Header Part Got Cropped When Using latex+dvips+ps2pdf

Post by fractal.generator »

Stefan_K wrote:Hi Hayashi,

perhaps there's a problem with the paper size. You could pass the paper size as option to ps2pdf:

Code: Select all

ps2pdf -sPAPERSIZE=a4 filename.ps
Stefan
I used the following command:

Code: Select all

ps2pdf -sPAPERSIZE#a4 input.ps output.pdf
btw, thank to STEFAN.


Hayashi
fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

Header Part Got Cropped When Using latex+dvips+ps2pdf

Post by fractal.generator »

:idea: Mission Accomplished :idea:
Post Reply