garrettj403/SciencePlots

About use this tool in win10 with RuntimeError

datamonday opened this issue · 5 comments

First, thanks for @garrettj403 perfect work, it is very useful.


If not install LaTeX in win10, run examples in this repo will get an error:
"RuntimeError: Failed to process string with tex because latex could not be found"


Just need to install LaTeX and add 'path\texstudio.exe' to systerm enviroment PATH
(Note1: Need to install MiKTex and LaTeX, The following installation package will provide guidelines.)
(Note2: Selecting for all users when installing MiKTex will automatically add MiKTex to the system environment variables PATH)


the tex download: http://www.tug.org/


I tested this tool in Jupyter notebook and it works very well.
I hope this suggestion can help friends who encounter this problem.

Hi @datamonday,

Thanks for the tip! I'll add this to the README.

I'm glad you find SciencePlots useful.

helpful!

I got the note and downloaded miktex on Windows 11, but the error still exists. Could you please give more details?

@caijigiser since this package just provides styles for Matplotlib, we don't really do support for these kind of requests. However, for some obvious reasons, we've got some references that can help you:

@caijigiser since this package just provides styles for Matplotlib, we don't really do support for these kind of requests. However, for some obvious reasons, we've got some references that can help you:

Two days later, the script is working well! Maybe as you said the environment variables had to be updated, rebooting would help! Thanks for your reply!