GeneralSome layout design is lost in PDF for LaTex => DVI => PDF

General information and discussion about TeXnicCenter
Post Reply
idaham
Posts: 21
Joined: Wed May 21, 2008 4:30 pm

Some layout design is lost in PDF for LaTex => DVI => PDF

Post by idaham »

Hi!
I've configured a build LaTex => DVI => PDF which seems to be working. At least I get a PDF... The problem is that some of the fancy layout design that is working properly in the DVI is not following through to the PDF!

The part of the layout that isn't working is the pagenumbering which I've placed in a gray box:

Code: Select all

\thispagestyle{fancy}
\fancyfoot[LE]{\psboxit{box 0.8 0.8 0.8 setrgbcolor fill}
{\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}
% odd side pages
\fancyfoot[RO]{\hspace{0pt}\psboxit{box 0.8 0.8 0.8 setrgbcolor fill}
{\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}
As I said, this works in the DVI (LaTex => DVI), the page numbers show in gray boxes as they should. In the generated PDF however the page numbering is empty, neither number nor box is showing despite everything else being ok.

The setup for LaTex => DVI => PDF is:
----- Postprocessor -----
Postprocessor: dvipdfm.exe (also tried dvipdfmx.exe)
Executable: C:\Program Files (x86)\MiKTeX 2.7\miktex\bin\dvipdfm.exe
Arguments: "%Bm.dvi"
----- Viewer ------
Path to executable: C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe
Command: "%bm.pdf"

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Some layout design is lost in PDF for LaTex => DVI => PD

Post by josephwright »

You are using PostScript commands. You need to use dvips followed by ps2pdf to convert to PDF format.
Joseph Wright
idaham
Posts: 21
Joined: Wed May 21, 2008 4:30 pm

Re: Some layout design is lost in PDF for LaTex => DVI => PD

Post by idaham »

Hello Joseph and thanks for your reply!

I configured LaTex => DVI => PS => PDF and indeed the layout is now correct in the PDF as well! Thanks a lot!
Cheers,
Ida
Post Reply