0

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

  • (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? – daleif Mar 04 '20 at 11:03
  • 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 – Sebastien Bienfait Mar 04 '20 at 12:08
  • Exactly what did you type on the commandline? I would expect you to type something line pdflatex file.tex (for your choice of filename) – daleif Mar 04 '20 at 12:16
  • 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 – Sebastien Bienfait Mar 04 '20 at 12:32
  • erh, pdflatex converts the .tex to PDF. it does not open it as a pdf. – daleif Mar 04 '20 at 12:34
  • 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? – Sebastien Bienfait Mar 04 '20 at 12:50
  • 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 – daleif Mar 04 '20 at 13:07
  • 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? – Teepeemm Mar 05 '20 at 22:27
  • 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 Mar 06 '20 at 18:15

1 Answers1

1

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

js bibra
  • 21,280
  • 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. – Sebastien Bienfait Mar 04 '20 at 14:18
  • leave out the shell escape --thats for certain other dependencies--you may like to upload screen shot of your configuration – js bibra Mar 04 '20 at 15:12