Could not start the command. pdflatex -synctex=1 -interaction=nonstopmode %.tex (with extra info to the other questions of this type :p)

5,720

The configuration needs to be as under::

enter image description here

The correct command in the terminal / shell window needs to be as under::

enter image description here

>pdflatex story.tex

is the operative part of the compile command and results in the correponding pdf file with the same name as the .tex file --in this case story.pdf -- in the same folder-- the message at the end of compile operation is as under::

enter image description here

Share:
5,720

Related videos on Youtube

Sebastien Bienfait
Author by

Sebastien Bienfait

Updated on March 08, 2020

Comments

  • Sebastien Bienfait
    Sebastien Bienfait about 3 years

    Ive just installed MiKTeX and TeXmaker using this instillation guide: https://www.youtube.com/watch?v=yPnfHRE_W_g its been great so far but when I try to fun my 'Hello World' pdf I get this error message:

    Could not start the command. pdflatex -synctex=1 -interaction=nonstopmode %.tex 
    

    my TeXmaker is configured idntially to the screen shot in this simmilar quetion: PdfLaTeX in Texmaker doesn’t work: “Could not start the command” . However my LaTeX and PdfLaTeX paths are what the what the suggested answer to that querey already, i.e.,

    LaTeX: latex -interaction=nonstopmode %.tex
    
    PdfLaTeX: pdflatex -synctex=1 -interaction=nonstopmode %.tex
    

    When I try to run the file from termainal it brings up the MiKTeX editor TeXworks and the pdf runs fine from there so im really not sure what ive done wrong, Im assuming in need to add a path to TeXmaker however im not sure how to do that

    EDIT: sorry for the slow response this is my configure settings:enter image description here

    Termial output when i run pdflatex file.tex

    • daleif
      daleif about 3 years
      (1) Exactly what OS are you on? (2) Running latex from the terminal does not normally bring op and editor. Please explain in more detail exactly what you did?
    • Sebastien Bienfait
      Sebastien Bienfait about 3 years
      im on windows 10, i did cd to the file directory then ran that file (only one in there) this brought up the TeXworks program with the code i had just written in TeXmaker
    • daleif
      daleif about 3 years
      Exactly what did you type on the commandline? I would expect you to type something line pdflatex file.tex (for your choice of filename)
    • Sebastien Bienfait
      Sebastien Bienfait about 3 years
      Ah no, i just typed the file name to open it, didn't cross my mind to open it as a pdf. This probably wasnt the best time to ask this question as im going to be away from my computer for today and most of tomorrow
    • daleif
      daleif about 3 years
      erh, pdflatex converts the .tex to PDF. it does not open it as a pdf.
    • Sebastien Bienfait
      Sebastien Bienfait about 3 years
      Does that save a separate copy as a pdf then? Slightly immaterial though, do you have any thoughts why the TeXmaker isnt running for me?
    • daleif
      daleif about 3 years
      You can see pdflatex as a sort of compiler, it takes the .tex as the input, and gives a PDF as the output. I say something is strange with your windows. Normally TeXMaker picks up the location of pdflatex from the system PATHs. Have you tried the standard Windows solution: reboot? Otherwise try reinstalling TeXMaker
    • Teepeemm
      Teepeemm about 3 years
      I'm confused about "terminal ... brings up the MiKTeX editor". If you go to the directory containing file.tex and type pdflatex file, what happens?
    • Sebastien Bienfait
      Sebastien Bienfait about 3 years
      ive added a screen shot of the temail to the post, im not sure what i should be getting. in my folder i get a pdf, a text doc and a .aux file all with the same name
  • Sebastien Bienfait
    Sebastien Bienfait about 3 years
    So you think i need to add '--shell-escape' to my command line as thats the only thing different. Thank you for the information, ill try it when i get to my computer.
  • js bibra
    js bibra about 3 years
    leave out the shell escape --thats for certain other dependencies--you may like to upload screen shot of your configuration