1

EDIT 2: LINK TO DOWNLOAD THE tex FILE:

http://www.mediafire.com/download/a2aaczrqzobv1q2/send.zip

I have a .tex file whose preamble is this:

EDIT:

\documentclass[12pt,a4paper,twoside,openany]{report}
\usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
\parindent 1 true cm
\usepackage{graphicx}
\usepackage{eufrak}
\usepackage[british,spanish,es-tabla]{babel}
\usepackage[latin1]{inputenc}  
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{graphicx,epsfig}
\usepackage{multirow}
\usepackage{float}
\usepackage{color}
\usepackage[longnamesfirst]{natbib} 
\setcitestyle{square} 
\usepackage{fancyhdr}   
\pagestyle{fancy}                                     
\renewcommand{\chaptermark}[1]{\markboth{\thechapter .\ #1}{}}         
\renewcommand{\sectionmark}[1]{\markright{\thesection .\ #1}{}} 
\lhead{\nouppercase}
\rhead{\nouppercase}
\fancyhead[LE]{{\sf \leftmark}}                                 
\fancyhead[RE]{}                                                
\fancyhead[RO]{{\sf \rightmark}}                              
\fancyhead[LO]{} 
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[CE,CO]{}                                                         
\renewcommand{\headrulewidth}{0.0pt}                                
\renewcommand{\baselinestretch}{1.25}
\usepackage{adjustbox}
\usepackage{enumerate}
\usepackage{courier}
\usepackage{caption,setspace}
\usepackage[version=3]{mhchem}
\usepackage{rotating}
\usepackage{array,booktabs}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\usepackage{enumitem}
\captionsetup{font={footnotesize,sf,stretch=0.80},labelfont=bf}
\usepackage{subcaption}
\usepackage[toc,page]{appendix}
\begin{document} 

When I open this .tex file with Texmaker (program downloaded from: http://www.xm1math.net/texmaker/texmaker_ubuntu_12.04_4.4.1_amd64.deb)

I reveive this error:

enter image description here

I click OK and the .tex file opens. Under Options > Congigure Texmaker > Quick Build I select the Latex option:

enter image description here

I compile and I receive this error:

enter image description here

I successfully compile this exact .tex file when I make: bash make_latex.sh. This make_latex.sh file makes the same as that Texmaker option:

#!/bin/bash
\rm *.blg *.bbl *.dvi *.aux *.log
latex dd
bibtex dd
latex dd
latex dd
dvips dd.dvi
ps2pdf dd.ps
evince dd.pdf

I would like to compile using Texmaker. I would appreciate if you could tell me how could I solve this problem.

How could I successfully generate the pdf file?

  • 1
    TexMakes should be able to show your the messages generated by Latex+Bibtex+... somewhere, even if the "file not found" error box pops up. Can you check if in the messages, you find any errors? – DCTLib May 29 '15 at 12:03
  • 3
    Well, what's in your document? I can typeset a very basic pdf using your preamble. So the "problem" needs to be identified in your code. – Alenanno May 29 '15 at 12:23
  • @Alenanno I have a Master Thesis. After making Options > Congigure Texmaker > Quick Build, with that Latex option (upper image), dd.aux, dd.toc, dd.log, dd.dvi, dd.blg, and dd.bbl files are generated. No dd.ps nor dd.pdf files are generated, which means that ps2pdf dd.ps does not work. If in terminal I make: ps2pdf dd.ps, then the dd.pdf file is generated. Why dd.ps file is not generated? – DavidC. May 29 '15 at 14:48
  • 2
    From your list of generated files it looks like dvips is failing. I can't see how that relates to whether the .tex file is utf-8 or not, because LaTeX successfully compiles to .dvi. By the way, why are you compiling this way rather than pdflatex? .ps images? – Chris H May 29 '15 at 15:04
  • @ChrisH Yes, I have .ps images – DavidC. May 29 '15 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.