[Tex/LaTex] Texmaker can’t compile “pdflatex: Bad parameter value. pdflatex: Data: font_mem_size”

miktexpdftextexmaker

My Texmaker with MikTex setup have been working without problems for years, but I had to reinstall MikTex for it to recognise a new package I wanted to use.

After reinstallation everything worked fine, but after a restart of the computer I get a error when compiling in Texmaker:

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

With the further detail in the log: "pdflatex: Bad parameter value. pdflatex: Data: font_mem_size"

I didn't find any solutions to this problem out there, so I decided to reinstall both MikTex and Texmaker to test if something went wrong with the installation. After that it worked again, but only until I restart the computer.

I read a bit about the "font_mem_size", but from my limited understanding of it I have a hard time believing it really is related to this parameter. I would rather think it is related to a PATH issue, but I can't figure out how.

A copy of my configuration:
enter image description here

I am able to compile documents directly in MikTeX (through TeXworks). Both TeXMaker and TeXStudio produce the same error.

In MiKTeX I constantly have a PATH issue "This directory is not in the search path for executables or it is at the wrong position in the path. You can fix this issue by adding the directory to the environment variable PATH. This makes it possible to invoke the MiKTeX executables everywhere". The issue disappears when I press "Fix now", but reapers when I restart MiKTeX.
I added the path to the executables mentioned in the PATH issue in MeKTeX Console to PATH in my Texmaker configuration. This didn't change anything.

UPDATE:

Using TeXLive instead of MiKTeX solved the problem.

Best Answer

Perhaps try and isolate the problem further. Can you open MikTeX and try executing any .tex file from there? If that works, then perhaps you can reinstall TeXMaker.

I have faced other problems with TeXMaker and it can get a bit temperamental. If all else fails, try TexStudio.

Related Question