I have a .tex file whose preamble is this:


\parindent 1 true cm
\renewcommand{\chaptermark}[1]{\markboth{\thechapter .\ #1}{}}         
\renewcommand{\sectionmark}[1]{\markright{\thesection .\ #1}{}} 
\fancyhead[LE]{{\sf \leftmark}}                                 
\fancyhead[RO]{{\sf \rightmark}}                              

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:

\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.