Generallatex=>DVI just creates pdf file [solved]

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

latex=>DVI just creates pdf file [solved]

Post by ulli.winter »

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
ulli.winter
Posts: 3
Joined: Sat Feb 17, 2007 10:21 am

Re: latex=>DVI just creates pdf file

Post by ulli.winter »

ok...
it was some strange template whicht caused the compiler to do so....
streawkceur
Posts: 2
Joined: Fri Feb 23, 2007 6:34 pm

latex=>DVI just creates pdf file [solved]

Post by streawkceur »

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

Code: Select all

This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) (preloaded format=latex 2007.2.23)  23 FEB 2007 17:32
entering extended mode
[...]
Output written on out.pdf (7 pages, 59291 bytes).
Which doesn't make much sense as I want a DVI...
Last edited by streawkceur on Fri Feb 23, 2007 6:53 pm, edited 1 time in total.
ulli.winter
Posts: 3
Joined: Sat Feb 17, 2007 10:21 am

Re: latex=>DVI just creates pdf file [solved]

Post by ulli.winter »

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

latex=>DVI just creates pdf file [solved]

Post by streawkceur »

I've had this code in my sources:

Code: Select all

% 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:

Code: Select all

\usepackage{ifpdf}
Now the code at the bottom works and I get DVI and PDF as wanted. :)
Post Reply