Problem statement:
LaTeX Math displays an error: Error rendering 'latex' macro: LaTeX Error: File `preview.sty' not found.
Solution:
If you are using a proxy server, then the issue is due to the proxy setting of MikTex.
If you are using MikTex Admin Console, perform the following:
MikTex Admin Console
On the MikTex console page go to Updates.
Click Connection Settings.
Check the Use a proxy server and enter the proxy details.
Click Ok.
If you are using other than MikTex Admin Console, perform the following:
General User MikTex Console
On the MikTex console page go to Updates.
Click Install from and select Changeā¦
Click Connection Settings.
Check the Use a proxy server and enter the proxy details.
Click Ok.
For more details, see StackExchange Q&A: https://tex.stackexchange.com/questions/176718/miktex-proxy-settings
If your not using proxy server and your packages are installed correctly according to , then perform the following:
Go to LaTeX configuration page.
Under External Renderer Settings, specify the LaTeX executable and Dvipng executable path.
Add Comment