## LaTeX forum ⇒ General ⇒ latex=>DVI just creates pdf file [solved]

General information and discussion about TeXnicCenter
ulli.winter
Posts: 3
Joined: Sat Feb 17, 2007 10:21 am

### latex=>DVI just creates pdf file [solved]

hi,
iÂ´v updated to miktex 2.5, and since then each time i try to compile a dvi file, it is not created - but the according pdf file.

any suggestions?
Last edited by ulli.winter on Sun Feb 18, 2007 11:51 pm, edited 1 time in total.

ulli.winter
Posts: 3
Joined: Sat Feb 17, 2007 10:21 am
ok...
it was some strange template whicht caused the compiler to do so....

streawkceur
Posts: 2
Joined: Fri Feb 23, 2007 6:34 pm
So how did you fix the problem?
I've got the same problem here with MikTeX 2.5.2580 and TeXnicCenter 1 Beta 7.01.

In LaTeX => DVI mode it seems to create a pdf and no dvi. The log says

`This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) (preloaded format=latex 2007.2.23)  23 FEB 2007 17:32entering extended mode[...]Output written on out.pdf (7 pages, 59291 bytes).`

Which doesn't make much sense as I want a DVI...

ulli.winter
Posts: 3
Joined: Sat Feb 17, 2007 10:21 am
i used the report template...
in it a lot of
"\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse %%normales LaTeX wird ausgefÃ¼hrt
\else
\pdfoutput=1
\pdftrue %%pdfLaTeX wird ausgefÃ¼hrt
\fi"
stuff
seems to decide by itself whether it creates a dvi or pdf

to make it short...
i deleted all "*pdf*" stuff
)

streawkceur
Posts: 2
Joined: Fri Feb 23, 2007 6:34 pm
I've had this code in my sources:

`% will be used further below.\newif\ifpdf 	\ifx\pdfoutput\undefined 	\pdffalse    % we are not running pdflatex 	\else 	\pdfoutput=1 % we are running pdflatex 	%\pdfcompresslevel=9     % compression level for text and image;	\pdftrue \fi ... \ifpdf	\usepackage[pdftex,pdfauthor={\autor},pdftitle={\titel}]{hyperref}\fi`

It seems as LaTeX would automatically create a PDF when the package hyperref is loaded with the option pdftex.
But this package should only be loaded when we're running pdflatex. So apperently the pdflatex-detection (ifpdf) seems to be wrong.

So I removed the code for the detection and just loaded this package, which does the same:

`\usepackage{ifpdf}`

Now the code at the bottom works and I get DVI and PDF as wanted.