Current location - Training Enrollment Network - Mathematics courses - Manual macro package installation operation of Texlive under Win
Manual macro package installation operation of Texlive under Win
Manually install macro packages with LaTeX distribution of Texlive (Texlive2020 in this article) under windows. This article does not use Tex Live Manager to install, so this method always fails to install+the speed is extremely slow+there must be macro packages on +CTAN. Manual installation can be quickly installed as long as there are macro packages. Sty file, you don't need to record macro package in CTAN.

LaTeX paths (target paths) of various macro packages: g: \ texlive 2020 \ texlive \ 2020 \ texmf-dist \ tex \ latex.

There are many folders under this path, and each folder can be regarded as a macro package with a series. Sty files in each folder. -If the installation path and naming are different from this article, you can use everything software to search. Sty keyword to see where most of these files are concentrated, which is the storage address of our macro package.

The third-party macro package to be installed in this paper is: PGF school. Draw cakes with tikz.

Create a folder with the same name under the target path: pgf-pie, and put the pgf-pie.sty file into it.

Right-click the Start menu and select Open cmd as Administrator:

Input: tex hash- refresh macro package library (note that you must be an administrator to refresh this step! The refresh process takes about 2 minutes. )

Import macro packages into the written. Tex file and run it again. Note: Macro package name and. Sty file name (and created folder name), namely: \usepackage{pgf-pie}