General"latex => PDF" doesn't create any PDF file!

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

"latex => PDF" doesn't create any PDF file!

Post by idaham »

Hello all!
I have some problems when compiling my latex document to a pdf in TeXnicCenter. I have no problems compiling "latex => DVI" or "latex => PS" (I can view the outputs), and I don't get any errors when compiling "latex => PDF" either. The thing is that although pdf-compilation works, no pdf-document is created! The .aux, .bbl, .toc, .log, .tcp, .blg and .dvi files are created, but not the .pdf! The path to the compiler is:
"C:\Program\MiKTeX 2.7\miktex\bin\pdflatex.exe".

I've created the "latex => PS => PDF" step, and it works just fine, creating a PDF and all... It takes much longer time though, and I would really like to understand why the default "latex => PDF" dosen't work!
Cheers!
/Ida

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: "latex => PDF" doesn't create any PDF file!

Post by Stefan Kottwitz »

Hi Ida,

perhaps we would find the cause in the .log file, you could post it here as attachment.

Stefan
LaTeX.org admin
kiki
Posts: 9
Joined: Tue Aug 26, 2008 3:36 am

Re: "latex => PDF" doesn't create any PDF file!

Post by kiki »

Perhaps you could check to see if the viewer pathway is also correct. Go to the output profile, click on the Latex -->PDF and also the viewer tab. It will show the pathway to the viewer - this might be incorrect or needing to be updated. I experienced the same problem until I also reconciled the viewer.
idaham
Posts: 21
Joined: Wed May 21, 2008 4:30 pm

"latex => PDF" doesn't create any PDF file!

Post by idaham »

Hello Stefan, and thanks for helping me!
I've attached the log file, hopefully there are some answers hidden there! =)
Cheers,
Ida
Stefan_K wrote:Hi Ida,

perhaps we would find the cause in the .log file, you could post it here as attachment.

Stefan
Attachments
Report.log
Log file
(12.57 KiB) Downloaded 418 times
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

"latex => PDF" doesn't create any PDF file!

Post by localghost »

It seems that you have given the dvips driver option to the graphicx package which forces the output of a DVI file. Omit any driver options in the list of the document class or any other package. Modern packages detect the processing compiler on their own and choose the right driver automatically.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
idaham
Posts: 21
Joined: Wed May 21, 2008 4:30 pm

"latex => PDF" doesn't create any PDF file!

Post by idaham »

Hello again!
I hate to bug you about the same question, but I'm really not that skilled when it comes to Latex... How do I "omit the driver option"? Should I change/remove something from the graphicx sty-file, or add some line to the document class command? My document class command is:

Code: Select all

\documentclass[a4paper,11pt,twoside]{article}
Sorry for probably posting a stupid question, but I really don't know! =) Thanks again for taking the time to help me, it's much appreciated!
/Ida
localghost wrote:It seems that you have given the dvips driver option to the graphicx package which forces the output of a DVI file. Omit any driver options in the list of the document class or any other package. Modern packages detect the processing compiler on their own and choose the right driver automatically.


Best regards
Thorsten¹
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

"latex => PDF" doesn't create any PDF file!

Post by localghost »

Options are given to packages (or the documentclass) enclosed in brackets. The issue that is bugging you will probably be the dvips option given to one of the packages color/xcolor, graphicx or hyperref. This has nothing to with changing code inside a STY file. Check your preamble for this dvips option given to one of the mentioned packages. If the problem persists, post your complete header file as attachment or the preamble using the code environment.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
idaham
Posts: 21
Joined: Wed May 21, 2008 4:30 pm

"latex => PDF" doesn't create any PDF file!

Post by idaham »

Hello again Thorsten!

I've tried to work it out, without any success...=( Here's the preamble:

Code: Select all

\documentclass[a4paper,11pt,twoside]{article}
\usepackage[cp1252]{input enc} 
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{arydshln}
\usepackage{amsmath}
\usepackage{fix-cm}
\usepackage{color}
\usepackage{mathrsfs}
\usepackage{url}
\usepackage[margin=20pt,font=small,labelfont={bf,it},textfont=it,labelsep=period]{caption}
\usepackage{fancyhdr}
\usepackage{fancysection}
\usepackage[swedish,english]{babel}
\usepackage[bindingoffset=1cm,margin=3.7cm]{geometry}
The "fancysection" file is my own, homemade one looking like:

Code: Select all

\RequirePackage[calcwidth]{titlesec}
\RequirePackage{color}
\usepackage{fix-cm}
\definecolor{gray}{rgb}{.8,.8,.8}
\titleformat{\section}[hang]{\sffamily\bfseries}{
\fontsize{120}{100}\selectfont\color{gray}\thesection}{-8pt}{\linebreak\huge\raggedleft}[{\titlerule[0.5pt]}]
localghost wrote:Options are given to packages (or the documentclass) enclosed in brackets. The issue that is bugging you will probably be the dvips option given to one of the packages color/xcolor, graphicx or hyperref. This has nothing to with changing code inside a STY file. Check your preamble for this dvips option given to one of the mentioned packages. If the problem persists, post your complete header file as attachment or the preamble using the code environment.
Post Reply