TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a template for a paper that I am using that produces dvi output when I run pdflatex on the input file. Whereas most of the papers that I have worked with produce pdf output when I run pdflatex.

I was looking at the log files for the two different papers and the one that produces dvi output includes the line:

(/etc/texmf/tex/latex/config/graphics.cfg
File: graphics.cfg 2009/08/28 v1.8 graphics configuration of TeX Live
)
Package graphics Info: Driver file: dvips.def on input line 91.

Whereas the one that produces pdf output contains the lines:

(/etc/texmf/tex/latex/config/graphics.cfg
File: graphics.cfg 2009/08/28 v1.8 graphics configuration of TeX Live
)
Package graphics Info: Driver file: pdftex.def on input line 91.

I am trying to figure out what the setting in that would cause this difference. The packages that are included for the two different papers are very similar, but I'm guessing it's related to one of them. So basically I want to figure out how to make pdflatex produce pdf output, and I'm wondering if the different driver file gives a hint as to what I should be looking at.

share|improve this question
    
Can you post the template? It would be much easier to help you if you give us the information. – Boris Apr 27 '12 at 19:55
    
The template that I am using that is giving me problems is available here: microarch.org/micro44/files/micro2011AuthorKit.zip – Gabriel Southern Apr 27 '12 at 19:57
8  
You probably have left the first line in the template, which is %&latex. Remove it. Or launch pdflatex -no-parse-first-line – egreg Apr 27 '12 at 20:16
    
thanks that solved my problem. – Gabriel Southern Apr 27 '12 at 21:23
    
@egreg: Please turn your comment into an answer. – Werner Apr 28 '12 at 5:29
up vote 6 down vote accepted

In you tex file, you have put %&latex

%&latex
\documentclass[12pt,letterpaper]{article}

If you give %&latex this will produce dvi only. Just remove this line or put %&pdflatex.

share|improve this answer

If you do not want to modify the source file, another possibility could be to use the option -output-format=dvi when compiling with pdflatex. It works for me with TeX Live under Windows. Remember to place the option before input file name.

Just as an example, to produce a dvi output I use the following compile command:

C:\texlive\2015\bin\win32\pdflatex.exe -output-format=dvi "my_source_file.tex"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/53600/pdflatex-producing-dvi-output-instead-of-pdf
tex.stackexchange.com
crawl=CC-MAIN-2016-22
78116
application/http; msgtype=response
sha1:YFTWQP6QHBAB2LQOQNHR3Y5B3RVPQGZG
<urn:uuid:733ab8b1-91d8-438d-adf7-77f3d4acb362>
2016-05-31T22:05:18Z
104.16.117.182
sha1:G4DWFEECCIDCTIJODJPGVT4NXPAXBKG2
<urn:uuid:70c36d02-3248-459c-9ddc-6b7d4ac89b32>
http://tex.stackexchange.com/questions/53600/pdflatex-producing-dvi-output-instead-of-pdf
response
<urn:uuid:2065da67-4ac0-4df9-8f9f-ba494c50687f>
robots: classic
hostname: ip-10-185-217-139.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-22
operator: CommonCrawl Admin
description: Wide crawl of the web for May 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf