Solve Latex Pakcage not found by tlmgr
When installing latex packages for Latex. Users can either install texlive-basics or full version texlive. However, the basic version is light version uses much less strorage. Instead, full version texlive covers most of packages but more storage on disk.
I choose to install texlive-basic and install the packages required for my Latex file.
sudo tlmgr install fontaxes
Then it shows
! LaTeX Error: File `fontaxes.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \fi
tlmgr install: package fontaxes.sty not present in repository.
We can search the file name directly and manually installs the
- Search the
.styfile and save it locally
- Find the Latex package libary location in the computer by following commands.
nccfoots.sty can be replaced by any installed package.
It returns like following result
Therefore the libary directory is
go to the directory
create a folder with same name in the libary directory.
fontaxes.sty in the folder
cp fontaxes.sty /usr/local/texlive/2017basic/texmf-dist/tex/latex/fontaxes
register the package.
The package dependency problem will be solved.