Page LayoutHeader Issue in PS Output

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
wicky_83
Posts: 6
Joined: Sat Feb 11, 2012 11:49 am

Header Issue in PS Output

Post by wicky_83 »

Hi,

I'm new to LaTeX and I have the following problem. I'm currently writing my thesis and I have notices the header distance (shown in the image below) is not present in documents generated with DVI -> PS technique where as the header distance as shown with the read line is present in the DVI -> PDF technique.

I use adobe distiller to generate the relevant PDF file using the PS file generated. I have also checked using the ghost view and still have the same problem.

I prefer DVI -> PS method since I use tikZ library and PDF -> PDF conversion drops lot of items in my document.

Please help me in fixing the header issue in PS conversion.


Regards,
Wicky
Attachments
header-alignment.png
header-alignment.png (19.93 KiB) Viewed 3157 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header Issue in PS Output

Post by localghost »

It's hard to say what could cause this behaviour. But due to the dependence on the compiling route the cause might be located in the settings for »dvips«, which is responsible for the conversion. So, a few details could be helpful.
  • The chosen paper format in the document.
  • The settings for »dvips« (e. g. command line arguments).
  • Information about whether the misbehaviour can already be seen in the PS output before conversion to the final PDF.
From your screenshot I'm not sure if both views are from the PDF viewer or not. So the third point in the above list is also important to know.


Best regards and welcome to the board
Thorsten
wicky_83
Posts: 6
Joined: Sat Feb 11, 2012 11:49 am

Header Issue in PS Output

Post by wicky_83 »

localghost wrote:
  • The chosen paper format in the document.
  • The settings for »dvips« (e. g. command line arguments).
  • Information about whether the misbehaviour can already be seen in the PS output before conversion to the final PDF.
Thorsten
Thank you for answering in my thread.

Here is the additional information

I use MikTek 2.9 with the Led Editor. My paper size is set to a4paper and I user the memoir class with oldfontcommands + the tikz library.

I have used the ghostviewer to check the alignment before converting and it still looks the same and only thing different is I switched from a 32bit machine to a 64bit machine recently and then only the trouble started to happen. I use windows 7 64bit version.

The above image was taken from the view I get from adobe acrobat reader. One image is a little enlarged than the other sorry for that.

Regards,
Wicky
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header Issue in PS Output

Post by localghost »

I'm not using the memoir class so I can only refer you to Section 2.8 of its user guide. But as far as I understand the remarks there, the \fixdvipslayout command should provide the right layout formatting for the PS output. According to the guide it is processed automatically when not producing PDF output directly. So I'm a bit clueless at this point.
wicky_83
Posts: 6
Joined: Sat Feb 11, 2012 11:49 am

Re: Header Issue in PS Output

Post by wicky_83 »

I did the directive you have specified but it did not work as well.

I looked at the generated DVI file using a DVI viewer this seems to work fine with alignment and I think the problem lies in PS conversion.

Any help would be grateful.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header Issue in PS Output

Post by localghost »

I think this is the point where you have to provide a minimal example that exactly reproduces the behaviour. Just a small compilable document with a few text and a header. Then post the source code here and attach both PS and PDF output by upload to the forum server.

A last measure for a remedy would be not to use the Ad0be Distiller but just convert the PS file by Ghostscript to PDF. Your editor might have a corresponding output routine which lets you compile "LaTeX -> DVI -> PS -> PDF" with just one click.
wicky_83
Posts: 6
Joined: Sat Feb 11, 2012 11:49 am

Re: Header Issue in PS Output

Post by wicky_83 »

Hi,

I have attached the zip file which contains some test files I created and the outputs created by DVI to PS, DVI to PDF and PS to PDF(distiller).

The error is on the header of the page 2. The gap is smaller than what is required or normal. PDFLatex does not run and I get cannot find supp-mis.tex error. I don't want to use this since I need a PS output since some of the classes I use only support that.

When creating PDF via DVI I get 158 warnings.

In the archive I have put the test project created from the Latex editor.

Hope this can get me an answer.

Regards,
Wicky
Attachments
PhD.zip
(8.5 KiB) Downloaded 123 times
PS.ps
(92.86 KiB) Downloaded 249 times
DVI-PDF.pdf
(13.66 KiB) Downloaded 147 times
distiller.pdf
(23.99 KiB) Downloaded 163 times
Post Reply