Tuesday, 14. August 2007

When LaTeX produces pdf-files instead of dvi-files

Today, I've tried to solve the problem of why my LaTeX-installation (MikTex) produces pdf-files instead of dvi-files with some documents, even though I have set the output profile to LaTeX => DVI in TexnicCenter. Since I have collected some references which where not that easy to find, I just post them here:

The clearest answer seems to be this one:
http://lists.debian.org/debian-tetex-maint/2006/01/msg00409.html"
and similarly this one:
http://www.issa.stevens.edu/cgi-bin/query-pr-full?pr=2937

yes, it is as these people write: in the tex-file in question I do find this:
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse
\else
\pdfoutput=1
\pdftrue
\fi

(It is in fact from a template by Mark Müller, based on KOMA-script. I think it came with TexnicCenter)

I have replaced the first two line with

\usepackage{ifpdf}
\ifpdf

But a pdf-environment is still detected (and thus pdf instead of dvi produced), I don't know why... :-((

Here are some more documents I googled:
The description of the \ifpdf package:
ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/oberdiek/ifpdf.pdf

and a manual which still uses the old pdf-detection, which - according to the sources above - does not work anymore:
http://tex.lickert.net/tipps/ausgabetest/format_abfragen.html

Trackback URL:
https://narkose.twoday.net/stories/4164880/modTrackback

narcosis-notes

Narkose-Notizen

Search this blog

Recent Updates

Einwählen bei T-Online
Bei der Frage, ob es jetzt T-Online oder T-Home heisst,...
Simon (guest) - 27. Jun, 21:20
Internetausdrucker gibt...
ich hab tränen in den augen. ich glaube das kommt vom...
tophee - 27. Jun, 20:08
Fax ist jetzt in der...
Fax ist inzwischen in die Standardfirmware übernommen...
tophee (guest) - 6. Sep, 20:12
"Give up" as a motivation
In the last weeks I made so many past observations...
tophee - 17. May, 22:30
The Swedish Tax Declaration...
I guess today is the right day to start my little series...
tophee - 6. May, 22:07

Archive

August 2007
Sun
Mon
Tue
Wed
Thu
Fri
Sat
 
 
 
 1 
 2 
 3 
 4 
 5 
 6 
 7 
 8 
 9 
10
11
12
13
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
 

Users Status

You are not logged in.

Status

Online for 6671 days
Last update: 27. Jun, 21:20

Credits & Copyright


Creative Commons License

xml version of this page

twoday.net AGB


Computer
Life
Philosophy
Politics
Swedish peculiarities
Profil
Logout
Subscribe Weblog