After installing texlive, enter the latex -v command on the command line to view the version information and show that 'latex' is not a solution for internal or external commands

question:

When installing texlive, manually modified the installation path of texlive.

After installing texlive, I want to use the latex -v command to view the version information in the command line cmd, but the result shows that 'latex' is not an internal or external command, nor is it an operable program or batch file.

latex -v

 Solution:

There are no errors during the installation process like this, but when viewing the version information in cmd, it shows that it is not an internal or external command, most of which are the reasons for not adding environment variables. The latex -v command actually needs to run a latex.exe file, we can find the latex.exe file in the texlive\2022\bin\win32 path, so all we have to do is add the path where this file is located to the environment variable.

step:

1. Right-click My Computer -> Properties -> Click Advanced System Settings -> Click Environment Variables -> Find the system variable Path and double-click it.

 2. Find the path where you installed texlive, enter the directory texlive\2022\bin\win32, and copy the path.

F:\software\texlive\2022\bin\win32

I installed it in the software directory of the F disk, so the path is as shown above.

3. Click New in the environment variable Path opened in the first step, and copy the path in.

 Note: After completion, click the OK button on the three interfaces opened in step 1, and do not click the cross in the upper right corner, otherwise it may cause the addition to fail. Then to reopen cmd, enter the command, otherwise it will still show that it is not an internal or external command.

At this point, enter the command, success!

 

Guess you like

Origin blog.csdn.net/lyb06/article/details/127987440