I have uninstalled and reinstalled MikTeX along with all updates. I have loaded all packages because I have still gotten the same error after trying to load .tex file someone more experienced with LaTeX gave me.
I am using: MikTeX and TeXworks Windows 11. pdfLaTeX+MakeIndex+BibTeX
After compiling the .tex file designed to load "needed packages", which is supposed to create a blank document at the end, I get this error:
auto-pst-pdf.sty
138
Package auto-pst-pdf Error:
"shell escape" (or "write18") is not enabled:
auto-pst-pdf will not work!
.
See the auto-pst-pdf package documentation for explanation.
Type H <return> for immediate help.
...
l.138 Or turn off auto-pst-pdf.}
%
Following is what shows up in the compiler:
Package ifplatform Warning:
shell escape is disabled, so I can only detect \ifwindows.
)
! Package auto-pst-pdf Error:
"shell escape" (or "write18") is not enabled:
auto-pst-pdf will not work!
.
See the auto-pst-pdf package documentation for explanation.
Type H <return> for immediate help.
...
l.138 Or turn off auto-pst-pdf.}
I have researched this thoroughly on stackexchange and other resources. I have spent about 16 hours on this in total.
I have attempted to manually turn on write18 and shell escape using the preferences for pdfLaTeX. i have ensured that I used the correct syntax. I have run a tex file to see if it is enabled. It is not. I have also tried to update a PDF file per other instructions I was provided. I have referenced the recommended documents to no avail.
Any ideas will be greatly appreciated.
Thank you.
\documentclass{article} \begin{document} \the\pdfshellescape \end{document}– Ulrike Fischer Feb 04 '23 at 23:17pdflatex --shell-escape test(where test.tex is the document). – Ulrike Fischer Feb 04 '23 at 23:37